package o; import android.content.res.Resources; import android.graphics.Color; import android.os.Process; import android.text.TextUtils; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.scb.phone.domain.errors.RetrofitException; import java.lang.reflect.Method; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.List; import o.C15715hv; import o.InterfaceC9098ddM; import o.ZI; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes4.dex */ public final class aDD extends ZI implements InterfaceC9098ddM.LWm { private int a; private String b; private String c; private boolean d; private final Ndz e; private String g; private final C17747zT h; private boolean i; private final Resources n; private static final byte[] $$a = {63, -72, 116, -100}; private static final int $$b = CipherSuite.TLS_PSK_WITH_AES_256_CBC_SHA; private static int $10 = 0; private static int $11 = 1; /* renamed from: o, reason: collision with root package name */ private static int f8492o = 0; private static int k = 1; private static long l = 7664881444598675883L; public static /* synthetic */ Object d(Object[] objArr, int i, int i2, int i3) { int i4 = ~i; int i5 = (i * (-520)) + (i2 * 522) + ((~(i4 | i2 | i3)) * 521); int i6 = ~(i | (~i2)); int i7 = i5 + (i6 * (-1042)) + ((i6 | (~(i2 | (~i3) | i4))) * 521); return i7 != 1 ? i7 != 2 ? a(objArr) : c(objArr) : e(objArr); } private static void p(short s, int i, int i2, Object[] objArr) { int i3 = s * 2; int i4 = i + 77; byte[] bArr = $$a; int i5 = (i2 * 2) + 4; byte[] bArr2 = new byte[i3 + 1]; int i6 = -1; if (bArr == null) { i5++; i4 += i3; } while (true) { i6++; bArr2[i6] = (byte) i4; if (i6 == i3) { objArr[0] = new String(bArr2, 0); return; } else { byte b = bArr[i5]; i5++; i4 += b; } } } @Override // o.InterfaceC9098ddM.LWm public final /* synthetic */ void d(InterfaceC9098ddM.HBt hBt) { int i = 2 % 2; int i2 = f8492o + 73; k = i2 % 128; int i3 = i2 % 2; super.e((aDD) hBt); if (i3 == 0) { throw null; } } @InterfaceC13391fZD public aDD(Resources resources, C16903sI c16903sI, Ndz ndz, C17747zT c17747zT) { super(c16903sI); this.g = null; this.b = ""; this.n = resources; this.e = ndz; this.h = c17747zT; } private void a(String str, int i, final String str2) { boolean z; int i2 = 2 % 2; int i3 = f8492o + 39; k = i3 % 128; int i4 = i3 % 2; if (!this.b.equalsIgnoreCase(str)) { Ndz ndz = this.e; if (!ndz.h.isDisposed()) { int i5 = k + 83; f8492o = i5 % 128; if (i5 % 2 != 0) { ndz.h.dispose(); Object obj = null; obj.hashCode(); throw null; } ndz.h.dispose(); } } if (this.f != 0) { int i6 = f8492o + 69; k = i6 % 128; int i7 = i6 % 2; z = true; } else { z = false; } if (z) { this.f.v(); } XdA c = c(str, i, str2); Ndz ndz2 = this.e; ndz2.d(ndz2.c.a(c), new fSQ(this) { // from class: o.aDC private aDD a; @Override // o.fSQ public final void c(Object obj2) { aDD.e(this.a, (C15816ioh) obj2); } { this.a = this; } }, new fSQ(this, str2) { // from class: o.aDA private String c; private aDD d; @Override // o.fSQ public final void c(Object obj2) { aDD.d(new Object[]{this.d, this.c, (Throwable) obj2}, 1538292883, -1538292882, (int) System.currentTimeMillis()); } { this.d = this; this.c = str2; } }); } private /* synthetic */ void c(C1046Ul c1046Ul, InterfaceC9098ddM.HBt hBt) { int i = 2 % 2; int i2 = f8492o + 29; k = i2 % 128; int i3 = i2 % 2; hBt.a(c1046Ul, this.d); int i4 = k + 13; f8492o = i4 % 128; int i5 = i4 % 2; } /* JADX WARN: Code restructure failed: missing block: B:22:0x001b, code lost: r5.f.aq_(); */ /* JADX WARN: Code restructure failed: missing block: B:24:0x0019, code lost: if (r5.f != 0) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost: if (r5.f != 0) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x0021, code lost: r1 = o.aDD.k + 25; o.aDD.f8492o = r1 % 128; r1 = r1 % 2; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private /* synthetic */ void a(o.C15816ioh r6) throws java.lang.Throwable { /* r5 = this; r0 = 2 int r1 = r0 % r0 int r1 = o.aDD.f8492o int r1 = r1 + 17 int r2 = r1 % 128 o.aDD.k = r2 int r1 = r1 % r0 r2 = 0 if (r1 != 0) goto L17 T extends o.cYp r1 = r5.f r3 = 17 int r3 = r3 / r2 if (r1 == 0) goto L21 goto L1b L17: T extends o.cYp r1 = r5.f if (r1 == 0) goto L21 L1b: T extends o.cYp r1 = r5.f r1.aq_() goto L2a L21: int r1 = o.aDD.k int r1 = r1 + 25 int r3 = r1 % 128 o.aDD.f8492o = r3 int r1 = r1 % r0 L2a: o.zT r1 = r5.h o.Ul r6 = r1.e(r6) java.lang.String r1 = r6.c r5.g = r1 java.util.List r1 = r6.a if (r1 == 0) goto L58 java.util.List r1 = r6.a boolean r1 = r1.isEmpty() if (r1 != 0) goto L58 o.aDE r1 = new o.aDE r1.(r5, r6) T extends o.cYp r3 = r5.f if (r3 == 0) goto L74 int r3 = o.aDD.f8492o int r3 = r3 + 43 int r4 = r3 % 128 o.aDD.k = r4 int r3 = r3 % r0 T extends o.cYp r0 = r5.f r1.e(r0) goto L74 L58: o.aDF r1 = new o.aDF r1.() T extends o.cYp r3 = r5.f if (r3 == 0) goto L6c int r3 = o.aDD.k int r3 = r3 + 43 int r4 = r3 % 128 o.aDD.f8492o = r4 int r3 = r3 % r0 r0 = 1 goto L6d L6c: r0 = r2 L6d: if (r0 == 0) goto L74 T extends o.cYp r0 = r5.f r1.e(r0) L74: java.lang.String r6 = r6.e r5.c = r6 r5.i = r2 return */ throw new UnsupportedOperationException("Method not decompiled: o.aDD.a(o.ioh):void"); } private /* synthetic */ void b(Throwable th, InterfaceC9098ddM.HBt hBt) { int i = 2 % 2; int i2 = k + 93; f8492o = i2 % 128; if (i2 % 2 != 0) { hBt.a(this.j.e(th).c); int i3 = 79 / 0; } else { hBt.a(this.j.e(th).c); } int i4 = k + 41; f8492o = i4 % 128; int i5 = i4 % 2; } private /* synthetic */ void c(String str, final Throwable th) throws Throwable { VCl vCl; boolean z; int i = 2 % 2; if (!(th instanceof RetrofitException) || ((vCl = ((RetrofitException) th).e) != null && vCl.c != null && "1002".equalsIgnoreCase(vCl.c.e))) { if (b(th)) { int i2 = f8492o + 81; k = i2 % 128; int i3 = i2 % 2; d(this.j.e(th)); return; } return; } if (str == null) { int i4 = f8492o + 77; k = i4 % 128; int i5 = i4 % 2; if (this.f != 0) { int i6 = f8492o + 123; k = i6 % 128; int i7 = i6 % 2; z = true; } else { z = false; } if (!(!z)) { int i8 = k + 43; f8492o = i8 % 128; if (i8 % 2 != 0) { this.f.aq_(); int i9 = 17 / 0; } else { this.f.aq_(); } } this.i = false; ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.aDJ private Throwable c; private aDD e; @Override // o.ZI.IeS public final void e(Object obj) { aDD.e(this.e, this.c, (InterfaceC9098ddM.HBt) obj); } { this.e = this; this.c = th; } }; if (this.f != 0) { int i10 = f8492o + 1; k = i10 % 128; if (i10 % 2 != 0) { ieS.e(this.f); } } int i11 = f8492o + 39; k = i11 % 128; int i12 = i11 % 2; } } private static void m(char[] cArr, int i, Object[] objArr) { int i2 = 2 % 2; C4593bdB c4593bdB = new C4593bdB(); c4593bdB.a = i; int length = cArr.length; long[] jArr = new long[length]; c4593bdB.e = 0; while (c4593bdB.e < cArr.length) { int i3 = $11 + 113; $10 = i3 % 128; if (i3 % 2 != 0) { int i4 = c4593bdB.e; try { Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB}; Object obj = xzZ.y.get(-1229953068); if (obj == null) { Class cls = (Class) xzZ.c(401 - TextUtils.indexOf((CharSequence) "", '0', 0), 5 - TextUtils.indexOf("", ""), (char) ((ViewConfiguration.getTouchSlop() >> 8) + 21608)); byte b = (byte) 0; byte b2 = b; Object[] objArr3 = new Object[1]; p(b, b2, b2, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1229953068, obj); } jArr[i4] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() | (l - 6958928035870403642L); Object[] objArr4 = {c4593bdB, c4593bdB}; Object obj2 = xzZ.y.get(-1143917229); if (obj2 == null) { Class cls2 = (Class) xzZ.c(238 - Color.alpha(0), TextUtils.lastIndexOf("", '0') + 6, (char) (Process.myPid() >> 22)); byte b3 = (byte) 0; byte b4 = (byte) (b3 + 1); Object[] objArr5 = new Object[1]; p(b3, b4, (byte) (b4 - 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj2); } ((Method) obj2).invoke(null, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } else { int i5 = c4593bdB.e; Object[] objArr6 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB}; Object obj3 = xzZ.y.get(-1229953068); if (obj3 == null) { Class cls3 = (Class) xzZ.c(401 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), View.MeasureSpec.getMode(0) + 5, (char) ((ViewConfiguration.getWindowTouchSlop() >> 8) + 21608)); byte b5 = (byte) 0; byte b6 = b5; Object[] objArr7 = new Object[1]; p(b5, b6, b6, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1229953068, obj3); } jArr[i5] = ((Long) ((Method) obj3).invoke(null, objArr6)).longValue() ^ (l ^ (-6958928035870403642L)); Object[] objArr8 = {c4593bdB, c4593bdB}; Object obj4 = xzZ.y.get(-1143917229); if (obj4 == null) { Class cls4 = (Class) xzZ.c(238 - (ViewConfiguration.getJumpTapTimeout() >> 16), 5 - KeyEvent.getDeadChar(0, 0), (char) (ViewConfiguration.getDoubleTapTimeout() >> 16)); byte b7 = (byte) 0; byte b8 = (byte) (b7 + 1); Object[] objArr9 = new Object[1]; p(b7, b8, (byte) (b8 - 1), objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj4); } ((Method) obj4).invoke(null, objArr8); } } char[] cArr2 = new char[length]; c4593bdB.e = 0; while (c4593bdB.e < cArr.length) { int i6 = $11 + 19; $10 = i6 % 128; int i7 = i6 % 2; cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e]; Object[] objArr10 = {c4593bdB, c4593bdB}; Object obj5 = xzZ.y.get(-1143917229); if (obj5 == null) { Class cls5 = (Class) xzZ.c((-16776978) - Color.rgb(0, 0, 0), TextUtils.indexOf("", "") + 5, (char) (ViewConfiguration.getWindowTouchSlop() >> 8)); byte b9 = (byte) 0; byte b10 = (byte) (b9 + 1); Object[] objArr11 = new Object[1]; p(b9, b10, (byte) (b10 - 1), objArr11); obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj5); } ((Method) obj5).invoke(null, objArr10); } String str = new String(cArr2); int i8 = $10 + 25; $11 = i8 % 128; int i9 = i8 % 2; objArr[0] = str; } @Override // o.InterfaceC9098ddM.LWm public final void b(String str, String str2) { int i = 2 % 2; if ("ATM".equalsIgnoreCase(str)) { ZI.IeS ieS = new ZI.IeS() { // from class: o.aDB @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9098ddM.HBt) obj).a(); } }; if (this.f != 0) { int i2 = k; int i3 = i2 + 123; f8492o = i3 % 128; int i4 = i3 % 2; int i5 = i2 + 1; f8492o = i5 % 128; if (i5 % 2 != 0) { ieS.e(this.f); throw null; } ieS.e(this.f); } this.b = str2; } else if (!this.b.equalsIgnoreCase(str2)) { ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aDz @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9098ddM.HBt) obj).d(); } }; if (this.f != 0) { int i6 = k + 29; f8492o = i6 % 128; if (i6 % 2 == 0) { ieS2.e(this.f); int i7 = f8492o + 67; k = i7 % 128; int i8 = i7 % 2; } } this.b = str2; this.g = null; Object[] objArr = new Object[1]; m(new char[]{27229}, (Process.myTid() >> 22) + 13553, objArr); this.c = ((String) objArr[0]).intern(); this.a = 0; a(str2, 0, (String) null); } this.d = true; } @Override // o.InterfaceC9098ddM.LWm public final void e(String str, int i) { int i2 = 2 % 2; int i3 = f8492o + 33; k = i3 % 128; int i4 = i3 % 2; Object obj = null; this.g = null; this.a = i; a(str, i, (String) null); int i5 = k + 113; f8492o = i5 % 128; if (i5 % 2 == 0) { return; } obj.hashCode(); throw null; } /* JADX WARN: Code restructure failed: missing block: B:10:0x0080, code lost: r1.a(r10, r1.a, r1.g); */ /* JADX WARN: Code restructure failed: missing block: B:11:0x0087, code lost: throw null; */ /* JADX WARN: Code restructure failed: missing block: B:13:0x0088, code lost: r1.i = true; */ /* JADX WARN: Code restructure failed: missing block: B:14:0x008a, code lost: return null; */ /* JADX WARN: Code restructure failed: missing block: B:15:0x005d, code lost: r10 = o.aDD.k + 53; o.aDD.f8492o = r10 % 128; r10 = r10 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:16:0x0066, code lost: return null; */ /* JADX WARN: Code restructure failed: missing block: B:18:0x005b, code lost: if (((java.lang.String) r6[0]).intern().equalsIgnoreCase(r4) != false) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x003c, code lost: if (((java.lang.String) r6[0]).intern().equalsIgnoreCase(r4) != false) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x0067, code lost: r1.d = false; */ /* JADX WARN: Code restructure failed: missing block: B:6:0x006b, code lost: if (r1.i == true) goto L18; */ /* JADX WARN: Code restructure failed: missing block: B:7:0x006d, code lost: r0 = o.aDD.f8492o + 61; o.aDD.k = r0 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x0076, code lost: if ((r0 % 2) == 0) goto L16; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x0078, code lost: r1.a(r10, r1.a, r1.g); */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static /* synthetic */ java.lang.Object a(java.lang.Object[] r10) { /* r0 = 0 r1 = r10[r0] o.aDD r1 = (o.aDD) r1 r2 = 1 r10 = r10[r2] java.lang.String r10 = (java.lang.String) r10 r3 = 2 int r4 = r3 % r3 int r4 = o.aDD.k int r4 = r4 + 93 int r5 = r4 % 128 o.aDD.f8492o = r5 int r4 = r4 % r3 r5 = 61057(0xee81, float:8.5559E-41) r6 = 27228(0x6a5c, float:3.8155E-41) r7 = 0 java.lang.String r8 = "" if (r4 == 0) goto L3f java.lang.String r4 = r1.c char[] r9 = new char[r2] r9[r0] = r6 int r6 = android.text.TextUtils.indexOf(r8, r8, r2, r0) int r5 = r5 % r6 java.lang.Object[] r6 = new java.lang.Object[r2] m(r9, r5, r6) r5 = r6[r0] java.lang.String r5 = (java.lang.String) r5 java.lang.String r5 = r5.intern() boolean r4 = r5.equalsIgnoreCase(r4) if (r4 == 0) goto L67 goto L5d L3f: java.lang.String r4 = r1.c char[] r9 = new char[r2] r9[r0] = r6 int r6 = android.text.TextUtils.indexOf(r8, r8, r0, r0) int r5 = r5 - r6 java.lang.Object[] r6 = new java.lang.Object[r2] m(r9, r5, r6) r5 = r6[r0] java.lang.String r5 = (java.lang.String) r5 java.lang.String r5 = r5.intern() boolean r4 = r5.equalsIgnoreCase(r4) if (r4 == 0) goto L67 L5d: int r10 = o.aDD.k int r10 = r10 + 53 int r0 = r10 % 128 o.aDD.f8492o = r0 int r10 = r10 % r3 return r7 L67: r1.d = r0 boolean r0 = r1.i if (r0 == r2) goto L88 int r0 = o.aDD.f8492o int r0 = r0 + 61 int r4 = r0 % 128 o.aDD.k = r4 int r0 = r0 % r3 if (r0 == 0) goto L80 int r0 = r1.a java.lang.String r3 = r1.g r1.a(r10, r0, r3) goto L88 L80: int r0 = r1.a java.lang.String r2 = r1.g r1.a(r10, r0, r2) throw r7 L88: r1.i = r2 return r7 */ throw new UnsupportedOperationException("Method not decompiled: o.aDD.a(java.lang.Object[]):java.lang.Object"); } private static XdA c(String str, int i, String str2) { int i2 = 2 % 2; Object[] objArr = new Object[1]; m(new char[]{27229}, TextUtils.getCapsMode("", 0, 0) + 13553, objArr); StringBuilder sb = new StringBuilder(((String) objArr[0]).intern()); sb.append(i); XdA xdA = new XdA(str, sb.toString(), str2); int i3 = f8492o + 1; k = i3 % 128; int i4 = i3 % 2; return xdA; } @Override // o.InterfaceC9098ddM.LWm public final List b() { int i = 2 % 2; int i2 = k + 93; f8492o = i2 % 128; int i3 = i2 % 2; List d = d(); int i4 = k + 9; f8492o = i4 % 128; int i5 = i4 % 2; return d; } private List d() { int i = 2 % 2; ArrayList arrayList = new ArrayList(); arrayList.add(this.n.getString(C15715hv.tOB.deposit_detail_filter_this_month)); arrayList.add((String) d(new Object[]{-1}, -1850981666, 1850981668, -1)); arrayList.add((String) d(new Object[]{-2}, -1850981666, 1850981668, -2)); int i2 = f8492o + 13; k = i2 % 128; if (i2 % 2 != 0) { return arrayList; } throw null; } private static /* synthetic */ Object c(Object[] objArr) { int intValue = ((Number) objArr[0]).intValue(); int i = 2 % 2; SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MMM yyyy"); Calendar calendar = Calendar.getInstance(); calendar.add(2, intValue); String format = simpleDateFormat.format(calendar.getTime()); int i2 = f8492o + 121; k = i2 % 128; if (i2 % 2 != 0) { return format; } throw null; } @Override // o.ZI public final void w_() { int i = 2 % 2; super.w_(); Ndz ndz = this.e; if (!ndz.h.isDisposed()) { int i2 = k + 87; f8492o = i2 % 128; if (i2 % 2 != 0) { ndz.h.dispose(); throw null; } ndz.h.dispose(); } int i3 = k + 113; f8492o = i3 % 128; if (i3 % 2 != 0) { int i4 = 19 / 0; } } private static /* synthetic */ Object e(Object[] objArr) { aDD add = (aDD) objArr[0]; String str = (String) objArr[1]; Throwable th = (Throwable) objArr[2]; int i = 2 % 2; int i2 = k + 105; f8492o = i2 % 128; int i3 = i2 % 2; add.c(str, th); int i4 = f8492o + 39; k = i4 % 128; int i5 = i4 % 2; return null; } @Override // o.InterfaceC9098ddM.LWm public final void a(String str) { d(new Object[]{this, str}, 2126821105, -2126821105, System.identityHashCode(this)); } private static String b(int i) { return (String) d(new Object[]{Integer.valueOf(i)}, -1850981666, 1850981668, i); } public static /* synthetic */ void e(aDD add, C15816ioh c15816ioh) { int i = 2 % 2; int i2 = f8492o + 97; k = i2 % 128; int i3 = i2 % 2; add.a(c15816ioh); if (i3 == 0) { int i4 = 95 / 0; } int i5 = k + 57; f8492o = i5 % 128; if (i5 % 2 != 0) { int i6 = 30 / 0; } } public static /* synthetic */ void e(aDD add, Throwable th, InterfaceC9098ddM.HBt hBt) { int i = 2 % 2; int i2 = k + 125; f8492o = i2 % 128; int i3 = i2 % 2; add.b(th, hBt); if (i3 != 0) { throw null; } } public static /* synthetic */ void a(aDD add, C1046Ul c1046Ul, InterfaceC9098ddM.HBt hBt) { int i = 2 % 2; int i2 = k + 41; f8492o = i2 % 128; int i3 = i2 % 2; add.c(c1046Ul, hBt); if (i3 != 0) { throw null; } } }