what-the-bank/sources/com/facetec/sdk/bf.java

2252 lines
92 KiB
Java

package com.facetec.sdk;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Looper;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.facetec.sdk.FaceTecSDK;
import com.facetec.sdk.ax;
import com.facetec.sdk.c;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.google.common.primitives.SignedBytes;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import com.kofax.kmc.kut.utilities.IpLibUtil;
import com.kofax.mobile.sdk.capture.CaptureActivity;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Locale;
import java.util.UUID;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.nMh;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.bouncycastle.i18n.LocalizedMessage;
import org.json.JSONException;
import org.json.JSONObject;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class bf {
private static final byte[] $$a = null;
private static final int $$b = 0;
private static final byte[] $$d = null;
private static final int $$e = 0;
private static int $10;
private static int $11;
private static final byte[] A = null;
private static final int B = 0;
private static int C;
private static int D;
static int a;
static FaceTecAuditTrailImagesToReturn b;
static FaceTecAuditTrailType c;
static String d;
static String e;
static JSONObject f;
private static a g;
private static String h;
private static String i;
private static String j;
private static boolean k;
private static boolean l;
private static String m;
private static Boolean n;
/* renamed from: o, reason: collision with root package name */
private static boolean f6411o;
private static int p;
private static int q;
private static int r;
private static SharedPreferences s;
private static boolean t;
private static short[] u;
private static byte[] v;
private static char w;
private static char x;
private static char y;
private static char z;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public enum a {
NEVER_VALIDATED,
VALIDATED,
REJECTED,
VERSION_DEPRECATED,
NETWORK_ERROR
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0021 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0019 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0021 -> B:4:0x002a). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void E(int r6, int r7, int r8, java.lang.Object[] r9) {
/*
int r8 = 1298 - r8
byte[] r0 = com.facetec.sdk.bf.A
int r6 = 118 - r6
int r1 = r7 + 1
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L10
r3 = r8
r4 = r2
goto L2a
L10:
r3 = r2
L11:
r5 = r8
r8 = r6
r6 = r5
byte r4 = (byte) r8
r1[r3] = r4
if (r3 != r7) goto L21
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L21:
r4 = r0[r6]
int r3 = r3 + 1
r5 = r8
r8 = r6
r6 = r4
r4 = r3
r3 = r5
L2a:
int r8 = r8 + 1
int r3 = r3 - r6
int r6 = r3 + 1
r3 = r4
goto L11
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.bf.E(int, int, int, java.lang.Object[]):void");
}
/* 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:0x002a). 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 F(short r6, byte r7, byte r8, java.lang.Object[] r9) {
/*
int r8 = r8 + 4
int r7 = r7 << 2
byte[] r0 = com.facetec.sdk.bf.$$a
int r1 = r7 + 1
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L11
r6 = r7
r3 = r8
r4 = r2
goto L2a
L11:
int r6 = r6 + 97
r3 = r2
L14:
int r8 = r8 + 1
byte r4 = (byte) r6
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r7) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L25:
r3 = r0[r8]
r5 = r3
r3 = r8
r8 = r5
L2a:
int r6 = r6 + r8
r8 = r3
r3 = r4
goto L14
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.bf.F(short, byte, byte, java.lang.Object[]):void");
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002b). 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 I(short r5, short r6, short r7, java.lang.Object[] r8) {
/*
byte[] r0 = com.facetec.sdk.bf.$$d
int r5 = r5 << 1
int r7 = r7 + 98
int r6 = r6 * 3
int r6 = 3 - r6
int r1 = 1 - r5
byte[] r1 = new byte[r1]
r2 = 0
int r5 = 0 - r5
if (r0 != 0) goto L17
r4 = r7
r3 = r2
r7 = r5
goto L2b
L17:
r3 = r2
L18:
int r6 = r6 + 1
byte r4 = (byte) r7
r1[r3] = r4
if (r3 != r5) goto L27
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L27:
int r3 = r3 + 1
r4 = r0[r6]
L2b:
int r7 = r7 - r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.bf.I(short, short, short, java.lang.Object[]):void");
}
bf() {
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean e() {
int i2 = (D + 57) % 128;
C = i2;
boolean z2 = k;
int i3 = i2 + 39;
D = i3 % 128;
if (i3 % 2 != 0) {
return z2;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean a() {
int i2 = C;
D = (i2 + 35) % 128;
D = (i2 + 71) % 128;
return false;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void e(String str, Context context, FaceTecSDK.InitializeCallback initializeCallback) {
int i2 = D + 19;
C = i2 % 128;
if (i2 % 2 == 0) {
if (!e(str)) {
e(context, initializeCallback, false);
int i3 = D + 19;
C = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
return;
}
f(context);
a(context, initializeCallback);
return;
}
e(str);
throw null;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void p(Context context) {
int i2 = C + 37;
D = i2 % 128;
n(context);
if (i2 % 2 == 0) {
throw null;
}
int i3 = D + 93;
C = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void c(String str, Context context, FaceTecSDK.InitializeCallback initializeCallback, String str2, String str3) {
D = (C + 99) % 128;
if (!e(str)) {
e(context, initializeCallback, false);
return;
}
f(context);
b(context, str2, str3, initializeCallback);
int i2 = D + 31;
C = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void s(Context context) {
D = (C + 35) % 128;
n(context);
D = (C + 11) % 128;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void e(Context context, FaceTecSDK.InitializeCallback initializeCallback, ax.a aVar) {
boolean z2;
if (aVar == null) {
g = a.NETWORK_ERROR;
} else if (aVar.b) {
D = (C + 111) % 128;
if (!aVar.d) {
C = (D + 87) % 128;
g = a.VALIDATED;
D = (C + 53) % 128;
z2 = true;
e(context, initializeCallback, z2);
}
g = a.VERSION_DEPRECATED;
} else {
g = a.REJECTED;
}
z2 = false;
e(context, initializeCallback, z2);
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void s() {
D = (C + 51) % 128;
k();
int i2 = D + 47;
C = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
}
private static void e(Context context, ax.d dVar) {
synchronized (bf.class) {
C = (D + 123) % 128;
d(context, false);
c(context);
ax.c(context, dVar);
int i2 = D + 119;
C = i2 % 128;
if (i2 % 2 != 0) {
throw new ArithmeticException();
}
}
}
private static void e(final Context context, final FaceTecSDK.InitializeCallback initializeCallback, final boolean z2) {
int i2 = C + 17;
D = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
if (initializeCallback == null) {
return;
}
cy.b(new Runnable(z2, context, initializeCallback) { // from class: com.facetec.sdk.bf$$ExternalSyntheticLambda1
public final boolean f$0;
public final Context f$1;
public final FaceTecSDK.InitializeCallback f$2;
@Override // java.lang.Runnable
public final void run() {
bf.e(this.f$0, this.f$1, this.f$2);
}
{
this.f$0 = z2;
this.f$1 = context;
this.f$2 = initializeCallback;
}
});
int i3 = D + 103;
C = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void e(boolean z2, Context context, FaceTecSDK.InitializeCallback initializeCallback) {
boolean z3;
if (z2) {
C = (D + 107) % 128;
try {
z3 = cg.e(context);
} catch (Exception unused) {
z3 = false;
}
if (!z3) {
int i2 = C + 49;
D = i2 % 128;
if (i2 % 2 == 0) {
g = a.REJECTED;
throw null;
}
g = a.REJECTED;
}
try {
f6411o = true;
initializeCallback.onCompletion(z3);
return;
} finally {
f6411o = false;
}
}
initializeCallback.onCompletion(false);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean b() {
int i2 = D;
C = (i2 + 101) % 128;
if (l) {
return false;
}
C = (i2 + 85) % 128;
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static FaceTecSDKStatus b(Context context) {
String str;
if (g(context)) {
if (e != null && ((str = m) == null || str.isEmpty())) {
return FaceTecSDKStatus.ENCRYPTION_KEY_INVALID;
}
if (c(context.getResources().getConfiguration())) {
return FaceTecSDKStatus.DEVICE_IN_LANDSCAPE_MODE;
}
if (av.c(context) != 9) {
int i2 = AnonymousClass1.b[g.ordinal()];
if (i2 == 1) {
if (bt.j(context)) {
return FaceTecSDKStatus.DEVICE_LOCKED_OUT;
}
return FaceTecSDKStatus.INITIALIZED;
}
if (i2 == 2) {
return l ? FaceTecSDKStatus.KEY_EXPIRED_OR_INVALID : FaceTecSDKStatus.INVALID_DEVICE_KEY_IDENTIFIER;
}
if (i2 == 3) {
return FaceTecSDKStatus.NETWORK_ISSUES;
}
if (i2 == 4) {
return FaceTecSDKStatus.VERSION_DEPRECATED;
}
if (i2 == 5) {
return FaceTecSDKStatus.NEVER_INITIALIZED;
}
FaceTecSDKStatus faceTecSDKStatus = FaceTecSDKStatus.NEVER_INITIALIZED;
C = (D + 59) % 128;
return faceTecSDKStatus;
}
C = (D + 55) % 128;
return FaceTecSDKStatus.DEVICE_IN_REVERSE_PORTRAIT_MODE;
}
C = (D + 13) % 128;
return FaceTecSDKStatus.DEVICE_NOT_SUPPORTED;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.facetec.sdk.bf$1, reason: invalid class name */
/* loaded from: classes.dex */
public static final /* synthetic */ class AnonymousClass1 {
static final int[] b;
static {
int[] iArr = new int[a.values().length];
b = iArr;
try {
iArr[a.VALIDATED.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
b[a.REJECTED.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
b[a.NETWORK_ERROR.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
b[a.VERSION_DEPRECATED.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
b[a.NEVER_VALIDATED.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Long a(Context context) {
C = (D + 23) % 128;
long i2 = bt.i(context);
if (i2 != 0) {
return Long.valueOf(i2);
}
int i3 = D + 11;
C = i3 % 128;
if (i3 % 2 == 0) {
return null;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean d(Context context) {
D = (C + 91) % 128;
boolean j2 = bt.j(context);
C = (D + 97) % 128;
return j2;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void r(Context context) {
int i2 = C + 11;
D = i2 % 128;
ah.b(context);
if (i2 % 2 == 0) {
throw new ArithmeticException();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void e(final Context context, boolean z2) {
if (z2) {
D = (C + 109) % 128;
cy.c(new Runnable(context) { // from class: com.facetec.sdk.bf$$ExternalSyntheticLambda9
public final Context f$0;
@Override // java.lang.Runnable
public final void run() {
bf.r(this.f$0);
}
{
this.f$0 = context;
}
});
C = (D + 123) % 128;
}
cy.b(new Runnable(context) { // from class: com.facetec.sdk.bf$$ExternalSyntheticLambda10
public final Context f$0;
@Override // java.lang.Runnable
public final void run() {
bf.q(this.f$0);
}
{
this.f$0 = context;
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void q(Context context) {
int i2 = C + 1;
D = i2 % 128;
if (i2 % 2 != 0) {
if (g(context)) {
int i3 = C + 65;
D = i3 % 128;
try {
if (i3 % 2 != 0) {
cg.e(context);
return;
} else {
cg.e(context);
throw new NullPointerException();
}
} catch (Exception unused) {
}
}
int i4 = C + 91;
D = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
return;
}
g(context);
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void c() {
int i2 = C + 17;
D = i2 % 128;
if (i2 % 2 == 0) {
cy.c(new Runnable() { // from class: com.facetec.sdk.bf$$ExternalSyntheticLambda8
@Override // java.lang.Runnable
public final void run() {
bf.q();
}
});
throw null;
}
cy.c(new Runnable() { // from class: com.facetec.sdk.bf$$ExternalSyntheticLambda8
@Override // java.lang.Runnable
public final void run() {
bf.q();
}
});
C = (D + 79) % 128;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void q() {
C = (D + 111) % 128;
ax.d();
cd.a();
D = (C + 93) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static FaceTecSDK.CameraPermissionStatus e(Context context) {
int i2 = (C + 11) % 128;
D = i2;
C = (i2 + 13) % 128;
if (nMh.checkSelfPermission(context, "android.permission.CAMERA") != 0) {
return FaceTecSDK.CameraPermissionStatus.NOT_YET_REQUESTED;
}
return FaceTecSDK.CameraPermissionStatus.GRANTED;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean d() {
int i2 = D + 81;
C = i2 % 128;
if (i2 % 2 != 0) {
FaceTecAuditTrailType faceTecAuditTrailType = FaceTecAuditTrailType.DISABLED;
throw null;
}
if (c == FaceTecAuditTrailType.DISABLED) {
return false;
}
D = (C + 47) % 128;
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void b(FaceTecAuditTrailType faceTecAuditTrailType) {
if (faceTecAuditTrailType != c) {
D = (C + 25) % 128;
c = faceTecAuditTrailType;
cy.b(new Runnable() { // from class: com.facetec.sdk.bf$$ExternalSyntheticLambda5
@Override // java.lang.Runnable
public final void run() {
bf.m();
}
});
C = (D + 7) % 128;
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void m() {
int i2 = D + 97;
C = i2 % 128;
cg.b();
if (i2 % 2 != 0) {
throw null;
}
D = (C + 27) % 128;
}
static {
init$1();
$10 = 0;
$11 = 1;
init$0();
n();
C = 0;
D = 1;
l();
g();
TextUtils.indexOf("", "", 0);
D = (C + 119) % 128;
t = true;
e = null;
c = FaceTecAuditTrailType.HEIGHT_640;
b = FaceTecAuditTrailImagesToReturn.ONE;
f = null;
g = a.NEVER_VALIDATED;
l = false;
m = null;
k = false;
f6411o = false;
n = null;
int i2 = C + 107;
D = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
}
private static boolean g(Context context) {
boolean booleanValue;
boolean z2;
synchronized (bf.class) {
if (n == null) {
if (o() && o(context) && !h(context)) {
int i2 = (D + 111) % 128;
C = i2;
D = (i2 + 43) % 128;
z2 = true;
} else {
D = (C + 29) % 128;
z2 = false;
}
n = Boolean.valueOf(z2);
}
booleanValue = n.booleanValue();
int i3 = C + 71;
D = i3 % 128;
if (i3 % 2 == 0) {
throw new ArithmeticException();
}
}
return booleanValue;
}
private static boolean o() {
if (Build.CPU_ABI.toLowerCase().startsWith("arm")) {
D = (C + 45) % 128;
return true;
}
D = (C + 79) % 128;
return false;
}
private static boolean h(Context context) {
int i2 = C + 9;
D = i2 % 128;
if (i2 % 2 == 0) {
context.getPackageManager().hasSystemFeature("org.chromium.arc");
throw null;
}
if (!context.getPackageManager().hasSystemFeature("org.chromium.arc")) {
int i3 = C + 37;
D = i3 % 128;
PackageManager packageManager = context.getPackageManager();
if (i3 % 2 == 0) {
packageManager.hasSystemFeature("org.chromium.arc.device_management");
throw null;
}
if (!packageManager.hasSystemFeature("org.chromium.arc.device_management")) {
int i4 = D + 11;
C = i4 % 128;
if (i4 % 2 == 0) {
return false;
}
throw new ArithmeticException();
}
}
C = (D + 13) % 128;
return true;
}
private static boolean o(Context context) {
int i2 = C + 61;
D = i2 % 128;
if (i2 % 2 != 0) {
if (!context.getPackageManager().hasSystemFeature("android.hardware.camera.front") && !Build.MODEL.equals("Lenovo YT3-850F")) {
ag.g();
D = (C + 121) % 128;
return false;
}
int i3 = D + 21;
C = i3 % 128;
if (i3 % 2 == 0) {
return true;
}
throw null;
}
context.getPackageManager().hasSystemFeature("android.hardware.camera.front");
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean c(Configuration configuration) {
int i2 = D + 29;
C = i2 % 128;
int i3 = configuration.orientation;
if (i2 % 2 != 0) {
if (i3 != 2) {
return false;
}
} else if (i3 != 2) {
return false;
}
C = (D + 83) % 128;
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String b(String str) {
C = (D + 33) % 128;
String d2 = d(null, true);
if (d2 == null) {
int i2 = C + 63;
D = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
d2 = "_";
}
if (i == null) {
return "";
}
StringBuilder sb = new StringBuilder("facetec|sdk|android|");
sb.append(i);
sb.append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR);
sb.append(e);
sb.append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR);
sb.append(d2);
sb.append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR);
sb.append(Build.MODEL);
sb.append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR);
sb.append(FaceTecSDK.version());
sb.append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR);
sb.append(Locale.getDefault());
sb.append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR);
sb.append(Locale.getDefault().getLanguage());
sb.append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR);
sb.append(str);
return sb.toString();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String d(Context context, boolean z2) {
synchronized (bf.class) {
int i2 = D + 77;
C = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
if (h == null && context != null) {
m(context);
}
if (!z2) {
return h;
}
D = (C + 29) % 128;
return j;
}
}
private static void m(Context context) {
int i2 = C + 91;
D = i2 % 128;
try {
if (i2 % 2 == 0) {
c.c(context);
c.e eVar = c.e.New;
throw null;
}
if (c.c(context) == c.e.New) {
String l2 = l(context);
h = l2;
j = l2;
} else {
String k2 = k(context);
j = k2;
h = UUID.nameUUIDFromBytes(k2.getBytes()).toString();
C = (D + 53) % 128;
}
} catch (Exception unused) {
String c2 = av.c(15, 0);
h = c2;
j = c2;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String c(Context context) {
String str;
synchronized (bf.class) {
if (i == null) {
int i2 = D + 77;
C = i2 % 128;
if (i2 % 2 != 0) {
throw new NullPointerException();
}
if (context != null) {
i = context.getPackageName();
}
}
str = i;
C = (D + 35) % 128;
}
return str;
}
private static String l(Context context) throws Exception {
C = (D + 89) % 128;
byte[] e2 = c.e(context);
Object[] objArr = new Object[1];
H("욃붜⎠䨱鹪䬮鉻ࢎ圁䉑鏩嵗獌䜵쇔쮎筈Ꮸ茬㊉", (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 19, objArr);
String obj = UUID.nameUUIDFromBytes(bl.a(e2, ((String) objArr[0]).intern())).toString();
int i2 = D + 55;
C = i2 % 128;
if (i2 % 2 == 0) {
return obj;
}
throw null;
}
private static String k(Context context) throws Exception {
String e2;
int i2;
int i3 = D + 103;
C = i3 % 128;
if (i3 % 2 != 0) {
byte[] e3 = c.e(context);
Object[] objArr = new Object[1];
H("욃붜⎠䨱鹪䬮鉻ࢎ圁䉑鏩嵗獌䜵쇔쮎筈Ꮸ茬㊉", 'A' % AndroidCharacter.getMirror('!'), objArr);
e2 = bl.e(e3, ((String) objArr[0]).intern());
i2 = 94;
} else {
byte[] e4 = c.e(context);
Object[] objArr2 = new Object[1];
H("욃붜⎠䨱鹪䬮鉻ࢎ圁䉑鏩嵗獌䜵쇔쮎筈Ꮸ茬㊉", 'D' - AndroidCharacter.getMirror('0'), objArr2);
e2 = bl.e(e4, ((String) objArr2[0]).intern());
i2 = 16;
}
return e2.substring(0, i2);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static SharedPreferences j(Context context) {
if (s == null) {
int i2 = C + 19;
int i3 = i2 % 128;
D = i3;
if (i2 % 2 == 0) {
throw null;
}
if (!t) {
int i4 = i3 + 107;
C = i4 % 128;
if (i4 % 2 == 0) {
if (Looper.myLooper() == Looper.getMainLooper()) {
throw new AssertionError();
}
} else {
Looper.myLooper();
Looper.getMainLooper();
throw null;
}
}
s = context.getSharedPreferences("zoom.sdk.settings", 0);
}
return s;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int i(Context context) {
D = (C + 51) % 128;
int i2 = j(context).getInt(ak.U, 0);
D = (C + 99) % 128;
return i2;
}
private static void n(Context context) {
C = (D + 125) % 128;
SharedPreferences.Editor edit = j(context).edit();
edit.putInt(ak.U, i(context) + 1);
edit.apply();
D = (C + 69) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String h() {
int i2 = (D + 51) % 128;
C = i2;
String str = m;
D = (i2 + 93) % 128;
return str;
}
private static boolean e(String str) {
int i2 = D + 39;
C = i2 % 128;
if (i2 % 2 != 0) {
throw new ArithmeticException();
}
if (str != null) {
try {
m = str.trim();
return true;
} catch (Exception unused) {
}
}
C = (D + 25) % 128;
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void b(JSONObject jSONObject) {
if (!jSONObject.has("dGVULgo:UY%BjRq4N@@~4(9Bp1)GZ1+{")) {
f = jSONObject;
C = (D + 81) % 128;
return;
}
int i2 = C + 117;
D = i2 % 128;
try {
if (i2 % 2 != 0) {
bq.d(jSONObject.getString("dGVULgo:UY%BjRq4N@@~4(9Bp1)GZ1+{"));
} else {
bq.d(jSONObject.getString("dGVULgo:UY%BjRq4N@@~4(9Bp1)GZ1+{"));
throw new ArithmeticException();
}
} catch (JSONException unused) {
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void f() {
int i2 = D;
int i3 = i2 + 25;
C = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
if (!f6411o) {
C = (i2 + 39) % 128;
return;
}
ao.d("***********************************************************************************************************************************");
ao.d("* FaceTec SDK Code Integration PROBLEM Detected. *");
ao.d("* Your App Code is creating a new FaceTecSession in the Initialization Completion Callback. *");
ao.d("* This will cause User Experience Issues and is not recommended. Please see the FaceTec Developer Documentation for more details. *");
ao.d("***********************************************************************************************************************************");
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void i() {
D = (C + 95) % 128;
ao.d("***********************************************************************************************************************************");
ao.d("* WARNING: You are using DEVELOPMENT-ONLY Keys. *");
ao.d("* Development Keys should only be used while you are familiarizing yourself with Device SDK functionality or if you do not yet have a commercial agreement with FaceTec. *");
ao.d("* This Key IS NOT supported for Production Environments. *");
ao.d("* If you have a commercial agreement with FaceTec, you should be using Production SDK Encryption Keys, even if you are still Developing your Application. *");
ao.d("* Please use initializeInProductionMode if you are deploying this for use in a Real App with Real Users. *");
ao.d("* Please review https://dev.facetec.com/keys#key-types *");
ao.d("***********************************************************************************************************************************");
C = (D + 79) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void j() {
D = (C + 87) % 128;
ao.d("***********************************************************************************************************************************");
ao.d("* WARNING: You are using initializeInDevelopmentMode with a PRODUCTION Key. *");
ao.d("* Please use initializeInProductionMode, even if you are still Developing your Application. *");
ao.d("* Please review https://dev.facetec.com/keys#key-types *");
ao.d("***********************************************************************************************************************************");
D = (C + 83) % 128;
}
/* JADX WARN: Removed duplicated region for block: B:65:0x0261 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void G(int r20, short r21, int r22, byte r23, int r24, java.lang.Object[] r25) {
/*
Method dump skipped, instructions count: 909
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.bf.G(int, short, int, byte, int, java.lang.Object[]):void");
}
private static void H(String str, int i2, Object[] objArr) {
$11 = ($10 + 89) % 128;
char[] charArray = str != null ? str.toCharArray() : str;
gk gkVar = new gk();
char[] cArr = new char[charArray.length];
gkVar.b = 0;
char[] cArr2 = new char[2];
while (gkVar.b < charArray.length) {
cArr2[0] = charArray[gkVar.b];
cArr2[1] = charArray[gkVar.b + 1];
int i3 = 58224;
for (int i4 = 0; i4 < 16; i4++) {
$11 = ($10 + 33) % 128;
char c2 = cArr2[1];
char c3 = cArr2[0];
try {
Object[] objArr2 = {Integer.valueOf(c2), Integer.valueOf(((c3 << 4) + ((char) (y ^ (-5573204954400079773L)))) ^ r15), Integer.valueOf(c3 >>> 5), Integer.valueOf(z)};
int i5 = c3 + i3;
Object obj = bo.s.get(345995571);
if (obj == null) {
obj = ((Class) bo.e((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 100, (char) (ViewConfiguration.getLongPressTimeout() >> 16), 22 - TextUtils.indexOf((CharSequence) "", '0'))).getMethod("u", Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
bo.s.put(345995571, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr2[1] = charValue;
try {
Object[] objArr3 = {Integer.valueOf(cArr2[0]), Integer.valueOf(((charValue << 4) + ((char) (w ^ (-5573204954400079773L)))) ^ r13), Integer.valueOf(charValue >>> 5), Integer.valueOf(x)};
int i6 = charValue + i3;
Object obj2 = bo.s.get(345995571);
if (obj2 == null) {
obj2 = ((Class) bo.e((ViewConfiguration.getTapTimeout() >> 16) + 100, (char) (KeyEvent.getMaxKeyCode() >> 16), 23 - (ViewConfiguration.getMinimumFlingVelocity() >> 16))).getMethod("u", Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
bo.s.put(345995571, obj2);
}
cArr2[0] = ((Character) ((Method) obj2).invoke(null, objArr3)).charValue();
i3 -= 40503;
} 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;
}
}
cArr[gkVar.b] = cArr2[0];
cArr[gkVar.b + 1] = cArr2[1];
try {
Object[] objArr4 = {gkVar, gkVar};
Object obj3 = bo.s.get(49166239);
if (obj3 == null) {
obj3 = ((Class) bo.e(100 - View.resolveSizeAndState(0, 0, 0), (char) TextUtils.indexOf("", ""), (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 24)).getMethod("A", Object.class, Object.class);
bo.s.put(49166239, obj3);
}
((Method) obj3).invoke(null, objArr4);
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
objArr[0] = new String(cArr, 0, i2);
}
static void n() {
byte[] bArr = new byte[1550];
System.arraycopy("\u0013\u0096:Ï\u0016öø\u0011\u0017êüû\u001fööø\u0011ý\u0006ü\u0002\u0005\u0000ü\u0007ü\u0002\u0005\u0000û\\u0002\u0005\u0000ú\tüû\f\u0000ù\\u0001\u000b\u0000ø\u000b\u0000÷\f\u0000ö\\u0002\u0005\u0000õ\u000e\u0000ý\u0002\u0005\u0000ý\u0001\u0006\u0000ý\u0000\u0007üû\f\u0000ýÿ\b÷ÿ\\u0002\u0006\u0000ýþ\tüú\rüú\rûþ\nüû\f\u0000ýý\n\u0000ýü\u000b÷þ\u000eö\b\u0005ûþ\n\u0000ýû\\u0003\u0006\u0000ýú\r\u0000ýù\u000e\u0000ü\u0003\u0005\u0000ü\u0003\u0005\u0000ýü\u000b÷þ\u000eû\u0000\\u0006\u0005ø\u0000\u000b\u0000ýû\\u0003\u0006\u0000ü\u0002\u0006\u0000ü\u0001\u0007\u0000ü\u0000\b\u0000üÿ\\u0002\u0005\u0000õ\u000eö\u0007\u0006üû\f\u0000ý\u0002\u0005\u0000üþ\\u0006\u0007\u0000üý\u000bö\u0005\b\u0000üý\u000b\u0000üü\\u0004\t\u0000üû\\u0006\u0007\u0000üû\\u00164º\u0002\fþ?Ú\u0001\r\u0006\\u00164Ã\\b:æÜû\u0010ÿ\u0003ôý\u0006ü\u0006\u0000ü\u0007\u0000û\b\u0000ú\t\u0000ù\n\u0000ø\u000b\u0000÷\f\u0000ö\r\u0000õ\u000e\u0000ý\u0002\u0005\u0000ý\u0001\u0006\u0000ö\\r\u0000ý\u0000\u0007\u0000ýÿ\b\u0000ýþ\t\u0000ýý\n\u0000ýü\u000b\u0000ýû\\u0002\u0005ü\u0001\u0006ü\u0006\u0000ýú\r\u0000ýù\u000eü\u0000\u0007\u0000ü\u0003\u0005üÿ\b\u0000ü\u0002\u0006\u0000ü\u0001\u0007\u0000ü\u0000\b\u0000üÿ\t\u0000üþ\n\u0000üý\u000b\u0000üü\\u0002\u0005ü\u0001\u0006üÿ\b\u0000ýú\r\u0000üû\\u0002\u0005\u0000üú\u000e\u0000û\u0004\u0005\u0000û\u0003\u0006\u0000û\u0002\u0007üý\nüü\u000b\u0000û\u0001\b\u0000û\u0000\tüû\f\u0000ûÿ\\u0002\u0005ü\u0001\u0006üÿ\b\u0000ýú\r\u0000ûþ\u000bü\u0002\u0005\u0000ûý\f\u0000û\u0000\tüû\f\u0000üû\rüú\rüù\u000e\u0000ûü\\u0003\u0005\u0000üû\rüú\rüú\\u0002\u0006\u0000ûþ\u000b\u0000ûû\u000eû\u0001\u0007û\u0000\bûÿ\t\u0000ú\u0005\u0005üú\rûþ\n\u0000ú\u0004\u0006\u0000ú\u0003\u0007\u0000ú\u0002\bûý\u000bûü\füû\f\u0000ûþ\u000b\u0000ûû\u000eûû\rûú\u000eú\u0004\u0005ûþ\n\u0000ú\u0005\u0005ú\u0003\u0006\u0000ú\u0001\t\u0000ú\u0000\n\u0000úÿ\u000b\u0000úþ\\u0001\b\u0000úý\r\u0000û\u0000\tüû\\u0000\tüû\f\u0000ûÿ\n\u0000úü\u000eüÿ\b\u0000ù\u0006\u0005ü\u0006\u0000ù\u0006\u0005\u0000ù\u0005\u0006üÿ\b\u0000ù\u0004\u0007ü\u0006\u0000ù\u0004\u0007\u0000ù\u0003\\u0006\u0000ù\u0002\tüÿ\b\u0000ù\u0002\t\u0000ù\u0001\núþ\u000b\u0000ù\u0000\u000búý\f\u0000ù\u0000ý\u0006üÿ\b\u0000ü\u0007\u0000û\b\u0000ú\t\u0000ù\n\u0000ø\u000b\u0000÷\\u0002\u0005úû\u000e\u0000ö\r\u0000õ\u000eü\u0001\u0006\u0000ý\u0002\u0005\u0000ý\u0001\u0006\u0000ý\u0000\u0007ü\u0002\u0005ù\u0005\u0005\u0000ö\r\u0000ýÿ\\r\u0000ýþ\tüý\n\u0000ýý\\u0006\u0000ýü\u000bü\u0002\u0005\u0000ýû\f\u0000ýú\r\u0000ýù\u000e\u0000ü\u0003\u0005ü\u0001\u0006ü\u0002\u0005ù\u0004\u0006\u0000ü\u0002\u0006\u0000ü\u0001\u0007üû\f\u0000ü\u0000\\u0003\u0007\u0000ö\r\u0000ü\u0000\\u0002\u0005\u0000üÿ\t\u0000ü\u0001\u0007üû\f\u0000ýÿ\büú\rüù\u000e\u0000üþ\\u0003\u0005\u0000ýÿ\b\u0000üý\u000bù\u0002\bûÿ\t\u0000üü\füú\rûþ\n\u0000üû\r\u0000üú\u000e\u0000û\u0004\u0005\u0000û\u0003\u0006ù\u0000\nùÿ\u000b\u0000û\u0002\u0007\u0000ü\u0001\u0007üû\fùþ\füû\f\u0000ü\u0000\b\u0000üý\u000bùý\rûÿ\t\u0000üü\füú\rûþ\n\u0000û\u0001\b\u0000û\u0000\t\u0000ûÿ\\u0006\u0000ü\u0007\u0000û\b\u0000ú\t\u0000ûþ\u000b\u0000ûý\f\u0000ûü\r\u0000üý\u000bùü\u000eû\u0000\\u0006\u0005ú\u0004\u0005ûþ\n\u0000üü\\u0003\u0006\u0000ûû\u000e\u0000ú\u0005\u0005\u0000ú\u0004\u0006\u0000ú\u0004\u0006\u0000ú\u0003\u0007üÿ\b\u0000ú\u0002\\u0006\u0000ú\u0002\b\u0000ú\u0001\\u0005\u0006\u0000ú\u0000\\u0004\u0007\u0000ú\u0000\n\u0000úÿ\u000büÿ\b\u0000úþ\\u0006\u0000úþ\f\u0000úý\\u0006\u0000úü\u000eüÿ\b\u0000úü\u0010úí\u0017üû\u0004\u0005\u0004öô\u000bó\u0004\u0007\u00067ÀýFíÎ\\tAÏ\u0012ô\u0000\u000bû\u0002\\u00164Ã\\b:íÔ\u0001\u0004\b\u0005ô\u0012ô\u000bö\u0003\u0019\u0001\r\u0006\u0006öú\u000f\\u00164Ã\\b:Üà\u0003\\\u0006ü\u0002\u0005ø\u0003\\u0000\u0007\u0000ü\u0007\u0000û\b\u0000ú\tüú\rüù\u000e\u0000ù\\u0003\u0005\u0000ø\u000b\u0000÷\\u0002\tûú\u000eú\u0004\u0005ûþ\n\u0000ö\rüú\rûþ\n\u0000õ\u000e\u0000ý\u0002\u0005\u0000ý\u0001\u0006\u0000ý\u0001\u0006\u0000ý\u0000\u0007ø\u0001\\u0000\\u0006\u0005ø\u0000\u000b\u0000ýÿ\\u0003\u0006\u0000ýþ\t\u0000ýý\n\u0000ýü\u000b\u0000ýû\\u0003\u0005øÿ\føþ\r\u0000ø\u000b\u0000ýú\røý\u000e\u0000ýù\u000e÷\u0007\u0005\u0000ýùý\u0006ü\u0002\u0005üÿ\b\u0000ü\u0007üû\\u0002\u0005\u0000û\büû\\u0002\u0005ùÿ\u000b\u0000ú\t\u0000ù\n\u0000ø\u000b\u0000÷\f\u0000ö\r\u0000õ\u000e\u0000ý\u0002\u0005\u0000ý\u0001\u0006ø\u0003\\u0006\u0006\u0000ý\u0000\u0007\u0000ýÿ\\u0002\u0005ü\u0000\u0007\u0000ýþ\tüü\u000bü\u0006\u0000ýý\n\u0000ýü\u000b\u0000ýû\f\u0000ý\u0002\u0005ü\u0002\u0005ü\u0001\u0006üÿ\b\u0000ýý\n\u0000ýú\rüú\rüù\u000e\u0000ýù\u000eû\u0003\u0005\u0000ýü\u000b\u0000ü\u0003\u0005÷\u0005\u0007ø\u0000\u000b\u0000ü\u0002\u0006ú\u0003\u0006\u0000ü\u0001\u0007\u0000ü\u0000\b\u0000üÿ\\u0002\u0005ü\u0006\u0000ü\u0007üû\\u0002\u0005\u0000û\\u0004\büý\n\u0000ú\t\u0000ù\n\u0000üþ\n\u0000÷\f\u0000ö\r\u0000üý\u000b÷\u0003\\u0000\u000b\u0000üü\\u0003\u0006\u0000üû\r\u0000üú\u000e\u0000û\u0004\u0005\u0000û\u0004\u0005\u0000û\u0003\u0006ø\u0004\u0007\u0000û\u0002\u0007÷\u0002\n\u0000û\u0002".getBytes(LocalizedMessage.DEFAULT_ENCODING), 0, bArr, 0, 1550);
A = bArr;
B = CipherSuite.TLS_RSA_PSK_WITH_RC4_128_SHA;
}
static void l() {
y = (char) 32642;
x = (char) 65456;
w = (char) 55128;
z = (char) 15816;
}
/* JADX WARN: Removed duplicated region for block: B:11:0x0288 */
/* JADX WARN: Removed duplicated region for block: B:14:? A[RETURN, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void k() {
/*
Method dump skipped, instructions count: 745
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.bf.k():void");
}
static void init$1() {
$$d = new byte[]{65, Ascii.EM, 9, -2};
$$e = 87;
}
static void init$0() {
$$a = new byte[]{67, 103, 103, ISO7816.INS_MSE};
$$b = 105;
}
static void g() {
int i2 = D + 27;
C = i2 % 128;
q = -1940725944;
r = -1521681565;
if (i2 % 2 == 0) {
v = new byte[]{-126, 126, -119, -93, 92, -126, 123, ISOFileInfo.SECURITY_ATTR_EXP, ISO7816.INS_MANAGE_CHANNEL, -84, -81, 49, ISOFileInfo.CHANNEL_SECURITY, -53, SignedBytes.MAX_POWER_OF_TWO, 113, ISO7816.INS_MANAGE_CHANNEL, 119, -124, 124, ISOFileInfo.FCI_EXT, Byte.MIN_VALUE, 124, ISOFileInfo.ENV_TEMP_EF, ISO7816.INS_MANAGE_CHANNEL, 115, -124, 107, -106, ISOFileInfo.FCI_EXT, ISOFileInfo.LCS_BYTE, 123, 119, ISOFileInfo.ENV_TEMP_EF, Ascii.DEL, 124, 124};
p = 338581888;
} else {
v = new byte[]{-126, 126, -119, -93, 92, -126, 123, ISOFileInfo.SECURITY_ATTR_EXP, ISO7816.INS_MANAGE_CHANNEL, -84, -81, 49, ISOFileInfo.CHANNEL_SECURITY, -53, SignedBytes.MAX_POWER_OF_TWO, 113, ISO7816.INS_MANAGE_CHANNEL, 119, -124, 124, ISOFileInfo.FCI_EXT, Byte.MIN_VALUE, 124, ISOFileInfo.ENV_TEMP_EF, ISO7816.INS_MANAGE_CHANNEL, 115, -124, 107, -106, ISOFileInfo.FCI_EXT, ISOFileInfo.LCS_BYTE, 123, 119, ISOFileInfo.ENV_TEMP_EF, Ascii.DEL, 124, 124};
p = 338581888;
throw null;
}
}
/* JADX WARN: Failed to find 'out' block for switch in B:31:0x014d. Please report as an issue. */
private static void f(Context context) {
int i2;
Object b2;
di diVar = new di(context);
int i3 = B;
Object[] objArr = new Object[1];
E((byte) (i3 >>> 1), (short) (i3 | 69), 1281, objArr);
String str = (String) objArr[0];
byte[] bArr = A;
char c2 = 22;
short s2 = bArr[22];
Object[] objArr2 = new Object[1];
E(74, s2, (short) (s2 | 1053), objArr2);
try {
Object[] objArr3 = {(String) objArr2[0]};
char c3 = 1140;
Object[] objArr4 = new Object[1];
E(bArr[39], bArr[1140], CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr4);
Class<?> cls = Class.forName((String) objArr4[0]);
byte b3 = bArr[124];
short s3 = bArr[220];
Object[] objArr5 = new Object[1];
E(b3, s3, (short) (s3 | 209), objArr5);
String str2 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
E(bArr[39], bArr[1140], CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr6);
Object[] objArr7 = (Object[]) cls.getMethod(str2, Class.forName((String) objArr6[0])).invoke(str, objArr3);
int[] iArr = new int[objArr7.length];
int i4 = 0;
while (i4 < objArr7.length) {
try {
Object[] objArr8 = {objArr7[i4]};
byte[] bArr2 = A;
byte b4 = bArr2[39];
short s4 = bArr2[257];
Object[] objArr9 = new Object[1];
E(b4, s4, (short) (s4 | 1037), objArr9);
Class<?> cls2 = Class.forName((String) objArr9[0]);
byte b5 = bArr2[c2];
short s5 = bArr2[18];
Object[] objArr10 = new Object[1];
E(b5, s5, (short) (s5 | 1288), objArr10);
String str3 = (String) objArr10[0];
Object[] objArr11 = new Object[1];
E(bArr2[39], bArr2[c3], CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr11);
Object invoke = cls2.getMethod(str3, Class.forName((String) objArr11[0])).invoke(null, objArr8);
try {
byte b6 = bArr2[39];
short s6 = bArr2[257];
Object[] objArr12 = new Object[1];
E(b6, s6, (short) (s6 | 1037), objArr12);
Class<?> cls3 = Class.forName((String) objArr12[0]);
Object[] objArr13 = new Object[1];
E(bArr2[54], bArr2[24], 1288, objArr13);
iArr[i4] = ((Integer) cls3.getMethod((String) objArr13[0], null).invoke(invoke, null)).intValue();
i4++;
c2 = 22;
c3 = 1140;
} 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;
}
}
int i5 = 0;
while (true) {
int i6 = i5 + 1;
try {
} catch (Throwable th3) {
th = th3;
}
switch (diVar.a(iArr[i5])) {
case -28:
i5 = 59;
case -27:
diVar.a(35);
i5 = diVar.d != 6 ? 16 : 38;
case -26:
i5 = 54;
case -25:
diVar.a(35);
i5 = diVar.d != 6 ? 49 : 13;
case -24:
diVar.a(32);
throw ((Throwable) diVar.g);
break;
case IpLibUtil.KIPP_BAD_HANDLE /* -23 */:
i5 = 55;
case IpLibUtil.KIPP_FILE_METADATA_ERROR /* -22 */:
i5 = 57;
case IpLibUtil.KIPP_READING_USER_NETWORK_ERROR /* -21 */:
diVar.a(7);
i5 = diVar.d == 0 ? 47 : i6;
case IpLibUtil.KIPP_BAD_SPEED_ACCURACY_ERROR /* -20 */:
i5 = 1;
case IpLibUtil.KIPP_PDF_TOO_LARGE_TO_APPEND /* -19 */:
i5 = 37;
case IpLibUtil.KIPP_ENCRYPTED_APPEND_ERROR /* -18 */:
diVar.a(7);
if (diVar.d == 0) {
i5 = 36;
}
case IpLibUtil.KIPP_BAD_PDF /* -17 */:
diVar.e = 1;
diVar.a(2);
diVar.a(3);
C = diVar.d;
case IpLibUtil.KIPP_CANNOT_APPEND_TO_FILETYPE /* -16 */:
i2 = D;
diVar.e = i2;
diVar.a(6);
case IpLibUtil.KIPP_BAD_FILE_TO_APPEND_TO /* -15 */:
case IpLibUtil.KIPP_BAD_FILE_FORMAT_INTERNALS /* -14 */:
i5 = 28;
case IpLibUtil.KIPP_IMAGE_DOES_NOT_EXIST /* -13 */:
return;
case IpLibUtil.KIPP_UNKNOWN_FILETYPE /* -12 */:
diVar.e = 1;
diVar.a(2);
diVar.a(5);
b2 = cy.b((Runnable) diVar.g);
diVar.f = b2;
diVar.a(4);
case -11:
b2 = new Runnable() { // from class: com.facetec.sdk.bf$$ExternalSyntheticLambda4
@Override // java.lang.Runnable
public final void run() {
bf.s();
}
};
diVar.f = b2;
diVar.a(4);
case -10:
i5 = 23;
case -9:
diVar.e = 1;
diVar.a(2);
diVar.a(5);
Cdo.d((Context) diVar.g);
case -8:
i5 = 60;
case -7:
i5 = 62;
case -6:
diVar.a(67);
if (diVar.d == 0) {
i5 = 12;
}
case -5:
Object[] objArr14 = new Object[1];
E((byte) (A[4] - 1), r0[8], 209, objArr14);
Class<?> cls4 = Class.forName((String) objArr14[0]);
Object[] objArr15 = new Object[1];
E(35, r0[18], (short) (B | 73), objArr15);
try {
i2 = cls4.getField((String) objArr15[0]).getInt(null);
diVar.e = i2;
diVar.a(6);
} catch (Throwable th4) {
th = th4;
if (i6 < 51 || i6 > 54) {
throw th;
}
diVar.f = th;
diVar.a(38);
i5 = 48;
}
break;
case -4:
diVar.e = 1;
diVar.a(2);
diVar.a(5);
diVar.f = j((Context) diVar.g);
diVar.a(4);
case -3:
diVar.e = 1;
diVar.a(2);
diVar.a(5);
as.b((Context) diVar.g);
case -2:
diVar.e = 1;
diVar.a(2);
diVar.a(5);
bt.b((Context) diVar.g);
case -1:
i5 = 20;
default:
}
}
throw th;
} catch (Throwable th5) {
Throwable cause3 = th5.getCause();
if (cause3 == null) {
throw th5;
}
throw cause3;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Failed to find 'out' block for switch in B:31:0x0155. Please report as an issue. */
/* JADX WARN: Multi-variable type inference failed */
public static void d(Context context, String str, String str2, String str3, FaceTecSDK.InitializeCallback initializeCallback) {
Object obj;
int i2;
di diVar = new di(context, str, str2, str3, initializeCallback);
Object[] objArr = new Object[1];
E((byte) (B >>> 1), 398, 617, objArr);
String str4 = (String) objArr[0];
byte[] bArr = A;
char c2 = 22;
short s2 = bArr[22];
Object[] objArr2 = new Object[1];
E(74, s2, (short) (s2 | 1053), objArr2);
try {
Object[] objArr3 = {(String) objArr2[0]};
char c3 = 1140;
Object[] objArr4 = new Object[1];
E(bArr[39], bArr[1140], CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr4);
Class<?> cls = Class.forName((String) objArr4[0]);
byte b2 = bArr[124];
short s3 = bArr[220];
Object[] objArr5 = new Object[1];
E(b2, s3, (short) (s3 | 209), objArr5);
String str5 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
E(bArr[39], bArr[1140], CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr6);
Object[] objArr7 = (Object[]) cls.getMethod(str5, Class.forName((String) objArr6[0])).invoke(str4, objArr3);
int[] iArr = new int[objArr7.length];
int i3 = 0;
while (i3 < objArr7.length) {
try {
Object[] objArr8 = {objArr7[i3]};
byte[] bArr2 = A;
byte b3 = bArr2[39];
short s4 = bArr2[257];
Object[] objArr9 = new Object[1];
E(b3, s4, (short) (s4 | 1037), objArr9);
Class<?> cls2 = Class.forName((String) objArr9[0]);
byte b4 = bArr2[c2];
short s5 = bArr2[18];
Object[] objArr10 = new Object[1];
E(b4, s5, (short) (s5 | 1288), objArr10);
String str6 = (String) objArr10[0];
byte b5 = bArr2[39];
short s6 = bArr2[c3];
Object[] objArr11 = new Object[1];
E(b5, s6, CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr11);
Object invoke = cls2.getMethod(str6, Class.forName((String) objArr11[0])).invoke(null, objArr8);
try {
byte b6 = bArr2[39];
short s7 = bArr2[257];
Object[] objArr12 = new Object[1];
E(b6, s7, (short) (s7 | 1037), objArr12);
Class<?> cls3 = Class.forName((String) objArr12[0]);
Object[] objArr13 = new Object[1];
E(bArr2[54], bArr2[24], 1288, objArr13);
iArr[i3] = ((Integer) cls3.getMethod((String) objArr13[0], null).invoke(invoke, null)).intValue();
i3++;
c2 = 22;
c3 = 1140;
} 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;
}
}
int i4 = 0;
while (true) {
int i5 = i4 + 1;
try {
} catch (Throwable th3) {
if (i5 < 66 || i5 > 69) {
throw th3;
}
diVar.f = th3;
diVar.a(38);
i4 = 60;
}
switch (diVar.a(iArr[i4])) {
case -49:
i4 = 112;
case -48:
diVar.a(35);
i4 = diVar.d != 0 ? 31 : 61;
case -47:
i4 = 107;
case -46:
diVar.a(35);
int i6 = diVar.d;
i4 = (i6 == 0 || i6 != 1) ? 38 : 51;
break;
case -45:
i4 = 102;
case -44:
diVar.a(35);
int i7 = diVar.d;
i4 = (i7 == 5 || i7 != 19) ? 20 : 85;
break;
case -43:
i4 = 97;
case CaptureActivity.IMAGE_CAPTURED /* -42 */:
diVar.a(35);
i4 = diVar.d != 0 ? 8 : 12;
case -41:
i4 = 16;
case -40:
i4 = 96;
case -39:
diVar.a(44);
i4 = diVar.d == 0 ? 95 : i5;
case -38:
case -37:
case -36:
diVar.a(9);
if (diVar.d == 0) {
i4 = 84;
}
case -35:
i4 = 1;
case -34:
i4 = 78;
case -33:
diVar.a(44);
if (diVar.d == 0) {
i4 = 77;
}
case -32:
diVar.e = 5;
diVar.a(2);
diVar.a(5);
final String str7 = (String) diVar.g;
diVar.a(5);
final Context context2 = (Context) diVar.g;
diVar.a(5);
final FaceTecSDK.InitializeCallback initializeCallback2 = (FaceTecSDK.InitializeCallback) diVar.g;
diVar.a(5);
final String str8 = (String) diVar.g;
diVar.a(5);
final String str9 = (String) diVar.g;
obj = new Runnable(str7, context2, initializeCallback2, str8, str9) { // from class: com.facetec.sdk.bf$$ExternalSyntheticLambda2
public final String f$0;
public final Context f$1;
public final FaceTecSDK.InitializeCallback f$2;
public final String f$3;
public final String f$4;
@Override // java.lang.Runnable
public final void run() {
bf.c(this.f$0, this.f$1, this.f$2, this.f$3, this.f$4);
}
{
this.f$0 = str7;
this.f$1 = context2;
this.f$2 = initializeCallback2;
this.f$3 = str8;
this.f$4 = str9;
}
};
diVar.f = obj;
diVar.a(4);
case -31:
diVar.a(32);
throw ((Throwable) diVar.g);
break;
case -30:
i4 = 113;
case -29:
i4 = 115;
case -28:
diVar.a(44);
if (diVar.d == 0) {
i4 = 59;
}
case -27:
diVar.e = 1;
diVar.a(2);
diVar.a(3);
D = diVar.d;
case -26:
i2 = C;
diVar.e = i2;
diVar.a(6);
case -25:
i4 = 69;
case -24:
diVar.e = 1;
diVar.a(2);
diVar.a(5);
final Context context3 = (Context) diVar.g;
diVar.f = new Runnable(context3) { // from class: com.facetec.sdk.bf$$ExternalSyntheticLambda3
public final Context f$0;
@Override // java.lang.Runnable
public final void run() {
bf.s(this.f$0);
}
{
this.f$0 = context3;
}
};
diVar.a(4);
case IpLibUtil.KIPP_BAD_HANDLE /* -23 */:
i4 = 41;
case IpLibUtil.KIPP_FILE_METADATA_ERROR /* -22 */:
diVar.e = 1;
diVar.a(2);
diVar.a(5);
obj = cy.b((Runnable) diVar.g);
diVar.f = obj;
diVar.a(4);
case IpLibUtil.KIPP_READING_USER_NETWORK_ERROR /* -21 */:
diVar.e = 5;
diVar.a(2);
diVar.a(5);
final String str10 = (String) diVar.g;
diVar.a(5);
final Context context4 = (Context) diVar.g;
diVar.a(5);
final FaceTecSDK.InitializeCallback initializeCallback3 = (FaceTecSDK.InitializeCallback) diVar.g;
diVar.a(5);
final String str11 = (String) diVar.g;
diVar.a(5);
final String str12 = (String) diVar.g;
obj = new Runnable(str10, context4, initializeCallback3, str11, str12) { // from class: com.facetec.sdk.bf$$ExternalSyntheticLambda2
public final String f$0;
public final Context f$1;
public final FaceTecSDK.InitializeCallback f$2;
public final String f$3;
public final String f$4;
@Override // java.lang.Runnable
public final void run() {
bf.c(this.f$0, this.f$1, this.f$2, this.f$3, this.f$4);
}
{
this.f$0 = str10;
this.f$1 = context4;
this.f$2 = initializeCallback3;
this.f$3 = str11;
this.f$4 = str12;
}
};
diVar.f = obj;
diVar.a(4);
case IpLibUtil.KIPP_BAD_SPEED_ACCURACY_ERROR /* -20 */:
i4 = 108;
case IpLibUtil.KIPP_PDF_TOO_LARGE_TO_APPEND /* -19 */:
i4 = 110;
case IpLibUtil.KIPP_ENCRYPTED_APPEND_ERROR /* -18 */:
diVar.a(7);
if (diVar.d == 0) {
i4 = 30;
}
case IpLibUtil.KIPP_BAD_PDF /* -17 */:
diVar.e = 1;
diVar.a(2);
diVar.a(5);
i2 = g((Context) diVar.g);
diVar.e = i2;
diVar.a(6);
case IpLibUtil.KIPP_CANNOT_APPEND_TO_FILETYPE /* -16 */:
diVar.e = 1;
diVar.a(2);
diVar.a(3);
l = diVar.d != 0;
case IpLibUtil.KIPP_BAD_FILE_TO_APPEND_TO /* -15 */:
diVar.e = 1;
diVar.a(2);
diVar.a(5);
e = (String) diVar.g;
case IpLibUtil.KIPP_BAD_FILE_FORMAT_INTERNALS /* -14 */:
diVar.e = 2;
diVar.a(2);
diVar.a(5);
Context context5 = (Context) diVar.g;
diVar.a(3);
e(context5, diVar.d != 0);
case IpLibUtil.KIPP_IMAGE_DOES_NOT_EXIST /* -13 */:
return;
case IpLibUtil.KIPP_UNKNOWN_FILETYPE /* -12 */:
i4 = 103;
case -11:
i4 = 105;
case -10:
diVar.a(14);
if (diVar.d == 0) {
i4 = 15;
}
case -9:
i4 = 49;
case -8:
diVar.e = 3;
diVar.a(2);
diVar.a(5);
Context context6 = (Context) diVar.g;
diVar.a(5);
FaceTecSDK.InitializeCallback initializeCallback4 = (FaceTecSDK.InitializeCallback) diVar.g;
diVar.a(3);
e(context6, initializeCallback4, diVar.d != 0);
case -7:
i4 = 98;
case -6:
i4 = 100;
case -5:
diVar.a(9);
if (diVar.d == 0) {
i4 = 7;
}
case -4:
obj = a.VALIDATED;
diVar.f = obj;
diVar.a(4);
case -3:
obj = g;
diVar.f = obj;
diVar.a(4);
case -2:
diVar.e = 1;
diVar.a(2);
diVar.a(3);
k = diVar.d != 0;
case -1:
i4 = 46;
default:
}
}
throw th3;
} catch (Throwable th4) {
Throwable cause3 = th4.getCause();
if (cause3 == null) {
throw th4;
}
throw cause3;
}
}
/* JADX WARN: Failed to find 'out' block for switch in B:29:0x0157. Please report as an issue. */
private static void b(Context context, String str, String str2, FaceTecSDK.InitializeCallback initializeCallback) {
Object obj;
Object obj2;
Object dVar;
di diVar = new di(context, str, str2, initializeCallback);
int i2 = 1;
byte b2 = (byte) (B >>> 1);
byte[] bArr = A;
char c2 = 22;
Object[] objArr = new Object[1];
E(b2, 252, bArr[22], objArr);
String str3 = (String) objArr[0];
short s2 = bArr[22];
Object[] objArr2 = new Object[1];
E(74, s2, (short) (s2 | 1053), objArr2);
try {
Object[] objArr3 = {(String) objArr2[0]};
char c3 = 1140;
Object[] objArr4 = new Object[1];
E(bArr[39], bArr[1140], CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr4);
Class<?> cls = Class.forName((String) objArr4[0]);
byte b3 = bArr[124];
short s3 = bArr[220];
Object[] objArr5 = new Object[1];
E(b3, s3, (short) (s3 | 209), objArr5);
String str4 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
E(bArr[39], bArr[1140], CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr6);
Object[] objArr7 = (Object[]) cls.getMethod(str4, Class.forName((String) objArr6[0])).invoke(str3, objArr3);
int[] iArr = new int[objArr7.length];
int i3 = 0;
while (i3 < objArr7.length) {
try {
Object[] objArr8 = {objArr7[i3]};
byte[] bArr2 = A;
byte b4 = bArr2[39];
short s4 = bArr2[257];
Object[] objArr9 = new Object[i2];
E(b4, s4, (short) (s4 | 1037), objArr9);
Class<?> cls2 = Class.forName((String) objArr9[0]);
byte b5 = bArr2[c2];
short s5 = bArr2[18];
Object[] objArr10 = new Object[i2];
E(b5, s5, (short) (s5 | 1288), objArr10);
String str5 = (String) objArr10[0];
Class<?>[] clsArr = new Class[i2];
byte b6 = bArr2[39];
short s6 = bArr2[c3];
Object[] objArr11 = new Object[i2];
E(b6, s6, CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr11);
clsArr[0] = Class.forName((String) objArr11[0]);
Object invoke = cls2.getMethod(str5, clsArr).invoke(null, objArr8);
try {
byte b7 = bArr2[39];
short s7 = bArr2[257];
Object[] objArr12 = new Object[1];
E(b7, s7, (short) (s7 | 1037), objArr12);
Class<?> cls3 = Class.forName((String) objArr12[0]);
byte b8 = bArr2[54];
short s8 = bArr2[24];
Object[] objArr13 = new Object[1];
E(b8, s8, 1288, objArr13);
iArr[i3] = ((Integer) cls3.getMethod((String) objArr13[0], null).invoke(invoke, null)).intValue();
i3++;
i2 = 1;
c2 = 22;
c3 = 1140;
} 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;
}
}
int i4 = 0;
while (true) {
int i5 = i4 + 1;
switch (diVar.a(iArr[i4])) {
case -32:
i5 = 71;
case -31:
diVar.a(35);
int i6 = diVar.d;
i4 = (i6 == 17 || i6 != 19) ? 49 : 1;
break;
case -30:
i4 = 39;
case -29:
i5 = 70;
case -28:
diVar.a(7);
if (diVar.d == 0) {
i5 = 69;
}
case -27:
diVar.e = 1;
diVar.a(2);
diVar.a(3);
C = diVar.d;
case -26:
diVar.e = D;
diVar.a(6);
case -25:
diVar.a(9);
if (diVar.d == 0) {
i5 = 61;
}
case -24:
i4 = 72;
case IpLibUtil.KIPP_BAD_HANDLE /* -23 */:
i4 = 74;
case IpLibUtil.KIPP_FILE_METADATA_ERROR /* -22 */:
obj = null;
diVar.a(44);
i4 = diVar.d == 0 ? 48 : i5;
case IpLibUtil.KIPP_READING_USER_NETWORK_ERROR /* -21 */:
obj = null;
diVar.e = 1;
diVar.a(2);
diVar.a(3);
D = diVar.d;
case IpLibUtil.KIPP_BAD_SPEED_ACCURACY_ERROR /* -20 */:
obj = null;
diVar.e = C;
diVar.a(6);
case IpLibUtil.KIPP_PDF_TOO_LARGE_TO_APPEND /* -19 */:
i4 = 41;
case IpLibUtil.KIPP_ENCRYPTED_APPEND_ERROR /* -18 */:
i4 = 62;
case IpLibUtil.KIPP_BAD_PDF /* -17 */:
obj = null;
obj2 = a.REJECTED;
diVar.f = obj2;
diVar.a(4);
case IpLibUtil.KIPP_CANNOT_APPEND_TO_FILETYPE /* -16 */:
return;
case IpLibUtil.KIPP_BAD_FILE_TO_APPEND_TO /* -15 */:
obj = null;
diVar.e = 3;
diVar.a(2);
diVar.a(5);
Context context2 = (Context) diVar.g;
diVar.a(5);
FaceTecSDK.InitializeCallback initializeCallback2 = (FaceTecSDK.InitializeCallback) diVar.g;
diVar.a(3);
e(context2, initializeCallback2, diVar.d != 0);
case IpLibUtil.KIPP_BAD_FILE_FORMAT_INTERNALS /* -14 */:
obj = null;
diVar.e = 2;
diVar.a(2);
diVar.a(5);
Context context3 = (Context) diVar.g;
diVar.a(5);
c.e(context3, (c.d) diVar.g);
case IpLibUtil.KIPP_IMAGE_DOES_NOT_EXIST /* -13 */:
obj = null;
diVar.e = 2;
diVar.a(2);
diVar.a(5);
c.d dVar2 = (c.d) diVar.g;
diVar.a(5);
dVar2.c = (Boolean) diVar.g;
case IpLibUtil.KIPP_UNKNOWN_FILETYPE /* -12 */:
byte[] bArr3 = A;
byte b9 = bArr3[39];
short s9 = bArr3[257];
Object[] objArr14 = new Object[1];
E(b9, s9, (short) (s9 | 170), objArr14);
Class<?> cls4 = Class.forName((String) objArr14[0]);
Object[] objArr15 = new Object[1];
E(48, bArr3[220], CipherSuite.TLS_DH_RSA_WITH_AES_256_GCM_SHA384, objArr15);
Field field = cls4.getField((String) objArr15[0]);
obj = null;
obj2 = field.get(null);
diVar.f = obj2;
diVar.a(4);
case -11:
dVar = new c.d();
diVar.f = dVar;
diVar.a(4);
case -10:
diVar.e = 1;
diVar.a(2);
diVar.a(5);
g = (a) diVar.g;
case -9:
dVar = a.VALIDATED;
diVar.f = dVar;
diVar.a(4);
case -8:
i4 = 29;
case -7:
i4 = 15;
case -6:
diVar.a(9);
if (diVar.d == 0) {
i4 = 14;
}
case -5:
dVar = bvJ24023$d.VALIDATED;
diVar.f = dVar;
diVar.a(4);
case -4:
diVar.e = 3;
diVar.a(2);
diVar.a(5);
Context context4 = (Context) diVar.g;
diVar.a(5);
String str6 = (String) diVar.g;
diVar.a(5);
try {
Object[] objArr16 = {context4, str6, (String) diVar.g};
Object obj3 = bo.s.get(1553246091);
if (obj3 == null) {
obj3 = ((Class) bo.e(52 - TextUtils.indexOf("", ""), (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1), TextUtils.indexOf("", "", 0) + 24)).getDeclaredMethod("b", Context.class, String.class, String.class);
bo.s.put(1553246091, obj3);
}
dVar = ((Method) obj3).invoke(null, objArr16);
diVar.f = dVar;
diVar.a(4);
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
case -3:
diVar.e = 1;
diVar.a(2);
diVar.a(5);
dVar = c((Context) diVar.g);
diVar.f = dVar;
diVar.a(4);
case -2:
diVar.e = 2;
diVar.a(2);
diVar.a(5);
Context context5 = (Context) diVar.g;
diVar.a(3);
dVar = d(context5, diVar.d != 0);
diVar.f = dVar;
diVar.a(4);
case -1:
i4 = 36;
default:
}
}
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Failed to find 'out' block for switch in B:31:0x0151. Please report as an issue. */
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:54:0x01f3 A[Catch: all -> 0x0459, TryCatch #6 {all -> 0x0459, blocks: (B:43:0x01db, B:44:0x0455, B:52:0x01ed, B:54:0x01f3, B:55:0x01f4, B:67:0x01f5, B:210:0x0209, B:212:0x021e, B:215:0x0239, B:218:0x023e, B:220:0x0246, B:222:0x024e, B:229:0x0270, B:232:0x0292, B:235:0x02a0, B:237:0x02b5, B:240:0x02c9, B:243:0x02cd, B:245:0x02d6, B:252:0x02f9, B:254:0x0302, B:256:0x0318, B:257:0x032d, B:258:0x03c5, B:260:0x0331, B:267:0x0353, B:268:0x0377, B:270:0x037b, B:272:0x039f, B:274:0x03bc, B:276:0x03c9, B:278:0x03db, B:285:0x03fd, B:133:0x0422, B:134:0x042e, B:292:0x042f), top: B:66:0x01f5 }] */
/* JADX WARN: Removed duplicated region for block: B:55:0x01f4 A[Catch: all -> 0x0459, TryCatch #6 {all -> 0x0459, blocks: (B:43:0x01db, B:44:0x0455, B:52:0x01ed, B:54:0x01f3, B:55:0x01f4, B:67:0x01f5, B:210:0x0209, B:212:0x021e, B:215:0x0239, B:218:0x023e, B:220:0x0246, B:222:0x024e, B:229:0x0270, B:232:0x0292, B:235:0x02a0, B:237:0x02b5, B:240:0x02c9, B:243:0x02cd, B:245:0x02d6, B:252:0x02f9, B:254:0x0302, B:256:0x0318, B:257:0x032d, B:258:0x03c5, B:260:0x0331, B:267:0x0353, B:268:0x0377, B:270:0x037b, B:272:0x039f, B:274:0x03bc, B:276:0x03c9, B:278:0x03db, B:285:0x03fd, B:133:0x0422, B:134:0x042e, B:292:0x042f), top: B:66:0x01f5 }] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static void a(android.content.Context r19, java.lang.String r20, java.lang.String r21, com.facetec.sdk.FaceTecSDK.InitializeCallback r22) {
/*
Method dump skipped, instructions count: 1388
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.bf.a(android.content.Context, java.lang.String, java.lang.String, com.facetec.sdk.FaceTecSDK$InitializeCallback):void");
}
/* JADX WARN: Failed to find 'out' block for switch in B:31:0x0147. Please report as an issue. */
private static void a(Context context, FaceTecSDK.InitializeCallback initializeCallback) {
int i2;
di diVar = new di(context, initializeCallback);
int i3 = B;
byte b2 = (byte) (i3 >>> 1);
short s2 = (short) (i3 - 4);
Object[] objArr = new Object[1];
E(b2, s2, s2, objArr);
int i4 = 0;
String str = (String) objArr[0];
byte[] bArr = A;
char c2 = 22;
short s3 = bArr[22];
Object[] objArr2 = new Object[1];
E(74, s3, (short) (s3 | 1053), objArr2);
try {
Object[] objArr3 = {(String) objArr2[0]};
char c3 = 1140;
Object[] objArr4 = new Object[1];
E(bArr[39], bArr[1140], CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr4);
Class<?> cls = Class.forName((String) objArr4[0]);
byte b3 = bArr[124];
short s4 = bArr[220];
Object[] objArr5 = new Object[1];
E(b3, s4, (short) (s4 | 209), objArr5);
String str2 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
E(bArr[39], bArr[1140], CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr6);
Object[] objArr7 = (Object[]) cls.getMethod(str2, Class.forName((String) objArr6[0])).invoke(str, objArr3);
int[] iArr = new int[objArr7.length];
int i5 = 0;
while (i5 < objArr7.length) {
try {
Object[] objArr8 = {objArr7[i5]};
byte[] bArr2 = A;
byte b4 = bArr2[39];
short s5 = bArr2[257];
Object[] objArr9 = new Object[1];
E(b4, s5, (short) (s5 | 1037), objArr9);
Class<?> cls2 = Class.forName((String) objArr9[0]);
byte b5 = bArr2[c2];
short s6 = bArr2[18];
Object[] objArr10 = new Object[1];
E(b5, s6, (short) (s6 | 1288), objArr10);
String str3 = (String) objArr10[0];
byte b6 = bArr2[39];
short s7 = bArr2[c3];
Object[] objArr11 = new Object[1];
E(b6, s7, CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384, objArr11);
Object invoke = cls2.getMethod(str3, Class.forName((String) objArr11[0])).invoke(null, objArr8);
try {
byte b7 = bArr2[39];
short s8 = bArr2[257];
Object[] objArr12 = new Object[1];
E(b7, s8, (short) (s8 | 1037), objArr12);
Class<?> cls3 = Class.forName((String) objArr12[0]);
byte b8 = bArr2[54];
short s9 = bArr2[24];
Object[] objArr13 = new Object[1];
E(b8, s9, 1288, objArr13);
iArr[i5] = ((Integer) cls3.getMethod((String) objArr13[0], null).invoke(invoke, null)).intValue();
i5++;
c2 = 22;
c3 = 1140;
} 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;
}
}
while (true) {
int i6 = i4 + 1;
try {
} catch (Throwable th3) {
th = th3;
}
switch (diVar.a(iArr[i4])) {
case IpLibUtil.KIPP_PDF_TOO_LARGE_TO_APPEND /* -19 */:
i4 = 39;
case IpLibUtil.KIPP_ENCRYPTED_APPEND_ERROR /* -18 */:
i4 = 35;
diVar.a(35);
if (diVar.d != 35) {
i4 = 10;
}
case IpLibUtil.KIPP_BAD_PDF /* -17 */:
diVar.a(32);
throw ((Throwable) diVar.g);
break;
case IpLibUtil.KIPP_CANNOT_APPEND_TO_FILETYPE /* -16 */:
i4 = 40;
case IpLibUtil.KIPP_BAD_FILE_TO_APPEND_TO /* -15 */:
i4 = 42;
case IpLibUtil.KIPP_BAD_FILE_FORMAT_INTERNALS /* -14 */:
diVar.a(44);
i4 = diVar.d == 0 ? 33 : i6;
case IpLibUtil.KIPP_IMAGE_DOES_NOT_EXIST /* -13 */:
diVar.e = 1;
diVar.a(2);
diVar.a(3);
D = diVar.d;
case IpLibUtil.KIPP_UNKNOWN_FILETYPE /* -12 */:
i2 = C;
diVar.e = i2;
diVar.a(6);
case -11:
i4 = 1;
case -10:
i4 = 23;
case -9:
diVar.a(7);
if (diVar.d == 0) {
i4 = 22;
}
case -8:
diVar.e = 1;
diVar.a(2);
diVar.a(3);
C = diVar.d;
case -7:
i2 = D;
diVar.e = i2;
diVar.a(6);
case -6:
return;
case -5:
i4 = 12;
case -4:
i4 = 24;
case -3:
diVar.e = 2;
diVar.a(2);
diVar.a(5);
Context context2 = (Context) diVar.g;
diVar.a(5);
e(context2, (ax.d) diVar.g);
case -2:
diVar.e = 2;
diVar.a(2);
diVar.a(5);
final Context context3 = (Context) diVar.g;
diVar.a(5);
final FaceTecSDK.InitializeCallback initializeCallback2 = (FaceTecSDK.InitializeCallback) diVar.g;
diVar.f = new ax.d(context3, initializeCallback2) { // from class: com.facetec.sdk.bf$$ExternalSyntheticLambda0
public final Context f$0;
public final FaceTecSDK.InitializeCallback f$1;
@Override // com.facetec.sdk.ax.d
public final void onCompletion(ax.a aVar) {
bf.e(this.f$0, this.f$1, aVar);
}
{
this.f$0 = context3;
this.f$1 = initializeCallback2;
}
};
try {
diVar.a(4);
} catch (Throwable th4) {
th = th4;
if (i6 < 36 || i6 > 39) {
throw th;
}
diVar.f = th;
diVar.a(38);
i4 = 34;
}
break;
case -1:
i4 = 7;
default:
}
}
} catch (Throwable th5) {
Throwable cause3 = th5.getCause();
if (cause3 == null) {
throw th5;
}
throw cause3;
}
}
}