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

342 lines
12 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.Color;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import org.bouncycastle.crypto.tls.CipherSuite;
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
/* loaded from: classes3.dex */
public final class dCK {
private static final dCK[] $VALUES;
public static final dCK EBILL_SUBSCRIPTION;
public static final dCK PROMPTPAY_QR;
public static final dCK REQUEST_MONEY;
private static char[] a;
private static int d;
private String type;
private static final byte[] $$a = {124, -126, ISO7816.INS_MSE, 69};
private static final int $$b = CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA;
private static int $10 = 0;
private static int $11 = 1;
private static int b = 0;
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> B:4:0x002a). 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, byte r6, short r7, java.lang.Object[] r8) {
/*
int r7 = r7 * 4
int r7 = r7 + 4
int r6 = r6 * 2
int r6 = r6 + 71
byte[] r0 = o.dCK.$$a
int r5 = r5 * 4
int r1 = 1 - r5
byte[] r1 = new byte[r1]
r2 = 0
int r5 = 0 - r5
if (r0 != 0) goto L18
r4 = r5
r3 = r2
goto L2a
L18:
r3 = r2
L19:
byte r4 = (byte) r6
r1[r3] = r4
if (r3 != r5) goto L26
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L26:
r4 = r0[r7]
int r3 = r3 + 1
L2a:
int r6 = r6 + r4
int r7 = r7 + 1
goto L19
*/
throw new UnsupportedOperationException("Method not decompiled: o.dCK.f(int, byte, short, java.lang.Object[]):void");
}
public static dCK valueOf(String str) {
int i = 2 % 2;
int i2 = d + 7;
b = i2 % 128;
int i3 = i2 % 2;
dCK dck = (dCK) Enum.valueOf(dCK.class, str);
int i4 = d + 13;
b = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 3 / 0;
}
return dck;
}
public static dCK[] values() {
int i = 2 % 2;
int i2 = b + 67;
d = i2 % 128;
if (i2 % 2 != 0) {
return (dCK[]) $VALUES.clone();
}
throw null;
}
static {
d = 1;
c();
Object[] objArr = new Object[1];
e(new byte[]{1}, new int[]{0, 1, 0, 0}, true, objArr);
REQUEST_MONEY = new dCK("REQUEST_MONEY", 0, ((String) objArr[0]).intern());
Object[] objArr2 = new Object[1];
e(new byte[]{0}, new int[]{1, 1, 48, 0}, true, objArr2);
EBILL_SUBSCRIPTION = new dCK("EBILL_SUBSCRIPTION", 1, ((String) objArr2[0]).intern());
PROMPTPAY_QR = new dCK("PROMPTPAY_QR", 2, "3");
$VALUES = a();
int i = b + 119;
d = i % 128;
int i2 = i % 2;
}
private dCK(String str, int i, String str2) {
this.type = str2;
}
public static dCK c(String str) {
int i = 2 % 2;
int i2 = d + 121;
b = i2 % 128;
if (i2 % 2 == 0) {
dCK dck = REQUEST_MONEY;
if (dck.type.equals(str)) {
return dck;
}
dCK dck2 = EBILL_SUBSCRIPTION;
if (dck2.type.equals(str)) {
int i3 = b + 27;
d = i3 % 128;
int i4 = i3 % 2;
return dck2;
}
dCK dck3 = PROMPTPAY_QR;
return dck3.type.equals(str) ? dck3 : dck;
}
REQUEST_MONEY.type.equals(str);
throw null;
}
private static void e(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
int i;
int i2 = 2;
int i3 = 2 % 2;
TVH tvh = new TVH();
int i4 = 0;
int i5 = iArr[0];
int i6 = iArr[1];
int i7 = iArr[2];
int i8 = iArr[3];
char[] cArr = a;
if (cArr != null) {
int length = cArr.length;
char[] cArr2 = new char[length];
int i9 = 0;
while (i9 < length) {
int i10 = $10 + 73;
$11 = i10 % 128;
if (i10 % i2 == 0) {
try {
Object[] objArr2 = new Object[1];
objArr2[i4] = Integer.valueOf(cArr[i9]);
Object obj = xzZ.y.get(1645349359);
if (obj == null) {
Class cls = (Class) xzZ.c(223 - (ViewConfiguration.getWindowTouchSlop() >> 8), 5 - KeyEvent.keyCodeFromString(""), (char) ((ViewConfiguration.getScrollDefaultDelay() >> 16) + 41977));
byte b2 = (byte) i4;
byte b3 = b2;
Object[] objArr3 = new Object[1];
f(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr2[i9] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i9 >>>= 1;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
Object[] objArr4 = {Integer.valueOf(cArr[i9])};
Object obj2 = xzZ.y.get(1645349359);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(223 - View.MeasureSpec.makeMeasureSpec(0, 0), 5 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 41978));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
f(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(1645349359, obj2);
}
cArr2[i9] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i9++;
}
i2 = 2;
i4 = 0;
}
cArr = cArr2;
}
char[] cArr3 = new char[i6];
System.arraycopy(cArr, i5, cArr3, 0, i6);
if (bArr != null) {
int i11 = $11 + 33;
$10 = i11 % 128;
int i12 = i11 % 2;
char[] cArr4 = new char[i6];
tvh.c = 0;
char c = 0;
while (tvh.c < i6) {
if (bArr[tvh.c] == 1) {
int i13 = tvh.c;
Object[] objArr6 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c)};
Object obj3 = xzZ.y.get(850398076);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(502 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 4, (char) (54 - ((Process.getThreadPriority(0) + 20) >> 6)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj3);
}
cArr4[i13] = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue();
} else {
int i14 = tvh.c;
try {
Object[] objArr7 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c)};
Object obj4 = xzZ.y.get(1084521042);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(Color.green(0) + 15, 6 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (char) (58134 - (ViewConfiguration.getDoubleTapTimeout() >> 16)))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj4);
}
cArr4[i14] = ((Character) ((Method) obj4).invoke(null, objArr7)).charValue();
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
c = cArr4[tvh.c];
Object[] objArr8 = {tvh, tvh};
Object obj5 = xzZ.y.get(1698744941);
if (obj5 == null) {
Class cls3 = (Class) xzZ.c(402 - KeyEvent.getDeadChar(0, 0), 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) (21609 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))));
byte b6 = (byte) 0;
byte b7 = (byte) (b6 + 1);
Object[] objArr9 = new Object[1];
f(b6, b7, (byte) (b7 - 1), objArr9);
obj5 = cls3.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj5);
}
((Method) obj5).invoke(null, objArr8);
}
cArr3 = cArr4;
}
if (i8 > 0) {
int i15 = $11 + 105;
$10 = i15 % 128;
if (i15 % 2 != 0) {
char[] cArr5 = new char[i6];
i = 0;
System.arraycopy(cArr3, 1, cArr5, 0, i6);
int i16 = i6 + i8;
System.arraycopy(cArr5, 0, cArr3, i16, i8);
System.arraycopy(cArr5, i8, cArr3, 1, i16);
} else {
i = 0;
char[] cArr6 = new char[i6];
System.arraycopy(cArr3, 0, cArr6, 0, i6);
int i17 = i6 - i8;
System.arraycopy(cArr6, 0, cArr3, i17, i8);
System.arraycopy(cArr6, i8, cArr3, 0, i17);
}
} else {
i = 0;
}
if (z) {
char[] cArr7 = new char[i6];
while (true) {
tvh.c = i;
if (tvh.c >= i6) {
break;
}
cArr7[tvh.c] = cArr3[(i6 - tvh.c) - 1];
i = tvh.c + 1;
}
cArr3 = cArr7;
}
if (i7 > 0) {
int i18 = $10 + 89;
$11 = i18 % 128;
if (i18 % 2 == 0) {
tvh.c = 1;
} else {
tvh.c = 0;
}
while (tvh.c < i6) {
cArr3[tvh.c] = (char) (cArr3[tvh.c] - iArr[2]);
tvh.c++;
}
}
objArr[0] = new String(cArr3);
}
static void c() {
a = new char[]{39955, 39994};
}
public final String b() {
int i = 2 % 2;
int i2 = d;
int i3 = i2 + 25;
b = i3 % 128;
int i4 = i3 % 2;
String str = this.type;
int i5 = i2 + 99;
b = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 52 / 0;
}
return str;
}
private static /* synthetic */ dCK[] a() {
int i = 2 % 2;
int i2 = b + 23;
d = i2 % 128;
int i3 = i2 % 2;
dCK dck = REQUEST_MONEY;
if (i3 != 0) {
return new dCK[]{dck, EBILL_SUBSCRIPTION, PROMPTPAY_QR};
}
dCK dck2 = EBILL_SUBSCRIPTION;
dCK dck3 = PROMPTPAY_QR;
dCK[] dckArr = new dCK[5];
dckArr[1] = dck;
dckArr[1] = dck2;
dckArr[5] = dck3;
return dckArr;
}
}