package com.scb.phone.security.di; import android.content.Context; import android.content.pm.PackageManager; import android.graphics.Color; import android.os.Process; import android.text.TextUtils; import android.util.TypedValue; import android.view.View; import android.view.ViewConfiguration; import android.view.accessibility.AccessibilityManager; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISO7816; import o.C14957gcv; import o.C4403bZM; import o.fZH; import o.xzZ; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes.dex */ public final class AccessibilitySecurityModule { private static final byte[] $$a = {35, 6, 76, ISO7816.INS_READ_RECORD2}; private static final int $$b = CipherSuite.TLS_DH_RSA_WITH_SEED_CBC_SHA; private static int $10 = 0; private static int $11 = 1; private static int a = 0; private static int b = 1; private static int[] c = {-1154236738, -1184165968, 2000323904, 1866385249, 932833461, 339184431, -907965289, 1553443972, 652136496, -1912290368, 2146460057, 575351394, 433865360, 1066146041, -1201080632, 1437494513, 1468040210, 915032251}; /* 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:0x0032). 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 e(int r6, byte r7, int r8, java.lang.Object[] r9) { /* int r8 = r8 * 2 int r8 = 104 - r8 int r7 = r7 * 3 int r7 = 3 - r7 int r6 = r6 * 4 int r0 = 1 - r6 byte[] r1 = com.scb.phone.security.di.AccessibilitySecurityModule.$$a byte[] r0 = new byte[r0] r2 = 0 int r6 = 0 - r6 if (r1 != 0) goto L19 r3 = r8 r4 = r2 r8 = r7 goto L32 L19: r3 = r2 L1a: byte r4 = (byte) r8 r0[r3] = r4 int r7 = r7 + 1 if (r3 != r6) goto L29 java.lang.String r6 = new java.lang.String r6.(r0, r2) r9[r2] = r6 return L29: int r3 = r3 + 1 r4 = r1[r7] r5 = r8 r8 = r7 r7 = r4 r4 = r3 r3 = r5 L32: int r7 = -r7 int r7 = r7 + r3 r3 = r4 r5 = r8 r8 = r7 r7 = r5 goto L1a */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.security.di.AccessibilitySecurityModule.e(int, byte, int, java.lang.Object[]):void"); } @fZH public final AccessibilityManager WM_(Context context) { int i = 2 % 2; int i2 = a + 13; b = i2 % 128; int i3 = i2 % 2; C14957gcv.e(context, ""); Object[] objArr = new Object[1]; d(new int[]{309588664, -407645086, 966028411, -714726197, -1090120778, 718881369, 1565503146, 51733895}, 13 - (ViewConfiguration.getTouchSlop() >> 8), objArr); Object systemService = context.getSystemService(((String) objArr[0]).intern()); C14957gcv.d(systemService, ""); AccessibilityManager accessibilityManager = (AccessibilityManager) systemService; int i4 = a + 55; b = i4 % 128; int i5 = i4 % 2; return accessibilityManager; } @fZH public final PackageManager WN_(Context context) { int i = 2 % 2; int i2 = b + 85; a = i2 % 128; int i3 = i2 % 2; C14957gcv.e(context, ""); PackageManager packageManager = context.getPackageManager(); C14957gcv.c(packageManager, ""); int i4 = b + 55; a = i4 % 128; if (i4 % 2 != 0) { int i5 = 44 / 0; } return packageManager; } private static void d(int[] iArr, int i, Object[] objArr) { int length; int[] iArr2; int i2; char c2; int i3; int i4 = 2 % 2; C4403bZM c4403bZM = new C4403bZM(); char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length * 2]; int[] iArr3 = c; long j = 0; int i5 = 1; int i6 = 0; if (iArr3 != null) { int length2 = iArr3.length; int[] iArr4 = new int[length2]; int i7 = 0; while (i7 < length2) { try { Object[] objArr2 = new Object[i5]; objArr2[0] = Integer.valueOf(iArr3[i7]); Object obj = xzZ.y.get(729798706); if (obj == null) { obj = ((Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > j ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == j ? 0 : -1)) + 14, (-16777211) - Color.rgb(0, 0, 0), (char) ((ViewConfiguration.getScrollBarSize() >> 8) + 58134))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj); } iArr4[i7] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); i7++; j = 0; i5 = 1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } iArr3 = iArr4; } int length3 = iArr3.length; int[] iArr5 = new int[length3]; int[] iArr6 = c; if (iArr6 != null) { int i8 = $11 + 21; $10 = i8 % 128; if (i8 % 2 != 0) { length = iArr6.length; iArr2 = new int[length]; i2 = 1; } else { length = iArr6.length; iArr2 = new int[length]; i2 = 0; } while (i2 < length) { int i9 = $11 + 49; $10 = i9 % 128; if (i9 % 2 != 0) { Object[] objArr3 = new Object[1]; objArr3[i6] = Integer.valueOf(iArr6[i2]); Object obj2 = xzZ.y.get(729798706); if (obj2 != null) { i3 = length; } else { i3 = length; Method method = ((Class) xzZ.c(TextUtils.getCapsMode("", 0, 0) + 15, (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)) + 5, (char) (58134 - Color.alpha(0)))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, method); obj2 = method; } iArr2[i2] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); length = i3; } else { int i10 = length; Object[] objArr4 = {Integer.valueOf(iArr6[i2])}; Object obj3 = xzZ.y.get(729798706); if (obj3 != null) { c2 = 55346; } else { obj3 = ((Class) xzZ.c(15 - TextUtils.getTrimmedLength(""), 5 - Color.green(0), (char) (58135 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))))).getMethod("i", Integer.TYPE); c2 = 55346; xzZ.y.put(729798706, obj3); } iArr2[i2] = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue(); i2++; length = i10; } i6 = 0; } iArr6 = iArr2; } int i11 = i6; System.arraycopy(iArr6, i11, iArr5, i11, length3); c4403bZM.b = i11; while (c4403bZM.b < iArr.length) { cArr[0] = (char) (iArr[c4403bZM.b] >> 16); cArr[1] = (char) iArr[c4403bZM.b]; cArr[2] = (char) (iArr[c4403bZM.b + 1] >> 16); cArr[3] = (char) iArr[c4403bZM.b + 1]; c4403bZM.e = (cArr[0] << 16) + cArr[1]; c4403bZM.a = (cArr[2] << 16) + cArr[3]; C4403bZM.d(iArr5); int i12 = $11 + 17; $10 = i12 % 128; if (i12 % 2 != 0) { int i13 = 2 / 2; } int i14 = 0; for (int i15 = 16; i14 < i15; i15 = 16) { c4403bZM.e ^= iArr5[i14]; Object[] objArr5 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM}; Object obj4 = xzZ.y.get(-1196964548); if (obj4 == null) { Class cls = (Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 119, 5 - View.resolveSize(0, 0), (char) (ViewConfiguration.getScrollDefaultDelay() >> i15)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr6 = new Object[1]; e(b2, b3, b3, objArr6); obj4 = cls.getMethod((String) objArr6[0], Object.class, Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1196964548, obj4); } int intValue = ((Integer) ((Method) obj4).invoke(null, objArr5)).intValue(); c4403bZM.e = c4403bZM.a; c4403bZM.a = intValue; i14++; int i16 = $11 + 13; $10 = i16 % 128; int i17 = i16 % 2; } int i18 = c4403bZM.e; c4403bZM.e = c4403bZM.a; c4403bZM.a = i18; c4403bZM.a ^= iArr5[16]; c4403bZM.e ^= iArr5[17]; int i19 = c4403bZM.e; int i20 = c4403bZM.a; cArr[0] = (char) (c4403bZM.e >>> 16); cArr[1] = (char) c4403bZM.e; cArr[2] = (char) (c4403bZM.a >>> 16); cArr[3] = (char) c4403bZM.a; C4403bZM.d(iArr5); cArr2[c4403bZM.b * 2] = cArr[0]; cArr2[(c4403bZM.b * 2) + 1] = cArr[1]; cArr2[(c4403bZM.b * 2) + 2] = cArr[2]; cArr2[(c4403bZM.b * 2) + 3] = cArr[3]; Object[] objArr7 = {c4403bZM, c4403bZM}; Object obj5 = xzZ.y.get(1914371176); if (obj5 == null) { Class cls2 = (Class) xzZ.c((ViewConfiguration.getScrollBarSize() >> 8) + 98, 4 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (char) (Process.myTid() >> 22)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr8 = new Object[1]; e(b4, b5, (byte) (b5 + 1), objArr8); obj5 = cls2.getMethod((String) objArr8[0], Object.class, Object.class); xzZ.y.put(1914371176, obj5); } ((Method) obj5).invoke(null, objArr7); } objArr[0] = new String(cArr2, 0, i); } }