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

475 lines
15 KiB
Java

package o;
import android.graphics.Color;
import android.os.Build;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.ZI;
import o.wRi;
/* loaded from: classes4.dex */
public final class cBA extends ZI<InterfaceC9610dmw> {
private static char g;
private static char h;
private static char i;
private static int l;
private static char n;
private final Joj a;
private final CQ b;
private final C10547eHf c;
private String d;
private final C17739zPQ e;
private static final byte[] $$a = {45, 3, ISO7816.INS_READ_RECORD2, ISO7816.INS_PSO};
private static final int $$b = 252;
private static int $10 = 0;
private static int $11 = 1;
private static int k = 1;
public static /* synthetic */ Object b(Object[] objArr, int i2, int i3, int i4) {
Object obj;
int i5 = ~i3;
int i6 = ~i4;
if ((i2 * (-830)) + (i3 * 832) + (((~(i5 | i6)) | (~(i2 | i3 | i4))) * (-831)) + ((~(i5 | i2 | i4)) * (-1662)) + (((~(i2 | i4)) | (~((~i2) | i6)) | (~(i3 | i4))) * 831) != 1) {
return d(objArr);
}
cBA cba = (cBA) objArr[0];
boolean booleanValue = ((Boolean) objArr[1]).booleanValue();
int i7 = 2 % 2;
if (cba.f != 0) {
int i8 = l + 19;
k = i8 % 128;
int i9 = i8 % 2;
cba.f.y();
int i10 = k + 95;
l = i10 % 128;
int i11 = i10 % 2;
}
C17739zPQ c17739zPQ = cba.e;
String m = C6583cXR.m(cba.a.c());
C14957gcv.c((Object) m, "");
String m2 = C6583cXR.m(Build.BRAND);
C14957gcv.c((Object) m2, "");
String m3 = C6583cXR.m(Build.MODEL);
C14957gcv.c((Object) m3, "");
String m4 = C6583cXR.m(Build.VERSION.RELEASE);
C14957gcv.c((Object) m4, "");
char[] cArr = {11811, 64513};
if (cba.a.j()) {
// fill-array-data instruction
cArr[0] = 28843;
cArr[1] = 1166;
Object[] objArr2 = new Object[1];
o(cArr, -TextUtils.indexOf((CharSequence) "", '0', 0), objArr2);
obj = objArr2[0];
} else {
Object[] objArr3 = new Object[1];
o(cArr, (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), objArr3);
obj = objArr3[0];
}
c17739zPQ.c(new C12377ex(new C12271ev(m, "", m2, m3, m4, ((String) obj).intern()), ""), booleanValue);
C17739zPQ c17739zPQ2 = cba.e;
c17739zPQ2.d(c17739zPQ2.i, new IeS(cba));
return null;
}
/* 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:0x0030). 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, byte r7, int r8, java.lang.Object[] r9) {
/*
int r8 = r8 + 66
int r7 = r7 * 4
int r7 = 3 - r7
int r6 = r6 * 4
int r0 = 1 - r6
byte[] r1 = o.cBA.$$a
byte[] r0 = new byte[r0]
r2 = 0
int r6 = 0 - r6
if (r1 != 0) goto L17
r3 = r6
r8 = r7
r4 = r2
goto L30
L17:
r3 = r2
L18:
byte r4 = (byte) r8
r0[r3] = r4
if (r3 != r6) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L25:
int r7 = r7 + 1
r4 = r1[r7]
int r3 = r3 + 1
r5 = r8
r8 = r7
r7 = r4
r4 = r3
r3 = r5
L30:
int r7 = r7 + r3
r3 = r4
r5 = r8
r8 = r7
r7 = r5
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.cBA.m(int, byte, int, java.lang.Object[]):void");
}
public static final /* synthetic */ void a(cBA cba, Throwable th) {
int i2 = 2 % 2;
int i3 = k + 53;
l = i3 % 128;
if (i3 % 2 == 0) {
if (cba.b(th)) {
cba.d(cba.j.e(th));
int i4 = k + 5;
l = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 4 % 4;
return;
}
return;
}
return;
}
cba.b(th);
throw null;
}
public static final /* synthetic */ C10547eHf d(cBA cba) {
int i2 = 2 % 2;
int i3 = k + 85;
int i4 = i3 % 128;
l = i4;
int i5 = i3 % 2;
C10547eHf c10547eHf = cba.c;
int i6 = i4 + 5;
k = i6 % 128;
int i7 = i6 % 2;
return c10547eHf;
}
public static final /* synthetic */ void e(cBA cba) {
int i2 = 2 % 2;
int i3 = k + 5;
l = i3 % 128;
int i4 = i3 % 2;
if (cba.f != 0) {
int i5 = l + 121;
int i6 = i5 % 128;
k = i6;
int i7 = i5 % 2;
int i8 = i6 + 35;
l = i8 % 128;
if (i8 % 2 != 0) {
int i9 = 4 / 4;
}
int i10 = i6 + 45;
l = i10 % 128;
int i11 = i10 % 2;
cba.f.ar_();
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public cBA(C17739zPQ c17739zPQ, Joj joj, CQ cq, C10547eHf c10547eHf, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c17739zPQ, "");
C14957gcv.e(joj, "");
C14957gcv.e(cq, "");
C14957gcv.e(c10547eHf, "");
C14957gcv.e(c16903sI, "");
this.e = c17739zPQ;
this.a = joj;
this.b = cq;
this.c = c10547eHf;
this.d = "main_easy_";
}
public final void d() {
boolean z;
int i2 = 2 % 2;
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cBz
private cBA d;
@Override // o.ZI.IeS
public final void e(Object obj) {
cBA.d(this.d, (InterfaceC9610dmw) obj);
}
{
this.d = this;
}
};
if (this.f != 0) {
int i3 = l + 73;
k = i3 % 128;
int i4 = i3 % 2;
z = true;
} else {
int i5 = k + 1;
l = i5 % 128;
int i6 = i5 % 2;
z = false;
}
if (!(!z)) {
ieS.e(this.f);
int i7 = l + 43;
k = i7 % 128;
int i8 = i7 % 2;
}
}
private static /* synthetic */ Object d(Object[] objArr) {
C0371Fd d;
cBA cba = (cBA) objArr[0];
InterfaceC9610dmw interfaceC9610dmw = (InterfaceC9610dmw) objArr[1];
int i2 = 2 % 2;
int i3 = l + 97;
k = i3 % 128;
if (i3 % 2 == 0) {
C14957gcv.e(cba, "");
d = CQ.d(cba.b, null, cba.d, null, null, false, false, false, null, null, null, 0, 10005);
} else {
C14957gcv.e(cba, "");
d = CQ.d(cba.b, null, cba.d, null, null, true, false, false, null, null, null, 0, 1992);
}
interfaceC9610dmw.a(d);
int i4 = l + 107;
k = i4 % 128;
Object obj = null;
if (i4 % 2 != 0) {
return null;
}
obj.hashCode();
throw null;
}
/* loaded from: classes4.dex */
public static final class IeS extends wRi.LWm<iKd> {
private cBA b;
IeS(cBA cba) {
this.b = cba;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
iKd ikd = (iKd) obj;
C14957gcv.e(ikd, "");
super.onNext(ikd);
cBA.e(this.b);
if (cBA.d(this.b).d(true)) {
cBA cba = this.b;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cBF
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9610dmw) obj2).e();
}
};
if (cba.f != 0) {
ieS.e(cba.f);
return;
}
return;
}
cBA cba2 = this.b;
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cBD
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9610dmw) obj2).d();
}
};
if (cba2.f != 0) {
ieS2.e(cba2.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C14957gcv.e(th, "");
super.onError(th);
cBA.a(this.b, th);
}
}
private static final void b(InterfaceC9610dmw interfaceC9610dmw) {
int i2 = 2 % 2;
int i3 = l + 71;
k = i3 % 128;
int i4 = i3 % 2;
interfaceC9610dmw.a();
if (i4 == 0) {
int i5 = 34 / 0;
}
}
public final void c() {
int i2 = 2 % 2;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cBB
@Override // o.ZI.IeS
public final void e(Object obj) {
cBA.d((InterfaceC9610dmw) obj);
}
};
if (this.f != 0) {
int i3 = k;
int i4 = i3 + 37;
l = i4 % 128;
int i5 = i4 % 2;
int i6 = i3 + 21;
l = i6 % 128;
int i7 = i6 % 2;
ieS.e(this.f);
}
}
/* loaded from: classes4.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
private static void o(char[] cArr, int i2, Object[] objArr) {
int i3 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
jtb.b = 0;
char[] cArr3 = new char[2];
int i4 = $10 + 101;
$11 = i4 % 128;
int i5 = i4 % 2;
while (jtb.b < cArr.length) {
cArr3[0] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i6 = 58224;
for (int i7 = 0; i7 < 16; i7++) {
int i8 = $11 + 77;
$10 = i8 % 128;
int i9 = i8 % 2;
char c = cArr3[1];
char c2 = cArr3[0];
try {
Object[] objArr2 = {Integer.valueOf(c), Integer.valueOf((c2 + i6) ^ ((c2 << 4) + ((char) (g ^ 41718355337583039L)))), Integer.valueOf(c2 >>> 5), Integer.valueOf(n)};
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 412, View.MeasureSpec.getSize(0) + 5, (char) ((-1) - TextUtils.lastIndexOf("", '0', 0, 0)));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
m(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr3[1] = charValue;
Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (i ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(h)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - ExpandableListView.getPackedPositionType(0L), Color.green(0) + 5, (char) (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
m(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i6 -= 40503;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2[jtb.b] = cArr3[0];
cArr2[jtb.b + 1] = cArr3[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(98 - TextUtils.indexOf("", "", 0), TextUtils.indexOf("", "", 0) + 5, (char) (ViewConfiguration.getTapTimeout() >> 16));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
m(b5, b6, (byte) (b6 + 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr2, 0, i2);
}
static void a() {
i = (char) 5690;
h = (char) 41108;
g = (char) 21567;
n = (char) 60178;
}
public final void b(boolean z) {
b(new Object[]{this, Boolean.valueOf(z)}, -1668819804, 1668819805, System.identityHashCode(this));
}
private static final void e(cBA cba, InterfaceC9610dmw interfaceC9610dmw) {
b(new Object[]{cba, interfaceC9610dmw}, 304342599, -304342599, (int) System.currentTimeMillis());
}
static {
l = 0;
a();
new RVV((byte) 0);
int i2 = k + 1;
l = i2 % 128;
int i3 = i2 % 2;
}
public static /* synthetic */ void d(cBA cba, InterfaceC9610dmw interfaceC9610dmw) {
int i2 = 2 % 2;
int i3 = k + 59;
l = i3 % 128;
int i4 = i3 % 2;
Object[] objArr = {cba, interfaceC9610dmw};
int currentTimeMillis = (int) System.currentTimeMillis();
if (i4 == 0) {
b(objArr, 304342599, -304342599, currentTimeMillis);
} else {
b(objArr, 304342599, -304342599, currentTimeMillis);
throw null;
}
}
public static /* synthetic */ void d(InterfaceC9610dmw interfaceC9610dmw) {
int i2 = 2 % 2;
int i3 = l + 15;
k = i3 % 128;
int i4 = i3 % 2;
b(interfaceC9610dmw);
int i5 = k + 27;
l = i5 % 128;
int i6 = i5 % 2;
}
}