package o; import android.graphics.Color; import android.graphics.PointF; import android.net.Uri; import android.os.Process; import android.text.TextUtils; import android.view.MotionEvent; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.base.Ascii; import com.huawei.hms.support.api.entity.common.CommonConstant; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; import o.InterfaceC9141deC; import o.ZI; /* renamed from: o.aIr, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C1599aIr extends ZI { private static long l; private static int m; private static char n; private static int p; private final Oqm a; private C0902Ra b; private final C13580fcx c; private final WNc d; private final YnH e; private final C15947jq g; private final C2683ajI h; private Uri.Builder i; private final String k; /* renamed from: o, reason: collision with root package name */ private Uri f8495o; private static final byte[] $$a = {Ascii.ESC, -53, 19, -66}; private static final int $$b = 238; private static int $10 = 0; private static int $11 = 1; private static int s = 0; public static /* synthetic */ Object c(Object[] objArr, int i, int i2, int i3) { int i4 = ~i2; int i5 = ~i3; return ((((i * 989) + (i2 * (-987))) + (((~((i4 | i5) | i)) | (~((i | i2) | i3))) * 988)) + ((i | i4) * (-988))) + (((~((i | i5) | i2)) | ((~(i3 | i4)) | (~((~i) | i4)))) * 988) != 1 ? e(objArr) : b(objArr); } /* JADX WARN: Removed duplicated region for block: B:10:0x0027 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001f */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002c). 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 r(short r6, int r7, byte r8, java.lang.Object[] r9) { /* int r7 = r7 * 4 int r7 = 3 - r7 int r6 = 115 - r6 int r8 = r8 * 2 int r0 = r8 + 1 byte[] r1 = o.C1599aIr.$$a byte[] r0 = new byte[r0] r2 = 0 if (r1 != 0) goto L15 r3 = r7 r6 = r8 r4 = r2 goto L2c L15: r3 = r2 L16: byte r4 = (byte) r6 r0[r3] = r4 int r7 = r7 + 1 int r4 = r3 + 1 if (r3 != r8) goto L27 java.lang.String r6 = new java.lang.String r6.(r0, r2) r9[r2] = r6 return L27: r3 = r1[r7] r5 = r3 r3 = r7 r7 = r5 L2c: int r7 = -r7 int r6 = r6 + r7 r7 = r3 r3 = r4 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: o.C1599aIr.r(short, int, byte, java.lang.Object[]):void"); } public static final /* synthetic */ void c(C1599aIr c1599aIr) { int i = 2 % 2; int i2 = s + 7; p = i2 % 128; int i3 = i2 % 2; Object obj = null; c1599aIr.a(); if (i3 == 0) { obj.hashCode(); throw null; } int i4 = s + 11; p = i4 % 128; if (i4 % 2 == 0) { throw null; } } public static final /* synthetic */ void c(C1599aIr c1599aIr, C0902Ra c0902Ra) { int i = 2 % 2; int i2 = s + 95; p = i2 % 128; int i3 = i2 % 2; c1599aIr.d(c0902Ra); int i4 = s + 91; p = i4 % 128; int i5 = i4 % 2; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C1599aIr(WNc wNc, C13580fcx c13580fcx, C15947jq c15947jq, C2683ajI c2683ajI, Oqm oqm, YnH ynH, String str, C16903sI c16903sI) { super(c16903sI); C14957gcv.e(wNc, ""); C14957gcv.e(c13580fcx, ""); C14957gcv.e(c15947jq, ""); C14957gcv.e(c2683ajI, ""); C14957gcv.e(oqm, ""); C14957gcv.e(ynH, ""); C14957gcv.e(str, ""); C14957gcv.e(c16903sI, ""); this.d = wNc; this.c = c13580fcx; this.g = c15947jq; this.h = c2683ajI; this.a = oqm; this.e = ynH; this.k = str; } /* JADX WARN: Removed duplicated region for block: B:14:0x004a */ /* JADX WARN: Removed duplicated region for block: B:19:0x0076 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static /* synthetic */ java.lang.Object b(java.lang.Object[] r8) { /* r0 = 0 r1 = r8[r0] o.aIr r1 = (o.C1599aIr) r1 r2 = 1 r8 = r8[r2] android.net.Uri r8 = (android.net.Uri) r8 r3 = 2 int r4 = r3 % r3 o.WNc r4 = r1.d o.azC r4 = r4.e o.dAG r4 = r4.a() r5 = 0 if (r4 == 0) goto L39 int r6 = o.C1599aIr.p int r6 = r6 + 69 int r7 = r6 % 128 o.C1599aIr.s = r7 int r6 = r6 % r3 if (r6 != 0) goto L33 o.CNl r4 = r4.h if (r4 == 0) goto L39 int r6 = o.C1599aIr.p int r6 = r6 + 63 int r7 = r6 % 128 o.C1599aIr.s = r7 int r6 = r6 % r3 java.lang.String r4 = r4.i goto L3a L33: o.CNl r8 = r4.h r5.hashCode() throw r5 L39: r4 = r5 L3a: r6 = r4 java.lang.CharSequence r6 = (java.lang.CharSequence) r6 if (r6 == 0) goto L46 boolean r6 = o.gdZ.d(r6) if (r6 != 0) goto L46 goto L47 L46: r0 = r2 L47: r0 = r0 ^ r2 if (r0 == 0) goto L76 android.net.Uri r0 = android.net.Uri.parse(r4) android.net.Uri$Builder r0 = r0.buildUpon() r1.i = r0 r1.f8495o = r8 o.jq r8 = r1.g o.aIr$IeS r0 = new o.aIr$IeS r0.(r1) o.gbR r0 = (o.InterfaceC14894gbR) r0 o.aIr$LWm r2 = new o.aIr$LWm r2.(r1) o.gbR r2 = (o.InterfaceC14894gbR) r2 r8.d(r0, r2) int r8 = o.C1599aIr.p int r8 = r8 + 5 int r0 = r8 % 128 o.C1599aIr.s = r0 int r8 = r8 % r3 if (r8 != 0) goto L75 return r5 L75: throw r5 L76: o.aIv r8 = new o.aIv r8.() T extends o.cYp r0 = r1.f if (r0 == 0) goto L8d int r0 = o.C1599aIr.s int r0 = r0 + 87 int r2 = r0 % 128 o.C1599aIr.p = r2 int r0 = r0 % r3 T extends o.cYp r0 = r1.f r8.e(r0) L8d: return r5 */ throw new UnsupportedOperationException("Method not decompiled: o.C1599aIr.b(java.lang.Object[]):java.lang.Object"); } private static final void c(InterfaceC9141deC.Sts sts) { int i = 2 % 2; sts.b(new NullPointerException()); int i2 = s + 95; p = i2 % 128; int i3 = i2 % 2; } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.aIr$LWm */ /* loaded from: classes4.dex */ public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR { private C1599aIr b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { C14957gcv.e(th, ""); C1599aIr.c(this.b); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ LWm(C1599aIr c1599aIr) { super(1); this.b = c1599aIr; } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.aIr$IeS */ /* loaded from: classes4.dex */ public final /* synthetic */ class IeS extends C14954gcs implements InterfaceC14894gbR { @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C0902Ra c0902Ra) { C0902Ra c0902Ra2 = c0902Ra; C14957gcv.e(c0902Ra2, ""); C1599aIr.c((C1599aIr) this.f, c0902Ra2); return C14866gag.c; } IeS(Object obj) { super(1, obj, C1599aIr.class, "onGetInsightHeaderSuccess", "onGetInsightHeaderSuccess(Lcom/scb/phone/presentation/model/display/justforyou/JustForYouInsightHeaderResponseDisplay;)V"); } } private final void d(C0902Ra c0902Ra) { int i = 2 % 2; int i2 = p + 61; s = i2 % 128; int i3 = i2 % 2; this.b = c0902Ra; b(); int i4 = s + 37; p = i4 % 128; if (i4 % 2 == 0) { int i5 = 54 / 0; } } private final void a() { int i = 2 % 2; int i2 = p + 51; s = i2 % 128; int i3 = i2 % 2; this.b = null; b(); int i4 = s + 41; p = i4 % 128; int i5 = i4 % 2; } private static final void Vh_(Uri.Builder builder, InterfaceC9141deC.Sts sts) { int i = 2 % 2; int i2 = s + 67; p = i2 % 128; int i3 = i2 % 2; C14957gcv.e(builder, ""); Uri build = builder.build(); C14957gcv.c(build, ""); sts.acK_(build); int i4 = p + 49; s = i4 % 128; int i5 = i4 % 2; } /* JADX WARN: Multi-variable type inference failed */ private final void b() { Object obj; int i; int i2; String queryParameter; YIo yIo; YIo yIo2; YIo yIo3; YIo yIo4; YIo yIo5; int i3 = 2 % 2; if (!this.g.d.d.d()) { Object[] objArr = new Object[1]; q((char) (56828 - ExpandableListView.getPackedPositionChild(0L)), (ViewConfiguration.getEdgeSlop() >> 16) - 377595392, new char[]{237, 32346, 65001, 6621}, new char[]{20818}, new char[]{0, 0, 0, 0}, objArr); obj = objArr[0]; } else { Object[] objArr2 = new Object[1]; q((char) (TextUtils.getTrimmedLength("") + 45688), (ViewConfiguration.getMaximumFlingVelocity() >> 16) - 2142160615, new char[]{6479, 20793, 30848, 13234}, new char[]{22459}, new char[]{0, 0, 0, 0}, objArr2); obj = objArr2[0]; } String intern = ((String) obj).intern(); HashMap hashMap = new HashMap(); C8064dAG a = this.c.a(); if (a == null || (yIo5 = a.r) == null) { i = 0; } else { int i4 = s + 13; p = i4 % 128; int i5 = i4 % 2; i = yIo5.w; } hashMap.put("insights", String.valueOf(i)); C8064dAG a2 = this.c.a(); hashMap.put("your_accounts", String.valueOf((a2 == null || (yIo4 = a2.r) == null) ? 0 : yIo4.z)); C8064dAG a3 = this.c.a(); hashMap.put("your_reward", String.valueOf((a3 == null || (yIo3 = a3.r) == null) ? 0 : yIo3.D)); C8064dAG a4 = this.c.a(); hashMap.put("monthly_spending", String.valueOf((a4 == null || (yIo2 = a4.r) == null) ? 0 : yIo2.A)); C8064dAG a5 = this.c.a(); if (a5 == null || (yIo = a5.r) == null) { i2 = 0; } else { int i6 = s + 29; p = i6 % 128; if (i6 % 2 == 0) { boolean z = yIo.u; int i7 = 19 / 0; i2 = z; } else { i2 = yIo.u; } } hashMap.put("insight_header", String.valueOf(i2)); hashMap.put("account_masked", String.valueOf(this.e.b.T() ? 1 : 0)); hashMap.put("new_insight", intern); hashMap.put("tiles_version", this.k); hashMap.put(CommonConstant.ReqAccessTokenParam.LANGUAGE_LABEL, this.a.c.M()); String e = this.h.e.e(); if (e != null) { } hashMap.put("app_version", "3.80.2.8335"); hashMap.put("platform", "Android"); Uri uri = this.f8495o; gaH queryParameterNames = uri != null ? uri.getQueryParameterNames() : null; if (queryParameterNames == null) { queryParameterNames = gaH.e; } for (String str : queryParameterNames) { Uri uri2 = this.f8495o; if (uri2 != null && (queryParameter = uri2.getQueryParameter(str)) != null) { C14957gcv.c((Object) queryParameter, ""); C14957gcv.c((Object) str, ""); hashMap.put(str, queryParameter); } } final Uri.Builder builder = this.i; if (builder != null) { for (Map.Entry entry : hashMap.entrySet()) { builder.appendQueryParameter((String) entry.getKey(), (String) entry.getValue()); } ZI.IeS ieS = new ZI.IeS(builder) { // from class: o.aIy private Uri.Builder d; @Override // o.ZI.IeS public final void e(Object obj2) { C1599aIr.c(new Object[]{this.d, (InterfaceC9141deC.Sts) obj2}, 163657492, -163657492, (int) System.currentTimeMillis()); } { this.d = builder; } }; if (!(!(this.f != 0))) { ieS.e(this.f); } } this.h.e.b(); } /* renamed from: o.aIr$HBt */ /* loaded from: classes4.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } private static void q(char c, int i, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) { int i2 = 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) { try { Object[] objArr2 = {nhs}; Object obj = xzZ.y.get(263693715); if (obj == null) { obj = ((Class) xzZ.c(46 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), TextUtils.indexOf("", "", 0, 0) + 5, (char) (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).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(Color.argb(0, 0, 0, 0) + 352, (Process.myTid() >> 22) + 5, (char) (52128 - (ViewConfiguration.getWindowTouchSlop() >> 8))); byte b = (byte) 0; byte b2 = b; Object[] objArr4 = new Object[1]; r(b, b2, b2, 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(748 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), (ViewConfiguration.getWindowTouchSlop() >> 8) + 5, (char) (MotionEvent.axisFromString("") + 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(TextUtils.indexOf("", "", 0) + 402, (ViewConfiguration.getScrollBarSize() >> 8) + 5, (char) (TextUtils.indexOf("", "") + 21608)); byte b3 = (byte) 1; byte b4 = (byte) (b3 - 1); Object[] objArr7 = new Object[1]; r(b3, b4, b4, 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]) ^ (l ^ 9051040786702654117L)) ^ ((int) (m ^ 9051040786702654117L))) ^ ((char) (n ^ 9051040786702654117L))); nhs.a++; int i3 = $11 + 113; $10 = i3 % 128; int i4 = i3 % 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } String str = new String(cArr6); int i5 = $10 + 1; $11 = i5 % 128; int i6 = i5 % 2; objArr[0] = str; } private static /* synthetic */ Object e(Object[] objArr) { Uri.Builder builder = (Uri.Builder) objArr[0]; InterfaceC9141deC.Sts sts = (InterfaceC9141deC.Sts) objArr[1]; int i = 2 % 2; int i2 = p + 77; s = i2 % 128; int i3 = i2 % 2; Object obj = null; Vh_(builder, sts); if (i3 != 0) { throw null; } int i4 = p + 25; s = i4 % 128; if (i4 % 2 == 0) { return null; } obj.hashCode(); throw null; } static void d() { l = 9051040786702654117L; m = -1732833030; n = (char) 55973; } public final void Vi_(Uri uri) { c(new Object[]{this, uri}, 1419203227, -1419203226, System.identityHashCode(this)); } static { p = 1; d(); new HBt((byte) 0); int i = s + 15; p = i % 128; int i2 = i % 2; } public static /* synthetic */ void b(InterfaceC9141deC.Sts sts) { int i = 2 % 2; int i2 = s + 43; p = i2 % 128; int i3 = i2 % 2; c(sts); if (i3 == 0) { Object obj = null; obj.hashCode(); throw null; } int i4 = p + 57; s = i4 % 128; int i5 = i4 % 2; } }