what-the-bank/sources/com/scb/phone/view/activity/additionaldocument/CaptureDocumentActivity.java

1625 lines
70 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.additionaldocument;
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.CountDownTimer;
import android.os.Process;
import android.os.SystemClock;
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 android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.OnClick;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.kofax.kmc.kui.uicontrols.CameraInitializationEvent;
import com.kofax.kmc.kui.uicontrols.CameraInitializationListener;
import com.kofax.kmc.kui.uicontrols.ImageCaptureView;
import com.kofax.kmc.kui.uicontrols.ImageCapturedEvent;
import com.kofax.kmc.kui.uicontrols.ImageCapturedListener;
import com.kofax.kmc.kui.uicontrols.captureanimations.DocumentCaptureExperience;
import com.kofax.kmc.kui.uicontrols.data.Flash;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity;
import com.scb.phone.view.activity.additionaldocument.CropDocumentActivity;
import com.scb.phone.view.activity.hml.HmlDocumentListActivity;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractC13175fSw;
import o.C1100VpK;
import o.C12891fKc;
import o.C12914fKz;
import o.C14866gag;
import o.C14954gcs;
import o.C14957gcv;
import o.C2411aeB;
import o.C2413aeD;
import o.C2457aev;
import o.IRS;
import o.InterfaceC13391fZD;
import o.InterfaceC14894gbR;
import o.InterfaceC9018dbm;
import o.ZI;
import o.fSJ;
import o.fSQ;
import o.gdZ;
import o.guQ;
import o.xzZ;
import org.bouncycastle.crypto.signers.PSSSigner;
/* loaded from: classes4.dex */
public class CaptureDocumentActivity extends Hilt_CaptureDocumentActivity implements InterfaceC9018dbm {
private static int D;
public static final Sts b;
private static char[] q;
private static int s;
private static char t;
private static int u;
private static short[] v;
private static int w;
private static byte[] y;
@BindView
public ImageView captureButton;
@BindView
public ImageView coachmarkImage;
@BindView
public ImageCaptureView imageCaptureView;
private DocumentCaptureExperience l;
/* renamed from: o, reason: collision with root package name */
private CountDownTimer f6551o;
@InterfaceC13391fZD
public C2457aev presenter;
private fSJ r;
@BindView
public TextView seeInstructionsText;
private static final byte[] $$g = {Ascii.ESC, 74, ISO7816.INS_UPDATE_RECORD, 124};
private static final int $$h = 48;
private static int $10 = 0;
private static int $11 = 1;
private static int x = 0;
private final ImageCapturedListener k = new ImageCapturedListener(this) { // from class: o.dry
private CaptureDocumentActivity b;
@Override // com.kofax.kmc.kui.uicontrols.ImageCapturedListener
public final void onImageCaptured(ImageCapturedEvent imageCapturedEvent) {
CaptureDocumentActivity.d(this.b, imageCapturedEvent);
}
{
this.b = this;
}
};
private final CameraInitializationListener m = new CameraInitializationListener(this) { // from class: o.drx
private CaptureDocumentActivity c;
@Override // com.kofax.kmc.kui.uicontrols.CameraInitializationListener
public final void onCameraInitialized(CameraInitializationEvent cameraInitializationEvent) {
CaptureDocumentActivity.d(this.c);
}
{
this.c = this;
}
};
private final long p = -1;
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x002e). 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 az(short r6, short r7, byte r8, java.lang.Object[] r9) {
/*
int r8 = 120 - r8
byte[] r0 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.$$g
int r6 = r6 * 4
int r6 = r6 + 4
int r7 = r7 * 3
int r1 = 1 - r7
byte[] r1 = new byte[r1]
r2 = 0
int r7 = 0 - r7
if (r0 != 0) goto L17
r3 = r8
r4 = r2
r8 = r6
goto L2e
L17:
r3 = r2
L18:
byte r4 = (byte) r8
r1[r3] = r4
if (r3 != r7) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L25:
int r3 = r3 + 1
r4 = r0[r6]
r5 = r8
r8 = r6
r6 = r4
r4 = r3
r3 = r5
L2e:
int r6 = -r6
int r6 = r6 + r3
int r8 = r8 + 1
r3 = r4
r5 = r8
r8 = r6
r6 = r5
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.az(short, short, byte, java.lang.Object[]):void");
}
public static /* synthetic */ Object b(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i;
int i5 = (i * (-623)) + (i2 * (-623)) + (i4 * (-624)) + ((i4 | i2) * 624) + ((i | i2) * 624);
return i5 != 1 ? i5 != 2 ? a(objArr) : c(objArr) : b(objArr);
}
public static final /* synthetic */ CountDownTimer XY_(CaptureDocumentActivity captureDocumentActivity) {
int i = 2 % 2;
int i2 = x;
int i3 = i2 + 13;
D = i3 % 128;
int i4 = i3 % 2;
CountDownTimer countDownTimer = captureDocumentActivity.f6551o;
if (i4 == 0) {
throw null;
}
int i5 = i2 + 75;
D = i5 % 128;
int i6 = i5 % 2;
return countDownTimer;
}
@OnClick
public final void onFlashLightClicked() {
int i = 2 % 2;
try {
ImageCaptureView imageCaptureView = this.imageCaptureView;
ImageCaptureView imageCaptureView2 = null;
if (imageCaptureView != null) {
int i2 = D + 107;
x = i2 % 128;
int i3 = i2 % 2;
} else {
C14957gcv.a("");
imageCaptureView = null;
}
ImageCaptureView imageCaptureView3 = this.imageCaptureView;
if (imageCaptureView3 != null) {
int i4 = D + 113;
x = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 90 / 0;
}
imageCaptureView2 = imageCaptureView3;
} else {
C14957gcv.a("");
}
imageCaptureView.setFlash(imageCaptureView2.getFlash() == Flash.TORCH ? Flash.OFF : Flash.TORCH);
} catch (Exception e) {
guQ.e(e);
}
}
@OnClick
public final void onSeeInstructionsClicked() {
int i = 2 % 2;
int i2 = x + 119;
D = i2 % 128;
String str = null;
if (i2 % 2 == 0) {
throw null;
}
C2457aev c2457aev = this.presenter;
if (c2457aev == null) {
C14957gcv.a("");
c2457aev = null;
}
String name = C1100VpK.IeS.HML.name();
String str2 = c2457aev.e;
if (str2 == null) {
int i3 = x + 115;
D = i3 % 128;
int i4 = i3 % 2;
C14957gcv.a("");
} else {
str = str2;
}
if (gdZ.a(name, str, true)) {
C2411aeB c2411aeB = new C2411aeB();
if (c2457aev.f != 0) {
c2411aeB.e(c2457aev.f);
}
}
}
@OnClick
public final void onCaptureClicked() {
int i = 2 % 2;
C2457aev c2457aev = this.presenter;
if (c2457aev != null) {
int i2 = D + 69;
x = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
} else {
C14957gcv.a("");
c2457aev = null;
}
if (c2457aev.d) {
c2457aev.d = false;
ZI.IeS ieS = new ZI.IeS() { // from class: o.aey
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9018dbm) obj).e();
}
};
if (c2457aev.f == 0) {
int i3 = x + 63;
D = i3 % 128;
int i4 = i3 % 2;
return;
}
ieS.e(c2457aev.f);
}
}
@OnClick
public final void onBackClicked() {
int i = 2 % 2;
C2457aev c2457aev = this.presenter;
if (c2457aev != null) {
int i2 = x + 97;
D = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 89 / 0;
}
} else {
C14957gcv.a("");
int i4 = x + 47;
D = i4 % 128;
int i5 = i4 % 2;
c2457aev = null;
}
c2457aev.a();
}
@OnClick
public final void onCoachMarkClicked() {
int i = 2 % 2;
C2457aev c2457aev = this.presenter;
if (c2457aev != null) {
int i2 = x + 55;
D = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 25 / 0;
}
} else {
C14957gcv.a("");
c2457aev = null;
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.aeC
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9018dbm) obj).b(false);
}
};
if (!(!(c2457aev.f != 0))) {
int i4 = D + 101;
x = i4 % 128;
int i5 = i4 % 2;
ieS.e(c2457aev.f);
}
C2413aeD c2413aeD = new C2413aeD();
if (c2457aev.f == 0) {
int i6 = x + 43;
D = i6 % 128;
int i7 = i6 % 2;
return;
}
int i8 = x + 97;
D = i8 % 128;
if (i8 % 2 != 0) {
c2413aeD.e(c2457aev.f);
} else {
c2413aeD.e(c2457aev.f);
int i9 = 13 / 0;
}
}
/* loaded from: classes4.dex */
public static final class Sts {
private Sts() {
}
public static Intent Yb_(Context context, String str, String str2, String str3, String str4) {
C14957gcv.e(context, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
C14957gcv.e(str4, "");
Intent intent = new Intent(context, (Class<?>) CaptureDocumentActivity.class);
intent.putExtra("APPLICATION_ID_TAG", str);
intent.putExtra("DOCUMENT_TYPE_TAG", str2);
intent.putExtra("PRODUCT_TYPE_TAG", str3);
intent.putExtra("FLOW_TAG", str4);
return intent;
}
public /* synthetic */ Sts(byte b) {
this();
}
}
/* JADX WARN: Removed duplicated region for block: B:37:0x01ce */
/* JADX WARN: Removed duplicated region for block: B:56:0x0288 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void ay(short r17, int r18, int r19, int r20, byte r21, java.lang.Object[] r22) {
/*
Method dump skipped, instructions count: 759
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.ay(short, int, int, int, byte, java.lang.Object[]):void");
}
/* JADX WARN: Removed duplicated region for block: B:105:0x07ad */
/* JADX WARN: Removed duplicated region for block: B:11:0x06a1 */
/* JADX WARN: Removed duplicated region for block: B:14:0x06af */
/* JADX WARN: Removed duplicated region for block: B:17:0x06c5 */
/* JADX WARN: Removed duplicated region for block: B:20:0x06db */
/* JADX WARN: Removed duplicated region for block: B:23:0x06f1 */
/* JADX WARN: Removed duplicated region for block: B:26:0x0711 */
/* JADX WARN: Removed duplicated region for block: B:29:0x0731 */
/* JADX WARN: Removed duplicated region for block: B:32:0x0747 */
/* JADX WARN: Removed duplicated region for block: B:35:0x075d */
/* JADX WARN: Removed duplicated region for block: B:38:0x077d */
/* JADX WARN: Removed duplicated region for block: B:41:0x078b */
/* JADX WARN: Removed duplicated region for block: B:44:0x0799 */
/* JADX WARN: Removed duplicated region for block: B:47:0x07ab */
/* JADX WARN: Removed duplicated region for block: B:50:0x07b9 */
/* JADX WARN: Removed duplicated region for block: B:53:0x07c2 */
/* JADX WARN: Removed duplicated region for block: B:61:0x07e1 */
/* JADX WARN: Removed duplicated region for block: B:64:0x07ee */
/* JADX WARN: Removed duplicated region for block: B:67:0x080f */
/* JADX WARN: Removed duplicated region for block: B:70:0x0824 */
/* JADX WARN: Removed duplicated region for block: B:87:0x08a0 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0690 */
/* JADX WARN: Removed duplicated region for block: B:90:0x08a8 */
/* JADX WARN: Removed duplicated region for block: B:92:? A[RETURN, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:93:0x08a3 */
/* JADX WARN: Removed duplicated region for block: B:96:0x0868 */
@Override // com.scb.phone.view.activity.additionaldocument.Hilt_CaptureDocumentActivity, 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 r24) {
/*
Method dump skipped, instructions count: 2304
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.onCreate(android.os.Bundle):void");
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x001b, code lost:
o.C14957gcv.a("");
r1 = null;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0019, code lost:
if (r1 == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost:
if (r1 == null) goto L9;
*/
@Override // o.InterfaceC9018dbm
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void j() {
/*
r3 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x
int r1 = r1 + 35
int r2 = r1 % 128
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D = r2
int r1 = r1 % r0
if (r1 != 0) goto L17
com.kofax.kmc.kui.uicontrols.captureanimations.DocumentCaptureExperience r1 = r3.l
r2 = 76
int r2 = r2 / 0
if (r1 != 0) goto L21
goto L1b
L17:
com.kofax.kmc.kui.uicontrols.captureanimations.DocumentCaptureExperience r1 = r3.l
if (r1 != 0) goto L21
L1b:
java.lang.String r1 = ""
o.C14957gcv.a(r1)
r1 = 0
L21:
r1.takePictureContinually()
int r1 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x
int r1 = r1 + 99
int r2 = r1 % 128
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D = r2
int r1 = r1 % r0
if (r1 != 0) goto L33
r0 = 57
int r0 = r0 / 0
L33:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.j():void");
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x001e, code lost:
if (r4 == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0019, code lost:
if (r4 == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0020, code lost:
o.C14957gcv.a("");
r4 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x + 3;
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D = r4 % 128;
r4 = r4 % 2;
r4 = null;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static /* synthetic */ java.lang.Object a(java.lang.Object[] r4) {
/*
r0 = 0
r4 = r4[r0]
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity r4 = (com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity) r4
r1 = 2
int r2 = r1 % r1
int r2 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x
int r2 = r2 + 83
int r3 = r2 % 128
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D = r3
int r2 = r2 % r1
r3 = 0
if (r2 != 0) goto L1c
com.kofax.kmc.kui.uicontrols.captureanimations.DocumentCaptureExperience r4 = r4.l
r2 = 8
int r2 = r2 / r0
if (r4 != 0) goto L2f
goto L20
L1c:
com.kofax.kmc.kui.uicontrols.captureanimations.DocumentCaptureExperience r4 = r4.l
if (r4 != 0) goto L2f
L20:
java.lang.String r4 = ""
o.C14957gcv.a(r4)
int r4 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x
int r4 = r4 + 3
int r0 = r4 % 128
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D = r0
int r4 = r4 % r1
r4 = r3
L2f:
r4.stopCapture()
return r3
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.a(java.lang.Object[]):java.lang.Object");
}
private static void ax(char[] cArr, byte b2, int i, Object[] objArr) {
int i2;
int i3 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = q;
float f = BitmapDescriptorFactory.HUE_RED;
long j = 0;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i4 = 0;
while (i4 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i4])};
Object obj = xzZ.y.get(-1987398494);
if (obj == null) {
Class cls = (Class) xzZ.c((ExpandableListView.getPackedPositionForGroup(0) > j ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == j ? 0 : -1)) + 298, 5 - View.resolveSizeAndState(0, 0, 0), (char) (1 - (ViewConfiguration.getScrollFriction() > f ? 1 : (ViewConfiguration.getScrollFriction() == f ? 0 : -1))));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr3 = new Object[1];
az(b3, b4, (byte) (b4 + 3), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj);
}
cArr3[i4] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i4++;
f = BitmapDescriptorFactory.HUE_RED;
j = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
try {
Object[] objArr4 = {Integer.valueOf(t)};
Object obj2 = xzZ.y.get(-1987398494);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 298, Color.blue(0) + 5, (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr5 = new Object[1];
az(b5, b6, (byte) (b6 + 3), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj2);
}
char charValue = ((Character) ((Method) obj2).invoke(null, objArr4)).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) {
irs.e = 0;
while (irs.e < i2) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
int i5 = $10 + 81;
$11 = i5 % 128;
if (i5 % 2 == 0) {
cArr4[irs.e] = (char) (irs.b * b2);
cArr4[irs.e] = (char) (irs.c % b2);
} else {
cArr4[irs.e] = (char) (irs.b - b2);
cArr4[irs.e + 1] = (char) (irs.c - b2);
}
} else {
Object[] objArr6 = {irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs};
Object obj3 = xzZ.y.get(822107368);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 232, 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) (View.MeasureSpec.getMode(0) + 22024));
byte b7 = (byte) 0;
byte b8 = b7;
Object[] objArr7 = new Object[1];
az(b7, b8, b8, objArr7);
obj3 = cls3.getMethod((String) objArr7[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, obj3);
}
if (((Integer) ((Method) obj3).invoke(null, objArr6)).intValue() == irs.j) {
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj4 = xzZ.y.get(-1152873385);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> 16) + 327, TextUtils.getCapsMode("", 0, 0) + 5, (char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1));
byte b9 = (byte) 0;
byte b10 = b9;
Object[] objArr9 = new Object[1];
az(b9, b10, (byte) (b10 + 2), objArr9);
obj4 = cls4.getMethod((String) objArr9[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, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr8)).intValue();
int i6 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i6];
int i7 = $11 + 57;
$10 = i7 % 128;
int i8 = i7 % 2;
} else if (irs.a == irs.d) {
int i9 = $10 + 111;
$11 = i9 % 128;
int i10 = i9 % 2;
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i11 = (irs.a * charValue) + irs.f;
int i12 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i11];
cArr4[irs.e + 1] = cArr2[i12];
} else {
int i13 = (irs.a * charValue) + irs.j;
int i14 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i13];
cArr4[irs.e + 1] = cArr2[i14];
}
}
irs.e += 2;
}
}
for (int i15 = 0; i15 < i; i15++) {
cArr4[i15] = (char) (cArr4[i15] ^ 13722);
}
objArr[0] = new String(cArr4);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
@Override // o.InterfaceC9018dbm
public final void d() {
int i = 2 % 2;
TextView textView = this.seeInstructionsText;
DocumentCaptureExperience documentCaptureExperience = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
C12914fKz.e(new Object[]{textView, getString(R.string.auto_kofax_camera_tips_text)}, -2052661820, 2052661831, (int) System.currentTimeMillis());
DocumentCaptureExperience documentCaptureExperience2 = this.l;
if (documentCaptureExperience2 == null) {
int i2 = D + 67;
x = i2 % 128;
int i3 = i2 % 2;
C14957gcv.a("");
int i4 = x + 53;
D = i4 % 128;
int i5 = i4 % 2;
} else {
documentCaptureExperience = documentCaptureExperience2;
}
documentCaptureExperience.getCapturedMessage().setMessage(getString(R.string.auto_kofax_camera_captured));
}
/* loaded from: classes4.dex */
final /* synthetic */ class HBt extends C14954gcs implements InterfaceC14894gbR<String, C14866gag> {
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(String str) {
final String str2 = str;
C14957gcv.e(str2, "");
final C2457aev c2457aev = (C2457aev) this.f;
C14957gcv.e(str2, "");
if (c2457aev.f != 0) {
c2457aev.f.ar_();
}
ZI.IeS ieS = new ZI.IeS(str2, c2457aev) { // from class: o.aeI
private String a;
private C2457aev b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2457aev.a(this.a, this.b, (InterfaceC9018dbm) obj);
}
{
this.a = str2;
this.b = c2457aev;
}
};
if (c2457aev.f != 0) {
ieS.e(c2457aev.f);
}
return C14866gag.c;
}
HBt(Object obj) {
super(1, obj, C2457aev.class, "saveBitmapToFileSuccess", "saveBitmapToFileSuccess(Ljava/lang/String;)V");
}
}
/* loaded from: classes4.dex */
final /* synthetic */ class LWm extends C14954gcs implements InterfaceC14894gbR<Throwable, C14866gag> {
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C2457aev c2457aev = (C2457aev) this.f;
C14957gcv.e(th2, "");
if (c2457aev.b(th2)) {
c2457aev.d(c2457aev.j.e(th2));
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.aeJ
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9018dbm) obj).c(true);
}
};
if (c2457aev.f != 0) {
ieS.e(c2457aev.f);
}
return C14866gag.c;
}
LWm(Object obj) {
super(1, obj, C2457aev.class, "saveBitmapToFileError", "saveBitmapToFileError(Ljava/lang/Throwable;)V");
}
}
/* loaded from: classes4.dex */
public static final class IeS extends CountDownTimer {
private CaptureDocumentActivity d;
@Override // android.os.CountDownTimer
public final void onTick(long j) {
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(CaptureDocumentActivity captureDocumentActivity, long j) {
super(j, 1000L);
this.d = captureDocumentActivity;
}
@Override // android.os.CountDownTimer
public final void onFinish() {
CountDownTimer XY_ = CaptureDocumentActivity.XY_(this.d);
if (XY_ != null) {
XY_.cancel();
}
ImageView imageView = this.d.captureButton;
if (imageView == null) {
C14957gcv.a("");
imageView = null;
}
imageView.setVisibility(0);
}
}
@Override // o.InterfaceC9018dbm
public void a(String str, String str2, String str3, String str4) {
String str5;
int i = 2 % 2;
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
C14957gcv.e(str4, "");
CropDocumentActivity.Sts sts = CropDocumentActivity.b;
CaptureDocumentActivity captureDocumentActivity = this;
String stringExtra = getIntent().getStringExtra("FLOW_TAG");
if (stringExtra == null) {
int i2 = x + 65;
D = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 71 / 0;
}
str5 = "";
} else {
str5 = stringExtra;
}
startActivity(CropDocumentActivity.Sts.Ye_(captureDocumentActivity, str2, str, str3, str4, str5, false));
int i4 = D + 45;
x = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9018dbm
public final void c(boolean z) {
int i = 2 % 2;
ImageCaptureView imageCaptureView = this.imageCaptureView;
Object obj = null;
if (imageCaptureView != null) {
int i2 = x + 123;
D = i2 % 128;
int i3 = i2 % 2;
} else {
C14957gcv.a("");
int i4 = D + 113;
x = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 5 % 5;
}
imageCaptureView = null;
}
imageCaptureView.setVisibility(z ? 0 : 4);
int i6 = D + 119;
x = i6 % 128;
if (i6 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
@Override // o.InterfaceC9018dbm
public final void Ya_(Bitmap bitmap, String str) {
int i = 2 % 2;
C14957gcv.e(bitmap, "");
C14957gcv.e(str, "");
AbstractC13175fSw<String> ayZ_ = C12891fKc.ayZ_(this, bitmap);
C2457aev c2457aev = this.presenter;
C2457aev c2457aev2 = null;
if (c2457aev == null) {
C14957gcv.a("");
c2457aev = null;
}
final HBt hBt = new HBt(c2457aev);
fSQ<? super String> fsq = new fSQ(hBt) { // from class: o.drz
private InterfaceC14894gbR b;
@Override // o.fSQ
public final void c(Object obj) {
CaptureDocumentActivity.a(this.b, obj);
}
{
this.b = hBt;
}
};
C2457aev c2457aev3 = this.presenter;
if (c2457aev3 != null) {
int i2 = D + 11;
x = i2 % 128;
int i3 = i2 % 2;
c2457aev2 = c2457aev3;
} else {
C14957gcv.a("");
}
final LWm lWm = new LWm(c2457aev2);
this.r = ayZ_.b(fsq, new fSQ(lWm) { // from class: o.drG
private InterfaceC14894gbR b;
@Override // o.fSQ
public final void c(Object obj) {
CaptureDocumentActivity.b(new Object[]{this.b, obj}, -1623733155, 1623733157, (int) System.currentTimeMillis());
}
{
this.b = lWm;
}
});
}
@Override // o.InterfaceC9018dbm
public final void b() {
int i = 2 % 2;
int i2 = D + 125;
int i3 = i2 % 128;
x = i3;
ImageView imageView = null;
if (i2 % 2 != 0) {
imageView.hashCode();
throw null;
}
ImageView imageView2 = this.captureButton;
if (imageView2 != null) {
int i4 = i3 + 15;
D = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 3 % 5;
}
imageView = imageView2;
} else {
C14957gcv.a("");
}
imageView.setVisibility(0);
}
private static /* synthetic */ Object b(Object[] objArr) {
CaptureDocumentActivity captureDocumentActivity = (CaptureDocumentActivity) objArr[0];
int i = 2 % 2;
captureDocumentActivity.f6551o = new IeS(captureDocumentActivity, captureDocumentActivity.l()).start();
int i2 = x + 99;
D = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 76 / 0;
}
return null;
}
@Override // o.InterfaceC9018dbm
public final void e() {
int i = 2 % 2;
int i2 = x + 119;
int i3 = i2 % 128;
D = i3;
ImageCaptureView imageCaptureView = null;
if (i2 % 2 == 0) {
imageCaptureView.hashCode();
throw null;
}
ImageCaptureView imageCaptureView2 = this.imageCaptureView;
if (imageCaptureView2 != null) {
int i4 = i3 + 23;
x = i4 % 128;
int i5 = i4 % 2;
imageCaptureView = imageCaptureView2;
} else {
C14957gcv.a("");
}
imageCaptureView.forceTakePicture();
}
@Override // o.InterfaceC9018dbm
public final void b(boolean z) {
int i;
int i2 = 2 % 2;
int i3 = x + 83;
D = i3 % 128;
int i4 = i3 % 2;
ImageView imageView = this.coachmarkImage;
if (imageView == null) {
C14957gcv.a("");
imageView = null;
}
if (z) {
int i5 = D;
int i6 = i5 + 71;
x = i6 % 128;
int i7 = i6 % 2;
int i8 = i5 + 65;
x = i8 % 128;
int i9 = i8 % 2;
i = 0;
} else {
i = 8;
}
imageView.setVisibility(i);
}
@Override // o.InterfaceC9018dbm
public final void c() {
int i = 2 % 2;
int i2 = x + 49;
D = i2 % 128;
int i3 = i2 % 2;
finish();
int i4 = D + 9;
x = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9018dbm
public final void a() {
int i = 2 % 2;
int i2 = D + 35;
x = i2 % 128;
if (i2 % 2 == 0) {
Intent afW_ = afW_();
afW_.setFlags(603979776);
startActivity(afW_);
int i3 = D + 57;
x = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 40 / 0;
return;
}
return;
}
Intent afW_2 = afW_();
afW_2.setFlags(603979776);
startActivity(afW_2);
Object obj = null;
obj.hashCode();
throw null;
}
public Intent afW_() {
int i = 2 % 2;
Intent intent = new Intent(this, (Class<?>) HmlDocumentListActivity.class);
int i2 = x + 125;
D = i2 % 128;
int i3 = i2 % 2;
return intent;
}
@Override // com.scb.phone.view.activity.additionaldocument.Hilt_CaptureDocumentActivity, 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;
int i2 = x + 53;
D = i2 % 128;
C2457aev c2457aev = null;
if (i2 % 2 != 0) {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
ay((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 97), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 1341217785, (ViewConfiguration.getEdgeSlop() >> 16) - 37, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_verify_email_text).substring(27, 28).codePointAt(0) + 1807547255, (byte) ((ViewConfiguration.getScrollBarFadeDuration() >> 16) - 112), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 126), 1341217790 + ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.prepaid_travel_conversion_landing_remark).substring(34, 35).codePointAt(0) - 69, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 1807547276, (byte) (Color.alpha(0) + 119), 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 = D + 17;
x = i3 % 128;
try {
if (i3 % 2 == 0) {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(TextUtils.indexOf("", "", 0) + 492, TextUtils.indexOf((CharSequence) "", '0') + 6, (char) (ViewConfiguration.getLongPressTimeout() >> 16))).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((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)) + 487, 5 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (char) (ViewConfiguration.getKeyRepeatTimeout() >> 16))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} else {
Object obj3 = xzZ.y.get(125943855);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(492 - ExpandableListView.getPackedPositionType(0L), (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 5, (char) Color.red(0))).getMethod("a", null);
xzZ.y.put(125943855, obj3);
}
Object invoke2 = ((Method) obj3).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj4 = xzZ.y.get(1633456013);
if (obj4 == null) {
obj4 = ((Class) xzZ.c((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 488, (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) - 1))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj4);
}
((Method) obj4).invoke(invoke2, objArr4);
int i4 = 44 / 0;
}
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
C2457aev c2457aev2 = this.presenter;
if (c2457aev2 != null) {
c2457aev = c2457aev2;
} else {
C14957gcv.a("");
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.aeL
@Override // o.ZI.IeS
public final void e(Object obj5) {
((InterfaceC9018dbm) obj5).c();
}
};
if (c2457aev.f != 0) {
int i5 = x + 87;
D = i5 % 128;
int i6 = i5 % 2;
ieS.e(c2457aev.f);
}
super.onPause();
return;
}
getBaseContext();
c2457aev.hashCode();
throw null;
}
@Override // 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;
C2457aev c2457aev = this.presenter;
Object obj = null;
if (c2457aev != null) {
int i2 = x + 11;
D = i2 % 128;
int i3 = i2 % 2;
} else {
C14957gcv.a("");
c2457aev = null;
}
c2457aev.w_();
getWindow().clearFlags(128);
DocumentCaptureExperience documentCaptureExperience = this.l;
if (documentCaptureExperience == null) {
int i4 = D + 81;
x = i4 % 128;
if (i4 % 2 != 0) {
C14957gcv.a("");
obj.hashCode();
throw null;
}
C14957gcv.a("");
documentCaptureExperience = null;
}
documentCaptureExperience.removeOnImageCapturedListener(this.k);
DocumentCaptureExperience documentCaptureExperience2 = this.l;
if (documentCaptureExperience2 == null) {
int i5 = x + 95;
D = i5 % 128;
if (i5 % 2 == 0) {
C14957gcv.a("");
obj.hashCode();
throw null;
}
C14957gcv.a("");
documentCaptureExperience2 = null;
}
documentCaptureExperience2.destroy();
fSJ fsj = this.r;
if (fsj != null) {
int i6 = x + 1;
D = i6 % 128;
int i7 = i6 % 2;
fsj.dispose();
}
CountDownTimer countDownTimer = this.f6551o;
if (countDownTimer != null) {
int i8 = D + 17;
x = i8 % 128;
if (i8 % 2 != 0) {
countDownTimer.cancel();
obj.hashCode();
throw null;
}
countDownTimer.cancel();
}
super.onDestroy();
int i9 = x + 41;
D = i9 % 128;
if (i9 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public void onBackPressed() {
int i = 2 % 2;
int i2 = D;
int i3 = i2 + 103;
x = i3 % 128;
int i4 = i3 % 2;
C2457aev c2457aev = this.presenter;
if (c2457aev != null) {
int i5 = i2 + 51;
x = i5 % 128;
int i6 = i5 % 2;
} else {
C14957gcv.a("");
c2457aev = null;
}
c2457aev.a();
}
@Override // com.scb.phone.view.activity.additionaldocument.Hilt_CaptureDocumentActivity, 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();
Object obj = null;
if (baseContext == null) {
Object[] objArr = new Object[1];
ay((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_kofax_verify_tutorial_dont_desc).substring(0, 2).length() - 65), 1341217798 - View.MeasureSpec.getSize(0), (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) - 38, (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 1807547286, (byte) ((-112) - Color.green(0)), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay((short) ((-114) - TextUtils.indexOf((CharSequence) "", '0', 0)), 1341217726 + ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(6), TextUtils.getTrimmedLength("") - 37, 1807547280 + ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.landing_quantity).substring(0, 9).length(), (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 85), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = D + 115;
x = i2 % 128;
if (i2 % 2 != 0) {
baseContext.getApplicationContext();
obj.hashCode();
throw null;
}
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i3 = D + 93;
x = i3 % 128;
int i4 = i3 % 2;
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getEdgeSlop() >> 16) + 492, 5 - View.resolveSize(0, 0), (char) (1 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 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(1378719468);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(487 - TextUtils.getCapsMode("", 0, 0), 5 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) View.combineMeasuredStates(0, 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.scb.phone.view.activity.additionaldocument.Hilt_CaptureDocumentActivity, 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
public void attachBaseContext(Context context) {
Context context2;
int i = 2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
ax(new char[]{11, 4, 4, 7, '\n', 1, 1, 7, 14, 16, '\b', 1, 6, 14, 17, '\n', 13861, 13861}, (byte) ((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 59), 18 - (ViewConfiguration.getLongPressTimeout() >> 16), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{20, '\f', 15, 1, 13943}, (byte) ((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 121), (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 6, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
if (context != null) {
context2 = context.getApplicationContext();
int i2 = x + 45;
D = i2 % 128;
int i3 = i2 % 2;
} else {
context2 = context;
}
if (context2 != null) {
int i4 = D + 99;
x = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 492, Drawable.resolveOpacity(0, 0) + 5, (char) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) - 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
ay((short) (65 - KeyEvent.normalizeMetaState(0)), 1341217842 - Color.green(0), (ViewConfiguration.getJumpTapTimeout() >> 16) - 37, 1807547239 - Color.alpha(0), (byte) (Gravity.getAbsoluteGravity(0, 0) - 34), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
ay((short) (118 - (Process.myPid() >> 22)), 1341217890 + (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 38, 1807547291 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (byte) (Color.argb(0, 0, 0, 0) + 61), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
ay((short) ((ViewConfiguration.getWindowTouchSlop() >> 8) - 90), 1341217955 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (-37) - TextUtils.getOffsetBefore("", 0), 1807547287 - (KeyEvent.getMaxKeyCode() >> 16), (byte) (KeyEvent.normalizeMetaState(0) + 82), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
ay((short) ((-72) - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))), 1341218017 - ExpandableListView.getPackedPositionChild(0L), (-37) - TextUtils.getOffsetAfter("", 0), 1807547294 - KeyEvent.getDeadChar(0, 0), (byte) ((-127) - Color.argb(0, 0, 0, 0)), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
ay((short) ((ViewConfiguration.getTouchSlop() >> 8) + 16), (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 1341218092, (-37) - ExpandableListView.getPackedPositionType(0L), (ViewConfiguration.getJumpTapTimeout() >> 16) + 1807547247, (byte) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 17), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
ax(new char[]{'\r', '\n', 22, '\b', 3, 0, '\f', 22, 23, '\r', 22, 17, 23, 15, '\b', 22, 13741, 13741, 19, '\r', 22, '\n', 16, 19, 20, 18, 24, '\r', 22, 14, 18, '\n', '\b', '\f', 22, 11}, (byte) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 1), 36 - TextUtils.getCapsMode("", 0, 0), objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - TextUtils.indexOf("", "", 0, 0), (ViewConfiguration.getKeyRepeatDelay() >> 16) + 5, (char) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))))).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);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}
public static /* synthetic */ void a(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
int i = 2 % 2;
int i2 = x + 11;
D = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(interfaceC14894gbR, "");
if (i3 != 0) {
interfaceC14894gbR.invoke(obj);
return;
}
interfaceC14894gbR.invoke(obj);
Object obj2 = null;
obj2.hashCode();
throw null;
}
private static /* synthetic */ Object c(Object[] objArr) {
InterfaceC14894gbR interfaceC14894gbR = (InterfaceC14894gbR) objArr[0];
Object obj = objArr[1];
int i = 2 % 2;
int i2 = D + 51;
x = i2 % 128;
int i3 = i2 % 2;
Object obj2 = null;
C14957gcv.e(interfaceC14894gbR, "");
if (i3 == 0) {
interfaceC14894gbR.invoke(obj);
int i4 = D + 121;
x = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 13 / 0;
}
return null;
}
interfaceC14894gbR.invoke(obj);
obj2.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:26:0x002f, code lost:
if (r5 != null) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0020, code lost:
if (r5 != null) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x0032, code lost:
o.C14957gcv.a("");
r5 = null;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static /* synthetic */ void d(com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity r5, com.kofax.kmc.kui.uicontrols.ImageCapturedEvent r6) {
/*
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D
int r1 = r1 + 59
int r2 = r1 % 128
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x = r2
int r1 = r1 % r0
java.lang.String r2 = ""
if (r1 == 0) goto L23
o.C14957gcv.e(r5, r2)
com.kofax.kmc.ken.engines.data.Image r6 = r6.getImage()
o.C14957gcv.c(r6, r2)
o.aev r5 = r5.presenter
r1 = 26
int r1 = r1 / 0
if (r5 == 0) goto L32
goto L36
L23:
o.C14957gcv.e(r5, r2)
com.kofax.kmc.ken.engines.data.Image r6 = r6.getImage()
o.C14957gcv.c(r6, r2)
o.aev r5 = r5.presenter
if (r5 == 0) goto L32
goto L36
L32:
o.C14957gcv.a(r2)
r5 = 0
L36:
android.graphics.Bitmap r1 = r6.getImageBitmap()
o.C14957gcv.c(r1, r2)
o.C14957gcv.e(r1, r2)
o.aeG r2 = new o.aeG
r2.<init>()
T extends o.cYp r3 = r5.f
if (r3 == 0) goto L6f
int r3 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D
int r3 = r3 + 85
int r4 = r3 % 128
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x = r4
int r3 = r3 % r0
if (r3 == 0) goto L57
r3 = 4
int r3 = r3 / 3
L57:
int r4 = r4 + 115
int r3 = r4 % 128
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D = r3
int r4 = r4 % r0
if (r4 != 0) goto L6a
T extends o.cYp r3 = r5.f
r2.e(r3)
r2 = 47
int r2 = r2 / 0
goto L6f
L6a:
T extends o.cYp r3 = r5.f
r2.e(r3)
L6f:
T extends o.cYp r2 = r5.f
if (r2 == 0) goto L78
T extends o.cYp r2 = r5.f
r2.y()
L78:
o.aex r2 = new o.aex
r2.<init>(r1, r5)
T extends o.cYp r1 = r5.f
if (r1 == 0) goto L90
int r1 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x
int r1 = r1 + 63
int r3 = r1 % 128
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D = r3
int r1 = r1 % r0
T extends o.cYp r5 = r5.f
r2.e(r5)
goto L99
L90:
int r5 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x
int r5 = r5 + 25
int r1 = r5 % 128
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D = r1
int r5 = r5 % r0
L99:
r6.imageClearBitmap()
r6.imageClearFileBuffer()
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.d(com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity, com.kofax.kmc.kui.uicontrols.ImageCapturedEvent):void");
}
/* JADX WARN: Code restructure failed: missing block: B:47:0x00af, code lost:
if (r8.height < r2) goto L43;
*/
/* JADX WARN: Code restructure failed: missing block: B:48:0x00b2, code lost:
r9 = r8;
*/
/* JADX WARN: Code restructure failed: missing block: B:50:0x00d8, code lost:
if (r6.width <= r8.width) goto L60;
*/
/* JADX WARN: Code restructure failed: missing block: B:51:0x00da, code lost:
r10 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x + 109;
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D = r10 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:52:0x00e3, code lost:
if ((r10 % 2) != 0) goto L57;
*/
/* JADX WARN: Code restructure failed: missing block: B:53:0x00e5, code lost:
r11 = 36 / 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:54:0x00ec, code lost:
if (r6.height <= r8.height) goto L60;
*/
/* JADX WARN: Code restructure failed: missing block: B:55:0x00f5, code lost:
r8 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x + 57;
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D = r8 % 128;
r8 = r8 % 2;
r8 = r9;
r9 = true;
*/
/* JADX WARN: Code restructure failed: missing block: B:63:0x00f3, code lost:
if (r6.height <= r8.height) goto L60;
*/
/* JADX WARN: Code restructure failed: missing block: B:64:0x0101, code lost:
r8 = r9;
*/
/* JADX WARN: Code restructure failed: missing block: B:65:0x0102, code lost:
r9 = false;
*/
/* JADX WARN: Code restructure failed: missing block: B:66:0x00c1, code lost:
r9 = com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.x + 43;
com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.D = r9 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:67:0x00ca, code lost:
if ((r9 % 2) == 0) goto L95;
*/
/* JADX WARN: Code restructure failed: missing block: B:69:0x00ce, code lost:
if (r8.width < r2) goto L61;
*/
/* JADX WARN: Code restructure failed: missing block: B:71:0x00d1, code lost:
r12 = r8.width;
*/
/* JADX WARN: Code restructure failed: missing block: B:72:0x00d3, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:74:0x00bf, code lost:
if (r8.height < r2) goto L43;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static /* synthetic */ void d(com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity r12) {
/*
Method dump skipped, instructions count: 355
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity.d(com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity):void");
}
static void m() {
q = new char[]{49114, 49117, 49111, 49123, 49034, 49119, 49053, 49031, 49029, 49089, 49098, 49116, 49110, 49030, 49106, 49104, 49126, 49027, 49054, 49088, 49105, 49026, 49118, 49025, 49028};
t = (char) 35372;
s = -473907729;
u = 1406017073;
w = -947053857;
y = new byte[]{-29, -57, -66, -73, -52, ISO7816.INS_UPDATE_BINARY, -97, -63, -49, -73, -55, ISO7816.INS_READ_BINARY2, -43, ISO7816.INS_DELETE_FILE, -41, 120, ISO7816.INS_PUT_DATA, -53, -9, ISOFileInfo.SECURITY_ATTR_COMPACT, -65, PSSSigner.TRAILER_IMPLICIT, -71, -56, ISO7816.INS_READ_BINARY, -55, -5, -20, -9, -26, ISO7816.INS_GET_RESPONSE, -17, -21, -18, -23, -3, ISO7816.INS_UPDATE_RECORD, 62, -9, -6, ISO7816.INS_CREATE_FILE, -3, -18, -61, Ascii.EM, -59, -89, -33, -70, -12, -113, ISOFileInfo.CHANNEL_SECURITY, ISO7816.INS_LOAD_KEY_FILE, -120, -9, -11, -65, -13, -119, ISOFileInfo.SECURITY_ATTR_COMPACT, -120, -57, ISOFileInfo.A1, ISO7816.INS_WRITE_RECORD, -70, -34, -89, ISO7816.INS_LOAD_KEY_FILE, -89, ISO7816.INS_WRITE_BINARY, -89, ISOFileInfo.SECURITY_ATTR_EXP, -15, -126, -11, -37, -90, -113, -37, ISOFileInfo.A5, -34, ISOFileInfo.A5, -13, -35, ISOFileInfo.SECURITY_ATTR_EXP, -15, -119, -72, -37, -70, -9, -126, 9, ISO7816.INS_UPDATE_BINARY, 89, ISOFileInfo.CHANNEL_SECURITY, 88, -47, 104, -75, 96, -113, 95, 103, ISOFileInfo.CHANNEL_SECURITY, 99, -120, 102, ISO7816.INS_UPDATE_RECORD, ISOFileInfo.CHANNEL_SECURITY, -41, 94, 89, 103, 89, ISOFileInfo.CHANNEL_SECURITY, 102, ISO7816.INS_WRITE_RECORD, ISO7816.INS_READ_BINARY_STAMPED, -35, 102, ISOFileInfo.CHANNEL_SECURITY, 88, ISO7816.INS_WRITE_RECORD, 89, -86, 65, -47, 105, ISOFileInfo.ENV_TEMP_EF, ISO7816.INS_REHABILITATE_CHV, -35, 89, 109, -75, 109, ISOFileInfo.FILE_IDENTIFIER, -45, 95, 88, -41, ISO7816.INS_REHABILITATE_CHV, -45, ISO7816.INS_UPDATE_BINARY, 94, ISO7816.INS_UPDATE_BINARY, 95, ISOFileInfo.FCP_BYTE, ISOFileInfo.CHANNEL_SECURITY, -41, 108, ISOFileInfo.CHANNEL_SECURITY, 99, -119, 102, 95, 9, -11, -58, -66, -11, Ascii.SYN, -92, -88, -25, ISOFileInfo.AB, -22, -66, 19, -69, -20, -66, 28, ISO7816.INS_ENVELOPE, -50, 28, -82, 19, -92, Ascii.SYN, ISOFileInfo.A5, -71, Ascii.DC2, 28, -71, -11, Ascii.DC2, -61, -55, -58, -66, 19, -50, Ascii.DC2, -61, -12, -88, Ascii.SYN, -70, Ascii.DC2, -72, -25, ISOFileInfo.A5, -72, ISO7816.INS_GET_RESPONSE, ISOFileInfo.A1, 29, -49, 28, -81, Ascii.ETB, -70, -20, -71, -81, -49, -61, -66, 17, ISO7816.INS_GET_DATA, 51, ISO7816.INS_WRITE_BINARY, -37, ISO7816.INS_PUT_DATA, ISOFileInfo.A0, ISO7816.INS_ENVELOPE, -21, ISO7816.INS_UPDATE_BINARY, -111, Ascii.CAN, -108, ISO7816.INS_WRITE_RECORD, -61, -45, -86, -34, Ascii.ETB, -101, -86, ISO7816.INS_GET_RESPONSE, -17, -97, -45, -63, -18, -102, -84, ISO7816.INS_ENVELOPE, ISOFileInfo.A1, -39, -45, ISO7816.INS_GET_RESPONSE, -81, ISO7816.INS_ENVELOPE, ISOFileInfo.A1, -61, -22, -105, ISO7816.INS_WRITE_RECORD, -49, -45, ISOFileInfo.A0, -52, -47, -84, -57, -87, Ascii.ESC, -100, ISO7816.INS_UPDATE_BINARY, -58, ISO7816.INS_WRITE_BINARY, ISOFileInfo.AB, -60, -43, -37, -94, -58, -43, -35, -45, -63, ISOFileInfo.AB, -63, -43, ISOFileInfo.AB, Ascii.EM, -35, -82, -104, ISO7816.INS_UPDATE_RECORD, -47, -35, -63, -12, -9, -29, -1, ISO7816.INS_CREATE_FILE};
}
@Override // com.scb.phone.view.activity.additionaldocument.Hilt_CaptureDocumentActivity, 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 = x + 99;
D = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 == 0) {
throw null;
}
int i4 = D + 85;
x = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 0 / 0;
}
}
@Override // o.InterfaceC9018dbm
public final void g() {
b(new Object[]{this}, 148065264, -148065264, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 218433923);
}
@Override // o.InterfaceC9018dbm
public final void f() {
b(new Object[]{this}, -1126456607, 1126456608, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.security_block_enable_accessibility_description).substring(121, 122).codePointAt(0) + 1290761361);
}
public long l() {
int i = 2 % 2;
int i2 = D + 81;
x = i2 % 128;
if (i2 % 2 == 0) {
return this.p;
}
throw null;
}
static {
D = 1;
m();
b = new Sts((byte) 0);
int i = x + 11;
D = i % 128;
if (i % 2 == 0) {
throw null;
}
}
}