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

1061 lines
49 KiB
Java

package com.facetec.sdk;
import com.kofax.kmc.kut.utilities.IpLibUtil;
import com.kofax.mobile.sdk.capture.CaptureActivity;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.bouncycastle.i18n.LocalizedMessage;
import org.jmrtd.PassportService;
/* loaded from: classes.dex */
public final class JNI {
private static final byte[] a = null;
private static int b;
private static final int c = 0;
private static final Map<Object, String> d;
private static int e;
@Retention(RetentionPolicy.RUNTIME)
/* loaded from: classes.dex */
@interface c {
long b();
}
/* JADX WARN: Removed duplicated region for block: B:10:0x001e */
/* JADX WARN: Removed duplicated region for block: B:7:0x0016 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x001e -> B:4:0x0022). 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(int r5, int r6, int r7, java.lang.Object[] r8) {
/*
int r7 = r7 + 4
int r5 = 118 - r5
byte[] r0 = com.facetec.sdk.JNI.a
int r1 = r6 + 1
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L10
r4 = r6
r3 = r2
goto L22
L10:
r3 = r2
L11:
byte r4 = (byte) r5
r1[r3] = r4
if (r3 != r6) goto L1e
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L1e:
r4 = r0[r7]
int r3 = r3 + 1
L22:
int r5 = r5 + r4
int r7 = r7 + 1
goto L11
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.JNI.f(int, int, int, java.lang.Object[]):void");
}
public static native void fnm(Class<cg> cls, Class<dl> cls2);
public static native void rnm(long j, String str, String str2);
JNI() {
}
static {
c();
e = 0;
b = 1;
HashMap hashMap = new HashMap();
d = hashMap;
hashMap.put(Boolean.TYPE, "Z");
hashMap.put(Byte.TYPE, "B");
hashMap.put(Character.TYPE, "C");
hashMap.put(Double.TYPE, "D");
hashMap.put(Float.TYPE, "F");
hashMap.put(Integer.TYPE, "I");
hashMap.put(Long.TYPE, "J");
hashMap.put(Short.TYPE, "S");
hashMap.put(Void.TYPE, "V");
}
/* JADX WARN: Failed to find 'out' block for switch in B:29:0x0149. Please report as an issue. */
static String e(Method method) {
char c2;
int i;
Object obj;
Object invoke;
Object newInstance;
dg dgVar = new dg(method);
Object[] objArr = new Object[1];
f(73, 242, (short) (c | 614), objArr);
String str = (String) objArr[0];
byte[] bArr = a;
char c3 = '`';
short s = bArr[96];
Object[] objArr2 = new Object[1];
f(74, s, (short) (s | 172), objArr2);
try {
Object[] objArr3 = {(String) objArr2[0]};
Object[] objArr4 = new Object[1];
f(bArr[8], bArr[0], 1022, objArr4);
Class<?> cls = Class.forName((String) objArr4[0]);
byte b2 = bArr[62];
short s2 = bArr[29];
Object[] objArr5 = new Object[1];
f(b2, s2, (short) (s2 | PassportService.EF_DG16), objArr5);
String str2 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
f(bArr[8], bArr[0], 1022, objArr6);
Object[] objArr7 = (Object[]) cls.getMethod(str2, Class.forName((String) objArr6[0])).invoke(str, objArr3);
int[] iArr = new int[objArr7.length];
int i2 = 0;
while (i2 < objArr7.length) {
try {
Object[] objArr8 = {objArr7[i2]};
byte[] bArr2 = a;
Object[] objArr9 = new Object[1];
f(bArr2[8], (short) (-bArr2[13]), CipherSuite.TLS_RSA_PSK_WITH_AES_128_GCM_SHA256, objArr9);
Class<?> cls2 = Class.forName((String) objArr9[0]);
byte b3 = bArr2[c3];
short s3 = bArr2[17];
Object[] objArr10 = new Object[1];
f(b3, s3, s3, objArr10);
String str3 = (String) objArr10[0];
Object[] objArr11 = new Object[1];
f(bArr2[8], bArr2[0], 1022, objArr11);
Object invoke2 = cls2.getMethod(str3, Class.forName((String) objArr11[0])).invoke(null, objArr8);
try {
Object[] objArr12 = new Object[1];
f(bArr2[8], (short) (-bArr2[13]), CipherSuite.TLS_RSA_PSK_WITH_AES_128_GCM_SHA256, objArr12);
Class<?> cls3 = Class.forName((String) objArr12[0]);
byte b4 = bArr2[170];
short s4 = bArr2[31];
short s5 = bArr2[8];
Object[] objArr13 = new Object[1];
f(b4, s4, s5, objArr13);
iArr[i2] = ((Integer) cls3.getMethod((String) objArr13[0], null).invoke(invoke2, null)).intValue();
i2++;
c3 = '`';
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 != null) {
throw cause2;
}
throw th2;
}
}
int i3 = 0;
while (true) {
int i4 = i3 + 1;
switch (dgVar.d(iArr[i3])) {
case -28:
c2 = 17;
i3 = 69;
case -27:
dgVar.d(18);
c2 = 17;
i3 = dgVar.a != 17 ? 37 : 61;
case -26:
i3 = 64;
case -25:
dgVar.d(18);
i3 = dgVar.a != 65 ? 41 : 24;
case -24:
i3 = 70;
case IpLibUtil.KIPP_BAD_HANDLE /* -23 */:
i3 = 72;
case IpLibUtil.KIPP_FILE_METADATA_ERROR /* -22 */:
dgVar.d(15);
if (dgVar.a == 0) {
i3 = 60;
}
case IpLibUtil.KIPP_READING_USER_NETWORK_ERROR /* -21 */:
i3 = 16;
case IpLibUtil.KIPP_BAD_SPEED_ACCURACY_ERROR /* -20 */:
i3 = 50;
case IpLibUtil.KIPP_PDF_TOO_LARGE_TO_APPEND /* -19 */:
dgVar.d(15);
if (dgVar.a == 0) {
i3 = 49;
}
case IpLibUtil.KIPP_ENCRYPTED_APPEND_ERROR /* -18 */:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(12);
b = dgVar.a;
c2 = 17;
i3 = i4;
case IpLibUtil.KIPP_BAD_PDF /* -17 */:
dgVar.b = e;
i = 9;
dgVar.d(i);
c2 = 17;
i3 = i4;
case IpLibUtil.KIPP_CANNOT_APPEND_TO_FILETYPE /* -16 */:
i3 = 1;
case IpLibUtil.KIPP_BAD_FILE_TO_APPEND_TO /* -15 */:
dgVar.d(16);
return (String) dgVar.f;
case IpLibUtil.KIPP_BAD_FILE_FORMAT_INTERNALS /* -14 */:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
obj = dgVar.f.toString();
dgVar.h = obj;
i = 33;
dgVar.d(i);
c2 = 17;
i3 = i4;
case IpLibUtil.KIPP_IMAGE_DOES_NOT_EXIST /* -13 */:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
Object obj2 = dgVar.f;
try {
byte[] bArr3 = a;
Object[] objArr14 = new Object[1];
f(bArr3[8], bArr3[15], 1037, objArr14);
Class<?> cls4 = Class.forName((String) objArr14[0]);
Object[] objArr15 = new Object[1];
f(bArr3[0], bArr3[8], 280, objArr15);
obj = cls4.getMethod((String) objArr15[0], null).invoke(obj2, null);
dgVar.h = obj;
i = 33;
dgVar.d(i);
c2 = 17;
i3 = i4;
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 != null) {
throw cause3;
}
throw th3;
}
case IpLibUtil.KIPP_UNKNOWN_FILETYPE /* -12 */:
dgVar.b = 2;
dgVar.d(2);
dgVar.d(4);
Object obj3 = dgVar.f;
dgVar.d(12);
try {
Object[] objArr16 = {Character.valueOf((char) dgVar.a)};
Object[] objArr17 = new Object[1];
f(r6[8], (short) (-a[14]), (short) (c | 960), objArr17);
Class<?> cls5 = Class.forName((String) objArr17[0]);
Object[] objArr18 = new Object[1];
f(r6[177], r6[16], 1060, objArr18);
invoke = cls5.getMethod((String) objArr18[0], Character.TYPE).invoke(obj3, objArr16);
dgVar.h = invoke;
dgVar.d(33);
c2 = 17;
i3 = i4;
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 != null) {
throw cause4;
}
throw th4;
}
case -11:
i3 = 51;
case -10:
dgVar.b = 2;
dgVar.d(2);
dgVar.d(4);
Object obj4 = dgVar.f;
dgVar.d(4);
try {
Object[] objArr19 = {dgVar.f};
Object[] objArr20 = new Object[1];
f(r10[8], (short) (-a[14]), (short) (c | 960), objArr20);
Class<?> cls6 = Class.forName((String) objArr20[0]);
Object[] objArr21 = new Object[1];
f(r10[177], r10[16], 1060, objArr21);
String str4 = (String) objArr21[0];
Object[] objArr22 = new Object[1];
f(r10[8], r10[0], 1022, objArr22);
invoke = cls6.getMethod(str4, Class.forName((String) objArr22[0])).invoke(obj4, objArr19);
dgVar.h = invoke;
dgVar.d(33);
c2 = 17;
i3 = i4;
} catch (Throwable th5) {
Throwable cause5 = th5.getCause();
if (cause5 != null) {
throw cause5;
}
throw th5;
}
case -9:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
invoke = c((Class) dgVar.f);
dgVar.h = invoke;
dgVar.d(33);
c2 = 17;
i3 = i4;
case -8:
i3 = 65;
case -7:
i3 = 67;
case -6:
dgVar.d(53);
i3 = dgVar.a == 0 ? 15 : i4;
case -5:
i3 = 11;
case -4:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
Object obj5 = dgVar.f;
try {
byte[] bArr4 = a;
Object[] objArr23 = new Object[1];
f(bArr4[8], bArr4[15], 1037, objArr23);
Class<?> cls7 = Class.forName((String) objArr23[0]);
byte b5 = bArr4[0];
short s6 = (short) (-bArr4[13]);
Object[] objArr24 = new Object[1];
f(b5, s6, (short) (s6 | 140), objArr24);
invoke = cls7.getMethod((String) objArr24[0], null).invoke(obj5, null);
dgVar.h = invoke;
dgVar.d(33);
c2 = 17;
i3 = i4;
} catch (Throwable th6) {
Throwable cause6 = th6.getCause();
if (cause6 != null) {
throw cause6;
}
throw th6;
}
case -3:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
try {
Object[] objArr25 = {dgVar.f};
Object[] objArr26 = new Object[1];
f(r6[8], (short) (-a[14]), (short) (c | 960), objArr26);
Class<?> cls8 = Class.forName((String) objArr26[0]);
Object[] objArr27 = new Object[1];
f(r6[8], r6[0], 1022, objArr27);
newInstance = cls8.getDeclaredConstructor(Class.forName((String) objArr27[0])).newInstance(objArr25);
dgVar.h = newInstance;
dgVar.d(33);
c2 = 17;
i3 = i4;
} catch (Throwable th7) {
Throwable cause7 = th7.getCause();
if (cause7 != null) {
throw cause7;
}
throw th7;
}
case -2:
newInstance = "(";
dgVar.h = newInstance;
dgVar.d(33);
c2 = 17;
i3 = i4;
case -1:
i3 = 34;
default:
c2 = 17;
i3 = i4;
}
}
} catch (Throwable th8) {
Throwable cause8 = th8.getCause();
if (cause8 != null) {
throw cause8;
}
throw th8;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Failed to find 'out' block for switch in B:31:0x0148. Please report as an issue. */
/* JADX WARN: Removed duplicated region for block: B:55:0x0273 A[ADDED_TO_REGION] */
/* JADX WARN: Removed duplicated region for block: B:59:0x027f A[ADDED_TO_REGION, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static void d(long r16, java.lang.reflect.Method r18) {
/*
Method dump skipped, instructions count: 684
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.JNI.d(long, java.lang.reflect.Method):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Failed to find 'out' block for switch in B:29:0x0141. Please report as an issue. */
public static void c(Class<cg> cls, Class<dl> cls2) {
dg dgVar = new dg(cls, cls2);
Object[] objArr = new Object[1];
f(73, 104, 881, objArr);
int i = 0;
String str = (String) objArr[0];
byte[] bArr = a;
char c2 = '`';
short s = bArr[96];
Object[] objArr2 = new Object[1];
f(74, s, (short) (s | 172), objArr2);
try {
Object[] objArr3 = {(String) objArr2[0]};
Object[] objArr4 = new Object[1];
f(bArr[8], bArr[0], 1022, objArr4);
Class<?> cls3 = Class.forName((String) objArr4[0]);
byte b2 = bArr[62];
short s2 = bArr[29];
Object[] objArr5 = new Object[1];
f(b2, s2, (short) (s2 | PassportService.EF_DG16), objArr5);
String str2 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
f(bArr[8], bArr[0], 1022, objArr6);
Object[] objArr7 = (Object[]) cls3.getMethod(str2, Class.forName((String) objArr6[0])).invoke(str, objArr3);
int[] iArr = new int[objArr7.length];
int i2 = 0;
while (i2 < objArr7.length) {
try {
Object[] objArr8 = {objArr7[i2]};
byte[] bArr2 = a;
Object[] objArr9 = new Object[1];
f(bArr2[8], (short) (-bArr2[13]), CipherSuite.TLS_RSA_PSK_WITH_AES_128_GCM_SHA256, objArr9);
Class<?> cls4 = Class.forName((String) objArr9[0]);
byte b3 = bArr2[c2];
short s3 = bArr2[17];
Object[] objArr10 = new Object[1];
f(b3, s3, s3, objArr10);
String str3 = (String) objArr10[0];
Object[] objArr11 = new Object[1];
f(bArr2[8], bArr2[0], 1022, objArr11);
Object invoke = cls4.getMethod(str3, Class.forName((String) objArr11[0])).invoke(null, objArr8);
try {
Object[] objArr12 = new Object[1];
f(bArr2[8], (short) (-bArr2[13]), CipherSuite.TLS_RSA_PSK_WITH_AES_128_GCM_SHA256, objArr12);
Class<?> cls5 = Class.forName((String) objArr12[0]);
Object[] objArr13 = new Object[1];
f(bArr2[170], bArr2[31], bArr2[8], objArr13);
iArr[i2] = ((Integer) cls5.getMethod((String) objArr13[0], null).invoke(invoke, null)).intValue();
i2++;
c2 = '`';
} 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 i3 = i + 1;
switch (dgVar.d(iArr[i])) {
case IpLibUtil.KIPP_BAD_FILE_TO_APPEND_TO /* -15 */:
i = 8;
case IpLibUtil.KIPP_BAD_FILE_FORMAT_INTERNALS /* -14 */:
i3 = 32;
case IpLibUtil.KIPP_IMAGE_DOES_NOT_EXIST /* -13 */:
dgVar.d(15);
i = dgVar.a == 0 ? 31 : i3;
case IpLibUtil.KIPP_UNKNOWN_FILETYPE /* -12 */:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(12);
b = dgVar.a;
case -11:
dgVar.b = e;
dgVar.d(9);
case -10:
i = 1;
case -9:
i3 = 21;
case -8:
dgVar.d(29);
if (dgVar.a == 0) {
i3 = 20;
}
case -7:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(12);
e = dgVar.a;
case -6:
dgVar.b = b;
dgVar.d(9);
case -5:
break;
case -4:
i = 10;
case -3:
i = 22;
case -2:
dgVar.b = 2;
dgVar.d(2);
dgVar.d(4);
Class cls6 = (Class) dgVar.f;
dgVar.d(4);
fnm(cls6, (Class) dgVar.f);
case -1:
i = 5;
default:
}
return;
}
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
static void c() {
byte[] bArr = new byte[1069];
System.arraycopy("\u000f'\u0012\u008bþ\u000fÚ\u0013\føë\u000b\tðê\u0017\u0005\u0006â\u000b\u000b\tðó\u000büõ\u0002\u0002\u0004û\u0007ÿú\u0001\u0005ú\u0007\u0001ø\u0007ÿú\u0001\u0006ù\u0007\u0002÷\u0001\u0007ø\u0001\\u0005\u0002ù\u0005\u0002ù\u0007\u0003ö\u0001\\\u0001\\u0001\u000bô\u0007\u0004õ\u0007\u0005ô\u0005\u0003ø\u0001\\u0007\u0006ó\u0001\u0004ÿü\u0001\u0004\u0000û\u0001\u0004\u0001ú\u0001\u0004\u0002ù\u0007ÿú\u0001\u0005ú\büü\u0005û\u0007ÿú\u0001\u0006ù\u0007\u0002÷\u0001\u0007ø\býû\bþú\bÿù\u000bõ\u0001\\u0001\u0004\u0003ø\b\u0000ø\u0001\u0004\u0004÷\b\u0001÷\u0001\u0004\u0004þ\u000fÜ\u0011\u0011ï\\u000fñ\râ%÷õ\u000e÷\u0015ëÍ>õ\rùÇ\u001b%\u0006ñ\u0002þ\r\u0004û\u0005û\\u0001\u0005ú\u0001\u0006ù\\u000bõ\u0001\u0007ø\\u0001\\u0001\\u0005ÿü\u0005\u0000û\u0001\\u0005\u0002ù\u0005\u0003ø\u0001\u000bô\u0001\\u0001\u0004ÿü\u0001\u0004\u0000û\u0005û\\u0001\u0005ú\u0005\u0006õ\u000bõ\u0001\u0006ù\u0001\u0004\u0001ú\u0005\\u0001\u0004\u0002ù\u0006þü\u0001\u0004\u0002ýüý\u000bþ\u000fÞ\u0013\u000f\u0001ýüæ%÷õ\u0004û\u0006\u0000ú\u0001\u0005ú\u0001\u0006ù\u0001\u0007ø\u0001\\u0006\u0000ú\u0001\\n\u0003ó\u0001\\u0001\u000bô\u0006\u0000ú\u0001\\u0001\u0004ÿü\u0001\u0004\u0000û\u0001\u0004\u0001ú\u0006\u0000ú\u0001\u0004\u0002ù\u0001\u0004\u0003ø\u0001\u0004\u0004÷\u0001\u0004\u0005ö\u0001\u0004\u0006õ\u0006\u0000ú\u0001\u0004\u0007ô\u0001\u0004\\u0001\u0005þü\u0001\u0005ÿû\u0001\u000bô\u0006\u0000ú\u0001\u0005\u0000ú\u000bùü\u000búû\u0001\u0005\u0001ù\u0001\u0004ÿü\u000bûú\u0001\u0005\u0002ø\u0001\u0004\u0000û\u0001\u0004\u0001ú\u0005\u0002ù\u0006\u0002ø\u0001\u0005\u0003÷\\u0001\u0004\u0001ú\u0001\u0005\u0004ö\nÿ÷\u0006\u0004ö\u0006\u0005õ\u0007þû\u0005\u0003ø\u0001\u0005\u0005õ\u0007\u0006ó\u0001\u0005\u0006ô\u0001\u0005\u0007ó\u0001\u0006ýü\u0001\u0006ýü\u0001\u0006þû\u000büù\u0006\u0005õ\u0007þû\u0005\u0003ø\u0001\u0006ÿú\u0005\u0002ù\u0005\u0003ø\u0001\u0006\u0000ù\u0001\u0006\u0001ø\u0001\u0006\u0002÷\u0001\u0006\u0002÷\u0001\u0005\u0004ö\u000býø\u000bþ÷\u0005\u0003ø\u0001\u0005\u0005õ\u0005\u0002ù\u0005\u0003ø\u0001\u0006\u0003ö\u0001\u0006\u0004õ\u0001\u0006\u0005ô\u0001\u0006\u0006ó\u0001\u0004\u0006õ\u0006\u0000ú\u0001\u0004\u0007ô\u0001\u0004\\u000bÿö\u0001\u0007üü\u000bõ\u0001\u0005þü\u0001\u0007ýû\u0005\\u0001\u0007þú\u000b\u0000õ\u0001\u0007þú\u0001\u0007ÿù\b\u0001÷\u0001\u0007\u0000ø\b\u0000ø\u0001\u0007\u0000÷\u0015ëÍGÿõ\u0003Â\u001f\u0014\u000fþ\u000f\u0004û\u0001\u0005ú\u0001\u0006ù\b\u0002ö\u0001\u0007ø\b\u0003õ\b\u0004ô\b\u0005ó\b\u0000ø\tûü\u0001\\tüû\týú\u0001\\u0001\\u0001\u000bô\u0007ÿú\tÿø\t\u0000÷\t\u0001ö\u0001\\u0001\u0004ÿü\t\u0002õ\u0001\u0004\u0000û\u0006\u0001ù\t\u0003ô\u0001\u0004\u0001ú\u0006\u0000ú\u0001\u0004\u0002ù\u0001\\u0001\u0004ÿü\t\u0004ó\u0001\u0004\u0003ø\u0001\u0004\u0004÷\\u000bõ\u0001\u0004\u0005ö\núü\u0005\u0003ø\u000bõ\u0001\\u0001\u0004\u0006õ\nûû\u0007þû\u0005\u0003ø\u0001\u0004\u0007ô\u0007\u0006ó\u0001\u0004\\u0001\u0005þü\u0001\u0005ÿû\u0001\u0005ÿû\u0001\u0004\u0006õ\nüú\u0006\u0004ö\u0006\u0005õ\u0006\u0006ô\u0001\u0004\u0007ô\u0007\u0006ó\u0001\u0005\u0000ú\u0001\u0005\u0001ù\u0001\u0005\u0002ø\nýù\nþø\u0001\\u0001\u0005\u0003÷\nÿ÷\u0001\u0005\u0004ö\n\u0000ö\u0001\u0005\u0004ö\u0001\u0005\u0005õ\n\u0001õ\u0001\u0005\u0006ô\n\u0002ô\u0001\u0005\u0006\u0004û\u0006\u0000ú\u0006\u0001ù\u0001\u0005ú\u0001\u0006ù\u0005\u0002ù\u0006\u0002ø\u0001\u0007ø\\u0001\\u0001\\u0006\u0003÷\u0006\u0004ö\u0006\u0005õ\u0006\u0006ô\u0001\\u0005\u0002ù\u0005\u0003ø\u0001\u000bô\u0001\\u0001\u0004ÿü\u0001\u0004ÿü\u0001\u0004\u0000û\u0007ýü\u0007þû\u0005\u0003ø\u0001\u0004\u0001ú\u0005\u0002ù\u0005\u0003ø\u0001\u0004\u0002ù\u0001\u0004\u0003ø\u0001\u0004\u0004÷\u0001\u0004\u0004÷\u0015ëÍ>õ\rùÇ%!þ÷\u0005ùÛ3ô\u0003ø\u0001\\u0015ëÍ>õ\rùÇ!\u0013\bûþ\u0011÷\u0015ëÍ>õ\rùÇ%!þ÷\u0005ù÷\u0015ëÍ>õ\rùÇDó\u0001\u0006ùþ\u0011º\u001f\u0018\u000fô\u0007õ\u000f\u0000õ\".getBytes(LocalizedMessage.DEFAULT_ENCODING), 0, bArr, 0, 1069);
a = bArr;
c = 25;
}
/* JADX WARN: Failed to find 'out' block for switch in B:31:0x0145. Please report as an issue. */
/* JADX WARN: Multi-variable type inference failed */
static String c(Class<?> cls) {
int i;
Object invoke;
int i2;
dg dgVar = new dg(cls);
Object[] objArr = new Object[1];
f(73, 333, 292, objArr);
String str = (String) objArr[0];
byte[] bArr = a;
char c2 = '`';
short s = bArr[96];
Object[] objArr2 = new Object[1];
f(74, s, (short) (s | 172), objArr2);
try {
Object[] objArr3 = {(String) objArr2[0]};
Object[] objArr4 = new Object[1];
f(bArr[8], bArr[0], 1022, objArr4);
Class<?> cls2 = Class.forName((String) objArr4[0]);
byte b2 = bArr[62];
short s2 = bArr[29];
Object[] objArr5 = new Object[1];
f(b2, s2, (short) (s2 | PassportService.EF_DG16), objArr5);
String str2 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
f(bArr[8], bArr[0], 1022, objArr6);
Object[] objArr7 = (Object[]) cls2.getMethod(str2, Class.forName((String) objArr6[0])).invoke(str, objArr3);
int[] iArr = new int[objArr7.length];
int i3 = 0;
while (i3 < objArr7.length) {
try {
Object[] objArr8 = {objArr7[i3]};
byte[] bArr2 = a;
Object[] objArr9 = new Object[1];
f(bArr2[8], (short) (-bArr2[13]), CipherSuite.TLS_RSA_PSK_WITH_AES_128_GCM_SHA256, objArr9);
Class<?> cls3 = Class.forName((String) objArr9[0]);
byte b3 = bArr2[c2];
short s3 = bArr2[17];
Object[] objArr10 = new Object[1];
f(b3, s3, s3, objArr10);
String str3 = (String) objArr10[0];
Object[] objArr11 = new Object[1];
f(bArr2[8], bArr2[0], 1022, objArr11);
Object invoke2 = cls3.getMethod(str3, Class.forName((String) objArr11[0])).invoke(null, objArr8);
try {
Object[] objArr12 = new Object[1];
f(bArr2[8], (short) (-bArr2[13]), CipherSuite.TLS_RSA_PSK_WITH_AES_128_GCM_SHA256, objArr12);
Class<?> cls4 = Class.forName((String) objArr12[0]);
Object[] objArr13 = new Object[1];
f(bArr2[170], bArr2[31], bArr2[8], objArr13);
iArr[i3] = ((Integer) cls4.getMethod((String) objArr13[0], null).invoke(invoke2, null)).intValue();
i3++;
c2 = '`';
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 != null) {
throw cause2;
}
throw th2;
}
}
int i4 = 0;
while (true) {
int i5 = i4 + 1;
try {
} catch (Throwable th3) {
th = th3;
if (i5 >= 82) {
}
throw th;
}
switch (dgVar.d(iArr[i4])) {
case -44:
i4 = 91;
case -43:
dgVar.d(18);
i4 = dgVar.a != 0 ? 26 : 67;
case CaptureActivity.IMAGE_CAPTURED /* -42 */:
i4 = 86;
case -41:
dgVar.d(18);
int i6 = dgVar.a;
i4 = (i6 == 23 || i6 != 53) ? 78 : 21;
break;
case -40:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
dgVar.b = dgVar.f.hashCode();
dgVar.d(9);
case -39:
dgVar.d(16);
throw ((Throwable) dgVar.f);
break;
case -38:
i4 = 87;
case -37:
i4 = 89;
case -36:
dgVar.d(15);
i4 = dgVar.a == 0 ? 76 : i5;
case -35:
i4 = 41;
case -34:
i4 = 66;
case -33:
try {
dgVar.d(29);
} catch (Throwable th4) {
th = th4;
if (i5 >= 82 || i5 > 86) {
throw th;
}
dgVar.h = th;
dgVar.d(21);
i4 = 77;
}
if (dgVar.a == 0) {
i4 = 65;
}
break;
case -32:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(12);
e = dgVar.a;
case -31:
i = b;
dgVar.b = i;
dgVar.d(9);
case -30:
i4 = 1;
case -29:
i4 = 54;
case -28:
dgVar.d(15);
if (dgVar.a == 0) {
i4 = 53;
}
case -27:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(12);
b = dgVar.a;
case -26:
i = e;
dgVar.b = i;
dgVar.d(9);
case -25:
i4 = 43;
case -24:
dgVar.b = 2;
dgVar.d(2);
dgVar.d(4);
Object obj = dgVar.f;
dgVar.d(12);
try {
Object[] objArr14 = {Character.valueOf((char) dgVar.a)};
Object[] objArr15 = new Object[1];
f(r6[8], (short) (-a[14]), (short) (c | 960), objArr15);
Class<?> cls5 = Class.forName((String) objArr15[0]);
Object[] objArr16 = new Object[1];
f(r6[177], r6[16], 1060, objArr16);
dgVar.h = cls5.getMethod((String) objArr16[0], Character.TYPE).invoke(obj, objArr14);
dgVar.d(33);
} catch (Throwable th5) {
Throwable cause3 = th5.getCause();
if (cause3 != null) {
throw cause3;
}
throw th5;
}
case IpLibUtil.KIPP_BAD_HANDLE /* -23 */:
dgVar.b = 3;
dgVar.d(2);
dgVar.d(4);
Object obj2 = dgVar.f;
dgVar.d(12);
char c3 = (char) dgVar.a;
dgVar.d(12);
try {
Object[] objArr17 = {Character.valueOf(c3), Character.valueOf((char) dgVar.a)};
byte[] bArr3 = a;
Object[] objArr18 = new Object[1];
f(bArr3[8], bArr3[0], 1022, objArr18);
Class<?> cls6 = Class.forName((String) objArr18[0]);
Object[] objArr19 = new Object[1];
f(bArr3[29], bArr3[17], bArr3[7], objArr19);
invoke = cls6.getMethod((String) objArr19[0], Character.TYPE, Character.TYPE).invoke(obj2, objArr17);
dgVar.h = invoke;
dgVar.d(33);
} catch (Throwable th6) {
Throwable cause4 = th6.getCause();
if (cause4 != null) {
throw cause4;
}
throw th6;
}
case IpLibUtil.KIPP_FILE_METADATA_ERROR /* -22 */:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
invoke = ((Class) dgVar.f).getName();
dgVar.h = invoke;
dgVar.d(33);
case IpLibUtil.KIPP_READING_USER_NETWORK_ERROR /* -21 */:
invoke = "L";
dgVar.h = invoke;
dgVar.d(33);
case IpLibUtil.KIPP_BAD_SPEED_ACCURACY_ERROR /* -20 */:
i4 = 55;
case IpLibUtil.KIPP_PDF_TOO_LARGE_TO_APPEND /* -19 */:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
invoke = dgVar.f;
dgVar.h = invoke;
dgVar.d(33);
case IpLibUtil.KIPP_ENCRYPTED_APPEND_ERROR /* -18 */:
dgVar.b = 2;
dgVar.d(2);
dgVar.d(4);
Object obj3 = dgVar.f;
dgVar.d(4);
try {
Object[] objArr20 = {dgVar.f};
byte[] bArr4 = a;
byte b4 = bArr4[8];
Object[] objArr21 = new Object[1];
f(b4, b4, 625, objArr21);
Class<?> cls7 = Class.forName((String) objArr21[0]);
Object[] objArr22 = new Object[1];
f(bArr4[0], bArr4[27], (short) (c | 612), objArr22);
String str4 = (String) objArr22[0];
byte b5 = bArr4[8];
short s4 = bArr4[0];
Object[] objArr23 = new Object[1];
f(b5, s4, (short) (s4 | 992), objArr23);
invoke = cls7.getMethod(str4, Class.forName((String) objArr23[0])).invoke(obj3, objArr20);
dgVar.h = invoke;
dgVar.d(33);
} catch (Throwable th7) {
Throwable cause5 = th7.getCause();
if (cause5 != null) {
throw cause5;
}
throw th7;
}
case IpLibUtil.KIPP_BAD_PDF /* -17 */:
invoke = d;
dgVar.h = invoke;
dgVar.d(33);
case IpLibUtil.KIPP_CANNOT_APPEND_TO_FILETYPE /* -16 */:
i4 = 92;
case IpLibUtil.KIPP_BAD_FILE_TO_APPEND_TO /* -15 */:
i4 = 94;
case IpLibUtil.KIPP_BAD_FILE_FORMAT_INTERNALS /* -14 */:
dgVar.d(29);
if (dgVar.a == 0) {
i4 = 20;
}
case IpLibUtil.KIPP_IMAGE_DOES_NOT_EXIST /* -13 */:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
i2 = ((Class) dgVar.f).isPrimitive();
dgVar.b = i2;
dgVar.d(9);
case IpLibUtil.KIPP_UNKNOWN_FILETYPE /* -12 */:
dgVar.d(16);
return (String) dgVar.f;
case -11:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
invoke = dgVar.f.toString();
dgVar.h = invoke;
dgVar.d(33);
case -10:
dgVar.b = 2;
dgVar.d(2);
dgVar.d(4);
Object obj4 = dgVar.f;
dgVar.d(4);
try {
Object[] objArr24 = {dgVar.f};
Object[] objArr25 = new Object[1];
f(r10[8], (short) (-a[14]), (short) (c | 960), objArr25);
Class<?> cls8 = Class.forName((String) objArr25[0]);
Object[] objArr26 = new Object[1];
f(r10[177], r10[16], 1060, objArr26);
String str5 = (String) objArr26[0];
Object[] objArr27 = new Object[1];
f(r10[8], r10[0], 1022, objArr27);
invoke = cls8.getMethod(str5, Class.forName((String) objArr27[0])).invoke(obj4, objArr24);
dgVar.h = invoke;
dgVar.d(33);
} catch (Throwable th8) {
Throwable cause6 = th8.getCause();
if (cause6 != null) {
throw cause6;
}
throw th8;
}
case -9:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
invoke = c((Class) dgVar.f);
dgVar.h = invoke;
dgVar.d(33);
case -8:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
try {
Object[] objArr28 = {dgVar.f};
Object[] objArr29 = new Object[1];
f(r6[8], (short) (-a[14]), (short) (c | 960), objArr29);
Class<?> cls9 = Class.forName((String) objArr29[0]);
Object[] objArr30 = new Object[1];
f(r6[8], r6[0], 1022, objArr30);
invoke = cls9.getDeclaredConstructor(Class.forName((String) objArr30[0])).newInstance(objArr28);
dgVar.h = invoke;
dgVar.d(33);
} catch (Throwable th9) {
Throwable cause7 = th9.getCause();
if (cause7 != null) {
throw cause7;
}
throw th9;
}
case -7:
invoke = "[";
dgVar.h = invoke;
dgVar.d(33);
case -6:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
invoke = ((Class) dgVar.f).getComponentType();
dgVar.h = invoke;
dgVar.d(33);
case -5:
i4 = 16;
case -4:
i4 = 6;
case -3:
dgVar.d(29);
if (dgVar.a == 0) {
i4 = 5;
}
case -2:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(4);
i2 = ((Class) dgVar.f).isArray();
dgVar.b = i2;
dgVar.d(9);
case -1:
i4 = 38;
default:
}
}
} catch (Throwable th10) {
Throwable cause8 = th10.getCause();
if (cause8 != null) {
throw cause8;
}
throw th10;
}
}
/* JADX WARN: Failed to find 'out' block for switch in B:30:0x0141. Please report as an issue. */
private static void b(long j, String str, String str2) {
dg dgVar = new dg(j, str, str2);
Object[] objArr = new Object[1];
f(73, 88, 188, objArr);
int i = 0;
String str3 = (String) objArr[0];
byte[] bArr = a;
char c2 = '`';
short s = bArr[96];
Object[] objArr2 = new Object[1];
f(74, s, (short) (s | 172), objArr2);
try {
Object[] objArr3 = {(String) objArr2[0]};
Object[] objArr4 = new Object[1];
f(bArr[8], bArr[0], 1022, objArr4);
Class<?> cls = Class.forName((String) objArr4[0]);
byte b2 = bArr[62];
short s2 = bArr[29];
Object[] objArr5 = new Object[1];
f(b2, s2, (short) (s2 | PassportService.EF_DG16), objArr5);
String str4 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
f(bArr[8], bArr[0], 1022, objArr6);
Object[] objArr7 = (Object[]) cls.getMethod(str4, Class.forName((String) objArr6[0])).invoke(str3, objArr3);
int[] iArr = new int[objArr7.length];
int i2 = 0;
while (i2 < objArr7.length) {
try {
Object[] objArr8 = {objArr7[i2]};
byte[] bArr2 = a;
Object[] objArr9 = new Object[1];
f(bArr2[8], (short) (-bArr2[13]), CipherSuite.TLS_RSA_PSK_WITH_AES_128_GCM_SHA256, objArr9);
Class<?> cls2 = Class.forName((String) objArr9[0]);
byte b3 = bArr2[c2];
short s3 = bArr2[17];
Object[] objArr10 = new Object[1];
f(b3, s3, s3, objArr10);
String str5 = (String) objArr10[0];
Object[] objArr11 = new Object[1];
f(bArr2[8], bArr2[0], 1022, objArr11);
Object invoke = cls2.getMethod(str5, Class.forName((String) objArr11[0])).invoke(null, objArr8);
try {
Object[] objArr12 = new Object[1];
f(bArr2[8], (short) (-bArr2[13]), CipherSuite.TLS_RSA_PSK_WITH_AES_128_GCM_SHA256, objArr12);
Class<?> cls3 = Class.forName((String) objArr12[0]);
Object[] objArr13 = new Object[1];
f(bArr2[170], bArr2[31], bArr2[8], objArr13);
iArr[i2] = ((Integer) cls3.getMethod((String) objArr13[0], null).invoke(invoke, null)).intValue();
i2++;
c2 = '`';
} 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 i3 = i + 1;
try {
} catch (Throwable th3) {
if (i3 < 23 || i3 > 26) {
throw th3;
}
dgVar.h = th3;
dgVar.d(21);
i = 19;
}
switch (dgVar.d(iArr[i])) {
case IpLibUtil.KIPP_IMAGE_DOES_NOT_EXIST /* -13 */:
i = 26;
case IpLibUtil.KIPP_UNKNOWN_FILETYPE /* -12 */:
dgVar.d(18);
i = dgVar.a != 39 ? 1 : 20;
case -11:
dgVar.d(16);
throw ((Throwable) dgVar.f);
break;
case -10:
i = 27;
case -9:
i = 29;
case -8:
dgVar.d(15);
i = dgVar.a == 0 ? 18 : i3;
case -7:
dgVar.b = 1;
dgVar.d(2);
dgVar.d(12);
b = dgVar.a;
case -6:
dgVar.b = e;
dgVar.d(9);
case -5:
return;
case -4:
i = 10;
case -3:
i = 8;
case -2:
dgVar.b = 3;
dgVar.d(2);
dgVar.d(3);
long j2 = dgVar.e;
dgVar.d(4);
String str6 = (String) dgVar.f;
dgVar.d(4);
rnm(j2, str6, (String) dgVar.f);
case -1:
i = 5;
default:
}
}
} catch (Throwable th4) {
Throwable cause3 = th4.getCause();
if (cause3 == null) {
throw th4;
}
throw cause3;
}
}
}