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

139 lines
5.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import com.google.common.base.Ascii;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import net.sf.scuba.smartcards.ISO7816;
/* loaded from: classes.dex */
public final class gu implements gt {
private static final byte[] c = null;
private static final int d = 0;
private static final Map<String, Integer> e;
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:10:0x0020 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0018 */
/* JADX WARN: Type inference failed for: r7v1, types: [int] */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0020 -> B:4:0x0024). 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 a(short r5, short r6, byte r7, java.lang.Object[] r8) {
/*
int r7 = r7 + 4
byte[] r0 = com.facetec.sdk.gu.c
int r5 = 116 - r5
int r1 = r6 + 2
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L10
r4 = r7
r3 = r2
goto L24
L10:
r3 = r2
L11:
byte r4 = (byte) r5
r1[r3] = r4
int r4 = r6 + 1
if (r3 != r4) goto L20
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L20:
r4 = r0[r7]
int r3 = r3 + 1
L24:
int r7 = r7 + 1
int r5 = r5 + r4
int r5 = r5 + (-5)
goto L11
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.gu.a(short, short, byte, java.lang.Object[]):void");
}
@Override // com.facetec.sdk.gt
public final int e(fu fuVar) throws IOException {
Integer num = e.get(fuVar.f());
if (num == null) {
return -1;
}
return num.intValue();
}
@Override // com.facetec.sdk.gt
public final int b(fu fuVar) throws IOException {
Integer num = e.get(fuVar.h());
if (num == null) {
return -1;
}
return num.intValue();
}
static {
c();
HashMap hashMap = new HashMap();
byte[] bArr = c;
Object[] objArr = new Object[1];
a((byte) (bArr[127] - 1), bArr[7], bArr[17], objArr);
hashMap.put((String) objArr[0], 5);
byte b = bArr[6];
Object[] objArr2 = new Object[1];
a(b, (byte) (b + 5), (byte) (-bArr[49]), objArr2);
hashMap.put((String) objArr2[0], 4);
byte b2 = (byte) (bArr[127] - 1);
byte b3 = bArr[50];
Object[] objArr3 = new Object[1];
a(b2, b3, (byte) (b3 | 6), objArr3);
hashMap.put((String) objArr3[0], 9);
byte b4 = bArr[6];
byte b5 = bArr[45];
Object[] objArr4 = new Object[1];
a(b4, b5, (byte) (b5 | 54), objArr4);
hashMap.put((String) objArr4[0], 1);
byte b6 = bArr[127];
byte b7 = (byte) (b6 - 1);
byte b8 = b6;
Object[] objArr5 = new Object[1];
a(b7, b8, (byte) (b8 | 40), objArr5);
hashMap.put((String) objArr5[0], 7);
byte b9 = bArr[6];
byte b10 = bArr[45];
Object[] objArr6 = new Object[1];
a(b9, b10, (byte) (b10 | 74), objArr6);
hashMap.put((String) objArr6[0], 10);
Object[] objArr7 = new Object[1];
a((byte) (bArr[127] - 1), bArr[4], (byte) 77, objArr7);
hashMap.put((String) objArr7[0], 3);
Object[] objArr8 = new Object[1];
a(bArr[59], bArr[4], (byte) 88, objArr8);
hashMap.put((String) objArr8[0], 2);
byte b11 = bArr[4];
byte b12 = bArr[94];
Object[] objArr9 = new Object[1];
a(b11, b12, (byte) (b12 | 97), objArr9);
hashMap.put((String) objArr9[0], 8);
Object[] objArr10 = new Object[1];
a(bArr[59], bArr[127], (byte) 102, objArr10);
hashMap.put((String) objArr10[0], 6);
byte b13 = bArr[103];
byte b14 = bArr[17];
Object[] objArr11 = new Object[1];
a(b13, b14, (byte) (b14 | 120), objArr11);
hashMap.put((String) objArr11[0], 11);
Object[] objArr12 = new Object[1];
a(bArr[17], bArr[94], (byte) 121, objArr12);
hashMap.put((String) objArr12[0], 0);
e = hashMap;
}
static void c() {
c = new byte[]{70, 28, ISO7816.INS_UPDATE_BINARY, -5, 10, -3, 11, 12, 6, 9, 6, -6, -1, -10, ISO7816.INS_PSO, -4, -6, 0, -12, Ascii.NAK, 3, Ascii.DC2, -37, ISO7816.INS_PSO, -3, 11, 12, 6, 9, 6, -6, -1, -21, 32, 10, -3, 11, 12, 6, 9, 6, -6, -1, -9, 32, 1, 8, -9, 8, -13, Ascii.CAN, Ascii.DC4, 3, 12, -49, 49, 11, -2, 11, 15, -1, 10, -3, 11, 12, 6, 9, 6, -6, -1, -11, Ascii.ETB, 19, 5, -5, 11, 4, ISO7816.INS_CREATE_FILE, 32, 15, 1, 10, -3, 11, 12, 6, 9, 6, -6, -1, -21, 32, Ascii.DC2, 5, 2, 8, ISO7816.INS_CREATE_FILE, 29, 19, 5, -13, 11, 3, 14, 1, 4, 14, 9, 2, 2, 5, 6, -3, 14, 11, ISO7816.INS_DELETE_FILE, Ascii.ETB, 19, 5, -5, 11, 4, ISO7816.INS_CREATE_FILE, 32, Ascii.DC2, -14, 11, 17};
d = 236;
}
}