package o; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Color; import android.media.AudioTrack; import android.os.Process; import android.os.SystemClock; import android.text.TextUtils; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper; import java.lang.reflect.Method; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import o.C15715hv; /* renamed from: o.zb, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C17765zb extends BaseAssetsDisplayMapper { private static int b; private static int j; private final InterfaceC3521azC a; private final String d; private static final byte[] $$d = {43, 11, 51, -107}; private static final int $$e = 20; private static int $10 = 0; private static int $11 = 1; private static int g = 1; public static /* synthetic */ Object a(Object[] objArr, int i, int i2, int i3) { int i4 = ~i3; int i5 = ~(i4 | i); int i6 = (i * 765) + (i2 * (-1527)) + ((i2 | i5) * 764); int i7 = ~((~i) | i2); return (i6 + (((~(i4 | i2)) | i7) * (-1528))) + ((((~(i | (~i2))) | i7) | i5) * 764) != 1 ? a(objArr) : d(objArr); } /* JADX WARN: Removed duplicated region for block: B:10:0x0024 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001c */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0028). 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 q(byte r5, int r6, int r7, java.lang.Object[] r8) { /* int r6 = r6 * 7 int r6 = r6 + 69 byte[] r0 = o.C17765zb.$$d int r5 = r5 * 3 int r1 = r5 + 1 int r7 = r7 * 4 int r7 = r7 + 4 byte[] r1 = new byte[r1] r2 = 0 if (r0 != 0) goto L16 r4 = r7 r3 = r2 goto L28 L16: r3 = r2 L17: byte r4 = (byte) r6 r1[r3] = r4 if (r3 != r5) goto L24 java.lang.String r5 = new java.lang.String r5.(r1, r2) r8[r2] = r5 return L24: int r3 = r3 + 1 r4 = r0[r7] L28: int r7 = r7 + 1 int r6 = r6 + r4 goto L17 */ throw new UnsupportedOperationException("Method not decompiled: o.C17765zb.q(byte, int, int, java.lang.Object[]):void"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C17765zb(Resources resources, SharedPreferences sharedPreferences, InterfaceC3521azC interfaceC3521azC, String str, String str2) { super(resources, sharedPreferences, str); C14957gcv.e(interfaceC3521azC, ""); C14957gcv.e(str, ""); C14957gcv.e(str2, ""); this.a = interfaceC3521azC; this.d = str2; } /* renamed from: o.zb$LWm */ /* loaded from: classes3.dex */ public static final class LWm { private LWm() { } public /* synthetic */ LWm(byte b) { this(); } } public final TS d(Kco kco) { String intern; String e; boolean z; int i = 2 % 2; C14957gcv.e(kco, ""); String string = this.c.getString("BASE_URL", this.d); Object obj = null; if (string != null) { C14957gcv.e(string, ""); C14957gcv.e(string, ""); String str = string; C14957gcv.e(str, ""); int b2 = gdZ.b((CharSequence) str, '/', str.length() - 1); if (b2 != -1) { int i2 = j + 75; g = i2 % 128; int i3 = i2 % 2; string = string.substring(0, b2); C14957gcv.c((Object) string, ""); } } else { string = null; } String str2 = kco.h; if (!(str2 == null || gdZ.d((CharSequence) str2))) { intern = kco.h; } else { Object[] objArr = new Object[1]; n(1 - KeyEvent.keyCodeFromString(""), 1 - Color.alpha(0), TextUtils.getTrimmedLength("") + 77, new char[]{0}, true, objArr); intern = ((String) objArr[0]).intern(); } if (this.a.c()) { int i4 = j + 1; g = i4 % 128; if (i4 % 2 == 0) { C6583cXR.e(kco.c.b, this.baseAzureURL); obj.hashCode(); throw null; } e = C6583cXR.e(kco.c.b, this.baseAzureURL); } else { e = C6583cXR.e(kco.c.b, string); } String str3 = e; String str4 = kco.b; String str5 = kco.a; String str6 = kco.d; String str7 = kco.c.e; C14957gcv.c((Object) str3, ""); String str8 = kco.c.c; Object[] objArr2 = new Object[1]; n(-TextUtils.lastIndexOf("", '0', 0, 0), 1 - View.combineMeasuredStates(0, 0), ((Process.getThreadPriority(0) + 20) >> 6) + 77, new char[]{0}, true, objArr2); boolean b3 = C14957gcv.b((Object) str8, (Object) ((String) objArr2[0]).intern()); String a = C6583cXR.a(new BigDecimal(intern)); C14957gcv.c((Object) a, ""); int parseInt = Integer.parseInt(intern); String str9 = kco.e; if (kco.h.length() == 0) { int i5 = g + 55; j = i5 % 128; if (i5 % 2 == 0) { z = true; return new TS(str4, str5, str6, str7, str3, b3, a, parseInt, str9, z); } } else { int i6 = j + 81; g = i6 % 128; int i7 = i6 % 2; } z = false; return new TS(str4, str5, str6, str7, str3, b3, a, parseInt, str9, z); } public final String d(double d) { String format; int i = 2 % 2; int i2 = j + 117; g = i2 % 128; if (i2 % 2 == 0) { gcH gch = gcH.d; String e = e(C15715hv.tOB.point_remaining_limit_label); C14957gcv.c((Object) e, ""); Object[] objArr = new Object[1]; objArr[1] = (String) C6583cXR.c(new Object[]{Double.valueOf(d)}, -150997759, 150997764, (int) System.currentTimeMillis()); format = String.format(e, Arrays.copyOf(objArr, 0)); } else { gcH gch2 = gcH.d; String e2 = e(C15715hv.tOB.point_remaining_limit_label); C14957gcv.c((Object) e2, ""); format = String.format(e2, Arrays.copyOf(new Object[]{(String) C6583cXR.c(new Object[]{Double.valueOf(d)}, -150997759, 150997764, (int) System.currentTimeMillis())}, 1)); } C14957gcv.c((Object) format, ""); return format; } public static TR c(tnu tnuVar) { int i = 2 % 2; C14957gcv.e(tnuVar, ""); ArrayList arrayList = new ArrayList(); Iterator it = tnuVar.c.iterator(); while (!(!it.hasNext())) { int i2 = g + 85; j = i2 % 128; int i3 = i2 % 2; arrayList.add(b((ZAc) it.next())); int i4 = j + 51; g = i4 % 128; int i5 = i4 % 2; } return new TR(arrayList); } private static C1030Uc b(ZAc zAc) { int i = 2 % 2; C14957gcv.e(zAc, ""); C1030Uc c1030Uc = new C1030Uc(zAc.b, zAc.d, zAc.e, zAc.a); int i2 = j + 27; g = i2 % 128; int i3 = i2 % 2; return c1030Uc; } public static C1034Ud b(C1203Xy c1203Xy) { int i = 2 % 2; C14957gcv.e(c1203Xy, ""); String str = c1203Xy.a; C14957gcv.c((Object) str, ""); int intValue = ((Integer) a(new Object[]{str}, 50106508, -50106507, (int) System.currentTimeMillis())).intValue(); String c = C6583cXR.c((String) C6583cXR.c(new Object[]{(PWw) a(new Object[]{Integer.valueOf(intValue)}, -1155022849, 1155022849, intValue)}, 817056545, -817056542, (int) System.currentTimeMillis()), c1203Xy.a); C14957gcv.c((Object) c, ""); C1034Ud c1034Ud = new C1034Ud(c, intValue); int i2 = j + 15; g = i2 % 128; int i3 = i2 % 2; return c1034Ud; } private static /* synthetic */ Object d(Object[] objArr) { String str = (String) objArr[0]; int i = 2 % 2; int i2 = j + 41; g = i2 % 128; int i3 = i2 % 2; C14957gcv.e(str, ""); int i4 = str.length() != 13 ? 10 : 13; int i5 = g + 47; j = i5 % 128; int i6 = i5 % 2; return Integer.valueOf(i4); } private static /* synthetic */ Object a(Object[] objArr) { PWw pWw; int i = 2 % 2; if (((Number) objArr[0]).intValue() == 13) { int i2 = j + 47; g = i2 % 128; int i3 = i2 % 2; pWw = PWw.CID; } else { pWw = PWw.MOB; } int i4 = g + 75; j = i4 % 128; if (i4 % 2 == 0) { return pWw; } Object obj = null; obj.hashCode(); throw null; } public static String a(double d) { int i = 2 % 2; int i2 = j + 63; g = i2 % 128; int i3 = i2 % 2; String c = c(Double.valueOf(d)); C14957gcv.c((Object) c, ""); int i4 = g + 45; j = i4 % 128; if (i4 % 2 == 0) { return c; } throw null; } public static String a(String str, boolean z) { int i = 2 % 2; int i2 = g + 27; j = i2 % 128; int i3 = i2 % 2; C14957gcv.e(str, ""); String c = c(str, z); C14957gcv.c((Object) c, ""); int i4 = g + 43; j = i4 % 128; if (i4 % 2 == 0) { return c; } Object obj = null; obj.hashCode(); throw null; } private static void n(int i, int i2, int i3, char[] cArr, boolean z, Object[] objArr) { int i4 = 2 % 2; zUI zui = new zUI(); char[] cArr2 = new char[i]; zui.d = 0; while (zui.d < i) { int i5 = $11 + 3; $10 = i5 % 128; int i6 = i5 % 2; zui.c = cArr[zui.d]; cArr2[zui.d] = (char) (i3 + zui.c); int i7 = zui.d; try { Object[] objArr2 = {Integer.valueOf(cArr2[i7]), Integer.valueOf(b)}; Object obj = xzZ.y.get(880493502); if (obj == null) { Class cls = (Class) xzZ.c(143 - View.resolveSize(0, 0), 7 - View.getDefaultSize(0, 0), (char) (ViewConfiguration.getJumpTapTimeout() >> 16)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr3 = new Object[1]; q(b2, b3, b3, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(880493502, obj); } cArr2[i7] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); Object[] objArr4 = {zui, zui}; Object obj2 = xzZ.y.get(1294990079); if (obj2 == null) { Class cls2 = (Class) xzZ.c(342 - (ViewConfiguration.getDoubleTapTimeout() >> 16), 5 - View.combineMeasuredStates(0, 0), (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))); byte b4 = (byte) 0; byte b5 = (byte) (b4 + 1); Object[] objArr5 = new Object[1]; q(b4, b5, (byte) (b5 - 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(1294990079, obj2); } ((Method) obj2).invoke(null, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } if (i2 > 0) { zui.a = i2; char[] cArr3 = new char[i]; System.arraycopy(cArr2, 0, cArr3, 0, i); System.arraycopy(cArr3, 0, cArr2, i - zui.a, zui.a); System.arraycopy(cArr3, zui.a, cArr2, 0, i - zui.a); int i8 = $11 + 87; $10 = i8 % 128; int i9 = i8 % 2; } if (z) { int i10 = $10 + 43; $11 = i10 % 128; int i11 = i10 % 2; char[] cArr4 = new char[i]; zui.d = 0; while (zui.d < i) { int i12 = $10 + 73; $11 = i12 % 128; int i13 = i12 % 2; cArr4[zui.d] = cArr2[(i - zui.d) - 1]; Object[] objArr6 = {zui, zui}; Object obj3 = xzZ.y.get(1294990079); if (obj3 == null) { Class cls3 = (Class) xzZ.c(342 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), 5 - TextUtils.indexOf("", "", 0), (char) ((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) - 1)); byte b6 = (byte) 0; byte b7 = (byte) (b6 + 1); Object[] objArr7 = new Object[1]; q(b6, b7, (byte) (b7 - 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1294990079, obj3); } ((Method) obj3).invoke(null, objArr6); } cArr2 = cArr4; } objArr[0] = new String(cArr2); } /* JADX WARN: Code restructure failed: missing block: B:10:?, code lost: return r5; */ /* JADX WARN: Code restructure failed: missing block: B:12:0x0023, code lost: if (r1 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x001a, code lost: if (r1 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x0025, code lost: r3 = o.C17765zb.j + 61; o.C17765zb.g = r3 % 128; r3 = r3 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x0032, code lost: if (r1.length() != 0) goto L13; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static java.lang.String a(java.lang.String r5, o.EKc r6) { /* r0 = 2 int r1 = r0 % r0 int r1 = o.C17765zb.g int r1 = r1 + 101 int r2 = r1 % 128 o.C17765zb.j = r2 int r1 = r1 % r0 java.lang.String r2 = "" if (r1 == 0) goto L1d o.C14957gcv.e(r6, r2) r1 = r5 java.lang.CharSequence r1 = (java.lang.CharSequence) r1 r3 = 76 int r3 = r3 / 0 if (r1 == 0) goto L34 goto L25 L1d: o.C14957gcv.e(r6, r2) r1 = r5 java.lang.CharSequence r1 = (java.lang.CharSequence) r1 if (r1 == 0) goto L34 L25: int r3 = o.C17765zb.j int r3 = r3 + 61 int r4 = r3 % 128 o.C17765zb.g = r4 int r3 = r3 % r0 int r0 = r1.length() if (r0 != 0) goto L3b L34: java.lang.String r5 = b(r6) o.C14957gcv.c(r5, r2) L3b: return r5 */ throw new UnsupportedOperationException("Method not decompiled: o.C17765zb.a(java.lang.String, o.EKc):java.lang.String"); } static void h() { b = 2015661626; } private static int m(String str) { return ((Integer) a(new Object[]{str}, 50106508, -50106507, (int) System.currentTimeMillis())).intValue(); } public static PWw b(int i) { return (PWw) a(new Object[]{Integer.valueOf(i)}, -1155022849, 1155022849, i); } static { j = 0; h(); new LWm((byte) 0); int i = g + 97; j = i % 128; int i2 = i % 2; } }