281 lines
10 KiB
Java
281 lines
10 KiB
Java
package com.facetec.sdk;
|
|
|
|
import android.graphics.Color;
|
|
import android.os.Process;
|
|
import android.text.TextUtils;
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
import android.widget.ExpandableListView;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import com.google.common.base.Ascii;
|
|
import com.google.common.net.HttpHeaders;
|
|
import java.lang.reflect.Method;
|
|
import net.sf.scuba.smartcards.ISO7816;
|
|
import o.TVH;
|
|
import o.xzZ;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class ko implements kb {
|
|
private ku b;
|
|
private static final byte[] $$a = {Ascii.NAK, Ascii.DC2, ISO7816.INS_DELETE_FILE, -22};
|
|
private static final int $$b = 158;
|
|
private static int $10 = 0;
|
|
private static int $11 = 1;
|
|
private static int d = 0;
|
|
private static int e = 1;
|
|
private static char[] a = {39955};
|
|
|
|
private static void g(byte b, byte b2, byte b3, Object[] objArr) {
|
|
int i = 73 - (b3 * 2);
|
|
byte[] bArr = $$a;
|
|
int i2 = b + 4;
|
|
int i3 = b2 * 3;
|
|
byte[] bArr2 = new byte[i3 + 1];
|
|
int i4 = -1;
|
|
if (bArr == null) {
|
|
i4 = -1;
|
|
i = (-i2) + i;
|
|
i2 = i2;
|
|
}
|
|
while (true) {
|
|
int i5 = i4 + 1;
|
|
bArr2[i5] = (byte) i;
|
|
int i6 = i2 + 1;
|
|
if (i5 == i3) {
|
|
objArr[0] = new String(bArr2, 0);
|
|
return;
|
|
}
|
|
i4 = i5;
|
|
i = (-bArr[i6]) + i;
|
|
i2 = i6;
|
|
}
|
|
}
|
|
|
|
public ko(ku kuVar) {
|
|
this.b = kuVar;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:165:0x010b, code lost:
|
|
|
|
if (r3 <= 0) goto L63;
|
|
*/
|
|
@Override // com.facetec.sdk.kb
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final com.facetec.sdk.kh a(com.facetec.sdk.kb.c r18) throws java.io.IOException {
|
|
/*
|
|
Method dump skipped, instructions count: 1099
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.ko.a(com.facetec.sdk.kb$c):com.facetec.sdk.kh");
|
|
}
|
|
|
|
private static kh b(kh khVar) {
|
|
int i = 2 % 2;
|
|
int i2 = d;
|
|
int i3 = i2 + 41;
|
|
e = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
if (khVar == null) {
|
|
return khVar;
|
|
}
|
|
int i5 = i2 + 51;
|
|
e = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
return khVar.b() != null ? khVar.g().b((kf) null).d() : khVar;
|
|
}
|
|
|
|
private static void f(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
|
|
int i;
|
|
char[] cArr;
|
|
int i2 = 2 % 2;
|
|
TVH tvh = new TVH();
|
|
int i3 = 0;
|
|
int i4 = iArr[0];
|
|
int i5 = iArr[1];
|
|
int i6 = iArr[2];
|
|
int i7 = iArr[3];
|
|
char[] cArr2 = a;
|
|
int i8 = -1;
|
|
if (cArr2 != null) {
|
|
int length = cArr2.length;
|
|
char[] cArr3 = new char[length];
|
|
int i9 = 0;
|
|
while (i9 < length) {
|
|
try {
|
|
Object[] objArr2 = new Object[1];
|
|
objArr2[i3] = Integer.valueOf(cArr2[i9]);
|
|
Object obj = xzZ.y.get(1645349359);
|
|
if (obj != null) {
|
|
cArr = cArr2;
|
|
} else {
|
|
Class cls = (Class) xzZ.c(TextUtils.getTrimmedLength("") + 223, View.resolveSizeAndState(i3, i3, i3) + 5, (char) ((ViewConfiguration.getScrollBarSize() >> 8) + 41977));
|
|
byte b = (byte) i8;
|
|
byte b2 = (byte) (b + 1);
|
|
cArr = cArr2;
|
|
Object[] objArr3 = new Object[1];
|
|
g(b, b2, (byte) (b2 + 1), objArr3);
|
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
|
xzZ.y.put(1645349359, obj);
|
|
}
|
|
cArr3[i9] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
|
i9++;
|
|
cArr2 = cArr;
|
|
i3 = 0;
|
|
i8 = -1;
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
cArr2 = cArr3;
|
|
}
|
|
char[] cArr4 = new char[i5];
|
|
System.arraycopy(cArr2, i4, cArr4, 0, i5);
|
|
if (bArr != null) {
|
|
char[] cArr5 = new char[i5];
|
|
tvh.c = 0;
|
|
char c = 0;
|
|
while (tvh.c < i5) {
|
|
if (bArr[tvh.c] == 1) {
|
|
int i10 = $10 + 7;
|
|
$11 = i10 % 128;
|
|
int i11 = i10 % 2;
|
|
int i12 = tvh.c;
|
|
Object[] objArr4 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c)};
|
|
Object obj2 = xzZ.y.get(850398076);
|
|
if (obj2 == null) {
|
|
obj2 = ((Class) xzZ.c(Color.green(0) + 502, TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 6, (char) ((ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 54))).getMethod("F", Integer.TYPE, Integer.TYPE);
|
|
xzZ.y.put(850398076, obj2);
|
|
}
|
|
cArr5[i12] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
|
|
} else {
|
|
int i13 = tvh.c;
|
|
Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c)};
|
|
Object obj3 = xzZ.y.get(1084521042);
|
|
if (obj3 == null) {
|
|
obj3 = ((Class) xzZ.c(15 - (ViewConfiguration.getPressedStateDuration() >> 16), (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 58133))).getMethod("H", Integer.TYPE, Integer.TYPE);
|
|
xzZ.y.put(1084521042, obj3);
|
|
}
|
|
cArr5[i13] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
|
|
}
|
|
c = cArr5[tvh.c];
|
|
try {
|
|
Object[] objArr6 = {tvh, tvh};
|
|
Object obj4 = xzZ.y.get(1698744941);
|
|
if (obj4 == null) {
|
|
Class cls2 = (Class) xzZ.c(402 - (ViewConfiguration.getWindowTouchSlop() >> 8), 5 - View.combineMeasuredStates(0, 0), (char) (View.MeasureSpec.getMode(0) + 21608));
|
|
byte b3 = (byte) (-1);
|
|
byte b4 = (byte) (b3 + 1);
|
|
Object[] objArr7 = new Object[1];
|
|
g(b3, b4, b4, objArr7);
|
|
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
|
|
xzZ.y.put(1698744941, obj4);
|
|
}
|
|
((Method) obj4).invoke(null, objArr6);
|
|
int i14 = $10 + 21;
|
|
$11 = i14 % 128;
|
|
int i15 = i14 % 2;
|
|
} catch (Throwable th2) {
|
|
Throwable cause2 = th2.getCause();
|
|
if (cause2 == null) {
|
|
throw th2;
|
|
}
|
|
throw cause2;
|
|
}
|
|
}
|
|
cArr4 = cArr5;
|
|
}
|
|
if (i7 > 0) {
|
|
int i16 = $10 + 7;
|
|
$11 = i16 % 128;
|
|
if (i16 % 2 == 0) {
|
|
char[] cArr6 = new char[i5];
|
|
System.arraycopy(cArr4, 1, cArr6, 1, i5);
|
|
i = 0;
|
|
System.arraycopy(cArr6, 0, cArr4, i5 - i7, i7);
|
|
System.arraycopy(cArr6, i7, cArr4, 1, i5 % i7);
|
|
} else {
|
|
i = 0;
|
|
char[] cArr7 = new char[i5];
|
|
System.arraycopy(cArr4, 0, cArr7, 0, i5);
|
|
int i17 = i5 - i7;
|
|
System.arraycopy(cArr7, 0, cArr4, i17, i7);
|
|
System.arraycopy(cArr7, i7, cArr4, 0, i17);
|
|
}
|
|
} else {
|
|
i = 0;
|
|
}
|
|
if (!(!z)) {
|
|
char[] cArr8 = new char[i5];
|
|
tvh.c = i;
|
|
while (tvh.c < i5) {
|
|
cArr8[tvh.c] = cArr4[(i5 - tvh.c) - 1];
|
|
tvh.c++;
|
|
}
|
|
cArr4 = cArr8;
|
|
}
|
|
if (i6 > 0) {
|
|
int i18 = $11 + 63;
|
|
$10 = i18 % 128;
|
|
int i19 = i18 % 2;
|
|
int i20 = 0;
|
|
while (true) {
|
|
tvh.c = i20;
|
|
if (tvh.c >= i5) {
|
|
break;
|
|
}
|
|
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
|
|
i20 = tvh.c + 1;
|
|
}
|
|
}
|
|
objArr[0] = new String(cArr4);
|
|
}
|
|
|
|
private static boolean e(String str) {
|
|
int i = 2 % 2;
|
|
if (!HttpHeaders.CONNECTION.equalsIgnoreCase(str)) {
|
|
int i2 = e + 51;
|
|
d = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
if (!"Keep-Alive".equalsIgnoreCase(str)) {
|
|
int i4 = e + 91;
|
|
d = i4 % 128;
|
|
if (i4 % 2 != 0) {
|
|
HttpHeaders.PROXY_AUTHENTICATE.equalsIgnoreCase(str);
|
|
throw null;
|
|
}
|
|
if (!HttpHeaders.PROXY_AUTHENTICATE.equalsIgnoreCase(str) && !HttpHeaders.PROXY_AUTHORIZATION.equalsIgnoreCase(str) && (!HttpHeaders.TE.equalsIgnoreCase(str)) && !"Trailers".equalsIgnoreCase(str) && !HttpHeaders.TRANSFER_ENCODING.equalsIgnoreCase(str) && !HttpHeaders.UPGRADE.equalsIgnoreCase(str)) {
|
|
int i5 = e + 35;
|
|
d = i5 % 128;
|
|
return i5 % 2 == 0;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
private static boolean a(String str) {
|
|
int i = 2 % 2;
|
|
if ((!HttpHeaders.CONTENT_LENGTH.equalsIgnoreCase(str)) && !HttpHeaders.CONTENT_ENCODING.equalsIgnoreCase(str)) {
|
|
int i2 = d + 39;
|
|
e = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
if (!HttpHeaders.CONTENT_TYPE.equalsIgnoreCase(str)) {
|
|
return false;
|
|
}
|
|
}
|
|
int i4 = e + 95;
|
|
d = i4 % 128;
|
|
if (i4 % 2 == 0) {
|
|
return true;
|
|
}
|
|
throw null;
|
|
}
|
|
}
|