what-the-bank/sources/com/kofax/mobile/sdk/capture/WorkflowActivity.java

1352 lines
55 KiB
Java

package com.kofax.mobile.sdk.capture;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
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.kofax.kmc.kut.utilities.CertificateValidatorListener;
import com.kofax.mobile.sdk._internal.dagger.Injector;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.kofax.mobile.sdk._internal.impl.view.af;
import com.kofax.mobile.sdk.capture.extraction.ExceptionResponse;
import com.kofax.mobile.sdk.capture.extraction.ExtractorResponse;
import com.kofax.mobile.sdk.capture.model.CaptureData;
import com.kofax.mobile.sdk.capture.parameter.IParameters;
import com.kofax.mobile.sdk.capture.parameter.ProcessingParameters;
import com.scb.phone.R;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.C4593bdB;
import o.IRS;
import o.xzZ;
/* loaded from: classes3.dex */
public abstract class WorkflowActivity<T extends IParameters> extends Activity {
public static final String CERTIFICATE_VALIDATOR_LISTENER = "_com.kofax.mobile.sdk.capture._certificate_validator_listener_";
static final String YX = "_com.kofax.mobile.sdk.capture.internal_parameters_";
static final String YY = "_com.kofax.mobile.sdk.capture.internal_extraction_result_";
static final String YZ = "_com.kofax.mobile.sdk.capture.internal_image_id_";
private static final String Za = "_state_";
private static final int Zc = 0;
private static final int Zd = 1;
private static final int Ze = 2;
private static final int Zf = 3;
private static final int Zg = 4;
private static final int Zh = 5;
private static final int Zi = 6;
private CertificateValidatorListener JI;
private T YA;
private Intent Zj;
private CaptureData Zl;
private static final byte[] $$a = {0, -67, 121, 0};
private static final int $$b = 236;
private static int $10 = 0;
private static int $11 = 1;
private static int c = 0;
private static int e = 1;
private static long b = 3765786410735281553L;
private static char[] d = {49094, 49109, 48161, 49090, 48171, 49105, 48175, 49113, 48170, 49028, 48173, 49029, 49095, 49089, 48160, 49108, 49088, 49034, 49093, 49118, 49091, 49116, 49111, 49106, 49115, 48168, 49031, 49117, 49053, 49107, 48172, 49138, 48174, 48169, 49127, 49033, 49030, 49110, 49025, 49112, 49026, 49104, 49024, 49027, 49098, 49052, 49035, 49114, 49119};
private static char a = 35374;
private int Zb = 0;
private ExtractorResponse Zk = null;
private IImageStorage YK = null;
/* JADX WARN: Removed duplicated region for block: B:10:0x0023 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001b */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0023 -> B:4:0x0027). 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 k(byte r5, byte r6, int r7, java.lang.Object[] r8) {
/*
byte[] r0 = com.kofax.mobile.sdk.capture.WorkflowActivity.$$a
int r5 = r5 * 2
int r5 = 4 - r5
int r7 = r7 * 3
int r1 = r7 + 1
int r6 = 120 - r6
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L15
r4 = r6
r6 = r7
r3 = r2
goto L27
L15:
r3 = r2
L16:
byte r4 = (byte) r6
r1[r3] = r4
if (r3 != r7) goto L23
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L23:
int r3 = r3 + 1
r4 = r0[r5]
L27:
int r6 = r6 + r4
int r5 = r5 + 1
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.WorkflowActivity.k(byte, byte, int, java.lang.Object[]):void");
}
public abstract Class<? extends Activity> getCaptureActivityClass();
public abstract String getDefaultProcessingString(T t);
public abstract CaptureData getDefaultReturnObject();
public abstract String getExceptionKey();
public abstract Class<? extends Activity> getExtractActivityClass();
public abstract T getParametersInstance();
public abstract String getParametersKey();
public abstract String getResultKey();
private static void g(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
C4593bdB c4593bdB = new C4593bdB();
c4593bdB.a = i;
int length = cArr.length;
long[] jArr = new long[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i3 = $10 + 49;
$11 = i3 % 128;
if (i3 % 2 == 0) {
int i4 = c4593bdB.e;
try {
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj = xzZ.y.get(-1229953068);
if (obj == null) {
Class cls = (Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 403, 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 21607));
byte b2 = $$a[0];
byte b3 = b2;
Object[] objArr3 = new Object[1];
k(b3, (byte) (b3 | 43), b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i4] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() - (b % (-6958928035870403642L));
try {
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((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)) + 238, (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 4, (char) (Process.getGidForName("") + 1));
byte b4 = $$a[0];
byte b5 = b4;
Object[] objArr5 = new Object[1];
k(b5, (byte) (b5 | ISO7816.INS_PSO), b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} else {
int i5 = c4593bdB.e;
try {
Object[] objArr6 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1229953068);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(402 - TextUtils.indexOf("", "", 0), 5 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (char) (21608 - ExpandableListView.getPackedPositionType(0L)));
byte b6 = $$a[0];
byte b7 = b6;
Object[] objArr7 = new Object[1];
k(b7, (byte) (b7 | 43), b6, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj3);
}
jArr[i5] = ((Long) ((Method) obj3).invoke(null, objArr6)).longValue() ^ (b ^ (-6958928035870403642L));
Object[] objArr8 = {c4593bdB, c4593bdB};
Object obj4 = xzZ.y.get(-1143917229);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((ViewConfiguration.getDoubleTapTimeout() >> 16) + 238, 6 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (char) (ExpandableListView.getPackedPositionChild(0L) + 1));
byte b8 = $$a[0];
byte b9 = b8;
Object[] objArr9 = new Object[1];
k(b9, (byte) (b9 | ISO7816.INS_PSO), b8, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj4);
}
((Method) obj4).invoke(null, objArr8);
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i6 = $11 + 45;
$10 = i6 % 128;
int i7 = i6 % 2;
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
Object[] objArr10 = {c4593bdB, c4593bdB};
Object obj5 = xzZ.y.get(-1143917229);
if (obj5 == null) {
Class cls5 = (Class) xzZ.c(237 - TextUtils.lastIndexOf("", '0', 0, 0), 5 - Color.red(0), (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) - 1));
byte b10 = $$a[0];
byte b11 = b10;
Object[] objArr11 = new Object[1];
k(b11, (byte) (b11 | ISO7816.INS_PSO), b10, objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj5);
}
((Method) obj5).invoke(null, objArr10);
}
objArr[0] = new String(cArr2);
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x0099, code lost:
if (r2 > 99999) goto L10;
*/
@Override // 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: 1364
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.WorkflowActivity.onCreate(android.os.Bundle):void");
}
/* JADX INFO: Access modifiers changed from: protected */
public void handleException(Throwable th) {
int i = 2 % 2;
Intent intent = getIntent();
if (th != null) {
intent.putExtra(getExceptionKey(), new a(th));
int i2 = e + 67;
c = i2 % 128;
int i3 = i2 % 2;
}
setResult(0, intent);
finish();
int i4 = c + 123;
e = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
protected void tryRestoreState(Bundle bundle) {
int i = 2 % 2;
int i2 = e + 119;
c = i2 % 128;
int i3 = i2 % 2;
try {
a(bundle);
int i4 = c + 9;
e = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 10 / 0;
}
} catch (Exception e2) {
handleException(e2);
}
}
private void a(Bundle bundle) {
int i = 2 % 2;
if (bundle != null) {
this.Zb = bundle.getInt(Za);
}
T parameters = getParameters(bundle);
this.YA = parameters;
this.Zl = parameters.getProcessingParameters().captureData;
if (ProcessingParameters.ProcessingType.OFF != this.YA.getProcessingParameters().processingType) {
int i2 = e + 87;
c = i2 % 128;
if (i2 % 2 == 0) {
if (TextUtils.isEmpty(this.YA.getProcessingParameters().operations)) {
this.YA.getProcessingParameters().operations = getDefaultProcessingString(this.YA);
}
} else {
TextUtils.isEmpty(this.YA.getProcessingParameters().operations);
throw null;
}
}
int i3 = e + 121;
c = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 58 / 0;
}
}
public T getParameters(Bundle bundle) {
int i = 2 % 2;
int i2 = e + 57;
int i3 = i2 % 128;
c = i3;
int i4 = i2 % 2;
if (this.YA == null) {
int i5 = i3 + 83;
e = i5 % 128;
int i6 = i5 % 2;
this.YA = (T) a(bundle, getIntent(), getParametersKey());
}
if (this.YA == null) {
this.YA = getParametersInstance();
}
return this.YA;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Code restructure failed: missing block: B:13:0x0033, code lost:
if (r5 != null) goto L16;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x0038, code lost:
r1 = (T) r5.getSerializableExtra(r6);
r4 = com.kofax.mobile.sdk.capture.WorkflowActivity.e + 65;
com.kofax.mobile.sdk.capture.WorkflowActivity.c = r4 % 128;
r4 = r4 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x0036, code lost:
if (r5 != null) goto L16;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static <T extends com.kofax.mobile.sdk.capture.parameter.IParameters> T a(android.os.Bundle r4, android.content.Intent r5, java.lang.String r6) {
/*
r0 = 2
int r1 = r0 % r0
r1 = 0
if (r4 == 0) goto L23
int r2 = com.kofax.mobile.sdk.capture.WorkflowActivity.e
int r2 = r2 + 11
int r3 = r2 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.c = r3
int r2 = r2 % r0
if (r2 != 0) goto L19
java.io.Serializable r4 = r4.getSerializable(r6)
r1 = r4
com.kofax.mobile.sdk.capture.parameter.IParameters r1 = (com.kofax.mobile.sdk.capture.parameter.IParameters) r1
goto L23
L19:
java.io.Serializable r4 = r4.getSerializable(r6)
com.kofax.mobile.sdk.capture.parameter.IParameters r4 = (com.kofax.mobile.sdk.capture.parameter.IParameters) r4
r1.hashCode()
throw r1
L23:
if (r1 != 0) goto L48
int r4 = com.kofax.mobile.sdk.capture.WorkflowActivity.c
int r4 = r4 + 119
int r2 = r4 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.e = r2
int r4 = r4 % r0
if (r4 != 0) goto L36
r4 = 2
int r4 = r4 / 0
if (r5 == 0) goto L48
goto L38
L36:
if (r5 == 0) goto L48
L38:
java.io.Serializable r4 = r5.getSerializableExtra(r6)
r1 = r4
com.kofax.mobile.sdk.capture.parameter.IParameters r1 = (com.kofax.mobile.sdk.capture.parameter.IParameters) r1
int r4 = com.kofax.mobile.sdk.capture.WorkflowActivity.e
int r4 = r4 + 65
int r5 = r4 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.c = r5
int r4 = r4 % r0
L48:
int r4 = com.kofax.mobile.sdk.capture.WorkflowActivity.c
int r4 = r4 + 101
int r5 = r4 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.e = r5
int r4 = r4 % r0
if (r4 != 0) goto L56
r4 = 4
int r4 = r4 / 0
L56:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.WorkflowActivity.a(android.os.Bundle, android.content.Intent, java.lang.String):com.kofax.mobile.sdk.capture.parameter.IParameters");
}
/* JADX INFO: Access modifiers changed from: package-private */
public static CertificateValidatorListener a(Bundle bundle, Intent intent) {
CertificateValidatorListener certificateValidatorListener;
int i = 2 % 2;
int i2 = e + 9;
int i3 = i2 % 128;
c = i3;
int i4 = i2 % 2;
if (bundle != null) {
certificateValidatorListener = (CertificateValidatorListener) bundle.getSerializable("_com.kofax.mobile.sdk.capture._certificate_validator_listener_");
} else {
int i5 = i3 + 107;
e = i5 % 128;
int i6 = i5 % 2;
certificateValidatorListener = null;
}
if (certificateValidatorListener != null) {
return certificateValidatorListener;
}
int i7 = e;
int i8 = i7 + 13;
c = i8 % 128;
int i9 = i8 % 2;
if (intent == null) {
return certificateValidatorListener;
}
int i10 = i7 + 37;
c = i10 % 128;
int i11 = i10 % 2;
return (CertificateValidatorListener) intent.getSerializableExtra("_com.kofax.mobile.sdk.capture._certificate_validator_listener_");
}
@Override // android.app.Activity
protected void onSaveInstanceState(Bundle bundle) {
int i = 2 % 2;
int i2 = e + 71;
c = i2 % 128;
int i3 = i2 % 2;
super.onSaveInstanceState(bundle);
this.YA.getProcessingParameters().captureData = this.Zl;
bundle.putInt(Za, this.Zb);
bundle.putSerializable(getParametersKey(), this.YA);
bundle.putSerializable("_com.kofax.mobile.sdk.capture._certificate_validator_listener_", this.JI);
int i4 = e + 29;
c = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 5 / 0;
}
}
@Override // android.app.Activity
protected void onDestroy() {
int i = 2 % 2;
int i2 = c + 73;
e = i2 % 128;
int i3 = i2 % 2;
super.onDestroy();
int i4 = e + 107;
c = i4 % 128;
int i5 = i4 % 2;
}
private static void i(char[] cArr, byte b2, int i, Object[] objArr) {
int i2;
char c2;
int i3 = 2;
int i4 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = d;
char c3 = '0';
int i5 = 5;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i6 = 0;
while (i6 < length) {
int i7 = $11 + 77;
$10 = i7 % 128;
if (i7 % i3 != 0) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i6])};
Object obj = xzZ.y.get(-1987398494);
if (obj == null) {
Class cls = (Class) xzZ.c(297 - TextUtils.lastIndexOf("", c3, 0, 0), View.MeasureSpec.makeMeasureSpec(0, 0) + i5, (char) (ViewConfiguration.getDoubleTapTimeout() >> 16));
byte b3 = $$a[0];
byte b4 = b3;
Object[] objArr3 = new Object[1];
k(b4, (byte) (b4 + 3), b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj);
}
cArr3[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i6--;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
Object[] objArr4 = {Integer.valueOf(cArr2[i6])};
Object obj2 = xzZ.y.get(-1987398494);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(298 - TextUtils.getTrimmedLength(""), 5 - View.resolveSizeAndState(0, 0, 0), (char) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)));
byte b5 = $$a[0];
byte b6 = b5;
Object[] objArr5 = new Object[1];
k(b6, (byte) (b6 + 3), b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj2);
}
cArr3[i6] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i6++;
}
i3 = 2;
c3 = '0';
i5 = 5;
}
cArr2 = cArr3;
}
Object[] objArr6 = {Integer.valueOf(a)};
Object obj3 = xzZ.y.get(-1987398494);
long j = 0;
char c4 = 4;
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 297, 4 - Process.getGidForName(""), (char) View.getDefaultSize(0, 0));
byte b7 = $$a[0];
byte b8 = b7;
Object[] objArr7 = new Object[1];
k(b8, (byte) (b8 + 3), b7, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj3);
}
char charValue = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
i2 = i - 1;
cArr4[i2] = (char) (cArr[i2] - b2);
} else {
i2 = i;
}
if (i2 > 1) {
int i8 = $10 + 93;
$11 = i8 % 128;
if (i8 % 2 == 0) {
irs.e = 1;
} else {
irs.e = 0;
}
while (irs.e < i2) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
cArr4[irs.e] = (char) (irs.b - b2);
cArr4[irs.e + 1] = (char) (irs.c - b2);
c2 = c4;
} else {
Object[] objArr8 = new Object[13];
objArr8[12] = irs;
objArr8[11] = Integer.valueOf(charValue);
objArr8[10] = irs;
objArr8[9] = irs;
objArr8[8] = Integer.valueOf(charValue);
objArr8[7] = irs;
objArr8[6] = irs;
objArr8[5] = Integer.valueOf(charValue);
objArr8[c4] = irs;
objArr8[3] = irs;
objArr8[2] = Integer.valueOf(charValue);
objArr8[1] = irs;
objArr8[0] = irs;
Object obj4 = xzZ.y.get(822107368);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(AndroidCharacter.getMirror('0') + 185, 4 - (ExpandableListView.getPackedPositionForChild(0, 0) > j ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == j ? 0 : -1)), (char) (Drawable.resolveOpacity(0, 0) + 22024));
byte b9 = $$a[0];
byte b10 = b9;
Object[] objArr9 = new Object[1];
k(b9, b10, b10, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj4);
}
if (((Integer) ((Method) obj4).invoke(null, objArr8)).intValue() == irs.j) {
int i9 = $10 + 107;
$11 = i9 % 128;
int i10 = i9 % 2;
Object[] objArr10 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj5 = xzZ.y.get(-1152873385);
if (obj5 != null) {
c2 = 4;
} else {
Class cls5 = (Class) xzZ.c((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 326, ExpandableListView.getPackedPositionType(0L) + 5, (char) TextUtils.indexOf("", "", 0));
byte b11 = $$a[0];
byte b12 = b11;
Object[] objArr11 = new Object[1];
k(b12, (byte) (b12 + 2), b11, objArr11);
c2 = 4;
obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj5);
}
int intValue = ((Integer) ((Method) obj5).invoke(null, objArr10)).intValue();
int i11 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i11];
} else {
c2 = 4;
if (irs.a == irs.d) {
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i12 = (irs.a * charValue) + irs.f;
int i13 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i12];
cArr4[irs.e + 1] = cArr2[i13];
} else {
int i14 = (irs.a * charValue) + irs.j;
int i15 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i14];
cArr4[irs.e + 1] = cArr2[i15];
}
}
}
irs.e += 2;
c4 = c2;
j = 0;
}
}
for (int i16 = 0; i16 < i; i16++) {
cArr4[i16] = (char) (cArr4[i16] ^ 13722);
}
objArr[0] = new String(cArr4);
}
@Override // android.app.Activity
public void onResume() {
int i = 2 % 2;
int i2 = e + 35;
c = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
getBaseContext();
obj.hashCode();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
i(new char[]{24, 21, 27, '\b', 26, '*', 21, 29, 27, 16, 14, '\"', '\"', '&', 19, 5, 19, '.', '\t', '/', 31, 27, '\t', ')', 24, 23}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.image_tag).substring(0, 13).length() + 43), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.booking_id).substring(7, 8).codePointAt(0) - 6, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
g(new char[]{46644, 12667, 47255, 8238, 43862, 4740, 39477, 1401, 36079, 29702, 65345, 26349, 60952, 27059, 53501, 22537, 50088, 19152}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.debit_card_cvv_title).substring(18, 19).codePointAt(0) + 34563, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i3 = e + 85;
c = i3 % 128;
int i4 = i3 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i5 = e + 63;
c = i5 % 128;
try {
if (i5 % 2 != 0) {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(491 - TextUtils.lastIndexOf("", '0', 0, 0), TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 6, (char) Color.red(0))).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(486 - TextUtils.lastIndexOf("", '0'), Gravity.getAbsoluteGravity(0, 0) + 5, (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
throw null;
}
Object obj4 = xzZ.y.get(125943855);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(492 - (ViewConfiguration.getWindowTouchSlop() >> 8), 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24))).getMethod("a", null);
xzZ.y.put(125943855, obj4);
}
Object invoke2 = ((Method) obj4).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj5 = xzZ.y.get(1378719468);
if (obj5 == null) {
obj5 = ((Class) xzZ.c(487 - Color.alpha(0), 4 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (char) KeyEvent.getDeadChar(0, 0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj5);
}
((Method) obj5).invoke(invoke2, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
tE();
}
private void tE() {
int i = 2 % 2;
int i2 = e + 115;
c = i2 % 128;
int i3 = i2 % 2;
try {
tF();
int i4 = e + 35;
c = i4 % 128;
int i5 = i4 % 2;
} catch (Exception e2) {
handleException(e2);
}
}
private void tF() {
int i = 2 % 2;
int i2 = this.Zb;
if (i2 == 0) {
captureImage();
return;
}
if (i2 == 1) {
tG();
return;
}
if (i2 == 2) {
tI();
int i3 = e + 43;
c = i3 % 128;
int i4 = i3 % 2;
return;
}
if (i2 == 3) {
tJ();
return;
}
int i5 = c + 73;
int i6 = i5 % 128;
e = i6;
int i7 = i5 % 2;
if (i2 == 4) {
tK();
return;
}
int i8 = i6 + 103;
int i9 = i8 % 128;
c = i9;
int i10 = i8 % 2;
if (i2 == 5) {
int i11 = i9 + 53;
e = i11 % 128;
int i12 = i11 % 2;
tL();
}
}
public void captureImage() {
int i = 2 % 2;
Intent intent = new Intent(this, getCaptureActivityClass());
intent.putExtra(YX, this.YA);
startActivityForResult(intent, 0);
int i2 = c + 61;
e = i2 % 128;
int i3 = i2 % 2;
}
private void tG() {
int i = 2 % 2;
Object obj = null;
if (!tH()) {
int i2 = e + 105;
c = i2 % 128;
if (i2 % 2 == 0) {
tM();
return;
} else {
tM();
obj.hashCode();
throw null;
}
}
if (this.YA.getLookAndFeelParameters().reviewCapturedImage) {
Intent intent = new Intent(this, (Class<?>) ImageReviewActivity.class);
intent.putExtra(YX, this.YA);
intent.putExtra(YZ, this.Zl.capturedImageId);
startActivityForResult(intent, 1);
return;
}
int i3 = e + 117;
c = i3 % 128;
if (i3 % 2 != 0) {
tN();
tF();
obj.hashCode();
throw null;
}
tN();
tF();
int i4 = c + 29;
e = i4 % 128;
int i5 = i4 % 2;
}
private boolean tH() {
int i = 2 % 2;
int i2 = e;
int i3 = i2 + 93;
c = i3 % 128;
int i4 = i3 % 2;
Intent intent = this.Zj;
if (intent != null) {
int i5 = i2 + 119;
c = i5 % 128;
int i6 = i5 % 2;
if (intent.getIntExtra(CaptureActivity.RESULT_CODE, -1) == -42) {
return true;
}
}
int i7 = c + 111;
e = i7 % 128;
int i8 = i7 % 2;
return false;
}
private void tI() {
int i = 2 % 2;
int i2 = e + 79;
c = i2 % 128;
if (i2 % 2 != 0) {
ProcessingParameters.ProcessingType processingType = ProcessingParameters.ProcessingType.ON_DEVICE;
ProcessingParameters.ProcessingType processingType2 = this.YA.getProcessingParameters().processingType;
throw null;
}
if (ProcessingParameters.ProcessingType.ON_DEVICE == this.YA.getProcessingParameters().processingType) {
setContentView(new af(this));
Intent intent = new Intent(this, (Class<?>) ProcessActivity.class);
intent.putExtra(YX, this.YA);
intent.putExtra(YZ, this.Zl.capturedImageId);
startActivityForResult(intent, 2);
return;
}
CaptureData captureData = this.Zl;
captureData.processedImageId = captureData.capturedImageId;
tN();
tF();
int i3 = c + 85;
e = i3 % 128;
int i4 = i3 % 2;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public static class a implements ExceptionResponse {
private final Throwable Zm;
@Override // com.kofax.mobile.sdk.capture.extraction.ExceptionResponse
public ExceptionResponse innerException() {
return null;
}
public a(Throwable th) {
this.Zm = th;
}
@Override // com.kofax.mobile.sdk.capture.extraction.ExceptionResponse
public String exceptionMessage() {
return this.Zm.getMessage();
}
@Override // com.kofax.mobile.sdk.capture.extraction.ExceptionResponse
public String exceptionType() {
return this.Zm.getClass().toString();
}
@Override // com.kofax.mobile.sdk.capture.extraction.ExceptionResponse
public String message() {
return exceptionMessage();
}
@Override // com.kofax.mobile.sdk.capture.extraction.ExceptionResponse
public String stackTrace() {
StringBuilder sb = new StringBuilder();
for (StackTraceElement stackTraceElement : this.Zm.getStackTrace()) {
sb.append(stackTraceElement.toString());
}
return sb.toString();
}
}
private void tJ() {
int i = 2 % 2;
int i2 = c + 57;
e = i2 % 128;
if (i2 % 2 != 0) {
if (this.YA.getLookAndFeelParameters().reviewProcessedImage) {
Intent intent = new Intent(this, (Class<?>) ImageReviewActivity.class);
intent.putExtra(YX, this.YA);
intent.putExtra(YZ, this.Zl.processedImageId);
startActivityForResult(intent, 3);
return;
}
tN();
tF();
int i3 = e + 17;
c = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 43 / 0;
return;
}
return;
}
boolean z = this.YA.getLookAndFeelParameters().reviewProcessedImage;
Object obj = null;
obj.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x004c, code lost:
r0 = null;
r0.hashCode();
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x0050, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x0034, code lost:
if (r1 == com.kofax.mobile.sdk.capture.parameter.ExtractionParameters.ExtractionType.ON_DEVICE) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x002f, code lost:
if (r1 == com.kofax.mobile.sdk.capture.parameter.ExtractionParameters.ExtractionType.ON_DEVICE) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x0036, code lost:
handleException(new com.kofax.kmc.kut.utilities.error.KmcException(com.kofax.kmc.kut.utilities.error.ErrorInfo.KMC_UI_ODE_NOT_SUPPORTED_FOR_THE_DOCUMENT_TYPE));
r1 = com.kofax.mobile.sdk.capture.WorkflowActivity.e + 5;
com.kofax.mobile.sdk.capture.WorkflowActivity.c = r1 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0049, code lost:
if ((r1 % 2) != 0) goto L14;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x004b, code lost:
return;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private void tK() {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.kofax.mobile.sdk.capture.WorkflowActivity.c
int r1 = r1 + 7
int r2 = r1 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.e = r2
int r1 = r1 % r0
T extends com.kofax.mobile.sdk.capture.parameter.IParameters r1 = r4.YA
com.kofax.mobile.sdk.capture.parameter.ExtractionParameters r1 = r1.getExtractionParameters()
com.kofax.mobile.sdk.capture.parameter.ExtractionParameters$ExtractionType r1 = r1.getExtractionType()
boolean r2 = r4.isOdeSupported()
r2 = r2 ^ 1
if (r2 == 0) goto L51
int r2 = com.kofax.mobile.sdk.capture.WorkflowActivity.e
int r2 = r2 + 117
int r3 = r2 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.c = r3
int r2 = r2 % r0
if (r2 == 0) goto L32
com.kofax.mobile.sdk.capture.parameter.ExtractionParameters$ExtractionType r2 = com.kofax.mobile.sdk.capture.parameter.ExtractionParameters.ExtractionType.ON_DEVICE
r3 = 22
int r3 = r3 / 0
if (r1 != r2) goto L51
goto L36
L32:
com.kofax.mobile.sdk.capture.parameter.ExtractionParameters$ExtractionType r2 = com.kofax.mobile.sdk.capture.parameter.ExtractionParameters.ExtractionType.ON_DEVICE
if (r1 != r2) goto L51
L36:
com.kofax.kmc.kut.utilities.error.ErrorInfo r1 = com.kofax.kmc.kut.utilities.error.ErrorInfo.KMC_UI_ODE_NOT_SUPPORTED_FOR_THE_DOCUMENT_TYPE
com.kofax.kmc.kut.utilities.error.KmcException r2 = new com.kofax.kmc.kut.utilities.error.KmcException
r2.<init>(r1)
r4.handleException(r2)
int r1 = com.kofax.mobile.sdk.capture.WorkflowActivity.e
int r1 = r1 + 5
int r2 = r1 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.c = r2
int r1 = r1 % r0
if (r1 != 0) goto L4c
return
L4c:
r0 = 0
r0.hashCode()
throw r0
L51:
com.kofax.mobile.sdk.capture.parameter.ExtractionParameters$ExtractionType r0 = com.kofax.mobile.sdk.capture.parameter.ExtractionParameters.ExtractionType.OFF
if (r1 == r0) goto L7a
android.content.Intent r0 = new android.content.Intent
java.lang.Class r1 = r4.getExtractActivityClass()
r0.<init>(r4, r1)
T extends com.kofax.mobile.sdk.capture.parameter.IParameters r1 = r4.YA
java.lang.String r2 = "_com.kofax.mobile.sdk.capture.internal_parameters_"
r0.putExtra(r2, r1)
com.kofax.kmc.kut.utilities.CertificateValidatorListener r1 = r4.JI
java.lang.String r2 = "_com.kofax.mobile.sdk.capture._certificate_validator_listener_"
r0.putExtra(r2, r1)
com.kofax.mobile.sdk.capture.model.CaptureData r1 = r4.Zl
java.lang.String r2 = "_com.kofax.mobile.sdk.capture.internal_image_id_"
java.lang.String r1 = r1.processedImageId
r0.putExtra(r2, r1)
r1 = 4
r4.startActivityForResult(r0, r1)
return
L7a:
r4.tN()
r4.tF()
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.WorkflowActivity.tK():void");
}
private void tL() {
int i = 2 % 2;
Intent intent = new Intent();
ExtractorResponse extractorResponse = this.Zk;
if (extractorResponse != null) {
int i2 = e + 9;
c = i2 % 128;
int i3 = i2 % 2;
if (extractorResponse.results == 0) {
int i4 = c + 59;
e = i4 % 128;
if (i4 % 2 != 0) {
this.Zk.results = getDefaultReturnObject();
} else {
this.Zk.results = getDefaultReturnObject();
int i5 = 1 / 0;
}
}
((CaptureData) this.Zk.results).capturedImageId = this.Zl.capturedImageId;
((CaptureData) this.Zk.results).processedImageId = this.Zl.processedImageId;
intent.putExtra(getResultKey(), this.Zk.results);
intent.putExtra(getExceptionKey(), this.Zk.exceptionResponse);
} else {
CaptureData defaultReturnObject = getDefaultReturnObject();
defaultReturnObject.capturedImageId = this.Zl.capturedImageId;
defaultReturnObject.processedImageId = this.Zl.processedImageId;
intent.putExtra(getResultKey(), defaultReturnObject);
}
intent.putExtra(getParametersKey(), this.YA);
setResult(-1, intent);
Injector.destroyInjector();
finish();
}
private void tM() {
int i = 2 % 2;
int i2 = c + 97;
e = i2 % 128;
int i3 = i2 % 2;
setResult(0);
finish();
}
/* JADX WARN: Removed duplicated region for block: B:16:0x0071 */
/* JADX WARN: Removed duplicated region for block: B:19:0x0083 */
/* JADX WARN: Removed duplicated region for block: B:29:0x00c4 */
@Override // android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onActivityResult(int r6, int r7, android.content.Intent r8) {
/*
r5 = this;
r0 = 2
int r1 = r0 % r0
super.onActivityResult(r6, r7, r8)
r1 = 0
r2 = 1
if (r6 == r2) goto L1b
int r3 = com.kofax.mobile.sdk.capture.WorkflowActivity.c
int r3 = r3 + 111
int r4 = r3 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.e = r4
int r3 = r3 % r0
r4 = 3
if (r3 != 0) goto L19
if (r6 != r4) goto L46
goto L1b
L19:
if (r6 != r4) goto L46
L1b:
if (r7 != 0) goto L46
int r6 = com.kofax.mobile.sdk.capture.WorkflowActivity.e
int r6 = r6 + 53
int r7 = r6 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.c = r7
int r6 = r6 % r0
if (r6 == 0) goto L39
r5.Zb = r2
com.kofax.mobile.sdk.capture.model.CaptureData r6 = r5.Zl
java.lang.String r6 = r6.capturedImageId
r5.clearBitmap(r6)
com.kofax.mobile.sdk.capture.model.CaptureData r6 = r5.Zl
L33:
java.lang.String r6 = r6.processedImageId
r5.clearBitmap(r6)
goto L45
L39:
r5.Zb = r1
com.kofax.mobile.sdk.capture.model.CaptureData r6 = r5.Zl
java.lang.String r6 = r6.capturedImageId
r5.clearBitmap(r6)
com.kofax.mobile.sdk.capture.model.CaptureData r6 = r5.Zl
goto L33
L45:
return
L46:
r5.Zj = r8
if (r8 == 0) goto L5c
java.lang.String r3 = "_com.kofax.mobile.sdk.capture.internal_extraction_result_"
boolean r4 = r8.hasExtra(r3)
r2 = r2 ^ r4
if (r2 == 0) goto L54
goto L5c
L54:
java.io.Serializable r2 = r8.getSerializableExtra(r3)
com.kofax.mobile.sdk.capture.extraction.ExtractorResponse r2 = (com.kofax.mobile.sdk.capture.extraction.ExtractorResponse) r2
r5.Zk = r2
L5c:
if (r8 == 0) goto L81
java.lang.String r2 = "_com.kofax.mobile.sdk.capture.internal_image_id_"
boolean r3 = r8.hasExtra(r2)
if (r3 == 0) goto L81
int r3 = com.kofax.mobile.sdk.capture.WorkflowActivity.e
int r3 = r3 + 81
int r4 = r3 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.c = r4
int r3 = r3 % r0
if (r6 != 0) goto L79
com.kofax.mobile.sdk.capture.model.CaptureData r6 = r5.Zl
java.lang.String r3 = r8.getStringExtra(r2)
r6.capturedImageId = r3
L79:
com.kofax.mobile.sdk.capture.model.CaptureData r6 = r5.Zl
java.lang.String r8 = r8.getStringExtra(r2)
r6.processedImageId = r8
L81:
if (r7 != 0) goto Lc4
int r6 = com.kofax.mobile.sdk.capture.WorkflowActivity.e
int r6 = r6 + 11
int r7 = r6 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.c = r7
int r6 = r6 % r0
if (r6 != 0) goto Lae
com.kofax.mobile.sdk.capture.model.CaptureData r6 = r5.Zl
java.lang.String r6 = r6.capturedImageId
r5.clearBitmap(r6)
com.kofax.mobile.sdk.capture.model.CaptureData r6 = r5.Zl
java.lang.String r6 = r6.processedImageId
r5.clearBitmap(r6)
r5.finish()
int r6 = com.kofax.mobile.sdk.capture.WorkflowActivity.e
int r6 = r6 + 87
int r7 = r6 % 128
com.kofax.mobile.sdk.capture.WorkflowActivity.c = r7
int r6 = r6 % r0
if (r6 == 0) goto Lad
r6 = 71
int r6 = r6 / r1
Lad:
return
Lae:
com.kofax.mobile.sdk.capture.model.CaptureData r6 = r5.Zl
java.lang.String r6 = r6.capturedImageId
r5.clearBitmap(r6)
com.kofax.mobile.sdk.capture.model.CaptureData r6 = r5.Zl
java.lang.String r6 = r6.processedImageId
r5.clearBitmap(r6)
r5.finish()
r6 = 0
r6.hashCode()
throw r6
Lc4:
r5.tN()
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.WorkflowActivity.onActivityResult(int, int, android.content.Intent):void");
}
protected void clearBitmap(String str) {
int i = 2 % 2;
int i2 = c + 45;
e = i2 % 128;
if (i2 % 2 != 0) {
Bitmap removeImage = this.YK.removeImage(str);
if (removeImage != null && (!removeImage.isRecycled())) {
int i3 = e + 83;
c = i3 % 128;
int i4 = i3 % 2;
removeImage.recycle();
}
int i5 = e + 47;
c = i5 % 128;
int i6 = i5 % 2;
return;
}
this.YK.removeImage(str);
Object obj = null;
obj.hashCode();
throw null;
}
private void tN() {
int i;
int i2 = 2 % 2;
int i3 = c + 73;
e = i3 % 128;
if (i3 % 2 == 0) {
i = (this.Zb + 1) >> 18;
} else {
int i4 = this.Zb + 1;
this.Zb = i4;
i = i4 % 6;
}
this.Zb = i;
}
@Override // android.app.Activity
public void onPause() {
int i = 2 % 2;
int i2 = c + 83;
e = i2 % 128;
if (i2 % 2 == 0) {
getBaseContext();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
i(new char[]{24, 21, 27, '\b', 26, '*', 21, 29, 27, 16, 14, '\"', '\"', '&', 19, 5, 19, '.', '\t', '/', 31, 27, '\t', ')', 24, 23}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.error_ekyc_passport_1002_text).substring(76, 77).length() + 55), TextUtils.indexOf((CharSequence) "", '0', 0) + 27, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
g(new char[]{46644, 12667, 47255, 8238, 43862, 4740, 39477, 1401, 36079, 29702, 65345, 26349, 60952, 27059, 53501, 22537, 50088, 19152}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(7) + 34603, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
int i3 = c + 27;
e = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 2 / 2;
}
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 493, (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 5, (char) ((-1) - ExpandableListView.getPackedPositionChild(0L)))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 486, View.getDefaultSize(0, 0) + 5, (char) Color.alpha(0))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).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:6:0x0071, code lost:
if (r2 > 99999) goto L11;
*/
@Override // 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 r18) {
/*
Method dump skipped, instructions count: 878
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.WorkflowActivity.attachBaseContext(android.content.Context):void");
}
@Override // android.app.Activity
public void onStart() {
int i = 2 % 2;
int i2 = e + 35;
c = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = c + 115;
e = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
protected boolean isOdeSupported() {
int i = 2 % 2;
int i2 = e;
int i3 = i2 + 47;
c = i3 % 128;
int i4 = i3 % 2;
int i5 = i2 + 23;
c = i5 % 128;
if (i5 % 2 == 0) {
return false;
}
Object obj = null;
obj.hashCode();
throw null;
}
}