what-the-bank/sources/o/C13095fQi.java

378 lines
13 KiB
Java

package o;
import android.graphics.Color;
import android.os.Process;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.google.gson.annotations.SerializedName;
import io.beid.beidk.definitions.BeIDParams;
import io.swagger.annotations.ApiModel;
import java.lang.reflect.Method;
import java.util.Objects;
import net.sf.scuba.smartcards.ISO7816;
import org.bouncycastle.crypto.tls.CipherSuite;
@ApiModel(description = "Passport information from mobile")
/* renamed from: o.fQi, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public class C13095fQi {
private static short[] j;
private static final byte[] $$a = {63, 15, ISO7816.INS_GET_DATA, 59};
private static final int $$b = CipherSuite.TLS_DHE_PSK_WITH_NULL_SHA256;
private static int $10 = 0;
private static int $11 = 1;
private static int l = 0;
/* renamed from: o, reason: collision with root package name */
private static int f9106o = 1;
private static int f = -237042368;
private static int h = 1406017045;
private static int g = -91013553;
private static byte[] i = {17, 90, 15, 95};
@SerializedName(BeIDParams.BEID_TRANSACTION_ID)
private String e = null;
@SerializedName("DG1")
private String c = null;
@SerializedName("DG2")
private String b = null;
@SerializedName("DG13")
private String a = null;
@SerializedName("SOD")
private String d = null;
/* 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:0x002f). 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 m(int r6, int r7, int r8, java.lang.Object[] r9) {
/*
int r7 = r7 * 4
int r0 = r7 + 1
int r8 = r8 * 3
int r8 = 3 - r8
int r6 = r6 * 2
int r6 = r6 + 108
byte[] r1 = o.C13095fQi.$$a
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L17
r6 = r7
r3 = r8
r4 = r2
goto L2f
L17:
r3 = r2
L18:
int r8 = r8 + 1
byte r4 = (byte) r6
r0[r3] = r4
if (r3 != r7) goto L27
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L27:
int r3 = r3 + 1
r4 = r1[r8]
r5 = r3
r3 = r8
r8 = r4
r4 = r5
L2f:
int r8 = -r8
int r6 = r6 + r8
r8 = r3
r3 = r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.C13095fQi.m(int, int, int, java.lang.Object[]):void");
}
private static void k(short s, byte b, int i2, int i3, int i4, Object[] objArr) {
int i5 = 2 % 2;
DFY dfy = new DFY();
StringBuilder sb = new StringBuilder();
try {
Object[] objArr2 = {Integer.valueOf(i2), Integer.valueOf(h)};
Object obj = xzZ.y.get(-2092856797);
if (obj == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getTapTimeout() >> 16) + 337, View.combineMeasuredStates(0, 0) + 5, (char) Color.blue(0));
byte b2 = (byte) 1;
byte b3 = (byte) (b2 - 1);
Object[] objArr3 = new Object[1];
m(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(-2092856797, obj);
}
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
int i6 = intValue == -1 ? 1 : 0;
if (i6 != 0) {
byte[] bArr = i;
if (bArr != null) {
int length = bArr.length;
byte[] bArr2 = new byte[length];
for (int i7 = 0; i7 < length; i7++) {
Object[] objArr4 = {Integer.valueOf(bArr[i7])};
Object obj2 = xzZ.y.get(-1648115392);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(60 - (ViewConfiguration.getScrollDefaultDelay() >> 16), Color.blue(0) + 5, (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
m(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1648115392, obj2);
}
bArr2[i7] = ((Byte) ((Method) obj2).invoke(null, objArr4)).byteValue();
}
bArr = bArr2;
}
if (bArr != null) {
byte[] bArr3 = i;
Object[] objArr6 = {Integer.valueOf(i3), Integer.valueOf(f)};
Object obj3 = xzZ.y.get(-2092856797);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(336 - TextUtils.lastIndexOf("", '0'), 5 - TextUtils.indexOf("", "", 0), (char) Color.alpha(0));
byte b6 = (byte) 1;
byte b7 = (byte) (b6 - 1);
Object[] objArr7 = new Object[1];
m(b6, b7, b7, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(-2092856797, obj3);
}
intValue = (byte) (((byte) (bArr3[((Integer) ((Method) obj3).invoke(null, objArr6)).intValue()] ^ (-7303220121662775787L))) + ((int) (h ^ (-7303220121662775787L))));
int i8 = $11 + 19;
$10 = i8 % 128;
int i9 = i8 % 2;
} else {
intValue = (short) (((short) (j[i3 + ((int) (f ^ (-7303220121662775787L)))] ^ (-7303220121662775787L))) + ((int) (h ^ (-7303220121662775787L))));
}
}
if (intValue > 0) {
int i10 = $10 + 105;
$11 = i10 % 128;
int i11 = i10 % 2;
dfy.c = ((i3 + intValue) - 2) + ((int) (f ^ (-7303220121662775787L))) + i6;
Object[] objArr8 = {dfy, Integer.valueOf(i4), Integer.valueOf(g), sb};
Object obj4 = xzZ.y.get(1546973421);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(748 - (KeyEvent.getMaxKeyCode() >> 16), View.MeasureSpec.getMode(0) + 5, (char) Color.red(0))).getMethod("q", Object.class, Integer.TYPE, Integer.TYPE, Object.class);
xzZ.y.put(1546973421, obj4);
}
((StringBuilder) ((Method) obj4).invoke(null, objArr8)).append(dfy.a);
dfy.e = dfy.a;
byte[] bArr4 = i;
if (bArr4 != null) {
int length2 = bArr4.length;
byte[] bArr5 = new byte[length2];
for (int i12 = 0; i12 < length2; i12++) {
bArr5[i12] = (byte) (bArr4[i12] ^ (-7303220121662775787L));
}
bArr4 = bArr5;
}
boolean z = bArr4 != null;
dfy.d = 1;
while (dfy.d < intValue) {
int i13 = $11 + 109;
$10 = i13 % 128;
if (i13 % 2 != 0) {
Object obj5 = null;
obj5.hashCode();
throw null;
}
if (z) {
byte[] bArr6 = i;
dfy.c = dfy.c - 1;
dfy.a = (char) (dfy.e + (((byte) (((byte) (bArr6[r8] ^ (-7303220121662775787L))) + s)) ^ b));
} else {
short[] sArr = j;
dfy.c = dfy.c - 1;
dfy.a = (char) (dfy.e + (((short) (((short) (sArr[r8] ^ (-7303220121662775787L))) + s)) ^ b));
}
sb.append(dfy.a);
dfy.e = dfy.a;
dfy.d++;
}
}
objArr[0] = sb.toString();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object c(Object[] objArr) {
C13095fQi c13095fQi = (C13095fQi) objArr[0];
String str = (String) objArr[1];
int i2 = 2 % 2;
int i3 = l + 35;
int i4 = i3 % 128;
f9106o = i4;
int i5 = i3 % 2;
c13095fQi.c = str;
int i6 = i4 + 13;
l = i6 % 128;
int i7 = i6 % 2;
return c13095fQi;
}
public String toString() {
int i2 = 2 % 2;
StringBuilder sb = new StringBuilder("class PassportVerificationForm {\n transactionId: ");
sb.append(b((Object) this.e));
sb.append("\n dg1: ");
sb.append(b((Object) this.c));
sb.append("\n dg2: ");
sb.append(b((Object) this.b));
sb.append("\n dg13: ");
sb.append(b((Object) this.a));
sb.append("\n SOD: ");
sb.append(b((Object) this.d));
sb.append("\n}");
String obj = sb.toString();
int i3 = l + 29;
f9106o = i3 % 128;
if (i3 % 2 != 0) {
return obj;
}
Object obj2 = null;
obj2.hashCode();
throw null;
}
public int hashCode() {
int i2 = 2 % 2;
int i3 = f9106o + 23;
l = i3 % 128;
int i4 = i3 % 2;
int hash = Objects.hash(this.e, this.c, this.b, this.a, this.d);
int i5 = f9106o + 55;
l = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 12 / 0;
}
return hash;
}
public boolean equals(Object obj) {
int i2 = 2 % 2;
int i3 = l + 63;
f9106o = i3 % 128;
int i4 = i3 % 2;
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
int i5 = f9106o + 113;
l = i5 % 128;
int i6 = i5 % 2;
C13095fQi c13095fQi = (C13095fQi) obj;
return Objects.equals(this.e, c13095fQi.e) && Objects.equals(this.c, c13095fQi.c) && Objects.equals(this.b, c13095fQi.b) && Objects.equals(this.a, c13095fQi.a) && Objects.equals(this.d, c13095fQi.d);
}
public final void e(String str) {
int i2 = 2 % 2;
int i3 = f9106o + 75;
int i4 = i3 % 128;
l = i4;
int i5 = i3 % 2;
this.d = str;
int i6 = i4 + 17;
f9106o = i6 % 128;
if (i6 % 2 == 0) {
int i7 = 80 / 0;
}
}
public final C13095fQi a(String str) {
int i2 = 2 % 2;
int i3 = l;
int i4 = i3 + 41;
f9106o = i4 % 128;
int i5 = i4 % 2;
this.a = str;
if (i5 == 0) {
int i6 = 40 / 0;
}
int i7 = i3 + 89;
f9106o = i7 % 128;
int i8 = i7 % 2;
return this;
}
public final C13095fQi b(String str) {
int i2 = 2 % 2;
int i3 = f9106o;
int i4 = i3 + 65;
l = i4 % 128;
int i5 = i4 % 2;
this.b = str;
int i6 = i3 + 55;
l = i6 % 128;
int i7 = i6 % 2;
return this;
}
public final C13095fQi d(String str) {
System.identityHashCode(this);
return (C13095fQi) c(new Object[]{this, str});
}
public final C13095fQi c(String str) {
int i2 = 2 % 2;
int i3 = f9106o;
int i4 = i3 + 47;
l = i4 % 128;
int i5 = i4 % 2;
this.e = str;
int i6 = i3 + 83;
l = i6 % 128;
int i7 = i6 % 2;
return this;
}
private static String b(Object obj) {
int i2 = 2 % 2;
int i3 = l;
int i4 = i3 + 117;
f9106o = i4 % 128;
Object obj2 = null;
if (i4 % 2 == 0) {
obj2.hashCode();
throw null;
}
if (obj == null) {
int i5 = i3 + 7;
f9106o = i5 % 128;
int i6 = i5 % 2;
Object[] objArr = new Object[1];
k((short) (71 - ((Process.getThreadPriority(0) + 20) >> 6)), (byte) ((-106) - View.resolveSizeAndState(0, 0, 0)), AndroidCharacter.getMirror('0') - '1', View.MeasureSpec.getSize(0) + 1575937195, 1453514772 - View.MeasureSpec.makeMeasureSpec(0, 0), objArr);
return ((String) objArr[0]).intern();
}
String replace = obj.toString().replace("\n", "\n ");
int i7 = l + 21;
f9106o = i7 % 128;
if (i7 % 2 != 0) {
return replace;
}
throw null;
}
}