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

300 lines
12 KiB
Java

package o;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
/* loaded from: classes3.dex */
public class PDU extends ZTC {
private static final byte[] $$d = {85, 123, 51, ISO7816.INS_READ_RECORD2};
private static final int $$e = 19;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 0;
private static int c = 1;
private static char[] e = {49026};
private static char a = 35368;
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x002d). 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, int r7, byte r8, java.lang.Object[] r9) {
/*
int r8 = r8 * 2
int r8 = 3 - r8
byte[] r0 = o.PDU.$$d
int r6 = 120 - r6
int r7 = r7 * 3
int r7 = r7 + 1
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L15
r6 = r7
r3 = r8
r4 = r2
goto L2d
L15:
r3 = r2
L16:
byte r4 = (byte) r6
r1[r3] = r4
int r3 = r3 + 1
if (r3 != r7) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L25:
int r8 = r8 + 1
r4 = r0[r8]
r5 = r3
r3 = r8
r8 = r4
r4 = r5
L2d:
int r6 = r6 + r8
r8 = r3
r3 = r4
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: o.PDU.g(int, int, byte, java.lang.Object[]):void");
}
/* JADX INFO: Access modifiers changed from: protected */
public static AUj a(huP hup) {
int i = 2 % 2;
C14957gcv.e(hup, "");
String str = hup.b;
Object[] objArr = new Object[1];
f(1 - (ViewConfiguration.getKeyRepeatDelay() >> 16), new char[]{13855}, (byte) (116 - Color.argb(0, 0, 0, 0)), objArr);
boolean b = C14957gcv.b((Object) str, (Object) ((String) objArr[0]).intern());
String str2 = hup.a;
List<SsZ> list = hup.d;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
Iterator<T> it = list.iterator();
while (it.hasNext()) {
int i2 = c + 37;
d = i2 % 128;
int i3 = i2 % 2;
arrayList.add(e((SsZ) it.next()));
int i4 = d + 49;
c = i4 % 128;
int i5 = i4 % 2;
}
return new AUj(b, str2, arrayList);
}
private static Ikr e(SsZ ssZ) {
int i = 2 % 2;
String str = ssZ.e;
List<WZR> list = ssZ.c;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
Iterator<T> it = list.iterator();
while (it.hasNext()) {
int i2 = c + 13;
d = i2 % 128;
if (i2 % 2 != 0) {
arrayList.add(a((WZR) it.next()));
throw null;
}
arrayList.add(a((WZR) it.next()));
}
return new Ikr(str, arrayList);
}
/* JADX INFO: Access modifiers changed from: protected */
public static C0393Fnz a(WZR wzr) {
int i = 2 % 2;
C14957gcv.e(wzr, "");
C0393Fnz c0393Fnz = new C0393Fnz(wzr.e, wzr.d);
int i2 = c + 91;
d = i2 % 128;
if (i2 % 2 == 0) {
return c0393Fnz;
}
Object obj = null;
obj.hashCode();
throw null;
}
public static UzV a(C17505xNA c17505xNA) {
ArrayList arrayList;
int i;
int i2 = 2 % 2;
int i3 = d + 87;
c = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(c17505xNA, "");
String str = c17505xNA.b;
Object[] objArr = new Object[1];
f(-((byte) KeyEvent.getModifierMetaStateMask()), new char[]{13855}, (byte) (116 - (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))), objArr);
boolean b = C14957gcv.b((Object) str, (Object) ((String) objArr[0]).intern());
String str2 = c17505xNA.c;
List<WZR> list = c17505xNA.a;
if (list != null) {
List<WZR> list2 = list;
C14957gcv.e(list2, "");
if (list2 instanceof Collection) {
i = list2.size();
int i5 = d + 25;
c = i5 % 128;
int i6 = i5 % 2;
} else {
i = 10;
}
ArrayList arrayList2 = new ArrayList(i);
Iterator<T> it = list2.iterator();
while (!(!it.hasNext())) {
arrayList2.add(a((WZR) it.next()));
}
arrayList = arrayList2;
} else {
arrayList = null;
}
return new UzV(b, str2, arrayList);
}
private static void f(int i, char[] cArr, byte b, Object[] objArr) {
int i2;
int i3 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = e;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
for (int i4 = 0; i4 < length; i4++) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i4])};
Object obj = xzZ.y.get(-1987398494);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0') + 299, 5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (char) KeyEvent.getDeadChar(0, 0));
byte b2 = (byte) ($$e & 15);
byte b3 = (byte) (b2 - 3);
Object[] objArr3 = new Object[1];
g(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj);
}
cArr3[i4] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
Object[] objArr4 = {Integer.valueOf(a)};
Object obj2 = xzZ.y.get(-1987398494);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 298, View.getDefaultSize(0, 0) + 5, (char) View.resolveSizeAndState(0, 0, 0));
byte b4 = (byte) ($$e & 15);
byte b5 = (byte) (b4 - 3);
Object[] objArr5 = new Object[1];
g(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj2);
}
char charValue = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
int i5 = $10 + 69;
$11 = i5 % 128;
int i6 = i5 % 2;
i2 = i - 1;
cArr4[i2] = (char) (cArr[i2] - b);
} else {
i2 = i;
}
if (i2 > 1) {
int i7 = $10 + 1;
$11 = i7 % 128;
int i8 = i7 % 2;
irs.e = 0;
int i9 = $10 + 123;
$11 = i9 % 128;
int i10 = i9 % 2;
while (irs.e < i2) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
cArr4[irs.e] = (char) (irs.b - b);
cArr4[irs.e + 1] = (char) (irs.c - b);
} else {
Object[] objArr6 = {irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs};
Object obj3 = xzZ.y.get(822107368);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(233 - TextUtils.indexOf("", "", 0), 5 - (ViewConfiguration.getDoubleTapTimeout() >> 16), (char) (22024 - Color.blue(0)));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
g(b6, b7, b7, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj3);
}
if (((Integer) ((Method) obj3).invoke(null, objArr6)).intValue() == irs.j) {
int i11 = $11 + 25;
$10 = i11 % 128;
int i12 = i11 % 2;
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj4 = xzZ.y.get(-1152873385);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 326, (ViewConfiguration.getDoubleTapTimeout() >> 16) + 5, (char) TextUtils.indexOf("", ""));
byte b8 = (byte) ($$e & 14);
byte b9 = (byte) (b8 - 2);
Object[] objArr9 = new Object[1];
g(b8, b9, b9, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr8)).intValue();
int i13 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i13];
} else if (irs.a == irs.d) {
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i14 = (irs.a * charValue) + irs.f;
int i15 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i14];
cArr4[irs.e + 1] = cArr2[i15];
} else {
int i16 = (irs.a * charValue) + irs.j;
int i17 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i16];
cArr4[irs.e + 1] = cArr2[i17];
}
}
irs.e += 2;
}
}
for (int i18 = 0; i18 < i; i18++) {
int i19 = $10 + 57;
$11 = i19 % 128;
int i20 = i19 % 2;
cArr4[i18] = (char) (cArr4[i18] ^ 13722);
}
objArr[0] = new String(cArr4);
}
}