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

444 lines
18 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.google.zxing.NotFoundException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import net.sf.scuba.smartcards.ISO7816;
/* renamed from: o.vHy, reason: case insensitive filesystem */
/* loaded from: classes2.dex */
final class C17250vHy {
private static final Map<String, LWm> a;
private static final Map<String, LWm> b;
private static final Map<String, LWm> c;
private static long d;
private static final Map<String, LWm> e;
private static int j;
private static final byte[] $$a = {ISO7816.INS_MANAGE_CHANNEL, Ascii.SYN, 62, 17};
private static final int $$b = 100;
private static int $10 = 0;
private static int $11 = 1;
private static int i = 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:0x002e). 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 g(int r6, short r7, short r8, java.lang.Object[] r9) {
/*
int r8 = 78 - r8
int r6 = r6 * 2
int r0 = 1 - r6
int r7 = r7 * 3
int r7 = 3 - r7
byte[] r1 = o.C17250vHy.$$a
byte[] r0 = new byte[r0]
r2 = 0
int r6 = 0 - r6
if (r1 != 0) goto L16
r3 = r6
r4 = r2
goto L2e
L16:
r3 = r2
L17:
int r7 = r7 + 1
byte r4 = (byte) r8
r0[r3] = r4
if (r3 != r6) goto L26
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L26:
int r3 = r3 + 1
r4 = r1[r7]
r5 = r3
r3 = r8
r8 = r4
r4 = r5
L2e:
int r8 = -r8
int r8 = r8 + r3
r3 = r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: o.C17250vHy.g(int, short, short, java.lang.Object[]):void");
}
static {
j = 1;
a();
HashMap hashMap = new HashMap();
a = hashMap;
Object[] objArr = new Object[1];
f(new char[]{27299, 55654}, 46021 - (Process.myTid() >> 22), objArr);
hashMap.put(((String) objArr[0]).intern(), new LWm(false, 18));
Object[] objArr2 = new Object[1];
f(new char[]{27299, 31179}, (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 4970, objArr2);
hashMap.put(((String) objArr2[0]).intern(), new LWm(false, 14));
Object[] objArr3 = new Object[1];
f(new char[]{27299, 9312}, 20161 - Drawable.resolveOpacity(0, 0), objArr3);
hashMap.put(((String) objArr3[0]).intern(), new LWm(false, 14));
hashMap.put("10", new LWm(true, 20));
hashMap.put("11", new LWm(false, 6));
hashMap.put("12", new LWm(false, 6));
hashMap.put("13", new LWm(false, 6));
hashMap.put("15", new LWm(false, 6));
hashMap.put("17", new LWm(false, 6));
hashMap.put("20", new LWm(false, 2));
hashMap.put("21", new LWm(true, 20));
hashMap.put("22", new LWm(true, 29));
hashMap.put("30", new LWm(true, 8));
hashMap.put("37", new LWm(true, 8));
for (int i2 = 90; i2 <= 99; i2++) {
a.put(String.valueOf(i2), new LWm(true, 30));
}
HashMap hashMap2 = new HashMap();
e = hashMap2;
hashMap2.put("240", new LWm(true, 30));
hashMap2.put("241", new LWm(true, 30));
hashMap2.put("242", new LWm(true, 6));
hashMap2.put("250", new LWm(true, 30));
hashMap2.put("251", new LWm(true, 30));
hashMap2.put("253", new LWm(true, 17));
hashMap2.put("254", new LWm(true, 20));
hashMap2.put("400", new LWm(true, 30));
hashMap2.put("401", new LWm(true, 30));
hashMap2.put("402", new LWm(false, 17));
hashMap2.put("403", new LWm(true, 30));
hashMap2.put("410", new LWm(false, 13));
hashMap2.put("411", new LWm(false, 13));
hashMap2.put("412", new LWm(false, 13));
hashMap2.put("413", new LWm(false, 13));
hashMap2.put("414", new LWm(false, 13));
hashMap2.put("420", new LWm(true, 20));
hashMap2.put("421", new LWm(true, 15));
hashMap2.put("422", new LWm(false, 3));
hashMap2.put("423", new LWm(true, 15));
hashMap2.put("424", new LWm(false, 3));
hashMap2.put("425", new LWm(false, 3));
hashMap2.put("426", new LWm(false, 3));
b = new HashMap();
for (int i3 = 310; i3 <= 316; i3++) {
b.put(String.valueOf(i3), new LWm(false, 6));
}
int i4 = 320;
while (i4 <= 336) {
b.put(String.valueOf(i4), new LWm(false, 6));
i4++;
int i5 = i + 19;
j = i5 % 128;
int i6 = i5 % 2;
int i7 = 2 % 2;
}
for (int i8 = 340; i8 <= 357; i8++) {
b.put(String.valueOf(i8), new LWm(false, 6));
}
int i9 = i + 113;
j = i9 % 128;
int i10 = i9 % 2;
int i11 = 2 % 2;
for (int i12 = 360; i12 <= 369; i12++) {
b.put(String.valueOf(i12), new LWm(false, 6));
}
Map<String, LWm> map = b;
map.put("390", new LWm(true, 15));
map.put("391", new LWm(true, 18));
map.put("392", new LWm(true, 15));
map.put("393", new LWm(true, 18));
map.put("703", new LWm(true, 30));
HashMap hashMap3 = new HashMap();
c = hashMap3;
hashMap3.put("7001", new LWm(false, 13));
hashMap3.put("7002", new LWm(true, 30));
hashMap3.put("7003", new LWm(false, 10));
hashMap3.put("8001", new LWm(false, 14));
hashMap3.put("8002", new LWm(true, 20));
hashMap3.put("8003", new LWm(true, 30));
hashMap3.put("8004", new LWm(true, 30));
hashMap3.put("8005", new LWm(false, 6));
hashMap3.put("8006", new LWm(false, 18));
hashMap3.put("8007", new LWm(true, 30));
hashMap3.put("8008", new LWm(true, 12));
hashMap3.put("8018", new LWm(false, 18));
hashMap3.put("8020", new LWm(true, 25));
hashMap3.put("8100", new LWm(false, 6));
hashMap3.put("8101", new LWm(false, 10));
hashMap3.put("8102", new LWm(false, 2));
hashMap3.put("8110", new LWm(true, 70));
hashMap3.put("8200", new LWm(true, 70));
int i13 = i + 35;
j = i13 % 128;
if (i13 % 2 == 0) {
throw null;
}
}
private static void f(char[] cArr, int i2, Object[] objArr) {
int i3 = 2 % 2;
C4593bdB c4593bdB = new C4593bdB();
c4593bdB.a = i2;
int length = cArr.length;
long[] jArr = new long[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i4 = $10 + 45;
$11 = i4 % 128;
if (i4 % 2 == 0) {
int i5 = c4593bdB.e;
try {
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj = xzZ.y.get(-1229953068);
if (obj == null) {
Class cls = (Class) xzZ.c(402 - TextUtils.indexOf("", "", 0), (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 5, (char) (((byte) KeyEvent.getModifierMetaStateMask()) + 21609));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
g(b2, b3, (byte) (b3 + 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i5] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() % (d % (-6958928035870403642L));
try {
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(237 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), 4 - TextUtils.lastIndexOf("", '0', 0, 0), (char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
g(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
} 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;
}
} else {
int i6 = c4593bdB.e;
try {
Object[] objArr6 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1229953068);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 402, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 4, (char) ((Process.myTid() >> 22) + 21608));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
g(b6, b7, (byte) (b7 + 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj3);
}
jArr[i6] = ((Long) ((Method) obj3).invoke(null, objArr6)).longValue() ^ (d ^ (-6958928035870403642L));
Object[] objArr8 = {c4593bdB, c4593bdB};
Object obj4 = xzZ.y.get(-1143917229);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(238 - TextUtils.getOffsetAfter("", 0), 5 - ((Process.getThreadPriority(0) + 20) >> 6), (char) (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)));
byte b8 = (byte) 0;
byte b9 = b8;
Object[] objArr9 = new Object[1];
g(b8, b9, b9, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj4);
}
((Method) obj4).invoke(null, objArr8);
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
int i7 = $11 + 27;
$10 = i7 % 128;
int i8 = i7 % 2;
while (c4593bdB.e < cArr.length) {
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
Object[] objArr10 = {c4593bdB, c4593bdB};
Object obj5 = xzZ.y.get(-1143917229);
if (obj5 == null) {
Class cls5 = (Class) xzZ.c(239 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), TextUtils.lastIndexOf("", '0', 0, 0) + 6, (char) KeyEvent.normalizeMetaState(0));
byte b10 = (byte) 0;
byte b11 = b10;
Object[] objArr11 = new Object[1];
g(b10, b11, b11, objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj5);
}
((Method) obj5).invoke(null, objArr10);
}
objArr[0] = new String(cArr2);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String d(String str) throws NotFoundException {
LWm lWm;
int i2 = 2 % 2;
int i3 = j + 19;
i = i3 % 128;
int i4 = i3 % 2;
Object obj = null;
if (str.isEmpty()) {
int i5 = j + 31;
i = i5 % 128;
if (i5 % 2 == 0) {
return null;
}
throw null;
}
if (str.length() < 2) {
throw NotFoundException.b();
}
int i6 = j + 13;
i = i6 % 128;
if (i6 % 2 == 0 ? (lWm = a.get(str.substring(0, 2))) != null : (lWm = a.get(str.substring(1, 2))) != null) {
int i7 = j + 67;
i = i7 % 128;
if (i7 % 2 == 0) {
return lWm.b ? c(2, lWm.d, str) : d(2, lWm.d, str);
}
boolean z = lWm.b;
throw null;
}
if (str.length() < 3) {
throw NotFoundException.b();
}
int i8 = i + 93;
j = i8 % 128;
int i9 = i8 % 2;
String substring = str.substring(0, 3);
LWm lWm2 = e.get(substring);
if (lWm2 != null) {
int i10 = i + 53;
j = i10 % 128;
if (i10 % 2 != 0) {
return lWm2.b ? c(3, lWm2.d, str) : d(3, lWm2.d, str);
}
boolean z2 = lWm2.b;
obj.hashCode();
throw null;
}
if (str.length() < 4) {
throw NotFoundException.b();
}
LWm lWm3 = b.get(substring);
if (lWm3 != null) {
return lWm3.b ? c(4, lWm3.d, str) : d(4, lWm3.d, str);
}
LWm lWm4 = c.get(str.substring(0, 4));
if (lWm4 == null) {
throw NotFoundException.b();
}
int i11 = i + 125;
j = i11 % 128;
int i12 = i11 % 2;
return lWm4.b ? c(4, lWm4.d, str) : d(4, lWm4.d, str);
}
private static String d(int i2, int i3, String str) throws NotFoundException {
int i4 = 2 % 2;
if (str.length() < i2) {
throw NotFoundException.b();
}
int i5 = j + 93;
i = i5 % 128;
int i6 = i5 % 2;
String substring = str.substring(0, i2);
int i7 = i3 + i2;
if (str.length() < i7) {
throw NotFoundException.b();
}
String substring2 = str.substring(i2, i7);
String substring3 = str.substring(i7);
StringBuilder sb = new StringBuilder("(");
sb.append(substring);
sb.append(')');
sb.append(substring2);
String obj = sb.toString();
String d2 = d(substring3);
if (d2 == null) {
return obj;
}
StringBuilder sb2 = new StringBuilder();
sb2.append(obj);
sb2.append(d2);
String obj2 = sb2.toString();
int i8 = i + 13;
j = i8 % 128;
int i9 = i8 % 2;
return obj2;
}
private static String c(int i2, int i3, String str) throws NotFoundException {
int i4 = 2 % 2;
String substring = str.substring(0, i2);
int min = Math.min(str.length(), i3 + i2);
String substring2 = str.substring(i2, min);
String substring3 = str.substring(min);
StringBuilder sb = new StringBuilder("(");
sb.append(substring);
sb.append(')');
sb.append(substring2);
String obj = sb.toString();
String d2 = d(substring3);
if (d2 == null) {
return obj;
}
StringBuilder sb2 = new StringBuilder();
sb2.append(obj);
sb2.append(d2);
String obj2 = sb2.toString();
int i5 = j + 15;
i = i5 % 128;
int i6 = i5 % 2;
return obj2;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.vHy$LWm */
/* loaded from: classes2.dex */
public static final class LWm {
final boolean b;
final int d;
LWm(boolean z, int i) {
this.b = z;
this.d = i;
}
}
static void a() {
d = 6882642845720344917L;
}
}