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

2531 lines
98 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.drawable.Drawable;
import android.hardware.usb.UsbDevice;
import android.hardware.usb.UsbManager;
import android.media.AudioTrack;
import android.os.Build;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.facetec.sdk.t;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import java.lang.ref.WeakReference;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Timer;
import java.util.TimerTask;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import okhttp3.internal.http.StatusLine;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.bouncycastle.i18n.LocalizedMessage;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class cd {
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 char[] E;
private static long H;
private static boolean I;
private static int J;
private static char[] K;
private static int L;
private static int M;
private static long N;
private static final byte[] P = null;
private static final int S = 0;
static volatile String b;
static volatile String d;
private static cd e;
private final v A;
private boolean D;
private ce k;
private final WeakReference<Activity> l;
private ci m;
private cc n;
/* renamed from: o, reason: collision with root package name */
private cf f6418o;
private d p;
private ck q;
private cl r;
private ch s;
private cj t;
private int y;
private final s z;
boolean a = false;
boolean c = false;
private a w = a.NOT_STARTED;
private final Object u = new Object();
private int v = 0;
private final Timer x = new Timer();
private TimerTask C = null;
private Date B = null;
private final Semaphore G = new Semaphore(1);
private boolean F = false;
private final ExecutorService g = Executors.newSingleThreadExecutor();
private final ExecutorService f = Executors.newSingleThreadExecutor();
private final ArrayList<WeakReference<c>> j = new ArrayList<>(2);
private final ArrayList<WeakReference<e>> h = new ArrayList<>(2);
private final ArrayList<WeakReference<b>> i = new ArrayList<>(2);
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public enum a {
NOT_STARTED,
PRE_SESSION,
PROCESSING,
ID_SCAN,
WAITING_TO_FINISH,
FINISHED
}
/* JADX INFO: Access modifiers changed from: package-private */
@FunctionalInterface
/* loaded from: classes.dex */
public interface b {
void onIDScanProgress(cf cfVar, cc ccVar);
}
/* JADX INFO: Access modifiers changed from: package-private */
@FunctionalInterface
/* loaded from: classes.dex */
public interface c {
void onPreSessionProgress(cl clVar, ch chVar, cj cjVar, ck ckVar);
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public interface e {
void a();
void c();
void c(ci ciVar, ce ceVar);
void d();
void e();
}
/* 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 ae(short r6, short r7, short r8, java.lang.Object[] r9) {
/*
int r6 = 100 - r6
int r7 = r7 << 2
int r8 = r8 << 2
int r8 = 3 - r8
byte[] r0 = com.facetec.sdk.cd.$$a
int r1 = r7 + 1
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L15
r3 = r8
r4 = r2
r8 = r7
goto L2e
L15:
r3 = r2
L16:
int r8 = r8 + 1
byte r4 = (byte) r6
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:
r4 = r0[r8]
int r3 = r3 + 1
r5 = r8
r8 = r6
r6 = r4
r4 = r3
r3 = r5
L2e:
int r6 = -r6
int r6 = r6 + r8
r8 = r3
r3 = r4
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.cd.ae(short, short, short, java.lang.Object[]):void");
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0020 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0018 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0020 -> B:4:0x0027). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void ag(short r7, short r8, int r9, java.lang.Object[] r10) {
/*
byte[] r0 = com.facetec.sdk.cd.P
int r8 = 392 - r8
int r9 = r9 + 4
int r7 = r7 + 44
byte[] r1 = new byte[r8]
r2 = 0
if (r0 != 0) goto L10
r3 = r9
r5 = r2
goto L27
L10:
r3 = r2
L11:
byte r4 = (byte) r7
int r5 = r3 + 1
r1[r3] = r4
if (r5 != r8) goto L20
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L20:
int r9 = r9 + 1
r3 = r0[r9]
r6 = r3
r3 = r9
r9 = r6
L27:
int r7 = r7 - r9
r9 = r3
r3 = r5
goto L11
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.cd.ag(short, short, int, 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:0x002d). 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 ai(int r6, short r7, short r8, java.lang.Object[] r9) {
/*
byte[] r0 = com.facetec.sdk.cd.$$d
int r7 = r7 + 107
int r8 = r8 * 3
int r6 = r6 << 1
int r6 = r6 + 4
int r1 = 1 - r8
byte[] r1 = new byte[r1]
r2 = 0
int r8 = 0 - r8
if (r0 != 0) goto L17
r7 = r6
r3 = r8
r4 = r2
goto L2d
L17:
r3 = r2
L18:
byte r4 = (byte) r7
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r8) goto L27
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L27:
r3 = r0[r6]
r5 = r7
r7 = r6
r6 = r3
r3 = r5
L2d:
int r6 = -r6
int r6 = r6 + r3
int r7 = r7 + 1
r3 = r4
r5 = r7
r7 = r6
r6 = r5
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.cd.ai(int, short, short, java.lang.Object[]):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public static final class d {
final byte[] a;
final int b;
final int c;
d(byte[] bArr, int i, int i2) {
this.a = bArr;
this.b = i;
this.c = i2;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static cd a(Activity activity) throws Throwable {
cd cdVar;
synchronized (cd.class) {
M = (J + 83) % 128;
if (e == null) {
e = new cd(activity);
boolean e2 = cg.e(activity);
if (!I) {
int i = M + 47;
J = i % 128;
if (i % 2 != 0) {
throw new ArithmeticException();
}
if (!e2) {
throw new AssertionError();
}
}
}
cdVar = e;
}
return cdVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void b() {
synchronized (cd.class) {
cd cdVar = e;
if (cdVar != null) {
int i = M + 33;
J = i % 128;
if (i % 2 == 0) {
cdVar.v();
e = null;
} else {
cdVar.v();
e = null;
throw null;
}
}
M = (J + 85) % 128;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void a() {
synchronized (cd.class) {
int i = M + 125;
int i2 = i % 128;
J = i2;
if (i % 2 != 0) {
throw null;
}
if (e == null) {
int i3 = i2 + 95;
M = i3 % 128;
if (i3 % 2 == 0) {
cg.e();
throw new NullPointerException();
}
cg.e();
}
int i4 = J + 113;
M = i4 % 128;
if (i4 % 2 == 0) {
throw new NullPointerException();
}
}
}
static {
init$1();
$10 = 0;
$11 = 1;
init$0();
t();
J = 0;
M = 1;
s();
m();
int i = M;
J = (i + 13) % 128;
J = (i + 45) % 128;
I = true;
e = null;
b = "";
d = "";
}
private cd(Activity activity) {
this.D = true;
this.l = new WeakReference<>(activity);
this.z = new s(activity);
this.A = new v(activity);
d = null;
this.D = bf.e();
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void c() {
if (this.A != null) {
M = (J + 9) % 128;
if (this.w != a.ID_SCAN) {
this.A.b(false);
M = (J + 115) % 128;
}
}
}
private void c(boolean z) {
int i = (M + 123) % 128;
J = i;
if (this.A != null) {
M = (i + 101) % 128;
if (this.w != a.ID_SCAN) {
e();
this.A.b(z);
this.c = false;
M = (J + 63) % 128;
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void e() {
int i = J;
M = (i + 99) % 128;
v vVar = this.A;
if (vVar != null) {
M = (i + 9) % 128;
if (vVar.e()) {
this.A.d(this.c);
B();
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void d() {
int i = M;
int i2 = i + 119;
J = i2 % 128;
if (i2 % 2 != 0) {
throw new ArithmeticException();
}
v vVar = this.A;
if (vVar == null) {
J = (i + 63) % 128;
return;
}
vVar.c();
int i3 = J + 51;
M = i3 % 128;
if (i3 % 2 == 0) {
throw new ArithmeticException();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void h() {
M = (J + 67) % 128;
b = UUID.randomUUID().toString();
J = (M + 97) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void e(e eVar) {
synchronized (this) {
this.h.add(new WeakReference<>(eVar));
J = (M + 33) % 128;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void b(c cVar) {
synchronized (this) {
this.j.add(new WeakReference<>(cVar));
J = (M + 37) % 128;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void b(b bVar) {
synchronized (this) {
this.i.add(new WeakReference<>(bVar));
int i = M + 1;
J = i % 128;
if (i % 2 != 0) {
throw null;
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Code restructure failed: missing block: B:14:0x0033, code lost:
r0.remove();
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x003b, code lost:
throw new java.lang.NullPointerException();
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void a(com.facetec.sdk.cd.e r4) {
/*
r3 = this;
monitor-enter(r3)
java.util.ArrayList<java.lang.ref.WeakReference<com.facetec.sdk.cd$e>> r0 = r3.h // Catch: java.lang.Throwable -> L47
java.util.Iterator r0 = r0.iterator() // Catch: java.lang.Throwable -> L47
int r1 = com.facetec.sdk.cd.J // Catch: java.lang.Throwable -> L47
int r1 = r1 + 45
int r1 = r1 % 128
Ld:
com.facetec.sdk.cd.M = r1 // Catch: java.lang.Throwable -> L47
boolean r1 = r0.hasNext() // Catch: java.lang.Throwable -> L47
r2 = 1
r1 = r1 ^ r2
if (r1 == r2) goto L45
java.lang.Object r1 = r0.next() // Catch: java.lang.Throwable -> L47
java.lang.ref.WeakReference r1 = (java.lang.ref.WeakReference) r1 // Catch: java.lang.Throwable -> L47
java.lang.Object r1 = r1.get() // Catch: java.lang.Throwable -> L47
if (r1 != r4) goto L3e
int r1 = com.facetec.sdk.cd.M // Catch: java.lang.Throwable -> L47
int r1 = r1 + 125
int r2 = r1 % 128
com.facetec.sdk.cd.J = r2 // Catch: java.lang.Throwable -> L47
int r1 = r1 % 2
if (r1 != 0) goto L33
r0.remove() // Catch: java.lang.Throwable -> L47
goto L3e
L33:
r0.remove() // Catch: java.lang.Throwable -> L47
java.lang.NullPointerException r4 = new java.lang.NullPointerException // Catch: java.lang.Throwable -> L3c
r4.<init>() // Catch: java.lang.Throwable -> L3c
throw r4 // Catch: java.lang.Throwable -> L3c
L3c:
r4 = move-exception
throw r4 // Catch: java.lang.Throwable -> L47
L3e:
int r1 = com.facetec.sdk.cd.J // Catch: java.lang.Throwable -> L47
int r1 = r1 + 27
int r1 = r1 % 128
goto Ld
L45:
monitor-exit(r3)
return
L47:
r4 = move-exception
monitor-exit(r3)
throw r4
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.cd.a(com.facetec.sdk.cd$e):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void c(c cVar) {
synchronized (this) {
J = (M + 43) % 128;
Iterator<WeakReference<c>> it = this.j.iterator();
int i = M + 69;
while (true) {
J = i % 128;
if (it.hasNext()) {
if (it.next().get() == cVar) {
it.remove();
}
i = M + 107;
}
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void a(b bVar) {
synchronized (this) {
M = (J + 121) % 128;
Iterator<WeakReference<b>> it = this.i.iterator();
while (it.hasNext()) {
int i = M + 103;
J = i % 128;
if (i % 2 != 0) {
it.next().get();
throw new NullPointerException();
}
if (it.next().get() == bVar) {
it.remove();
}
M = (J + 77) % 128;
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final d j() {
int i = J;
M = (i + 93) % 128;
d dVar = this.p;
M = (i + 75) % 128;
return dVar;
}
private boolean q() {
boolean z;
synchronized (this.u) {
if (this.w == a.PRE_SESSION || this.w == a.PROCESSING || this.w == a.ID_SCAN) {
z = this.F ? false : true;
}
}
return z;
}
private static void r() {
synchronized (cd.class) {
int i = J + 25;
M = i % 128;
if (i % 2 == 0) {
throw new ArithmeticException();
}
if (d == null) {
d = UUID.randomUUID().toString();
M = (J + 15) % 128;
} else {
if (!d.equals("")) {
J = (M + 115) % 128;
d = UUID.randomUUID().toString();
}
}
}
}
private static void d(Context context) {
M = (J + 93) % 128;
cg.M(d);
cg.J(bf.d(context, false));
int blue = Color.blue(0);
Object[] objArr = new Object[1];
ad(7 - blue, ViewConfiguration.getScrollDefaultDelay() >> 16, (char) (TextUtils.indexOf("", "", 0, 0) + 24567), objArr);
cg.N(((String) objArr[0]).intern());
cg.K(Build.MODEL);
cg.O(Build.VERSION.RELEASE);
cg.R(context.getPackageName());
Locale locale = Locale.getDefault();
cg.P(locale.getLanguage());
cg.S(locale.toString());
cg.Q("9.6.76");
cg.T(as.c());
cg.U(as.e(context));
cg.F(ak.Y, FaceTecSDK.e);
cg.F(ak.ac, FaceTecSDK.h);
cg.F(ak.Z, FaceTecSDK.i);
J = (M + 87) % 128;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void aa() {
J = (M + 27) % 128;
p();
M = (J + 45) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.facetec.sdk.cd$1, reason: invalid class name */
/* loaded from: classes.dex */
public static final /* synthetic */ class AnonymousClass1 {
static final int[] c;
static {
int[] iArr = new int[a.values().length];
c = iArr;
try {
iArr[a.NOT_STARTED.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
c[a.FINISHED.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
c[a.WAITING_TO_FINISH.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
c[a.PRE_SESSION.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
c[a.PROCESSING.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Removed duplicated region for block: B:17:0x013f A[EXC_TOP_SPLITTER, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean d(final android.content.Context r17, java.lang.String r18) {
/*
Method dump skipped, instructions count: 471
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.cd.d(android.content.Context, java.lang.String):boolean");
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void c(Context context) {
M = (J + 53) % 128;
if (this.D) {
m.a(context);
}
J = (M + 23) % 128;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void ac() {
int i = J + 111;
M = i % 128;
z();
if (i % 2 == 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void Z() {
J = (M + 19) % 128;
p();
int i = J + 49;
M = i % 128;
if (i % 2 == 0) {
throw new ArithmeticException();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void a(Context context, boolean z, String str) {
synchronized (this) {
this.y = 0;
cy.b(new Runnable() { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda2
@Override // java.lang.Runnable
public final void run() {
cd.Z();
}
});
int[] iArr = AnonymousClass1.c;
a aVar = this.w;
try {
byte[] bArr = P;
Object[] objArr = new Object[1];
ag(bArr[438], (short) 378, (short) (S | 384), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ag((short) 67, (short) 385, 603, objArr2);
int i = iArr[((Integer) cls.getMethod((String) objArr2[0], null).invoke(aVar, null)).intValue()];
if (i == 1 || i == 2) {
if (!cg.j(z, str)) {
return;
} else {
this.w = a.ID_SCAN;
}
} else {
if (i == 3 || i == 4) {
return;
}
if (i == 5) {
return;
}
}
synchronized (this.x) {
u();
da daVar = new da(new Runnable(this) { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda3
public final cd f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.Y();
}
{
this.f$0 = this;
}
});
this.C = daVar;
Timer timer = this.x;
try {
Object[] objArr3 = {daVar, 60L, 10000L};
Object[] objArr4 = new Object[1];
ag(bArr[438], (short) 377, 425, objArr4);
Class<?> cls2 = Class.forName((String) objArr4[0]);
Object[] objArr5 = new Object[1];
ag((byte) (-bArr[434]), (short) 373, bArr[26], objArr5);
String str2 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
ag(bArr[438], (short) 373, 543, objArr6);
cls2.getMethod(str2, Class.forName((String) objArr6[0]), Long.TYPE, Long.TYPE).invoke(timer, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
d(context);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void Y() {
M = (J + 49) % 128;
z();
M = (J + 73) % 128;
}
private void u() {
synchronized (this.x) {
this.B = null;
TimerTask timerTask = this.C;
if (timerTask != null) {
timerTask.cancel();
this.C = null;
}
}
}
private void a(Context context) {
J = (M + 61) % 128;
if (bz.c(context)) {
J = (M + 79) % 128;
cg.B();
}
if (this.D) {
M = (J + 37) % 128;
cg.y();
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void ab() {
J = (M + 75) % 128;
y();
J = (M + 33) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void i() {
boolean z;
synchronized (this) {
cy.b(new Runnable() { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda16
@Override // java.lang.Runnable
public final void run() {
cd.ab();
}
});
synchronized (this.u) {
if (this.w != a.PRE_SESSION && this.w != a.PROCESSING && this.w != a.WAITING_TO_FINISH) {
z = false;
}
this.w = a.FINISHED;
z = true;
}
if (z) {
cg.f(true);
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void X() {
M = (J + 83) % 128;
y();
J = (M + 105) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void g() {
boolean z;
synchronized (this) {
cy.b(new Runnable() { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda8
@Override // java.lang.Runnable
public final void run() {
cd.X();
}
});
synchronized (this.u) {
z = this.w == a.ID_SCAN || this.w == a.PRE_SESSION || this.w == a.PROCESSING || this.w == a.WAITING_TO_FINISH;
this.w = a.FINISHED;
}
if (z) {
cg.i(false);
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void f() {
synchronized (this) {
synchronized (this.u) {
if (this.w == a.PROCESSING || this.w == a.WAITING_TO_FINISH) {
this.w = a.FINISHED;
}
}
cy.b(new Runnable() { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda0
@Override // java.lang.Runnable
public final void run() {
cd.T();
}
});
u();
e();
this.j.clear();
this.h.clear();
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void T() {
M = (J + 111) % 128;
y();
M = (J + 5) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void e(boolean z) {
boolean z2;
synchronized (this) {
synchronized (this.u) {
z2 = this.w == a.PROCESSING || this.w == a.WAITING_TO_FINISH;
this.w = a.FINISHED;
}
cy.b(new Runnable() { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda15
@Override // java.lang.Runnable
public final void run() {
cd.W();
}
});
u();
e();
if (z2) {
cg.e(z);
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void W() {
M = (J + 121) % 128;
y();
J = (M + 65) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void o() {
synchronized (this.u) {
if (this.w == a.PRE_SESSION || this.w == a.PROCESSING || this.w == a.ID_SCAN) {
this.w = a.WAITING_TO_FINISH;
}
}
u();
ArrayList<WeakReference<c>> arrayList = this.j;
try {
byte[] bArr = P;
byte b2 = bArr[438];
short s = (short) (S | 256);
Object[] objArr = new Object[1];
ag(b2, s, 461, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ag((byte) (bArr[516] + 1), (short) 387, StatusLine.HTTP_MISDIRECTED_REQUEST, objArr2);
cls.getMethod((String) objArr2[0], null).invoke(arrayList, null);
ArrayList<WeakReference<e>> arrayList2 = this.h;
try {
Object[] objArr3 = new Object[1];
ag(bArr[438], s, 461, objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
ag((byte) (bArr[516] + 1), (short) 387, StatusLine.HTTP_MISDIRECTED_REQUEST, objArr4);
cls2.getMethod((String) objArr4[0], null).invoke(arrayList2, null);
ArrayList<WeakReference<b>> arrayList3 = this.i;
try {
Object[] objArr5 = new Object[1];
ag(bArr[438], s, 461, objArr5);
Class<?> cls3 = Class.forName((String) objArr5[0]);
Object[] objArr6 = new Object[1];
ag((byte) (bArr[516] + 1), (short) 387, StatusLine.HTTP_MISDIRECTED_REQUEST, objArr6);
cls3.getMethod((String) objArr6[0], null).invoke(arrayList3, null);
ExecutorService executorService = this.g;
try {
Object[] objArr7 = new Object[1];
ag(bArr[438], (short) 356, 561, objArr7);
Class<?> cls4 = Class.forName((String) objArr7[0]);
Object[] objArr8 = new Object[1];
ag((byte) (-bArr[434]), (short) 384, 596, objArr8);
cls4.getMethod((String) objArr8[0], null).invoke(executorService, null);
ExecutorService executorService2 = this.f;
try {
Object[] objArr9 = new Object[1];
ag(bArr[438], (short) 356, 561, objArr9);
Class<?> cls5 = Class.forName((String) objArr9[0]);
Object[] objArr10 = new Object[1];
ag((byte) (-bArr[434]), (short) 384, 596, objArr10);
cls5.getMethod((String) objArr10[0], null).invoke(executorService2, null);
} 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;
}
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
} catch (Throwable th5) {
Throwable cause5 = th5.getCause();
if (cause5 == null) {
throw th5;
}
throw cause5;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean l() {
int i = J + 47;
M = i % 128;
if (i % 2 == 0) {
cg.Y();
throw null;
}
boolean Y = cg.Y();
int i2 = M + 31;
J = i2 % 128;
if (i2 % 2 == 0) {
return Y;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public final cl n() {
M = (J + 111) % 128;
cl f = cg.f();
this.r = f;
M = (J + 59) % 128;
return f;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final cj k() {
int i = J + 1;
M = i % 128;
if (i % 2 != 0) {
cj m = cg.m();
this.t = m;
J = (M + 105) % 128;
return m;
}
this.t = cg.m();
throw new ArithmeticException();
}
private void v() {
M = (J + 43) % 128;
o();
e(true);
try {
this.g.awaitTermination(2L, TimeUnit.SECONDS);
this.f.awaitTermination(2L, TimeUnit.SECONDS);
J = (M + 121) % 128;
} catch (InterruptedException unused) {
}
u();
J = (M + 3) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Code restructure failed: missing block: B:15:0x0038, code lost:
if (r12 > 25) goto L18;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void b(final byte[] r10, final int r11, final int r12, final int r13, final java.lang.Boolean r14) {
/*
r9 = this;
com.facetec.sdk.cd$d r0 = new com.facetec.sdk.cd$d
r0.<init>(r10, r11, r12)
r9.p = r0
java.util.Date r0 = r9.B
if (r0 != 0) goto L12
java.util.Date r0 = new java.util.Date
r0.<init>()
r9.B = r0
L12:
com.facetec.sdk.cd$a r0 = r9.w
com.facetec.sdk.cd$a r1 = com.facetec.sdk.cd.a.ID_SCAN
if (r0 == r1) goto L48
com.facetec.sdk.v r0 = r9.A
boolean r0 = r0.a()
if (r0 == 0) goto L48
int r0 = r10.length
if (r0 <= 0) goto L48
int r0 = com.facetec.sdk.cd.J
int r0 = r0 + 91
int r1 = r0 % 128
com.facetec.sdk.cd.M = r1
int r0 = r0 % 2
r1 = 25
if (r0 != 0) goto L36
r0 = 53
if (r11 > r0) goto L3a
goto L38
L36:
if (r11 > r1) goto L3a
L38:
if (r12 <= r1) goto L48
L3a:
byte[] r0 = com.facetec.sdk.ad.a(r10, r11, r12)
java.util.concurrent.ExecutorService r1 = r9.f
com.facetec.sdk.cd$$ExternalSyntheticLambda6 r2 = new com.facetec.sdk.cd$$ExternalSyntheticLambda6
r2.<init>(r9, r0)
r1.execute(r2)
L48:
boolean r0 = r9.q()
if (r0 != 0) goto L4f
return
L4f:
java.util.concurrent.Semaphore r0 = r9.G
boolean r0 = r0.tryAcquire()
if (r0 != 0) goto L66
int r10 = com.facetec.sdk.cd.M
int r10 = r10 + 85
int r11 = r10 % 128
com.facetec.sdk.cd.J = r11
int r10 = r10 % 2
if (r10 != 0) goto L64
return
L64:
r10 = 0
throw r10
L66:
r0 = 1
r9.F = r0
java.util.concurrent.ExecutorService r0 = r9.g // Catch: java.util.concurrent.RejectedExecutionException -> L7b
com.facetec.sdk.cd$$ExternalSyntheticLambda7 r8 = new com.facetec.sdk.cd$$ExternalSyntheticLambda7 // Catch: java.util.concurrent.RejectedExecutionException -> L7b
r1 = r8
r2 = r9
r3 = r10
r4 = r11
r5 = r12
r6 = r13
r7 = r14
r1.<init>(r2, r3, r4, r5, r6, r7) // Catch: java.util.concurrent.RejectedExecutionException -> L7b
r0.execute(r8) // Catch: java.util.concurrent.RejectedExecutionException -> L7b
return
L7b:
r9.w()
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.cd.b(byte[], int, int, int, java.lang.Boolean):void");
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b(byte[] bArr) {
M = (J + 23) % 128;
this.A.c(bArr);
int i = M + 59;
J = i % 128;
if (i % 2 != 0) {
throw new ArithmeticException();
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(byte[] bArr, int i, int i2, int i3, Boolean bool) {
M = (J + 31) % 128;
try {
if (this.w == a.PRE_SESSION) {
d(bArr, i, i2, i3, bool);
} else if (this.w == a.ID_SCAN) {
e(bArr, i, i2, i3, bool);
} else {
c(bArr, i, i2, i3, bool);
M = (J + 35) % 128;
}
w();
} catch (Throwable unused) {
w();
}
}
private void w() {
int i = M + 31;
J = i % 128;
this.F = i % 2 != 0;
this.G.release();
int i2 = M + 81;
J = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
}
private void e(byte[] bArr, int i, int i2, int i3, Boolean bool) {
synchronized (this.u) {
if (this.w != a.ID_SCAN) {
return;
}
int i4 = this.y + 1;
this.y = i4;
if (i4 < 4) {
return;
}
cg.m(bArr, bool.booleanValue(), i, i2, i3);
this.f6418o = cg.s();
this.n = cg.u();
C();
}
}
private void x() {
int i = M + 97;
J = i % 128;
if (i % 2 == 0) {
if (t.c) {
o oVar = ((bg) this.l.get()).l;
if (t.a == 1) {
cg.H("waypoint", 1);
oVar.a(this.l.get(), t.d.WAYPOINT_UPLOAD);
} else if (t.a > 10) {
M = (J + 7) % 128;
cg.H("waypoint", 2);
oVar.a(this.l.get(), t.d.WAYPOINT_UPLOAD);
t.c = false;
}
t.a++;
return;
}
return;
}
boolean z = t.c;
throw null;
}
private void d(byte[] bArr, int i, int i2, int i3, Boolean bool) {
synchronized (this.u) {
if (this.w != a.PRE_SESSION) {
return;
}
int i4 = this.y + 1;
this.y = i4;
if (i4 < 4) {
return;
}
x();
cg.g(this.D, bArr, System.currentTimeMillis(), bool.booleanValue(), i, i2, i3, true);
this.r = cg.f();
this.s = cg.j();
this.t = cg.m();
this.q = cg.k();
D();
}
}
private void c(byte[] bArr, int i, int i2, int i3, Boolean bool) {
synchronized (this.u) {
if (this.w != a.FINISHED) {
if (this.w != a.WAITING_TO_FINISH) {
int i4 = this.y + 1;
this.y = i4;
if (i4 < 4) {
return;
}
cg.g(this.D, bArr, System.currentTimeMillis(), bool.booleanValue(), i, i2, i3, false);
this.m = cg.g();
this.k = cg.q();
if (this.m == ci.ZOOM_CLOSE) {
this.c = true;
}
if (this.m.c()) {
this.w = a.WAITING_TO_FINISH;
}
if (this.m == ci.PROCESSING_COMPLETE_TIMED_OUT || this.m == ci.PROCESSING_COMPLETE_RETRY || this.m == ci.PROCESSING_COMPLETE_SUCCESS) {
this.w = a.WAITING_TO_FINISH;
e();
}
A();
}
}
}
}
private void B() {
JSONObject jSONObject;
JSONObject c2 = this.A.d().c();
Object[] objArr = new Object[1];
ah("<EFBFBD>\u000b\ufffa", true, 2 - (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)), (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 3, 285 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr);
String optString = c2.optString(((String) objArr[0]).intern());
Object[] objArr2 = new Object[1];
ah("\ufff8\u0000\n", true, View.resolveSize(0, 0) + 3, 3 - Gravity.getAbsoluteGravity(0, 0), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 286, objArr2);
String optString2 = c2.optString(((String) objArr2[0]).intern());
Object[] objArr3 = new Object[1];
ah("<EFBFBD>\u0004", true, 1 - ExpandableListView.getPackedPositionChild(0L), View.resolveSizeAndState(0, 0, 0) + 2, 281 - KeyEvent.getDeadChar(0, 0), objArr3);
String optString3 = c2.optString(((String) objArr3[0]).intern());
Object[] objArr4 = new Object[1];
ah("\u0004\u0001\uffff\u0004", true, 5 - (KeyEvent.getMaxKeyCode() >> 16), AndroidCharacter.getMirror('0') - '+', 282 - ExpandableListView.getPackedPositionGroup(0L), objArr4);
String optString4 = c2.optString(((String) objArr4[0]).intern());
Object[] objArr5 = new Object[1];
ad(TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 6, 6 - Process.getGidForName(""), (char) (27317 - TextUtils.lastIndexOf("", '0', 0)), objArr5);
String optString5 = c2.optString(((String) objArr5[0]).intern());
Object[] objArr6 = new Object[1];
ah("\u0017\n\u0002ᅭ\r", false, 3 - TextUtils.lastIndexOf("", '0', 0, 0), (ViewConfiguration.getTapTimeout() >> 16) + 5, 276 - Color.alpha(0), objArr6);
String optString6 = c2.optString(((String) objArr6[0]).intern());
Object[] objArr7 = new Object[1];
ad((Process.myPid() >> 22) + 5, Color.blue(0) + 12, (char) (KeyEvent.getDeadChar(0, 0) + 56384), objArr7);
String optString7 = c2.optString(((String) objArr7[0]).intern());
Object[] objArr8 = new Object[1];
ah("\r\u0017\n\u0002ᅯ", false, MotionEvent.axisFromString("") + 6, 5 - (Process.myTid() >> 22), Color.rgb(0, 0, 0) + 16777492, objArr8);
String optString8 = c2.optString(((String) objArr8[0]).intern());
Object[] objArr9 = new Object[1];
ad(5 - (ViewConfiguration.getScrollDefaultDelay() >> 16), ImageFormat.getBitsPerPixel(0) + 18, (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), objArr9);
String optString9 = c2.optString(((String) objArr9[0]).intern());
Object[] objArr10 = new Object[1];
ah("\uffff\ufffe\u0007\uffff\u0001", true, (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 1, TextUtils.indexOf("", "") + 5, 282 - View.MeasureSpec.makeMeasureSpec(0, 0), objArr10);
String optString10 = c2.optString(((String) objArr10[0]).intern());
Object[] objArr11 = new Object[1];
ad(Color.red(0) + 5, 21 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (char) (ViewConfiguration.getJumpTapTimeout() >> 16), objArr11);
String optString11 = c2.optString(((String) objArr11[0]).intern());
Object[] objArr12 = new Object[1];
ah("\u0004\fᅭ\f\u0016", false, (ViewConfiguration.getKeyRepeatDelay() >> 16) + 3, 5 - (Process.myPid() >> 22), View.combineMeasuredStates(0, 0) + 277, objArr12);
String optString12 = c2.optString(((String) objArr12[0]).intern());
Object[] objArr13 = new Object[1];
ah("\u0015\u000bᅭ\u000b\u0003", true, Color.green(0) + 2, (ViewConfiguration.getJumpTapTimeout() >> 16) + 5, 278 - (ViewConfiguration.getTouchSlop() >> 8), objArr13);
String optString13 = c2.optString(((String) objArr13[0]).intern());
Object[] objArr14 = new Object[1];
ah("<EFBFBD>\u000b\ufffa", true, (ViewConfiguration.getJumpTapTimeout() >> 16) + 2, View.combineMeasuredStates(0, 0) + 3, 283 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), objArr14);
e(((String) objArr14[0]).intern(), optString);
Object[] objArr15 = new Object[1];
ah("<EFBFBD>\u0004", true, 2 - (ViewConfiguration.getEdgeSlop() >> 16), 2 - (Process.myTid() >> 22), (ViewConfiguration.getPressedStateDuration() >> 16) + 281, objArr15);
e(((String) objArr15[0]).intern(), optString3);
Object[] objArr16 = new Object[1];
ah("\ufff8\u0000\n", true, (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 2, 3 - ExpandableListView.getPackedPositionGroup(0L), TextUtils.lastIndexOf("", '0', 0) + 287, objArr16);
e(((String) objArr16[0]).intern(), optString2);
Object[] objArr17 = new Object[1];
ah("\u0004\u0001\uffff\u0004", true, 5 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 5 - (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)), (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 282, objArr17);
e(((String) objArr17[0]).intern(), optString4);
Object[] objArr18 = new Object[1];
ad(5 - KeyEvent.keyCodeFromString(""), TextUtils.indexOf("", "", 0, 0) + 7, (char) ((KeyEvent.getMaxKeyCode() >> 16) + 27318), objArr18);
e(((String) objArr18[0]).intern(), optString5);
Object[] objArr19 = new Object[1];
ah("\u0017\n\u0002ᅭ\r", false, 4 - Color.green(0), 5 - (ViewConfiguration.getEdgeSlop() >> 16), (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 275, objArr19);
e(((String) objArr19[0]).intern(), optString6);
Object[] objArr20 = new Object[1];
ad((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, View.MeasureSpec.getMode(0) + 12, (char) (TextUtils.getCapsMode("", 0, 0) + 56384), objArr20);
e(((String) objArr20[0]).intern(), optString7);
Object[] objArr21 = new Object[1];
ah("\r\u0017\n\u0002ᅯ", false, (ViewConfiguration.getTouchSlop() >> 8) + 5, TextUtils.lastIndexOf("", '0') + 6, 276 - (KeyEvent.getMaxKeyCode() >> 16), objArr21);
e(((String) objArr21[0]).intern(), optString8);
Object[] objArr22 = new Object[1];
ad(5 - View.MeasureSpec.getMode(0), (ViewConfiguration.getScrollBarSize() >> 8) + 17, (char) (ExpandableListView.getPackedPositionChild(0L) + 1), objArr22);
cg.H(((String) objArr22[0]).intern(), Integer.parseInt(optString9));
Object[] objArr23 = new Object[1];
ah("\uffff\ufffe\u0007\uffff\u0001", true, 1 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), 5 - TextUtils.getTrimmedLength(""), 282 - (ViewConfiguration.getFadingEdgeLength() >> 16), objArr23);
cg.H(((String) objArr23[0]).intern(), Integer.parseInt(optString10));
Object[] objArr24 = new Object[1];
ad(5 - (KeyEvent.getMaxKeyCode() >> 16), 'F' - AndroidCharacter.getMirror('0'), (char) TextUtils.getOffsetAfter("", 0), objArr24);
cg.H(((String) objArr24[0]).intern(), Integer.parseInt(optString11));
Object[] objArr25 = new Object[1];
ah("\u0004\fᅭ\f\u0016", false, TextUtils.indexOf("", "", 0) + 3, View.MeasureSpec.getMode(0) + 5, 278 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr25);
cg.H(((String) objArr25[0]).intern(), Integer.parseInt(optString12));
Object[] objArr26 = new Object[1];
ah("\u0015\u000bᅭ\u000b\u0003", true, 2 - Drawable.resolveOpacity(0, 0), (ViewConfiguration.getKeyRepeatDelay() >> 16) + 5, 278 - (ViewConfiguration.getWindowTouchSlop() >> 8), objArr26);
cg.H(((String) objArr26[0]).intern(), Integer.parseInt(optString13));
try {
Object[] objArr27 = new Object[1];
ah("<EFBFBD>\u000b\ufffa", true, TextUtils.indexOf("", "", 0, 0) + 2, 3 - TextUtils.indexOf("", "", 0), (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 284, objArr27);
jSONObject = c2;
try {
jSONObject.put(((String) objArr27[0]).intern(), new ArrayList().toString());
Object[] objArr28 = new Object[1];
ah("\u0017\n\u0002ᅭ\r", false, 5 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, 276 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), objArr28);
jSONObject.put(((String) objArr28[0]).intern(), new ArrayList().toString());
Object[] objArr29 = new Object[1];
ad((ViewConfiguration.getKeyRepeatDelay() >> 16) + 5, (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 12, (char) (56385 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1))), objArr29);
jSONObject.put(((String) objArr29[0]).intern(), new ArrayList().toString());
Object[] objArr30 = new Object[1];
ah("\r\u0017\n\u0002ᅯ", false, 5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), 5 - TextUtils.indexOf("", "", 0, 0), 276 - (ViewConfiguration.getWindowTouchSlop() >> 8), objArr30);
jSONObject.put(((String) objArr30[0]).intern(), new ArrayList().toString());
M = (J + 105) % 128;
} catch (JSONException unused) {
}
} catch (JSONException unused2) {
jSONObject = c2;
}
Object[] objArr31 = new Object[1];
ah("\n", true, (ViewConfiguration.getFadingEdgeLength() >> 16) + 3, 3 - (ViewConfiguration.getKeyRepeatDelay() >> 16), 286 - TextUtils.lastIndexOf("", '0', 0, 0), objArr31);
cg.L(((String) objArr31[0]).intern(), jSONObject.toString());
M = (J + 37) % 128;
}
private static void e(String str, String str2) {
JSONObject jSONObject = new JSONObject();
try {
try {
jSONObject.put("metadata", new JSONObject(str2));
} catch (JSONException unused) {
return;
}
} catch (JSONException unused2) {
jSONObject.put("metadata", new JSONArray(str2));
}
cg.E(str, jSONObject.toString());
int i = J + 49;
M = i % 128;
if (i % 2 == 0) {
throw new ArithmeticException();
}
}
private void z() {
synchronized (this.u) {
if (this.w != a.FINISHED) {
if (this.w != a.WAITING_TO_FINISH) {
if (this.B != null && new Date().getTime() - this.B.getTime() > 615000) {
k.a(new Throwable("Phoenix hang was detected"));
e(false);
this.m = ci.PROCESSING_COMPLETE_TIMED_OUT;
A();
}
}
}
}
}
private void C() {
synchronized (this) {
int i = J + 51;
M = i % 128;
if (i % 2 == 0) {
this.l.get();
throw null;
}
Activity activity = this.l.get();
if (activity == null) {
return;
}
activity.runOnUiThread(new Runnable(this) { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda9
public final cd f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.U();
}
{
this.f$0 = this;
}
});
int i2 = J + 37;
M = i2 % 128;
if (i2 % 2 != 0) {
return;
} else {
throw null;
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void U() {
int i = M + 27;
J = i % 128;
J();
if (i % 2 != 0) {
throw new ArithmeticException();
}
}
private void D() {
synchronized (this) {
J = (M + 69) % 128;
Activity activity = this.l.get();
if (activity == null) {
return;
}
activity.runOnUiThread(new Runnable(this) { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda4
public final cd f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.V();
}
{
this.f$0 = this;
}
});
J = (M + 107) % 128;
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void V() {
int i = M + 89;
J = i % 128;
K();
if (i % 2 != 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void R() {
int i = J + 39;
M = i % 128;
I();
if (i % 2 == 0) {
throw new ArithmeticException();
}
int i2 = M + 83;
J = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void S() {
int i = J + 123;
M = i % 128;
H();
if (i % 2 == 0) {
throw null;
}
J = (M + 13) % 128;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void P() {
M = (J + 71) % 128;
L();
J = (M + 15) % 128;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void Q() {
M = (J + 99) % 128;
N();
int i = J + 85;
M = i % 128;
if (i % 2 == 0) {
throw null;
}
}
private void A() {
synchronized (this) {
int i = M + 69;
J = i % 128;
if (i % 2 != 0) {
this.l.get();
throw null;
}
Activity activity = this.l.get();
if (activity == null) {
return;
}
if (this.m == ci.PROCESSING_COMPLETE_STILL_COMPUTING) {
activity.runOnUiThread(new Runnable(this) { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda10
public final cd f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.R();
}
{
this.f$0 = this;
}
});
return;
}
if (this.m == ci.PROCESSING_COMPLETE_TIMED_OUT) {
J = (M + 79) % 128;
activity.runOnUiThread(new Runnable(this) { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda11
public final cd f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.S();
}
{
this.f$0 = this;
}
});
J = (M + 9) % 128;
} else if (this.m == ci.PROCESSING_COMPLETE_RETRY) {
activity.runOnUiThread(new Runnable(this) { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda12
public final cd f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.P();
}
{
this.f$0 = this;
}
});
} else if (this.m == ci.PROCESSING_COMPLETE_SUCCESS) {
activity.runOnUiThread(new Runnable(this) { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda13
public final cd f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.Q();
}
{
this.f$0 = this;
}
});
} else {
activity.runOnUiThread(new Runnable(this) { // from class: com.facetec.sdk.cd$$ExternalSyntheticLambda14
public final cd f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.O();
}
{
this.f$0 = this;
}
});
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void O() {
int i = M + 41;
J = i % 128;
M();
if (i % 2 != 0) {
throw new ArithmeticException();
}
}
private List<e> F() {
ArrayList arrayList;
synchronized (this) {
arrayList = new ArrayList(this.h.size());
Iterator<WeakReference<e>> it = this.h.iterator();
while (it.hasNext()) {
J = (M + 67) % 128;
e eVar = it.next().get();
if (eVar != null) {
M = (J + 69) % 128;
arrayList.add(eVar);
}
J = (M + 27) % 128;
}
}
return arrayList;
}
private List<c> G() {
ArrayList arrayList;
synchronized (this) {
arrayList = new ArrayList(this.j.size());
Iterator<WeakReference<c>> it = this.j.iterator();
while (it.hasNext()) {
int i = M + 31;
J = i % 128;
if (i % 2 != 0) {
it.next().get();
throw null;
}
c cVar = it.next().get();
if (cVar != null) {
M = (J + 107) % 128;
arrayList.add(cVar);
M = (J + 99) % 128;
}
}
}
return arrayList;
}
private List<b> E() {
ArrayList arrayList;
synchronized (this) {
arrayList = new ArrayList(this.i.size());
Iterator<WeakReference<b>> it = this.i.iterator();
while (it.hasNext()) {
J = (M + 37) % 128;
b bVar = it.next().get();
if (bVar != null) {
int i = M + 27;
J = i % 128;
if (i % 2 != 0) {
arrayList.add(bVar);
throw new ArithmeticException();
}
arrayList.add(bVar);
}
}
}
return arrayList;
}
private void H() {
synchronized (this) {
M = (J + 15) % 128;
Iterator<e> it = F().iterator();
while (!(!it.hasNext())) {
it.next().c();
}
int i = M + 123;
J = i % 128;
if (i % 2 != 0) {
throw null;
}
}
}
/* JADX WARN: Code restructure failed: missing block: B:12:0x0032, code lost:
r0.next().d();
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x0040, code lost:
throw new java.lang.ArithmeticException();
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x0043, code lost:
r0 = com.facetec.sdk.cd.J + 3;
com.facetec.sdk.cd.M = r0 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x004d, code lost:
if ((r0 % 2) == 0) goto L33;
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x0051, code lost:
throw null;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private void I() {
/*
r4 = this;
monitor-enter(r4)
int r0 = com.facetec.sdk.cd.J // Catch: java.lang.Throwable -> L5e
int r0 = r0 + 91
int r1 = r0 % 128
com.facetec.sdk.cd.M = r1 // Catch: java.lang.Throwable -> L5e
int r0 = r0 % 2
r1 = 0
if (r0 == 0) goto L54
java.util.List r0 = r4.F() // Catch: java.lang.Throwable -> L5e
java.util.Iterator r0 = r0.iterator() // Catch: java.lang.Throwable -> L5e
L16:
boolean r2 = r0.hasNext() // Catch: java.lang.Throwable -> L5e
if (r2 == 0) goto L43
int r2 = com.facetec.sdk.cd.M // Catch: java.lang.Throwable -> L5e
int r2 = r2 + 105
int r3 = r2 % 128
com.facetec.sdk.cd.J = r3 // Catch: java.lang.Throwable -> L5e
int r2 = r2 % 2
if (r2 != 0) goto L32
java.lang.Object r2 = r0.next() // Catch: java.lang.Throwable -> L5e
com.facetec.sdk.cd$e r2 = (com.facetec.sdk.cd.e) r2 // Catch: java.lang.Throwable -> L5e
r2.d() // Catch: java.lang.Throwable -> L5e
goto L16
L32:
java.lang.Object r0 = r0.next() // Catch: java.lang.Throwable -> L5e
com.facetec.sdk.cd$e r0 = (com.facetec.sdk.cd.e) r0 // Catch: java.lang.Throwable -> L5e
r0.d() // Catch: java.lang.Throwable -> L5e
java.lang.ArithmeticException r0 = new java.lang.ArithmeticException // Catch: java.lang.Throwable -> L41
r0.<init>() // Catch: java.lang.Throwable -> L41
throw r0 // Catch: java.lang.Throwable -> L41
L41:
r0 = move-exception
throw r0 // Catch: java.lang.Throwable -> L5e
L43:
int r0 = com.facetec.sdk.cd.J // Catch: java.lang.Throwable -> L5e
int r0 = r0 + 3
int r2 = r0 % 128
com.facetec.sdk.cd.M = r2 // Catch: java.lang.Throwable -> L5e
int r0 = r0 % 2
if (r0 == 0) goto L51
monitor-exit(r4)
return
L51:
throw r1 // Catch: java.lang.Throwable -> L52
L52:
r0 = move-exception
throw r0 // Catch: java.lang.Throwable -> L5e
L54:
java.util.List r0 = r4.F() // Catch: java.lang.Throwable -> L5e
r0.iterator() // Catch: java.lang.Throwable -> L5e
throw r1 // Catch: java.lang.Throwable -> L5c
L5c:
r0 = move-exception
throw r0 // Catch: java.lang.Throwable -> L5e
L5e:
r0 = move-exception
monitor-exit(r4)
throw r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.cd.I():void");
}
private void L() {
synchronized (this) {
int i = J + 23;
M = i % 128;
if (i % 2 == 0) {
F().iterator();
throw new ArithmeticException();
}
Iterator<e> it = F().iterator();
while (!(!it.hasNext())) {
int i2 = M + 29;
J = i2 % 128;
if (i2 % 2 != 0) {
it.next().e();
throw new ArithmeticException();
}
it.next().e();
M = (J + 99) % 128;
}
}
}
private void N() {
synchronized (this) {
int i = J + 55;
M = i % 128;
if (i % 2 == 0) {
F().iterator();
throw new ArithmeticException();
}
Iterator<e> it = F().iterator();
while (it.hasNext()) {
int i2 = M + 23;
J = i2 % 128;
if (i2 % 2 != 0) {
it.next().a();
throw null;
}
it.next().a();
}
}
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0029, code lost:
r0.next().c(r4.m, r4.k);
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x003b, code lost:
throw new java.lang.ArithmeticException();
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x003e, code lost:
r0 = com.facetec.sdk.cd.J + 29;
com.facetec.sdk.cd.M = r0 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x0048, code lost:
if ((r0 % 2) == 0) goto L19;
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x004d, code lost:
throw null;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private void M() {
/*
r4 = this;
monitor-enter(r4)
java.util.List r0 = r4.F() // Catch: java.lang.Throwable -> L50
java.util.Iterator r0 = r0.iterator() // Catch: java.lang.Throwable -> L50
L9:
boolean r1 = r0.hasNext() // Catch: java.lang.Throwable -> L50
if (r1 == 0) goto L3e
int r1 = com.facetec.sdk.cd.J // Catch: java.lang.Throwable -> L50
int r1 = r1 + 53
int r2 = r1 % 128
com.facetec.sdk.cd.M = r2 // Catch: java.lang.Throwable -> L50
int r1 = r1 % 2
if (r1 == 0) goto L29
java.lang.Object r1 = r0.next() // Catch: java.lang.Throwable -> L50
com.facetec.sdk.cd$e r1 = (com.facetec.sdk.cd.e) r1 // Catch: java.lang.Throwable -> L50
com.facetec.sdk.ci r2 = r4.m // Catch: java.lang.Throwable -> L50
com.facetec.sdk.ce r3 = r4.k // Catch: java.lang.Throwable -> L50
r1.c(r2, r3) // Catch: java.lang.Throwable -> L50
goto L9
L29:
java.lang.Object r0 = r0.next() // Catch: java.lang.Throwable -> L50
com.facetec.sdk.cd$e r0 = (com.facetec.sdk.cd.e) r0 // Catch: java.lang.Throwable -> L50
com.facetec.sdk.ci r1 = r4.m // Catch: java.lang.Throwable -> L50
com.facetec.sdk.ce r2 = r4.k // Catch: java.lang.Throwable -> L50
r0.c(r1, r2) // Catch: java.lang.Throwable -> L50
java.lang.ArithmeticException r0 = new java.lang.ArithmeticException // Catch: java.lang.Throwable -> L3c
r0.<init>() // Catch: java.lang.Throwable -> L3c
throw r0 // Catch: java.lang.Throwable -> L3c
L3c:
r0 = move-exception
throw r0 // Catch: java.lang.Throwable -> L50
L3e:
int r0 = com.facetec.sdk.cd.J // Catch: java.lang.Throwable -> L50
int r0 = r0 + 29
int r1 = r0 % 128
com.facetec.sdk.cd.M = r1 // Catch: java.lang.Throwable -> L50
int r0 = r0 % 2
if (r0 == 0) goto L4c
monitor-exit(r4)
return
L4c:
r0 = 0
throw r0 // Catch: java.lang.Throwable -> L4e
L4e:
r0 = move-exception
throw r0 // Catch: java.lang.Throwable -> L50
L50:
r0 = move-exception
monitor-exit(r4)
throw r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.cd.M():void");
}
private void K() {
synchronized (this) {
int i = J + 21;
M = i % 128;
if (i % 2 == 0) {
G().iterator();
throw new NullPointerException();
}
Iterator<c> it = G().iterator();
J = (M + 51) % 128;
while (it.hasNext()) {
it.next().onPreSessionProgress(this.r, this.s, this.t, this.q);
}
}
}
private void J() {
synchronized (this) {
Iterator<b> it = E().iterator();
M = (J + 125) % 128;
while (it.hasNext()) {
int i = J + 119;
M = i % 128;
if (i % 2 == 0) {
it.next().onIDScanProgress(this.f6418o, this.n);
throw new NullPointerException();
}
it.next().onIDScanProgress(this.f6418o, this.n);
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void b(Context context) {
Iterator<UsbDevice> it;
String str;
aw.c("UMT");
UsbManager usbManager = (UsbManager) context.getApplicationContext().getSystemService("usb");
aw.e("UMT");
aw.c("UDT");
HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList();
aw.e("UDT");
StringBuilder sb = new StringBuilder();
StringBuilder sb2 = new StringBuilder();
StringBuilder sb3 = new StringBuilder();
StringBuilder sb4 = new StringBuilder();
Iterator<UsbDevice> it2 = deviceList.values().iterator();
boolean z = false;
while (it2.hasNext()) {
M = (J + 53) % 128;
UsbDevice next = it2.next();
if (next != null) {
int i = J + 77;
M = i % 128;
if (i % 2 == 0) {
next.getDeviceName();
next.getDeviceClass();
next.getManufacturerName();
throw new ArithmeticException();
}
String deviceName = next.getDeviceName();
String valueOf = String.valueOf(next.getDeviceClass());
String str2 = "FT_NULL";
if (next.getManufacturerName() != null) {
int i2 = M + 79;
J = i2 % 128;
if (i2 % 2 != 0) {
next.getManufacturerName();
throw null;
}
str = next.getManufacturerName().trim();
} else {
str = "FT_NULL";
}
if (next.getProductName() != null) {
int i3 = J + 3;
M = i3 % 128;
if (i3 % 2 == 0) {
next.getProductName();
throw null;
}
str2 = next.getProductName().trim();
}
sb.append(deviceName);
byte[] bArr = P;
byte b2 = bArr[63];
short s = (short) (b2 | ISOFileInfo.FCI_EXT);
it = it2;
Object[] objArr = new Object[1];
ag(b2, s, (short) (s | 48), objArr);
sb.append((String) objArr[0]);
sb2.append(valueOf);
byte b3 = bArr[63];
short s2 = (short) (b3 | ISOFileInfo.FCI_EXT);
Object[] objArr2 = new Object[1];
ag(b3, s2, (short) (s2 | 48), objArr2);
sb2.append((String) objArr2[0]);
sb3.append(str);
byte b4 = bArr[63];
short s3 = (short) (b4 | ISOFileInfo.FCI_EXT);
Object[] objArr3 = new Object[1];
ag(b4, s3, (short) (s3 | 48), objArr3);
sb3.append((String) objArr3[0]);
sb4.append(str2);
byte b5 = bArr[63];
short s4 = (short) (b5 | ISOFileInfo.FCI_EXT);
Object[] objArr4 = new Object[1];
ag(b5, s4, (short) (s4 | 48), objArr4);
sb4.append((String) objArr4[0]);
z = true;
} else {
it = it2;
}
J = (M + 43) % 128;
it2 = it;
}
cg.I(ak.B, z);
cg.C(ak.C, sb.toString());
cg.C(ak.F, sb2.toString());
cg.C(ak.E, sb3.toString());
cg.C(ak.H, sb4.toString());
cg.C(ak.J, String.valueOf(aw.b("UMT")));
cg.C(ak.K, String.valueOf(aw.b("UDT")));
J = (M + 51) % 128;
}
private static void af(char c2, int i, int i2, Object[] objArr) {
gm gmVar = new gm();
long[] jArr = new long[i];
gmVar.e = 0;
$11 = ($10 + 73) % 128;
while (gmVar.e < i) {
int i3 = $11 + 117;
$10 = i3 % 128;
if (i3 % 2 == 0) {
int i4 = gmVar.e;
try {
Object[] objArr2 = {Integer.valueOf(E[i2 + gmVar.e])};
Object obj = bo.s.get(1303494992);
if (obj == null) {
Class cls = (Class) bo.e(Color.blue(0) + 314, (char) (48935 - TextUtils.getOffsetAfter("", 0)), View.resolveSize(0, 0) + 32);
byte b2 = (byte) ($$d[0] - 1);
byte b3 = b2;
Object[] objArr3 = new Object[1];
ai(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
bo.s.put(1303494992, obj);
}
try {
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(gmVar.e), Long.valueOf(H), Integer.valueOf(c2)};
Object obj2 = bo.s.get(274874058);
if (obj2 == null) {
Class cls2 = (Class) bo.e(1193 - (ViewConfiguration.getScrollDefaultDelay() >> 16), (char) ((-1) - MotionEvent.axisFromString("")), 23 - Gravity.getAbsoluteGravity(0, 0));
byte[] bArr = $$d;
byte b4 = (byte) (bArr[0] - 1);
byte length = (byte) bArr.length;
Object[] objArr5 = new Object[1];
ai(b4, length, (byte) (length - 4), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
bo.s.put(274874058, obj2);
}
jArr[i4] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
try {
Object[] objArr6 = {gmVar, gmVar};
Object obj3 = bo.s.get(1574944044);
if (obj3 == null) {
Class cls3 = (Class) bo.e(TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 1383, (char) (TextUtils.indexOf((CharSequence) "", '0') + 1), 21 - ((byte) KeyEvent.getModifierMetaStateMask()));
byte b5 = (byte) ($$d[0] - 1);
Object[] objArr7 = new Object[1];
ai(b5, (byte) (b5 | 7), b5, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
bo.s.put(1574944044, obj3);
}
((Method) obj3).invoke(null, objArr6);
} 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;
}
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
} else {
int i5 = gmVar.e;
try {
Object[] objArr8 = {Integer.valueOf(E[i2 >> gmVar.e])};
Object obj4 = bo.s.get(1303494992);
if (obj4 == null) {
Class cls4 = (Class) bo.e(313 - Process.getGidForName(""), (char) ((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)) + 48935), (-16777184) - Color.rgb(0, 0, 0));
byte b6 = (byte) ($$d[0] - 1);
byte b7 = b6;
Object[] objArr9 = new Object[1];
ai(b6, b7, b7, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Integer.TYPE);
bo.s.put(1303494992, obj4);
}
try {
Object[] objArr10 = {Long.valueOf(((Long) ((Method) obj4).invoke(null, objArr8)).longValue()), Long.valueOf(gmVar.e), Long.valueOf(H), Integer.valueOf(c2)};
Object obj5 = bo.s.get(274874058);
if (obj5 == null) {
Class cls5 = (Class) bo.e(1193 - KeyEvent.normalizeMetaState(0), (char) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 1), ((Process.getThreadPriority(0) + 20) >> 6) + 23);
byte[] bArr2 = $$d;
byte b8 = (byte) (bArr2[0] - 1);
byte length2 = (byte) bArr2.length;
Object[] objArr11 = new Object[1];
ai(b8, length2, (byte) (length2 - 4), objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
bo.s.put(274874058, obj5);
}
jArr[i5] = ((Long) ((Method) obj5).invoke(null, objArr10)).longValue();
try {
Object[] objArr12 = {gmVar, gmVar};
Object obj6 = bo.s.get(1574944044);
if (obj6 == null) {
Class cls6 = (Class) bo.e(1381 - TextUtils.indexOf((CharSequence) "", '0', 0), (char) (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)), 22 - Color.red(0));
byte b9 = (byte) ($$d[0] - 1);
Object[] objArr13 = new Object[1];
ai(b9, (byte) (b9 | 7), b9, objArr13);
obj6 = cls6.getMethod((String) objArr13[0], Object.class, Object.class);
bo.s.put(1574944044, obj6);
}
((Method) obj6).invoke(null, objArr12);
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
} catch (Throwable th5) {
Throwable cause5 = th5.getCause();
if (cause5 == null) {
throw th5;
}
throw cause5;
}
} catch (Throwable th6) {
Throwable cause6 = th6.getCause();
if (cause6 == null) {
throw th6;
}
throw cause6;
}
}
}
char[] cArr = new char[i];
gmVar.e = 0;
while (gmVar.e < i) {
cArr[gmVar.e] = (char) jArr[gmVar.e];
try {
Object[] objArr14 = {gmVar, gmVar};
Object obj7 = bo.s.get(1574944044);
if (obj7 == null) {
Class cls7 = (Class) bo.e(Color.green(0) + 1382, (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), TextUtils.indexOf("", "", 0, 0) + 22);
byte b10 = (byte) ($$d[0] - 1);
Object[] objArr15 = new Object[1];
ai(b10, (byte) (b10 | 7), b10, objArr15);
obj7 = cls7.getMethod((String) objArr15[0], Object.class, Object.class);
bo.s.put(1574944044, obj7);
}
((Method) obj7).invoke(null, objArr14);
} catch (Throwable th7) {
Throwable cause7 = th7.getCause();
if (cause7 == null) {
throw th7;
}
throw cause7;
}
}
objArr[0] = new String(cArr);
}
private static void ad(int i, int i2, char c2, Object[] objArr) {
gm gmVar = new gm();
long[] jArr = new long[i];
gmVar.e = 0;
$10 = ($11 + 75) % 128;
while (gmVar.e < i) {
$11 = ($10 + 77) % 128;
int i3 = gmVar.e;
try {
Object[] objArr2 = {Integer.valueOf(K[i2 + gmVar.e])};
Object obj = bo.s.get(1303494992);
if (obj == null) {
Class cls = (Class) bo.e(314 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) ((ViewConfiguration.getTapTimeout() >> 16) + 48935), TextUtils.indexOf("", "") + 32);
byte b2 = (byte) ($$d[0] - 1);
byte b3 = b2;
Object[] objArr3 = new Object[1];
ai(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
bo.s.put(1303494992, obj);
}
try {
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(gmVar.e), Long.valueOf(N), Integer.valueOf(c2)};
Object obj2 = bo.s.get(274874058);
if (obj2 == null) {
Class cls2 = (Class) bo.e((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 1194, (char) TextUtils.getOffsetBefore("", 0), 23 - (ViewConfiguration.getWindowTouchSlop() >> 8));
byte[] bArr = $$d;
byte b4 = (byte) (bArr[0] - 1);
byte length = (byte) bArr.length;
Object[] objArr5 = new Object[1];
ai(b4, length, (byte) (length - 4), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
bo.s.put(274874058, obj2);
}
jArr[i3] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
try {
Object[] objArr6 = {gmVar, gmVar};
Object obj3 = bo.s.get(1574944044);
if (obj3 == null) {
Class cls3 = (Class) bo.e(1382 - (KeyEvent.getMaxKeyCode() >> 16), (char) TextUtils.getOffsetBefore("", 0), (ViewConfiguration.getDoubleTapTimeout() >> 16) + 22);
byte b5 = (byte) ($$d[0] - 1);
Object[] objArr7 = new Object[1];
ai(b5, (byte) (b5 | 7), b5, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
bo.s.put(1574944044, obj3);
}
((Method) obj3).invoke(null, objArr6);
} 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;
}
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
char[] cArr = new char[i];
gmVar.e = 0;
while (gmVar.e < i) {
$11 = ($10 + 83) % 128;
cArr[gmVar.e] = (char) jArr[gmVar.e];
try {
Object[] objArr8 = {gmVar, gmVar};
Object obj4 = bo.s.get(1574944044);
if (obj4 == null) {
Class cls4 = (Class) bo.e(1382 - (KeyEvent.getMaxKeyCode() >> 16), (char) View.getDefaultSize(0, 0), (Process.myPid() >> 22) + 22);
byte b6 = (byte) ($$d[0] - 1);
Object[] objArr9 = new Object[1];
ai(b6, (byte) (b6 | 7), b6, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
bo.s.put(1574944044, obj4);
}
((Method) obj4).invoke(null, objArr8);
$11 = ($10 + 69) % 128;
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
objArr[0] = new String(cArr);
}
private static void ah(String str, boolean z, int i, int i2, int i3, Object[] objArr) {
char[] charArray = str != null ? str.toCharArray() : str;
gq gqVar = new gq();
char[] cArr = new char[i2];
gqVar.a = 0;
while (gqVar.a < i2) {
gqVar.d = charArray[gqVar.a];
cArr[gqVar.a] = (char) (i3 + gqVar.d);
int i4 = gqVar.a;
try {
Object[] objArr2 = {Integer.valueOf(cArr[i4]), Integer.valueOf(L)};
Object obj = bo.s.get(-354709869);
if (obj == null) {
obj = ((Class) bo.e(1758 - View.MeasureSpec.getMode(0), (char) View.MeasureSpec.getSize(0), 22 - ExpandableListView.getPackedPositionChild(0L))).getMethod("x", Integer.TYPE, Integer.TYPE);
bo.s.put(-354709869, obj);
}
cArr[i4] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
try {
Object[] objArr3 = {gqVar, gqVar};
Object obj2 = bo.s.get(-1900584905);
if (obj2 == null) {
Class cls = (Class) bo.e(Gravity.getAbsoluteGravity(0, 0) + 1570, (char) ((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 11060), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 23);
byte b2 = (byte) ($$d[0] - 1);
Object[] objArr4 = new Object[1];
ai(b2, (byte) (b2 | 11), b2, objArr4);
obj2 = cls.getMethod((String) objArr4[0], Object.class, Object.class);
bo.s.put(-1900584905, obj2);
}
((Method) obj2).invoke(null, objArr3);
} 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;
}
}
if (i > 0) {
gqVar.e = i;
char[] cArr2 = new char[i2];
System.arraycopy(cArr, 0, cArr2, 0, i2);
System.arraycopy(cArr2, 0, cArr, i2 - gqVar.e, gqVar.e);
System.arraycopy(cArr2, gqVar.e, cArr, 0, i2 - gqVar.e);
}
if (z) {
char[] cArr3 = new char[i2];
gqVar.a = 0;
$10 = ($11 + 37) % 128;
while (gqVar.a < i2) {
$10 = ($11 + 15) % 128;
cArr3[gqVar.a] = cArr[(i2 - gqVar.a) - 1];
try {
Object[] objArr5 = {gqVar, gqVar};
Object obj3 = bo.s.get(-1900584905);
if (obj3 == null) {
Class cls2 = (Class) bo.e(1570 - Color.alpha(0), (char) (11060 - (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))), (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 23);
byte b3 = (byte) ($$d[0] - 1);
Object[] objArr6 = new Object[1];
ai(b3, (byte) (b3 | 11), b3, objArr6);
obj3 = cls2.getMethod((String) objArr6[0], Object.class, Object.class);
bo.s.put(-1900584905, obj3);
}
((Method) obj3).invoke(null, objArr5);
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
cArr = cArr3;
}
objArr[0] = new String(cArr);
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
/* JADX WARN: Code restructure failed: missing block: B:195:0x03ee, code lost:
if (r0 == 1) goto L154;
*/
/* JADX WARN: Failed to find 'out' block for switch in B:34:0x013b. Please report as an issue. */
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r0v25, types: [int, boolean] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean e(android.content.Context r17, boolean r18) {
/*
Method dump skipped, instructions count: 1174
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.cd.e(android.content.Context, boolean):boolean");
}
/* JADX WARN: Removed duplicated region for block: B:15:0x0248 */
/* JADX WARN: Removed duplicated region for block: B:18:? A[RETURN, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void y() {
/*
Method dump skipped, instructions count: 727
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.cd.y():void");
}
static void t() {
byte[] bArr = new byte[614];
System.arraycopy("\u0001U\u001cr\u0010û\u0003\u0001ï\t\u0007$Í.Ýñ\u0013\u0001\u0012ñí\u000fü\u0005ø\bÿû\u0006ÿú\u0007ÿù\bÿø\tÿ÷\\bÿö\u000bÿõ\fÿô\rÿü\u0001\u0004ø\bÿö\u000bÿü\u0000\u0005ÿüÿ\u0006ÿüþ\u0007ÿüý\\\rÿüü\tÿüû\nÿüý\\u0000\u0005ÿüú\u000bø\bÿüù\fÿüø\rÿû\u0002\u0004ÿû\u0001\u0005ø\\rÿüü\tÿüû\nÿû\u0000\u0006ûþ\u0007ÿüù\fûý\bÿûÿ\u0007ø\bûü\tÿûþ\\bÿûý\tÿûü\nÿûû\u000bÿûú\fûû\nÿûù\\bÿû\u0006ÿú\u0003\u0004ûú\u000bÿú\u0002\u0005ûø\rÿú\u0001\u0006ÿú\u0000\u0007ÿúÿ\bÿúþ\tûü\tÿúý\\bÿú\u0007ÿúü\u000bú\u0002\u0004ÿúû\fÿúú\\u0001\u0005ÿù\u0004\u0004ÿù\u0003\u0005ûü\tÿù\u0002\u0006û\u0000\u0005ÿù\u0002\u0006úÿ\u0007ûû\nÿù\u0001\u0007úþ\bÿù\u0002\u0006úþ\bÿù\u0002\u0006ÿù\u0000\búý\túü\nÿùÿ\túû\u000búù\rÿùþ\nÿùý\u000bÿùü\fÿùü\fÿù\u0000\\u0003\u0004úü\nÿùÿ\túû\u000búù\rÿùû\rÿø\u0005\u0004ÿø\u0004\u0005ÿø\u0003\u0006úþ\\u0001\u0006ù\u0000\u0007ÿù\u0002\u0006ÿø\u0002\u0007û\u0000\u0005ÿø\u0001\bûü\tÿø\u0001\bÿø\u0000\\u0000\u0005ÿøÿ\nûü\tÿøÿ\u0015õ÷\u0010\u0016éûú\u001eõõ÷\u0010÷\u0007\u0004ï\\u00153¹\u0001\u000bý>Úëü\\\u00153Â\u000bó\u00079åÛú\u000fþ\u0002ó\u000fùì\u0016ûú\\u00153¹\u0001\u000bý>íßïÿ\u0002\u0011þï1Ô\u0003\u0000\u0007\u0002ï\u000bú\u0001\u0003\u0004\u0003õ\\u00153Â\u000bó\u00079é×ù\\\u0003\u0006\u00056¿üEìÍ\\b@Î\u0011óÿ\\u0001\\u00153Â\u000bó\u00079Ûß\u0002\\u0007\\u00153¹\u0001\u000bý>Úëü\\u001eóî\b\\u00153¹\u0001\u000bý>Ëô\u0001\u000bî\u0003\u0000\r÷úFéÍ\u0013\u0002î\u0001\u0005ý\u001fîóü\r\u0006þ\u000bó\u0001\u0010õø\\u000eûû\".getBytes(LocalizedMessage.DEFAULT_ENCODING), 0, bArr, 0, 614);
P = bArr;
S = 108;
}
static void s() {
K = new char[]{25447, 51273, 13600, 25111, 53229, 13514, 24996, 22052, 64770, 'c', 22349, 64162, 57565, 19430, 46746, 57779, 19463, 15512, 38836, 27349, 15862, 36889, 15517, 38822, 27351, 15870, 36932};
N = 6789374094164137936L;
L = 1540757459;
}
/* JADX WARN: Removed duplicated region for block: B:13:0x01f3 */
/* JADX WARN: Removed duplicated region for block: B:16:? A[RETURN, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void p() {
/*
Method dump skipped, instructions count: 601
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.cd.p():void");
}
static void m() {
int i = M + 119;
J = i % 128;
if (i % 2 == 0) {
E = new char[]{3204, 42289, 24565, 61881, 43618, 23598, 63197, 43229, 16730, 64284, 44431, 17992, 63524, 37604, 17597, 64870, 38696, 18940, 58269, 37956, 19982, 57548, 23721, 62746, 4057, 41362, 64087, 3083, 42740, 63624, 4473, 43815, 64996, 5702, 43037, 49875, 5253};
H = -4819151982552509109L;
} else {
E = new char[]{3204, 42289, 24565, 61881, 43618, 23598, 63197, 43229, 16730, 64284, 44431, 17992, 63524, 37604, 17597, 64870, 38696, 18940, 58269, 37956, 19982, 57548, 23721, 62746, 4057, 41362, 64087, 3083, 42740, 63624, 4473, 43815, 64996, 5702, 43037, 49875, 5253};
H = -4819151982552509109L;
throw null;
}
}
static void init$1() {
$$d = new byte[]{1, 15, ISOFileInfo.A5, ISO7816.INS_READ_BINARY2};
$$e = 63;
}
static void init$0() {
$$a = new byte[]{Ascii.SUB, 35, 118, 96};
$$b = CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA256;
}
}