package o; import android.graphics.Color; import android.media.AudioTrack; import android.os.Process; import android.telephony.cdma.CdmaCellLocation; import android.text.TextUtils; import android.util.TypedValue; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.util.HashMap; import o.C0690Mh; import o.C15715hv; import o.C4619bdb; import o.InterfaceC6621cYR; import o.InterfaceC6621cYR.ZqN; import o.ZI; import o.wRi; /* renamed from: o.bdb, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C4619bdb extends ZI { iRT a; final CQ b; final C15829iu c; final Wqj d; public String e; private final C16706qX g; private String h; public String i; private final String k; private final C16903sI l; private final fKT m; private String n; /* renamed from: o, reason: collision with root package name */ private String f8567o; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C4619bdb(C16903sI c16903sI, C16706qX c16706qX, fKT fkt, Wqj wqj, CQ cq, C15829iu c15829iu, iRT irt, String str) { super(c16903sI); C14957gcv.e(c16706qX, ""); C14957gcv.e(fkt, ""); C14957gcv.e(wqj, ""); C14957gcv.e(cq, ""); C14957gcv.e(c15829iu, ""); C14957gcv.e(irt, ""); C14957gcv.e(str, ""); this.l = c16903sI; this.g = c16706qX; this.m = fkt; this.d = wqj; this.b = cq; this.c = c15829iu; this.a = irt; this.k = str; } public final void b(boolean z) { String a = Wqj.a(z); C14957gcv.c((Object) a, ""); C14957gcv.e(a, ""); this.e = a; ZI.IeS ieS = new ZI.IeS(this) { // from class: o.bdc private C4619bdb a; @Override // o.ZI.IeS public final void e(Object obj) { C4619bdb c4619bdb = this.a; InterfaceC6621cYR.ZqN zqN = (InterfaceC6621cYR.ZqN) obj; C14957gcv.e(c4619bdb, ""); String str = c4619bdb.i; String str2 = null; if (str == null) { C14957gcv.a(""); str = null; } if (!C14957gcv.b((Object) "CREDIT_CARD", (Object) str) || !c4619bdb.d.c()) { String str3 = c4619bdb.i; if (str3 == null) { C14957gcv.a(""); str3 = null; } if (!C14957gcv.b((Object) "AUTO_TOP_UP", (Object) str3) && !c4619bdb.c()) { zqN.e(); return; } } String str4 = c4619bdb.e; if (str4 != null) { str2 = str4; } else { C14957gcv.a(""); } zqN.m_(str2); } { this.a = this; } }; if (this.f != 0) { ieS.e(this.f); } } /* JADX INFO: Access modifiers changed from: protected */ public final boolean b() { String str = this.i; if (str == null) { C14957gcv.a(""); str = null; } return C14957gcv.b((Object) "CREDIT_CARD", (Object) str) && this.d.c(); } /* JADX INFO: Access modifiers changed from: package-private */ public final boolean c() { return C14957gcv.b((Object) "COMMERCIAL", (Object) this.n) && this.d.d(); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.bdb$IeS */ /* loaded from: classes4.dex */ public final class IeS extends wRi.LWm { private C4619bdb c; private static final byte[] $$a = {45, 6, -13, -19}; private static final int $$b = 12; private static int $10 = 0; private static int $11 = 1; private static int d = 0; private static int g = 1; private static long b = -3743492177039697556L; private static int e = 452713125; private static char a = 55973; /* JADX WARN: Removed duplicated region for block: B:10:0x0029 */ /* JADX WARN: Removed duplicated region for block: B:7:0x0021 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x002b). Please report as a decompilation issue!!! */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void h(short r6, short r7, short r8, java.lang.Object[] r9) { /* int r6 = r6 * 4 int r6 = r6 + 4 int r7 = 115 - r7 byte[] r0 = o.C4619bdb.IeS.$$a int r8 = r8 * 3 int r1 = 1 - r8 byte[] r1 = new byte[r1] r2 = 0 int r8 = 0 - r8 r3 = -1 if (r0 != 0) goto L17 r7 = r6 r4 = r8 goto L2b L17: r5 = r7 r7 = r6 r6 = r5 L1a: int r3 = r3 + 1 byte r4 = (byte) r6 r1[r3] = r4 if (r3 != r8) goto L29 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L29: r4 = r0[r7] L2b: int r4 = -r4 int r6 = r6 + r4 int r7 = r7 + 1 goto L1a */ throw new UnsupportedOperationException("Method not decompiled: o.C4619bdb.IeS.h(short, short, short, java.lang.Object[]):void"); } private static void f(char c, int i, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) { int i2 = 2; int i3 = 2 % 2; Nhs nhs = new Nhs(); int length = cArr.length; char[] cArr4 = new char[length]; int length2 = cArr3.length; char[] cArr5 = new char[length2]; System.arraycopy(cArr, 0, cArr4, 0, length); System.arraycopy(cArr3, 0, cArr5, 0, length2); cArr4[0] = (char) (cArr4[0] ^ c); cArr5[2] = (char) (cArr5[2] + ((char) i)); int length3 = cArr2.length; char[] cArr6 = new char[length3]; nhs.a = 0; while (nhs.a < length3) { int i4 = $10 + 27; $11 = i4 % 128; int i5 = i4 % i2; try { Object[] objArr2 = {nhs}; Object obj = xzZ.y.get(263693715); if (obj == null) { obj = ((Class) xzZ.c(TextUtils.indexOf("", "", 0) + 45, View.getDefaultSize(0, 0) + 5, (char) Color.alpha(0))).getMethod("t", Object.class); xzZ.y.put(263693715, obj); } int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); Object[] objArr3 = {nhs}; Object obj2 = xzZ.y.get(-484664112); if (obj2 == null) { Class cls = (Class) xzZ.c(351 - Process.getGidForName(""), 5 - (ViewConfiguration.getTapTimeout() >> 16), (char) (52127 - TextUtils.indexOf((CharSequence) "", '0', 0))); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr4 = new Object[1]; h(b2, b3, b3, objArr4); obj2 = cls.getMethod((String) objArr4[0], Object.class); xzZ.y.put(-484664112, obj2); } int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])}; Object obj3 = xzZ.y.get(430099516); if (obj3 == null) { obj3 = ((Class) xzZ.c((Process.myPid() >> 22) + 748, ExpandableListView.getPackedPositionType(0L) + 5, (char) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))))).getMethod(com.pingan.ai.p.a, Object.class, Integer.TYPE, Integer.TYPE); xzZ.y.put(430099516, obj3); } ((Method) obj3).invoke(null, objArr5); Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])}; Object obj4 = xzZ.y.get(1019894806); if (obj4 == null) { Class cls2 = (Class) xzZ.c((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 402, (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) (ExpandableListView.getPackedPositionChild(0L) + 21609)); byte b4 = (byte) 0; byte b5 = (byte) (b4 + 1); Object[] objArr7 = new Object[1]; h(b4, b5, (byte) (b5 - 1), objArr7); obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(1019894806, obj4); } cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue(); cArr4[intValue2] = nhs.c; cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr2[nhs.a]) ^ (b ^ 9051040786702654117L)) ^ ((int) (e ^ 9051040786702654117L))) ^ ((char) (a ^ 9051040786702654117L))); nhs.a++; i2 = 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } String str = new String(cArr6); int i6 = $11 + 69; $10 = i6 % 128; int i7 = i6 % 2; objArr[0] = str; } public IeS(C4619bdb c4619bdb) { this.c = c4619bdb; } private static final void c(C4619bdb c4619bdb, InterfaceC6621cYR.ZqN zqN) { int i = 2 % 2; C14957gcv.e(c4619bdb, ""); String str = c4619bdb.e; Object obj = null; if (str != null) { int i2 = d + 27; g = i2 % 128; int i3 = i2 % 2; } else { C14957gcv.a(""); str = null; } Object[] objArr = new Object[1]; f((char) ((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 809), (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 691363445, new char[]{29957, 13662, 10537, 48643}, new char[]{46858}, new char[]{33737, 62179, 45078, 45463}, objArr); zqN.e(C14957gcv.b((Object) str, (Object) ((String) objArr[0]).intern())); int i4 = g + 87; d = i4 % 128; if (i4 % 2 == 0) { return; } obj.hashCode(); throw null; } /* JADX WARN: Code restructure failed: missing block: B:13:0x001f, code lost: r2 = true; */ /* JADX WARN: Code restructure failed: missing block: B:15:0x001d, code lost: if (r1.f != 0) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0016, code lost: if (r1.f != 0) goto L9; */ @Override // o.wRi.LWm, o.InterfaceC13174fSv /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final void onComplete() { /* r5 = this; r0 = 2 int r1 = r0 % r0 int r1 = o.C4619bdb.IeS.g int r1 = r1 + 125 int r2 = r1 % 128 o.C4619bdb.IeS.d = r2 int r1 = r1 % r0 r2 = 0 if (r1 == 0) goto L19 o.bdb r1 = r5.c T extends o.cYp r3 = r1.f r4 = 52 int r4 = r4 / r2 if (r3 == 0) goto L20 goto L1f L19: o.bdb r1 = r5.c T extends o.cYp r3 = r1.f if (r3 == 0) goto L20 L1f: r2 = 1 L20: if (r2 == 0) goto L27 T extends o.cYp r1 = r1.f r1.ar_() L27: o.bdb r1 = r5.c o.bdk r2 = new o.bdk r2.(r1) T extends o.cYp r3 = r1.f if (r3 == 0) goto L40 int r3 = o.C4619bdb.IeS.d int r3 = r3 + 115 int r4 = r3 % 128 o.C4619bdb.IeS.g = r4 int r3 = r3 % r0 T extends o.cYp r0 = r1.f r2.e(r0) L40: return */ throw new UnsupportedOperationException("Method not decompiled: o.C4619bdb.IeS.onComplete():void"); } private static final void c(C4619bdb c4619bdb) { int i = 2 % 2; C14957gcv.e(c4619bdb, ""); C4624bdg c4624bdg = new C4624bdg(c4619bdb); if (c4619bdb.f != 0) { int i2 = d + 7; g = i2 % 128; int i3 = i2 % 2; c4624bdg.e(c4619bdb.f); } int i4 = g + 83; d = i4 % 128; if (i4 % 2 != 0) { throw null; } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { int i = 2 % 2; C14957gcv.e(th, ""); final C4619bdb c4619bdb = this.c; Runnable runnable = new Runnable(c4619bdb) { // from class: o.bdl private C4619bdb d; @Override // java.lang.Runnable public final void run() { C4619bdb.IeS.d(this.d); } { this.d = c4619bdb; } }; if (c4619bdb.b(th)) { int i2 = d + 93; g = i2 % 128; int i3 = i2 % 2; c4619bdb.d(c4619bdb.j.c(th, runnable)); } int i4 = d + 67; g = i4 % 128; int i5 = i4 % 2; } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ Object c(Object[] objArr) { C4619bdb c4619bdb = (C4619bdb) objArr[0]; InterfaceC6621cYR.ZqN zqN = (InterfaceC6621cYR.ZqN) objArr[1]; int i = 2 % 2; int i2 = d + 95; g = i2 % 128; int i3 = i2 % 2; c(c4619bdb, zqN); int i4 = d + 19; g = i4 % 128; if (i4 % 2 != 0) { return null; } throw null; } public static /* synthetic */ void d(C4619bdb c4619bdb) { int i = 2 % 2; int i2 = g + 3; d = i2 % 128; int i3 = i2 % 2; c(c4619bdb); if (i3 != 0) { int i4 = 5 / 0; } int i5 = g + 83; d = i5 % 128; if (i5 % 2 == 0) { return; } Object obj = null; obj.hashCode(); throw null; } public static /* synthetic */ void d(C4619bdb c4619bdb, InterfaceC6621cYR.ZqN zqN) { Object[] objArr = {c4619bdb, zqN}; c(objArr); } } /* renamed from: o.bdb$Sts */ /* loaded from: classes4.dex */ final class Sts extends wRi.LWm { private C4619bdb b; @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final C16387nrD c16387nrD = (C16387nrD) obj; C14957gcv.e(c16387nrD, ""); C4619bdb c4619bdb = this.b; if (c4619bdb.f != 0) { c4619bdb.f.ar_(); } final C4619bdb c4619bdb2 = this.b; ZI.IeS ieS = new ZI.IeS(c4619bdb2, c16387nrD) { // from class: o.bde private C4619bdb b; private C16387nrD e; @Override // o.ZI.IeS public final void e(Object obj2) { C4619bdb.Sts.e(this.b, this.e, (InterfaceC6621cYR.ZqN) obj2); } { this.b = c4619bdb2; this.e = c16387nrD; } }; if (c4619bdb2.f != 0) { ieS.e(c4619bdb2.f); } } public Sts(C4619bdb c4619bdb) { this.b = c4619bdb; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); if (this.b.b()) { C4619bdb c4619bdb = this.b; C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK; if (c4619bdb.b(th)) { c4619bdb.d(c4619bdb.j.d(th, ieS)); return; } return; } final C4619bdb c4619bdb2 = this.b; Runnable runnable = new Runnable(c4619bdb2) { // from class: o.bdf private C4619bdb e; @Override // java.lang.Runnable public final void run() { C4619bdb.Sts.c(this.e); } { this.e = c4619bdb2; } }; if (c4619bdb2.b(th)) { c4619bdb2.d(c4619bdb2.j.c(th, runnable)); } } public static /* synthetic */ void c(C4619bdb c4619bdb) { C14957gcv.e(c4619bdb, ""); C4624bdg c4624bdg = new C4624bdg(c4619bdb); if (c4619bdb.f != 0) { c4624bdg.e(c4619bdb.f); } } public static /* synthetic */ void e(C4619bdb c4619bdb, C16387nrD c16387nrD, InterfaceC6621cYR.ZqN zqN) { boolean z; HashMap e; C14957gcv.e(c4619bdb, ""); C14957gcv.e(c16387nrD, ""); String str = c4619bdb.i; String str2 = null; if (str == null) { C14957gcv.a(""); str = null; } if (C14957gcv.b((Object) "AUTO_TOP_UP", (Object) str)) { zqN.e(C15715hv.tOB.easycash_ncb_slip_title); } CQ cq = c4619bdb.b; if (!c4619bdb.b()) { String str3 = c4619bdb.i; if (str3 != null) { str2 = str3; } else { C14957gcv.a(""); } if (!C14957gcv.b((Object) "AUTO_TOP_UP", (Object) str2) && ((e = c4619bdb.a.a.e()) == null || !C14957gcv.b((Object) e.get("NCB_CONSENT_SCROLLDOWN_BUTTON_ENABLE"), (Object) "Y"))) { z = false; zqN.a(CQ.d(cq, c16387nrD, true, false, z, 0, 465)); } } z = true; zqN.a(CQ.d(cq, c16387nrD, true, false, z, 0, 465)); } } @Override // o.ZI public void w_() { Wqj wqj = this.d; if (!wqj.h.isDisposed()) { wqj.h.dispose(); } fKT fkt = this.m; if (!fkt.h.isDisposed()) { fkt.h.dispose(); } super.w_(); } public void a() { String str; String str2; if (this.f != 0) { this.f.y(); } String str3 = this.i; if (str3 != null) { str = str3; } else { C14957gcv.a(""); str = null; } String str4 = this.e; if (str4 != null) { str2 = str4; } else { C14957gcv.a(""); str2 = null; } this.d.a(new C6087cIa(str, str2, this.k, this.f8567o, this.h)); Wqj wqj = this.d; wqj.d(wqj.i, new IeS(this)); } public final void d(String str, String str2, String str3, String str4, String str5, String str6) { C14957gcv.e(str2, ""); C14957gcv.e(str2, ""); this.i = str2; this.n = str6; this.f8567o = str4; if (b()) { final int i = C15715hv.tOB.loan_verification_ncb_consent_label_cdx; ZI.IeS ieS = new ZI.IeS(i) { // from class: o.bcX private int a; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6621cYR.ZqN) obj).e(this.a); } { this.a = i; } }; if (this.f != 0) { ieS.e(this.f); } } else if (c()) { final int i2 = C15715hv.tOB.loan_verification_ncb_consent_label_commercial; ZI.IeS ieS2 = new ZI.IeS(i2) { // from class: o.bcX private int a; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6621cYR.ZqN) obj).e(this.a); } { this.a = i2; } }; if (this.f != 0) { ieS2.e(this.f); } } else { str5 = null; } this.h = str5; if (this.f != 0) { this.f.y(); } this.m.a(C16706qX.e(str, str2, "NCB_CONSENT", str3, this.h)); fKT fkt = this.m; fkt.d(fkt.i, new Sts(this)); } }