package com.kofax.mobile.sdk.capture.creditcard; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.graphics.ImageFormat; import android.media.AudioTrack; import android.os.Bundle; import android.os.Process; import android.os.SystemClock; import android.telephony.cdma.CdmaCellLocation; import android.text.AndroidCharacter; 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.dagger.Injector; import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper; import com.kofax.mobile.sdk.capture.WorkflowActivity; import com.kofax.mobile.sdk.capture.model.CaptureData; import com.kofax.mobile.sdk.capture.model.CreditCard; import com.scb.phone.R; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISO7816; import net.sf.scuba.smartcards.ISOFileInfo; import o.GuL; import o.xzZ; import org.bouncycastle.crypto.signers.PSSSigner; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes3.dex */ public class CreditCardWorkflowActivity extends WorkflowActivity { public static final String CREDIT_CARD_EXCEPTION = "_com.kofax.mobile.sdk.capture._credit_card_exception_"; public static final String CREDIT_CARD_PARAMETERS = "_com.kofax.mobile.sdk.capture._credit_card_parameters_"; public static final String CREDIT_CARD_RESULTS = "_com.kofax.mobile.sdk.capture._credit_card_results_"; private static final String TAG = "CreditCardWorkflowActivity"; private static byte[] a; private static int b; private static int c; private static int d; private static long e; private static short[] f; private static int h; private CreditCardParameters acc; private static final byte[] $$d = {ISO7816.INS_CHANGE_CHV, ISOFileInfo.A1, ISO7816.INS_ENVELOPE, -12}; private static final int $$e = CipherSuite.TLS_DH_DSS_WITH_AES_256_GCM_SHA384; private static int $10 = 0; private static int $11 = 1; private static int j = 1; /* 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:0x0031). 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 n(byte r6, byte r7, short r8, java.lang.Object[] r9) { /* int r7 = r7 * 2 int r0 = 1 - r7 int r6 = r6 * 3 int r6 = 3 - r6 byte[] r1 = com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.$$d int r8 = r8 + 108 byte[] r0 = new byte[r0] r2 = 0 int r7 = 0 - r7 if (r1 != 0) goto L16 r3 = r6 r4 = r2 goto L31 L16: r3 = r2 r5 = r8 r8 = r6 r6 = r5 L1a: byte r4 = (byte) r6 r0[r3] = r4 if (r3 != r7) goto L27 java.lang.String r6 = new java.lang.String r6.(r0, r2) r9[r2] = r6 return L27: int r8 = r8 + 1 int r3 = r3 + 1 r4 = r1[r8] r5 = r3 r3 = r8 r8 = r4 r4 = r5 L31: int r6 = r6 + r8 r8 = r3 r3 = r4 goto L1a */ throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.n(byte, byte, short, java.lang.Object[]):void"); } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity public /* bridge */ /* synthetic */ String getDefaultProcessingString(CreditCardParameters creditCardParameters) { int i = 2 % 2; int i2 = j + 25; h = i2 % 128; int i3 = i2 % 2; String defaultProcessingString2 = getDefaultProcessingString2(creditCardParameters); int i4 = j + 113; h = i4 % 128; if (i4 % 2 != 0) { int i5 = 83 / 0; } return defaultProcessingString2; } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity public /* bridge */ /* synthetic */ CreditCardParameters getParametersInstance() { int i = 2 % 2; int i2 = j + 119; h = i2 % 128; int i3 = i2 % 2; CreditCardParameters parametersInstance = getParametersInstance(); int i4 = h + 3; j = i4 % 128; int i5 = i4 % 2; return parametersInstance; } private static void l(char[] cArr, int i, Object[] objArr) { Object obj; int i2 = 2 % 2; GuL guL = new GuL(); char[] a2 = GuL.a(e ^ (-7538262848231253921L), cArr, i); guL.a = 4; while (true) { obj = null; if (guL.a >= a2.length) { break; } int i3 = $10 + 29; $11 = i3 % 128; int i4 = i3 % 2; guL.c = guL.a - 4; int i5 = guL.a; try { Object[] objArr2 = {Long.valueOf(a2[guL.a] ^ a2[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(e)}; Object obj2 = xzZ.y.get(428080616); if (obj2 == null) { Class cls = (Class) xzZ.c((Process.myPid() >> 22) + 208, TextUtils.indexOf((CharSequence) "", '0') + 6, (char) (1706 - (ViewConfiguration.getLongPressTimeout() >> 16))); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr3 = new Object[1]; n(b2, b3, (byte) (b3 | 11), objArr3); obj2 = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE); xzZ.y.put(428080616, obj2); } a2[i5] = ((Character) ((Method) obj2).invoke(null, objArr2)).charValue(); Object[] objArr4 = {guL, guL}; Object obj3 = xzZ.y.get(-1875914398); if (obj3 == null) { Class cls2 = (Class) xzZ.c(393 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, (char) (ViewConfiguration.getTapTimeout() >> 16)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; n(b4, b5, (byte) (b5 | 13), objArr5); obj3 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(-1875914398, obj3); } ((Method) obj3).invoke(null, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } String str = new String(a2, 4, a2.length - 4); int i6 = $11 + 25; $10 = i6 % 128; if (i6 % 2 == 0) { objArr[0] = str; } else { obj.hashCode(); throw null; } } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity, android.app.Activity public void onCreate(Bundle bundle) { int i = 2 % 2; Object[] objArr = new Object[1]; l(new char[]{51557, 28258, 8405, 44837, 51460, 12851, 39119, 48106, 47606, 41776, 2507, 10930, 10482, 20518, 47757, 22976, 39907, 49470, 11204, 51441, 2790, 20030}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 12, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; l(new char[]{56419, 37704, 13088, 16074, 56334, 53006, 35595, 10782, 44283}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_biller_search_bnpl_initial_state).substring(0, 2).length() - 1, objArr2); int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000; if (intValue < 99000 || intValue > 99999) { Context baseContext = getBaseContext(); if (baseContext == null) { Object[] objArr3 = new Object[1]; l(new char[]{12915, 46098, 22184, 1392, 12818, 59459, 61106, 4543, 17120, 31040, 32694, 32999, 54250, 35413, 52398, 62443, 24774, 6978, 23982, 25256, 61941, 37972, 10930, 56740, 1739, 9553, 48048, 19644, 38906, 46673}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_single_form_check_eligibility_property_scbs_header).substring(31, 32).length(), objArr3); Class cls2 = Class.forName((String) objArr3[0]); Object[] objArr4 = new Object[1]; l(new char[]{23001, 41960, 17527, 30681, 22970, 65442, 64635, 25366, 10560, 28349, 28025, 61985, 47185, 40367, 56941, 33029, 2894, 3258, 20337, 4097, 39494, 33705}, View.resolveSizeAndState(0, 0, 0) + 1, objArr4); baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null); int i2 = j + 73; h = i2 % 128; int i3 = i2 % 2; } if (baseContext != null) { baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { int i4 = j + 69; h = i4 % 128; int i5 = i4 % 2; try { Object obj = xzZ.y.get(125943855); if (obj == null) { obj = ((Class) xzZ.c(AndroidCharacter.getMirror('0') + 444, 5 - Color.argb(0, 0, 0, 0), (char) (ViewConfiguration.getLongPressTimeout() >> 16))).getMethod("a", null); xzZ.y.put(125943855, obj); } Object invoke = ((Method) obj).invoke(null, null); Object[] objArr5 = new Object[1]; m((short) (TextUtils.lastIndexOf("", '0', 0) + 65), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.scbs_data_sharing_confirm_decline_tc_description).substring(54, 55).length() - 712716752, (ViewConfiguration.getFadingEdgeLength() >> 16) - 32, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.add_accounts_select_lock_account_description).substring(112, 113).codePointAt(0) + 1788145046, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.remittance_mobile_no_title).substring(0, 10).length() - 10), objArr5); String str = (String) objArr5[0]; Object[] objArr6 = new Object[1]; m((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.easycash_mortgage_success_subtitle_successfull_request_nstp_hybrid_ntl).substring(30, 31).length() + 37), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.landing_quantity).substring(0, 9).codePointAt(2) - 712716740, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 50, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_review_submission_laser_id_title).substring(30, 31).length() + 1788145129, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), objArr6); String str2 = (String) objArr6[0]; Object[] objArr7 = new Object[1]; l(new char[]{49142, 31010, 27628, 41775, 49047, 9509, 54178, 47009, 53099, 46122, 17139, 9971, 24124, 18220, 61865, 22015, 60768, 54821, 24750, 50342, 31847, 22895, 6116, 31666, 35627, 59449, 34481, 60084, 6781, 31549, 13804, 6639, 43306, 2615, 42167, 35050, 14370, 40287, 11219, 16263, 18207, 11275, 55943, 44679, 54811, 48901, 18831, 56713, 25924, 20050, 63624, 19675, 62532, 53576, 28560, 50074, 780, 24592, 7830, 29376, 37390, 62276, 36300, 57803, 8455, 33305, 15565, 4249}, (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)) + 1, objArr7); String str3 = (String) objArr7[0]; Object[] objArr8 = new Object[1]; l(new char[]{13652, 57897, 34200, 43727, 13628, 48738, 15762, 48642, 17883, 12072, 44237, 12121, 54495, 56439, 8079, 23575, 26563, 19829, 36487, 52499, 63169, 49780, 63893, 29195, 473, 29550, 26768, 58119, 37074, 57445, 56272, 4126, 9176, 37240, 19103, 33039, 45760, 1621, 50599, 13857, 52732, 46876, 13477, 42787, 23789, 9292, 42922, 54313, 61425, 54607, 5803, 17708, 32481, 18952, 33205, 51757, 35317, 64269, 61619, 31542, 6389, 26625, 25527, 59428, 44023, 6479, 53929, 6458, 15035, 35232, 19860, 36509, 46477, 16036, 48327, 16344, 50328, 44973}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.registration_facial_recognition_description).substring(18, 20).codePointAt(0) - 33, objArr8); String str4 = (String) objArr8[0]; Object[] objArr9 = new Object[1]; m((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.no_ebill_subscription).substring(46, 47).length() - 79), (-712716641) - TextUtils.getOffsetBefore("", 0), (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 76, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 1788145052, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 13), objArr9); String str5 = (String) objArr9[0]; Object[] objArr10 = new Object[1]; l(new char[]{38437, 58412, 42372, 45367, 38464, 47218, 7624, 42430, 59069, 10542, 36042, 13502, 30704, 55853, 16322, 18407, 50355, 19250, 44738, 54964, 21988, 50226, 55751, 27131, 41643, 30050, 18573, 63667, 13311, 58984, 64464, 3059, 33014, 38762, 27269, 39587, 4593, 6, 58859, 11727}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 12, objArr10); Object[] objArr11 = {baseContext, str, str2, str3, str4, true, str5, (String) objArr10[0]}; Object obj2 = xzZ.y.get(1656189573); if (obj2 == null) { obj2 = ((Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 486, 5 - ExpandableListView.getPackedPositionGroup(0L), (char) Color.argb(0, 0, 0, 0))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class); xzZ.y.put(1656189573, obj2); } ((Method) obj2).invoke(invoke, objArr11); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } } Injector.getInjector(this).inject(this); super.onCreate(bundle); this.acc = getParameters(bundle); } /* JADX WARN: Code restructure failed: missing block: B:10:0x003a, code lost: if (r1.equalsIgnoreCase("x86") != false) goto L25; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x003c, code lost: r3 = com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.h + 75; com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.j = r3 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:12:0x0047, code lost: if ((r3 % 2) != 0) goto L21; */ /* JADX WARN: Code restructure failed: missing block: B:13:0x0049, code lost: r3 = 45 / 0; */ /* JADX WARN: Code restructure failed: missing block: B:14:0x0050, code lost: if (r1.equalsIgnoreCase("x86_64") != false) goto L25; */ /* JADX WARN: Code restructure failed: missing block: B:15:0x0059, code lost: handleException(new com.kofax.kmc.kut.utilities.error.KmcException(com.kofax.kmc.kut.utilities.error.ErrorInfo.KMC_UI_CREDITCARD_ARCH_NOT_SUPPORTED)); r1 = com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.j + 7; com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.h = r1 % 128; r1 = r1 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:16:0x006c, code lost: return; */ /* JADX WARN: Code restructure failed: missing block: B:19:0x0057, code lost: if (r1.equalsIgnoreCase("x86_64") != false) goto L25; */ /* JADX WARN: Code restructure failed: missing block: B:21:0x0031, code lost: if (r1.equalsIgnoreCase("arm64-v8a") != false) goto L25; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x002a, code lost: if (r1.equalsIgnoreCase("arm64-v8a") == false) goto L14; */ @Override // com.kofax.mobile.sdk.capture.WorkflowActivity /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public void captureImage() { /* r5 = this; r0 = 2 int r1 = r0 % r0 boolean r1 = r5.tS() if (r1 == 0) goto L71 java.lang.String[] r1 = android.os.Build.SUPPORTED_ABIS r2 = 0 r1 = r1[r2] java.lang.String r3 = "armeabi-v7a" boolean r3 = r1.equalsIgnoreCase(r3) if (r3 != 0) goto L6d int r3 = com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.j int r3 = r3 + 121 int r4 = r3 % 128 com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.h = r4 int r3 = r3 % r0 java.lang.String r4 = "arm64-v8a" if (r3 == 0) goto L2d boolean r3 = r1.equalsIgnoreCase(r4) r4 = 86 int r4 = r4 / r2 if (r3 != 0) goto L6d goto L34 L2d: boolean r3 = r1.equalsIgnoreCase(r4) if (r3 == 0) goto L34 goto L6d L34: java.lang.String r3 = "x86" boolean r3 = r1.equalsIgnoreCase(r3) if (r3 != 0) goto L6d int r3 = com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.h int r3 = r3 + 75 int r4 = r3 % 128 com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.j = r4 int r3 = r3 % r0 java.lang.String r4 = "x86_64" if (r3 != 0) goto L53 boolean r1 = r1.equalsIgnoreCase(r4) r3 = 45 int r3 = r3 / r2 if (r1 != 0) goto L6d goto L59 L53: boolean r1 = r1.equalsIgnoreCase(r4) if (r1 != 0) goto L6d L59: com.kofax.kmc.kut.utilities.error.ErrorInfo r1 = com.kofax.kmc.kut.utilities.error.ErrorInfo.KMC_UI_CREDITCARD_ARCH_NOT_SUPPORTED com.kofax.kmc.kut.utilities.error.KmcException r2 = new com.kofax.kmc.kut.utilities.error.KmcException r2.(r1) r5.handleException(r2) int r1 = com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.j int r1 = r1 + 7 int r2 = r1 % 128 com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.h = r2 int r1 = r1 % r0 return L6d: r5.tR() return L71: super.captureImage() return */ throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.captureImage():void"); } private void tR() { int i = 2 % 2; Intent intent = new Intent(this, (Class) CardIoWrapperActivity.class); intent.putExtra(CardIoWrapperActivity.EXTRA_EXTRA_TIME_FOR_EXPIRY, this.acc.extraTimeForExpiry); startActivityForResult(intent, 0); int i2 = h + 13; j = i2 % 128; int i3 = i2 % 2; } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity public CaptureData getDefaultReturnObject() { int i = 2 % 2; CreditCard creditCard = new CreditCard(); int i2 = j + 117; h = i2 % 128; if (i2 % 2 == 0) { return creditCard; } Object obj = null; obj.hashCode(); throw null; } /* JADX WARN: Can't rename method to resolve collision */ @Override // com.kofax.mobile.sdk.capture.WorkflowActivity public CreditCardParameters getParametersInstance() { int i = 2 % 2; int i2 = j + 73; h = i2 % 128; int i3 = i2 % 2; CreditCardParameters creditCardParameters = Injector.getInjector(this).getCreditCardParameters(); int i4 = j + 125; h = i4 % 128; if (i4 % 2 != 0) { int i5 = 49 / 0; } return creditCardParameters; } /* JADX WARN: Code restructure failed: missing block: B:69:0x02ab, code lost: if (r0 != false) goto L71; */ /* JADX WARN: Code restructure failed: missing block: B:70:0x02f8, code lost: r7 = com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.f; r1.c = r1.c - 1; r1.a = (char) (r1.e + (((short) (((short) (r7[r8] ^ (-7303220121662775787L))) + r19)) ^ r23)); */ /* JADX WARN: Code restructure failed: missing block: B:73:0x02b0, code lost: r7 = r7 + 29; com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.$10 = r7 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:74:0x02b8, code lost: if ((r7 % 2) == 0) goto L75; */ /* JADX WARN: Code restructure failed: missing block: B:75:0x02ba, code lost: r7 = com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.a; r8 = r1.c; r1.c = 0; r8 = r1.e * (((byte) (((byte) (r7[r8] / (-7303220121662775787L))) >>> r19)) ^ r23); */ /* JADX WARN: Code restructure failed: missing block: B:76:0x02d3, code lost: r1.a = (char) r8; */ /* JADX WARN: Code restructure failed: missing block: B:78:0x02dc, code lost: r7 = com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.a; r1.c = r1.c - 1; r8 = r1.e + (((byte) (((byte) (r7[r8] ^ (-7303220121662775787L))) + r19)) ^ r23); */ /* JADX WARN: Code restructure failed: missing block: B:79:0x02ae, code lost: if (r0 != false) goto L71; */ /* JADX WARN: Removed duplicated region for block: B:34:0x01b4 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void m(short r19, int r20, int r21, int r22, byte r23, java.lang.Object[] r24) { /* Method dump skipped, instructions count: 823 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.creditcard.CreditCardWorkflowActivity.m(short, int, int, int, byte, java.lang.Object[]):void"); } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity, android.app.Activity public void onActivityResult(int i, int i2, Intent intent) { int i3 = 2 % 2; int i4 = h + 33; int i5 = i4 % 128; j = i5; int i6 = i4 % 2; if (i2 == -1) { Intent intent2 = new Intent(); if (intent.hasExtra(CREDIT_CARD_RESULTS)) { intent2.putExtra(getResultKey(), intent.getSerializableExtra(CREDIT_CARD_RESULTS)); int i7 = h + 17; j = i7 % 128; int i8 = i7 % 2; } setResult(-1, intent2); finish(); return; } if (i2 == 0) { int i9 = i5 + 95; h = i9 % 128; int i10 = i9 % 2; if (!intent.hasExtra(CREDIT_CARD_EXCEPTION)) { handleException(null); return; } handleException((Throwable) intent.getSerializableExtra(CREDIT_CARD_EXCEPTION)); int i11 = h + 7; j = i11 % 128; int i12 = i11 % 2; } } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity, android.app.Activity public void onResume() { int i = 2 % 2; int i2 = h + 29; j = i2 % 128; Object obj = null; if (i2 % 2 == 0) { getBaseContext(); obj.hashCode(); throw null; } Context baseContext = getBaseContext(); if (baseContext == null) { int i3 = j + 39; h = i3 % 128; int i4 = i3 % 2; Object[] objArr = new Object[1]; l(new char[]{12915, 46098, 22184, 1392, 12818, 59459, 61106, 4543, 17120, 31040, 32694, 32999, 54250, 35413, 52398, 62443, 24774, 6978, 23982, 25256, 61941, 37972, 10930, 56740, 1739, 9553, 48048, 19644, 38906, 46673}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 33, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; l(new char[]{23001, 41960, 17527, 30681, 22970, 65442, 64635, 25366, 10560, 28349, 28025, 61985, 47185, 40367, 56941, 33029, 2894, 3258, 20337, 4097, 39494, 33705}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_single_form_suitability_assessment_questionnaire_section_2_3_sub_title).substring(0, 1).codePointAt(0) - 39, objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); int i5 = h + 119; j = i5 % 128; int i6 = i5 % 2; } if (baseContext != null) { int i7 = j + 17; h = i7 % 128; if (i7 % 2 != 0) { baseContext.getApplicationContext(); throw null; } baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { try { Object obj2 = xzZ.y.get(125943855); if (obj2 == null) { obj2 = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 493, 5 - (ViewConfiguration.getKeyRepeatDelay() >> 16), (char) ((-1) - ExpandableListView.getPackedPositionChild(0L)))).getMethod("a", null); xzZ.y.put(125943855, obj2); } Object invoke = ((Method) obj2).invoke(null, null); Object[] objArr3 = {baseContext}; Object obj3 = xzZ.y.get(1378719468); if (obj3 == null) { obj3 = ((Class) xzZ.c(487 - View.resolveSize(0, 0), 4 - TextUtils.indexOf((CharSequence) "", '0'), (char) ((-1) - TextUtils.lastIndexOf("", '0')))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class); xzZ.y.put(1378719468, obj3); } ((Method) obj3).invoke(invoke, objArr3); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } super.onResume(); } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity, android.app.Activity public void onPause() { int i = 2 % 2; int i2 = j + 37; h = i2 % 128; Object obj = null; if (i2 % 2 == 0) { Context baseContext = getBaseContext(); if (baseContext == null) { Object[] objArr = new Object[1]; l(new char[]{12915, 46098, 22184, 1392, 12818, 59459, 61106, 4543, 17120, 31040, 32694, 32999, 54250, 35413, 52398, 62443, 24774, 6978, 23982, 25256, 61941, 37972, 10930, 56740, 1739, 9553, 48048, 19644, 38906, 46673}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(5) - 98, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; l(new char[]{23001, 41960, 17527, 30681, 22970, 65442, 64635, 25366, 10560, 28349, 28025, 61985, 47185, 40367, 56941, 33029, 2894, 3258, 20337, 4097, 39494, 33705}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 33, objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); } if (baseContext != null) { baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { int i3 = j + 51; h = i3 % 128; int i4 = i3 % 2; try { Object obj2 = xzZ.y.get(125943855); if (obj2 == null) { obj2 = ((Class) xzZ.c(493 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 5 - (ViewConfiguration.getEdgeSlop() >> 16), (char) (TextUtils.lastIndexOf("", '0', 0) + 1))).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(488 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), 4 - TextUtils.lastIndexOf("", '0', 0), (char) (TextUtils.indexOf((CharSequence) "", '0') + 1))).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(); return; } getBaseContext(); obj.hashCode(); throw null; } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper public void attachBaseContext(Context context) { int i = 2 % 2; int i2 = h + 71; j = i2 % 128; int i3 = i2 % 2; super.attachBaseContext(context); Object[] objArr = new Object[1]; l(new char[]{51557, 28258, 8405, 44837, 51460, 12851, 39119, 48106, 47606, 41776, 2507, 10930, 10482, 20518, 47757, 22976, 39907, 49470, 11204, 51441, 2790, 20030}, ExpandableListView.getPackedPositionGroup(0L) + 1, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; l(new char[]{56419, 37704, 13088, 16074, 56334, 53006, 35595, 10782, 44283}, View.MeasureSpec.getMode(0) + 1, objArr2); int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000; if (intValue < 99000 || intValue > 99999) { Context applicationContext = context != null ? context.getApplicationContext() : context; if (applicationContext != null) { int i4 = j + 73; h = i4 % 128; int i5 = i4 % 2; try { Object obj = xzZ.y.get(125943855); if (obj == null) { obj = ((Class) xzZ.c(492 - Color.blue(0), 5 - TextUtils.indexOf("", "", 0, 0), (char) (TextUtils.indexOf((CharSequence) "", '0') + 1))).getMethod("a", null); xzZ.y.put(125943855, obj); } Object invoke = ((Method) obj).invoke(null, null); Object[] objArr3 = new Object[1]; m((short) (ImageFormat.getBitsPerPixel(0) + 65), Process.getGidForName("") - 712716750, (-33) - Process.getGidForName(""), 1788145078 - Color.argb(0, 0, 0, 0), (byte) ((-1) - TextUtils.lastIndexOf("", '0')), objArr3); String str = (String) objArr3[0]; Object[] objArr4 = new Object[1]; m((short) (TextUtils.indexOf("", "") + 38), KeyEvent.keyCodeFromString("") - 712716704, TextUtils.lastIndexOf("", '0', 0, 0) - 15, 1788145130 - Color.argb(0, 0, 0, 0), (byte) KeyEvent.getDeadChar(0, 0), objArr4); String str2 = (String) objArr4[0]; Object[] objArr5 = new Object[1]; l(new char[]{49142, 31010, 27628, 41775, 49047, 9509, 54178, 47009, 53099, 46122, 17139, 9971, 24124, 18220, 61865, 22015, 60768, 54821, 24750, 50342, 31847, 22895, 6116, 31666, 35627, 59449, 34481, 60084, 6781, 31549, 13804, 6639, 43306, 2615, 42167, 35050, 14370, 40287, 11219, 16263, 18207, 11275, 55943, 44679, 54811, 48901, 18831, 56713, 25924, 20050, 63624, 19675, 62532, 53576, 28560, 50074, 780, 24592, 7830, 29376, 37390, 62276, 36300, 57803, 8455, 33305, 15565, 4249}, (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 1, objArr5); String str3 = (String) objArr5[0]; Object[] objArr6 = new Object[1]; l(new char[]{13652, 57897, 34200, 43727, 13628, 48738, 15762, 48642, 17883, 12072, 44237, 12121, 54495, 56439, 8079, 23575, 26563, 19829, 36487, 52499, 63169, 49780, 63893, 29195, 473, 29550, 26768, 58119, 37074, 57445, 56272, 4126, 9176, 37240, 19103, 33039, 45760, 1621, 50599, 13857, 52732, 46876, 13477, 42787, 23789, 9292, 42922, 54313, 61425, 54607, 5803, 17708, 32481, 18952, 33205, 51757, 35317, 64269, 61619, 31542, 6389, 26625, 25527, 59428, 44023, 6479, 53929, 6458, 15035, 35232, 19860, 36509, 46477, 16036, 48327, 16344, 50328, 44973}, (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr6); String str4 = (String) objArr6[0]; Object[] objArr7 = new Object[1]; m((short) ((-77) - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), View.MeasureSpec.getSize(0) - 712716641, (-75) - (ViewConfiguration.getScrollBarFadeDuration() >> 16), KeyEvent.keyCodeFromString("") + 1788145086, (byte) View.MeasureSpec.getSize(0), objArr7); String str5 = (String) objArr7[0]; Object[] objArr8 = new Object[1]; l(new char[]{38437, 58412, 42372, 45367, 38464, 47218, 7624, 42430, 59069, 10542, 36042, 13502, 30704, 55853, 16322, 18407, 50355, 19250, 44738, 54964, 21988, 50226, 55751, 27131, 41643, 30050, 18573, 63667, 13311, 58984, 64464, 3059, 33014, 38762, 27269, 39587, 4593, 6, 58859, 11727}, 1 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), objArr8); Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]}; Object obj2 = xzZ.y.get(1656189573); if (obj2 == null) { obj2 = ((Class) xzZ.c((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 487, (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) View.MeasureSpec.makeMeasureSpec(0, 0))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class); xzZ.y.put(1656189573, obj2); } ((Method) obj2).invoke(invoke, objArr9); int i6 = j + 35; h = i6 % 128; int i7 = i6 % 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } } } static void d() { e = 3632181026735490144L; b = 2041917402; c = 1406017093; d = -962261906; a = new byte[]{-102, -8, Byte.MIN_VALUE, -5, -87, ISO7816.INS_WRITE_BINARY, -41, ISOFileInfo.PROP_INFO, -43, -88, -86, ISO7816.INS_CREATE_FILE, -84, ISO7816.INS_UPDATE_BINARY, -47, -43, -104, -2, ISOFileInfo.FILE_IDENTIFIER, -5, ISOFileInfo.FCI_EXT, -8, ISOFileInfo.PROP_INFO, -8, ISOFileInfo.ENV_TEMP_EF, -8, -44, -82, -45, -86, -124, -1, ISO7816.INS_WRITE_BINARY, -124, -6, ISOFileInfo.FCI_EXT, -6, -84, -126, -44, -82, ISO7816.INS_UPDATE_BINARY, -27, -124, -5, -88, -45, -53, -52, 19, -51, -12, -67, 16, ISOFileInfo.A5, Ascii.DC2, ISO7816.INS_ENVELOPE, -70, 19, -66, 29, -69, -55, 19, ISO7816.INS_GET_DATA, -61, -52, -70, -52, 19, -69, -49, 17, -56, -69, 19, -51, -49, -52, -9, -60, -12, PSSSigner.TRAILER_IMPLICIT, Ascii.CAN, -63, -56, -52, -72, 16, -72, 30, -50, ISO7816.INS_ENVELOPE, -51, ISO7816.INS_GET_DATA, -63, -50, -53, -61, -53, ISO7816.INS_ENVELOPE, -65, 19, ISO7816.INS_GET_DATA, -71, 19, -66, 28, -69, ISO7816.INS_ENVELOPE, 69, 81, 77, 86, Ascii.NAK, Ascii.NAK, Ascii.NAK}; } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity, android.app.Activity public void onStart() { int i = 2 % 2; int i2 = h + 69; j = i2 % 128; int i3 = i2 % 2; super.onStart(); int i4 = h + 25; j = i4 % 128; if (i4 % 2 != 0) { return; } Object obj = null; obj.hashCode(); throw null; } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity public String getResultKey() { int i = 2 % 2; int i2 = j + 25; int i3 = i2 % 128; h = i3; int i4 = i2 % 2; int i5 = i3 + 85; j = i5 % 128; if (i5 % 2 != 0) { return CREDIT_CARD_RESULTS; } Object obj = null; obj.hashCode(); throw null; } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity public String getParametersKey() { int i = 2 % 2; int i2 = h + 111; j = i2 % 128; if (i2 % 2 != 0) { return CREDIT_CARD_PARAMETERS; } int i3 = 34 / 0; return CREDIT_CARD_PARAMETERS; } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity public Class getExtractActivityClass() { int i = 2 % 2; int i2 = j; int i3 = i2 + 83; h = i3 % 128; int i4 = i3 % 2; int i5 = i2 + 17; h = i5 % 128; if (i5 % 2 == 0) { return null; } throw null; } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity public String getExceptionKey() { int i = 2 % 2; int i2 = j + 69; h = i2 % 128; if (i2 % 2 == 0) { return CREDIT_CARD_EXCEPTION; } int i3 = 36 / 0; return CREDIT_CARD_EXCEPTION; } /* renamed from: getDefaultProcessingString, reason: avoid collision after fix types in other method */ public String getDefaultProcessingString2(CreditCardParameters creditCardParameters) { int i = 2 % 2; int i2 = h; int i3 = i2 + 117; j = i3 % 128; int i4 = i3 % 2; int i5 = i2 + 99; j = i5 % 128; if (i5 % 2 == 0) { int i6 = 98 / 0; } return null; } @Override // com.kofax.mobile.sdk.capture.WorkflowActivity public Class getCaptureActivityClass() { int i = 2 % 2; int i2 = h + 73; int i3 = i2 % 128; j = i3; int i4 = i2 % 2; int i5 = i3 + 95; h = i5 % 128; Object obj = null; if (i5 % 2 == 0) { return null; } obj.hashCode(); throw null; } private boolean tS() { int i = 2 % 2; int i2 = j; int i3 = i2 + 31; h = i3 % 128; boolean z = i3 % 2 == 0; int i4 = i2 + 37; h = i4 % 128; int i5 = i4 % 2; return z; } static { h = 0; d(); int i = j + 19; h = i % 128; int i2 = i % 2; } }