package o; import android.content.res.Resources; import android.util.Base64; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import o.C15715hv; import o.InterfaceC9416djN; import o.ZI; import o.wRi; /* loaded from: classes4.dex */ public class bVZ extends ZI { private static byte a = 6; public final YpL b; private final C17482xC d; private void g(String str, Object[] objArr) { byte[] decode = Base64.decode(str, 0); byte[] bArr = new byte[decode.length]; for (int i = 0; i < decode.length; i++) { bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ a); } objArr[0] = new String(bArr, StandardCharsets.UTF_8); } @InterfaceC13391fZD public bVZ(C16903sI c16903sI, YpL ypL, C17482xC c17482xC) { super(c16903sI); this.b = ypL; this.d = c17482xC; } /* renamed from: o.bVZ$3, reason: invalid class name */ /* loaded from: classes4.dex */ public class AnonymousClass3 extends wRi.LWm { private bVZ e; public AnonymousClass3(bVZ bvz) { this.e = bvz; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { Gzz gzz = (Gzz) obj; super.onNext(gzz); C17482xC c17482xC = this.e.d; C14957gcv.e(gzz, ""); final RY ry = new RY(c17482xC.a(gzz.a)); bVZ bvz = this.e; ZI.IeS ieS = new ZI.IeS(ry) { // from class: o.bWg private RY b; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9416djN.IeS) obj2).c(this.b.a); } { this.b = ry; } }; if (bvz.f != 0) { ieS.e(bvz.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { super.onError(th); bVZ.c(this.e, th); bVZ bvz = this.e; ZI.IeS ieS = new ZI.IeS() { // from class: o.bWf @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9416djN.IeS) obj).c(new ArrayList()); } }; if (bvz.f != 0) { ieS.e(bvz.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { super.onComplete(); bVZ.d(this.e); } } public final RT Vx_(Resources resources) { int i = 2 % 2; String string = resources.getString(C15715hv.tOB.mw_shop_address_other); if (string.startsWith(",*,)")) { Object[] objArr = new Object[1]; g(string.substring(4), objArr); string = ((String) objArr[0]).intern(); } return new RT("", "MD99999", 0, "", "", string, "", "", "", "", ""); } static /* synthetic */ void c(bVZ bvz, Throwable th) { if (bvz.b(th)) { bvz.d(bvz.j.e(th)); } } static /* synthetic */ void d(bVZ bvz) { if (bvz.f != 0) { bvz.f.ar_(); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ boolean a(String str, RT rt) { return rt.d.toLowerCase().contains(str.toLowerCase()) || rt.e.contains(str); } }