package com.scb.phone.view.activity.ndid; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.media.AudioTrack; import android.os.Process; import android.os.SystemClock; import android.telephony.cdma.CdmaCellLocation; import android.text.TextUtils; import android.util.TypedValue; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.base.Ascii; import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper; import com.scb.phone.R; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISO7816; import net.sf.scuba.smartcards.ISOFileInfo; import o.AbstractActivityC11255ebr; import o.AbstractC4304bWR; import o.C4338bXP; import o.C4403bZM; import o.GuL; import o.InterfaceC13391fZD; import o.InterfaceC15577gud; import o.xzZ; /* loaded from: classes5.dex */ public class RpLivenessCheckActivity extends AbstractActivityC11255ebr { @InterfaceC13391fZD public C4338bXP livenessCheckPresenter; private static final byte[] $$p = {ISO7816.INS_MANAGE_CHANNEL, -2, ISOFileInfo.FCI_EXT, Ascii.ETB}; private static final int $$q = 105; private static int $10 = 0; private static int $11 = 1; private static int k = 0; /* renamed from: o, reason: collision with root package name */ private static int f7627o = 1; private static long b = 8025044465036392667L; private static int[] l = {1800477916, -1373743987, 1567041131, 211771648, 1011924724, 911772852, -247371551, 1860331858, -1800506844, -1830135603, -1772224135, 2035808110, -1786350658, 1836180924, -362771746, -1729283764, 2077932508, 1041561917}; private static void aC(int i, short s, short s2, Object[] objArr) { byte[] bArr = $$p; int i2 = 121 - i; int i3 = 4 - (s2 * 2); int i4 = s * 2; byte[] bArr2 = new byte[i4 + 1]; int i5 = -1; if (bArr == null) { i2 = i4 + i3; i3++; i5 = -1; } while (true) { int i6 = i5 + 1; bArr2[i6] = (byte) i2; if (i6 == i4) { objArr[0] = new String(bArr2, 0); return; } int i7 = i3; i2 += bArr[i3]; i3 = i7 + 1; i5 = i6; } } public static /* synthetic */ Object c(Object[] objArr, int i, int i2, int i3) { RpLivenessCheckActivity rpLivenessCheckActivity = (RpLivenessCheckActivity) objArr[0]; int i4 = 2 % 2; int i5 = f7627o + 9; k = i5 % 128; int i6 = i5 % 2; super.J(); int i7 = f7627o + 25; k = i7 % 128; int i8 = i7 % 2; return null; } public static Intent ajl_(Context context) { int i = 2 % 2; Intent intent = new Intent(context, (Class) RpLivenessCheckActivity.class); int i2 = k + 7; f7627o = i2 % 128; if (i2 % 2 != 0) { return intent; } Object obj = null; obj.hashCode(); throw null; } private static void aA(char[] cArr, int i, Object[] objArr) { int i2 = 2 % 2; GuL guL = new GuL(); char[] a = GuL.a(b ^ (-7538262848231253921L), cArr, i); guL.a = 4; while (guL.a < a.length) { int i3 = $11 + 61; $10 = i3 % 128; int i4 = i3 % 2; guL.c = guL.a - 4; int i5 = guL.a; try { Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(b)}; Object obj = xzZ.y.get(428080616); if (obj == null) { Class cls = (Class) xzZ.c(207 - TextUtils.lastIndexOf("", '0', 0), 6 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), (char) (1706 - KeyEvent.normalizeMetaState(0))); byte b2 = (byte) (-$$p[1]); byte b3 = (byte) (b2 - 2); Object[] objArr3 = new Object[1]; aC(b2, b3, b3, objArr3); obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE); xzZ.y.put(428080616, obj); } a[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); Object[] objArr4 = {guL, guL}; Object obj2 = xzZ.y.get(-1875914398); if (obj2 == null) { Class cls2 = (Class) xzZ.c(392 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), (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) (ViewConfiguration.getDoubleTapTimeout() >> 16)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; aC(b4, b5, b5, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(-1875914398, obj2); } ((Method) obj2).invoke(null, objArr4); int i6 = $11 + 121; $10 = i6 % 128; int i7 = i6 % 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } String str = new String(a, 4, a.length - 4); int i8 = $10 + 19; $11 = i8 % 128; int i9 = i8 % 2; objArr[0] = str; } /* JADX WARN: Code restructure failed: missing block: B:14:0x0090, code lost: if (r3 > 99999) goto L10; */ /* JADX WARN: Code restructure failed: missing block: B:6:0x008d, code lost: if (r3 > 99999) goto L10; */ /* JADX WARN: Removed duplicated region for block: B:12:0x0315 */ /* JADX WARN: Removed duplicated region for block: B:9:0x0311 */ @Override // o.AbstractActivityC11255ebr, com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity, o.AbstractActivityC11247ebj, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public void onCreate(android.os.Bundle r17) { /* Method dump skipped, instructions count: 1192 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.RpLivenessCheckActivity.onCreate(android.os.Bundle):void"); } @Override // com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity public void onDestroy() { int i = 2 % 2; int i2 = k + 41; f7627o = i2 % 128; int i3 = i2 % 2; super.onDestroy(); this.livenessCheckPresenter.w_(); int i4 = k + 95; f7627o = i4 % 128; if (i4 % 2 == 0) { throw null; } } @Override // com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity public final void r() { int i = 2 % 2; int i2 = f7627o + 21; k = i2 % 128; int i3 = i2 % 2; super.r(); int i4 = k + 111; f7627o = i4 % 128; int i5 = i4 % 2; } private static void aB(int[] iArr, int i, Object[] objArr) { int[] iArr2; int length; int[] iArr3; int i2; int i3 = 2 % 2; C4403bZM c4403bZM = new C4403bZM(); char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length * 2]; int[] iArr4 = l; int i4 = 58134; int i5 = 729798706; int i6 = 1; int i7 = 0; if (iArr4 != null) { int i8 = $11 + 105; $10 = i8 % 128; if (i8 % 2 != 0) { length = iArr4.length; iArr3 = new int[length]; i2 = 1; } else { length = iArr4.length; iArr3 = new int[length]; i2 = 0; } int i9 = i2; while (i9 < length) { try { Object[] objArr2 = new Object[i6]; objArr2[0] = Integer.valueOf(iArr4[i9]); Object obj = xzZ.y.get(Integer.valueOf(i5)); if (obj == null) { obj = ((Class) xzZ.c(15 - TextUtils.indexOf("", "", 0), ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) (KeyEvent.normalizeMetaState(0) + i4))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj); } iArr3[i9] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); i9++; i4 = 58134; i5 = 729798706; i6 = 1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } iArr4 = iArr3; } int length2 = iArr4.length; int[] iArr5 = new int[length2]; int[] iArr6 = l; if (iArr6 != null) { int i10 = $10 + 39; $11 = i10 % 128; int i11 = i10 % 2; int length3 = iArr6.length; int[] iArr7 = new int[length3]; int i12 = 0; while (i12 < length3) { int i13 = $11 + 83; $10 = i13 % 128; int i14 = i13 % 2; Object[] objArr3 = new Object[1]; objArr3[i7] = Integer.valueOf(iArr6[i12]); Object obj2 = xzZ.y.get(729798706); if (obj2 != null) { iArr2 = iArr6; } else { iArr2 = iArr6; obj2 = ((Class) xzZ.c(14 - TextUtils.lastIndexOf("", '0'), (ViewConfiguration.getTapTimeout() >> 16) + 5, (char) (KeyEvent.getDeadChar(0, 0) + 58134))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj2); } iArr7[i12] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); i12++; iArr6 = iArr2; i7 = 0; } iArr6 = iArr7; } int i15 = i7; System.arraycopy(iArr6, i15, iArr5, i15, length2); c4403bZM.b = i15; while (c4403bZM.b < iArr.length) { int i16 = $11 + 89; $10 = i16 % 128; int i17 = i16 % 2; 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 i18 = 0; for (int i19 = 16; i18 < i19; i19 = 16) { c4403bZM.e ^= iArr5[i18]; Object[] objArr4 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM}; Object obj3 = xzZ.y.get(-1196964548); if (obj3 == null) { Class cls = (Class) xzZ.c(118 - TextUtils.indexOf("", ""), Drawable.resolveOpacity(0, 0) + 5, (char) (ViewConfiguration.getJumpTapTimeout() >> 16)); byte b2 = (byte) 0; Object[] objArr5 = new Object[1]; aC((byte) 17, b2, b2, objArr5); obj3 = cls.getMethod((String) objArr5[0], Object.class, Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1196964548, obj3); } int intValue = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue(); c4403bZM.e = c4403bZM.a; c4403bZM.a = intValue; i18++; } int i20 = c4403bZM.e; c4403bZM.e = c4403bZM.a; c4403bZM.a = i20; c4403bZM.a ^= iArr5[16]; c4403bZM.e ^= iArr5[17]; int i21 = c4403bZM.e; int i22 = 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[] objArr6 = {c4403bZM, c4403bZM}; Object obj4 = xzZ.y.get(1914371176); if (obj4 == null) { Class cls2 = (Class) xzZ.c(98 - Color.argb(0, 0, 0, 0), 5 - TextUtils.getTrimmedLength(""), (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24)); byte b3 = (byte) 0; Object[] objArr7 = new Object[1]; aC((byte) 19, b3, b3, objArr7); obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1914371176, obj4); } ((Method) obj4).invoke(null, objArr6); } objArr[0] = new String(cArr2, 0, i); } @Override // com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity public final void ax_() { int i = 2 % 2; int i2 = f7627o + 1; k = i2 % 128; int i3 = i2 % 2; super.ax_(); int i4 = f7627o + 59; k = i4 % 128; if (i4 % 2 != 0) { throw null; } } @Override // com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity public final void d(InterfaceC15577gud interfaceC15577gud) { int i = 2 % 2; int i2 = f7627o + 51; k = i2 % 128; int i3 = i2 % 2; super.d(interfaceC15577gud); int i4 = f7627o + 27; k = i4 % 128; int i5 = i4 % 2; } @Override // com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity public final void J() { int i = 2 % 2; int i2 = k + 75; f7627o = i2 % 128; int i3 = i2 % 2; super.J(); if (i3 == 0) { Object obj = null; obj.hashCode(); throw null; } int i4 = f7627o + 103; k = i4 % 128; int i5 = i4 % 2; } @Override // o.AbstractActivityC11255ebr, com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity, o.AbstractActivityC11247ebj, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity public void onResume() { int i = 2 % 2; Context baseContext = getBaseContext(); if (baseContext == null) { Object[] objArr = new Object[1]; aB(new int[]{1817159533, -2084399310, 403467777, -1855488970, 495853684, 125269580, 176455599, -156564550, -558717001, 1037172488, -552089674, -2088018841, -637224962, 1545143501}, 26 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; aA(new char[]{46951, 48937, 46852, 23211, 56474, 8152, 7121, 15716, 13586, 40403, 39367, 48967, 45879, 7165, 8175, 14687, 12596, 39420, 40423, 47951, 48968, 6019}, (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); } if (baseContext != null) { int i2 = k + 21; f7627o = i2 % 128; int i3 = i2 % 2; baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { int i4 = k + 125; f7627o = i4 % 128; int i5 = i4 % 2; try { Object obj = xzZ.y.get(125943855); if (obj == null) { obj = ((Class) xzZ.c(491 - TextUtils.lastIndexOf("", '0'), Drawable.resolveOpacity(0, 0) + 5, (char) ((Process.getThreadPriority(0) + 20) >> 6))).getMethod("a", null); xzZ.y.put(125943855, obj); } Object invoke = ((Method) obj).invoke(null, null); Object[] objArr3 = {baseContext}; Object obj2 = xzZ.y.get(1378719468); if (obj2 == null) { obj2 = ((Class) xzZ.c(487 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), 5 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (char) (ViewConfiguration.getScrollDefaultDelay() >> 16))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class); xzZ.y.put(1378719468, obj2); } ((Method) obj2).invoke(invoke, objArr3); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } super.onResume(); } @Override // o.AbstractActivityC11255ebr, com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity, o.AbstractActivityC11247ebj, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity public void onPause() { int i = 2 % 2; Context baseContext = getBaseContext(); Object obj = null; if (baseContext == null) { Object[] objArr = new Object[1]; aB(new int[]{1817159533, -2084399310, 403467777, -1855488970, 495853684, 125269580, 176455599, -156564550, -558717001, 1037172488, -552089674, -2088018841, -637224962, 1545143501}, (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 25, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; aA(new char[]{46951, 48937, 46852, 23211, 56474, 8152, 7121, 15716, 13586, 40403, 39367, 48967, 45879, 7165, 8175, 14687, 12596, 39420, 40423, 47951, 48968, 6019}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.select_account_title_breadcrumb_en).substring(0, 14).length() - 14, objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); int i2 = k + 93; f7627o = i2 % 128; int i3 = i2 % 2; } if (baseContext != null) { int i4 = k + 51; f7627o = i4 % 128; if (i4 % 2 == 0) { baseContext.getApplicationContext(); obj.hashCode(); throw null; } baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { int i5 = k + 67; f7627o = i5 % 128; int i6 = i5 % 2; try { Object obj2 = xzZ.y.get(125943855); if (obj2 == null) { obj2 = ((Class) xzZ.c((ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 492, 6 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), (char) View.getDefaultSize(0, 0))).getMethod("a", null); xzZ.y.put(125943855, obj2); } Object invoke = ((Method) obj2).invoke(null, null); Object[] objArr3 = {baseContext}; Object obj3 = xzZ.y.get(1633456013); if (obj3 == null) { obj3 = ((Class) xzZ.c(Color.green(0) + 487, View.resolveSizeAndState(0, 0, 0) + 5, (char) TextUtils.indexOf("", "", 0))).getMethod("c", Context.class); xzZ.y.put(1633456013, obj3); } ((Method) obj3).invoke(invoke, objArr3); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } super.onPause(); } /* JADX WARN: Code restructure failed: missing block: B:13:0x007e, code lost: if (r3 > 99999) goto L10; */ /* JADX WARN: Code restructure failed: missing block: B:6:0x007b, code lost: if (r3 > 99999) goto L10; */ /* JADX WARN: Removed duplicated region for block: B:11:0x0202 */ /* JADX WARN: Removed duplicated region for block: B:9:0x0201 A[RETURN] */ @Override // o.AbstractActivityC11255ebr, com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity, o.AbstractActivityC11247ebj, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public void attachBaseContext(android.content.Context r22) { /* Method dump skipped, instructions count: 858 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.RpLivenessCheckActivity.attachBaseContext(android.content.Context):void"); } @Override // o.AbstractActivityC11255ebr, com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity, o.AbstractActivityC11247ebj, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity public void onStart() { int i = 2 % 2; int i2 = f7627o + 21; k = i2 % 128; int i3 = i2 % 2; super.onStart(); if (i3 != 0) { int i4 = 14 / 0; } int i5 = k + 93; f7627o = i5 % 128; int i6 = i5 % 2; } public final void l() { c(new Object[]{this}, -1674872666, 1674872666, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 17214017); } @Override // com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity protected final AbstractC4304bWR n() { int i = 2 % 2; int i2 = f7627o + 125; int i3 = i2 % 128; k = i3; int i4 = i2 % 2; C4338bXP c4338bXP = this.livenessCheckPresenter; int i5 = i3 + 31; f7627o = i5 % 128; int i6 = i5 % 2; return c4338bXP; } }