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

463 lines
21 KiB
Java

package o;
import android.graphics.Color;
import android.media.AudioTrack;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.ZI;
/* renamed from: o.acg */
/* loaded from: classes3.dex */
public final /* synthetic */ class C2336acg implements ZI.IeS {
private static char a;
private static int b;
private static char d;
private static long e;
private static char f;
private static long g;
private static char h;
private static char i;
/* renamed from: o */
private static int f8516o;
private C2274abX c;
private static final byte[] $$d = {ISO7816.INS_DECREASE_STAMPED, 125, -39, -65};
private static final int $$e = 226;
private static int $10 = 0;
private static int $11 = 1;
private static final byte[] $$a = {8, 78, -66, ISO7816.INS_PSO};
private static final int $$b = 41;
private static int j = 0;
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002b). 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 k(short r5, short r6, int r7, java.lang.Object[] r8) {
/*
int r5 = r5 * 4
int r0 = r5 + 1
byte[] r1 = o.C2336acg.$$a
int r7 = r7 * 2
int r7 = 3 - r7
int r6 = 101 - r6
byte[] r0 = new byte[r0]
r2 = -1
if (r1 != 0) goto L14
r3 = r5
r6 = r7
goto L2b
L14:
r4 = r7
r7 = r6
r6 = r4
L17:
int r2 = r2 + 1
byte r3 = (byte) r7
r0[r2] = r3
if (r2 != r5) goto L27
java.lang.String r5 = new java.lang.String
r6 = 0
r5.<init>(r0, r6)
r8[r6] = r5
return
L27:
int r6 = r6 + 1
r3 = r1[r6]
L2b:
int r7 = r7 + r3
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: o.C2336acg.k(short, short, int, java.lang.Object[]):void");
}
private static void p(int i2, byte b2, short s, Object[] objArr) {
byte[] bArr = $$d;
int i3 = b2 + 4;
int i4 = 115 - i2;
int i5 = s * 4;
byte[] bArr2 = new byte[1 - i5];
int i6 = 0 - i5;
int i7 = -1;
if (bArr == null) {
i4 += -i3;
i3 = i3;
i7 = -1;
}
while (true) {
int i8 = i3 + 1;
int i9 = i7 + 1;
bArr2[i9] = (byte) i4;
if (i9 == i6) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i4 += -bArr[i8];
i3 = i8;
i7 = i9;
}
}
}
private static void m(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;
int i4 = $10 + 71;
$11 = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 3 / 3;
}
while (c4593bdB.e < cArr.length) {
int i6 = $10 + 9;
$11 = i6 % 128;
if (i6 % 2 == 0) {
int i7 = 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(View.resolveSize(0, 0) + 402, 5 - View.combineMeasuredStates(0, 0), (char) (21609 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))));
byte b2 = (byte) (-1);
Object[] objArr3 = new Object[1];
p((byte) 38, b2, (byte) (b2 + 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i7] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() & (g ^ (-6958928035870403642L));
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 237, (Process.myPid() >> 22) + 5, (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24));
byte b3 = (byte) (-1);
Object[] objArr5 = new Object[1];
p((byte) 37, b3, (byte) (b3 + 1), 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;
}
} else {
int i8 = c4593bdB.e;
Object[] objArr6 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1229953068);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 401, ExpandableListView.getPackedPositionChild(0L) + 6, (char) (21607 - TextUtils.lastIndexOf("", '0', 0)));
byte b4 = (byte) (-1);
Object[] objArr7 = new Object[1];
p((byte) 38, b4, (byte) (b4 + 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj3);
}
jArr[i8] = ((Long) ((Method) obj3).invoke(null, objArr6)).longValue() ^ (g ^ (-6958928035870403642L));
Object[] objArr8 = {c4593bdB, c4593bdB};
Object obj4 = xzZ.y.get(-1143917229);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(237 - Process.getGidForName(""), (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 6, (char) ((-1) - Process.getGidForName("")));
byte b5 = (byte) (-1);
Object[] objArr9 = new Object[1];
p((byte) 37, b5, (byte) (b5 + 1), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj4);
}
((Method) obj4).invoke(null, objArr8);
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
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((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 238, 5 - TextUtils.indexOf("", "", 0), (char) (ViewConfiguration.getWindowTouchSlop() >> 8));
byte b6 = (byte) (-1);
Object[] objArr11 = new Object[1];
p((byte) 37, b6, (byte) (b6 + 1), 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);
}
private static void l(char[] cArr, int i2, Object[] objArr) {
char c = 2;
int i3 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
int i4 = 0;
jtb.b = 0;
char[] cArr3 = new char[2];
while (jtb.b < cArr.length) {
cArr3[i4] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i5 = 58224;
int i6 = i4;
while (i6 < 16) {
char c2 = cArr3[1];
char c3 = cArr3[i4];
int i7 = (c3 + i5) ^ ((c3 << 4) + ((char) (f ^ 41718355337583039L)));
int i8 = c3 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(h);
objArr2[c] = Integer.valueOf(i8);
objArr2[1] = Integer.valueOf(i7);
objArr2[i4] = Integer.valueOf(c2);
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 411, 5 - TextUtils.getCapsMode("", i4, i4), (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', i4, i4)));
byte b2 = (byte) (-1);
Object[] objArr3 = new Object[1];
p((byte) 49, b2, (byte) (b2 + 1), objArr3);
String str = (String) objArr3[i4];
Class<?>[] clsArr = new Class[4];
clsArr[i4] = Integer.TYPE;
clsArr[1] = Integer.TYPE;
clsArr[2] = Integer.TYPE;
clsArr[3] = Integer.TYPE;
obj = cls.getMethod(str, clsArr);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr3[1] = charValue;
char[] cArr4 = cArr3;
Object[] objArr4 = {Integer.valueOf(cArr3[i4]), Integer.valueOf((charValue + i5) ^ ((charValue << 4) + ((char) (a ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(i)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), TextUtils.lastIndexOf("", '0') + 6, (char) ((Process.getThreadPriority(0) + 20) >> 6));
byte b3 = (byte) (-1);
Object[] objArr5 = new Object[1];
p((byte) 49, b3, (byte) (b3 + 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i5 -= 40503;
i6++;
int i9 = $11 + 63;
$10 = i9 % 128;
int i10 = i9 % 2;
cArr3 = cArr4;
c = 2;
i4 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr5 = cArr3;
cArr2[jtb.b] = cArr5[0];
cArr2[jtb.b + 1] = cArr5[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(98 - (ViewConfiguration.getDoubleTapTimeout() >> 16), 4 - ExpandableListView.getPackedPositionChild(0L), (char) (ViewConfiguration.getWindowTouchSlop() >> 8));
byte b4 = (byte) (-1);
Object[] objArr7 = new Object[1];
p((byte) 48, b4, (byte) (b4 + 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
int i11 = $10 + 69;
$11 = i11 % 128;
int i12 = i11 % 2;
c = 2;
cArr3 = cArr5;
i4 = 0;
}
objArr[0] = new String(cArr2, 0, i2);
}
private static void n(char c, int i2, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) {
int i3;
int i4 = 2;
int i5 = 2 % 2;
Nhs nhs = new Nhs();
int length = cArr.length;
char[] cArr4 = new char[length];
int length2 = cArr3.length;
char[] cArr5 = new char[length2];
System.arraycopy(cArr, 0, cArr4, 0, length);
System.arraycopy(cArr3, 0, cArr5, 0, length2);
cArr4[0] = (char) (cArr4[0] ^ c);
cArr5[2] = (char) (cArr5[2] + ((char) i2));
int length3 = cArr2.length;
char[] cArr6 = new char[length3];
nhs.a = 0;
int i6 = $11 + 75;
$10 = i6 % 128;
int i7 = i6 % 2;
while (nhs.a < length3) {
int i8 = $10 + 121;
$11 = i8 % 128;
int i9 = i8 % i4;
try {
Object[] objArr2 = {nhs};
Object obj = xzZ.y.get(263693715);
if (obj == null) {
obj = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0, 0) + 46, 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) Color.blue(0))).getMethod("t", Object.class);
xzZ.y.put(263693715, obj);
}
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
Object[] objArr3 = {nhs};
Object obj2 = xzZ.y.get(-484664112);
if (obj2 == null) {
Class cls = (Class) xzZ.c(352 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 5 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (View.getDefaultSize(0, 0) + 52128));
byte b2 = (byte) 0;
byte b3 = (byte) (b2 - 1);
Object[] objArr4 = new Object[1];
p(b2, b3, (byte) (b3 + 1), objArr4);
obj2 = cls.getMethod((String) objArr4[0], Object.class);
xzZ.y.put(-484664112, obj2);
}
int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])};
Object obj3 = xzZ.y.get(430099516);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(747 - TextUtils.indexOf((CharSequence) "", '0', 0), 4 - TextUtils.indexOf((CharSequence) "", '0', 0), (char) (Process.myPid() >> 22))).getMethod(com.pingan.ai.p.a, Object.class, Integer.TYPE, Integer.TYPE);
xzZ.y.put(430099516, obj3);
}
((Method) obj3).invoke(null, objArr5);
Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])};
Object obj4 = xzZ.y.get(1019894806);
if (obj4 != null) {
i3 = 2;
} else {
Class cls2 = (Class) xzZ.c(402 - Gravity.getAbsoluteGravity(0, 0), View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) (21608 - Color.argb(0, 0, 0, 0)));
byte b4 = (byte) 1;
byte b5 = (byte) (-b4);
Object[] objArr7 = new Object[1];
p(b4, b5, (byte) (b5 + 1), objArr7);
i3 = 2;
obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(1019894806, obj4);
}
cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
cArr4[intValue2] = nhs.c;
cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr2[nhs.a]) ^ (e ^ 9051040786702654117L)) ^ ((int) (b ^ 9051040786702654117L))) ^ ((char) (d ^ 9051040786702654117L)));
nhs.a++;
i4 = i3;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(cArr6);
}
static void e() {
a = (char) 8963;
i = (char) 39274;
f = (char) 65322;
h = (char) 35705;
g = -8765992940446772332L;
}
static {
f8516o = 1;
e();
e = 9051040786702654117L;
b = 452713125;
d = (char) 41332;
int i2 = j + 101;
f8516o = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
}
/* JADX WARN: Can't wrap try/catch for region: R(2:(3:433|434|(3:436|(4:439|440|(3:442|443|(2:445|446)(1:447))(1:451)|437)|452)(0))|453) */
/* JADX WARN: Code restructure failed: missing block: B:139:0x10b8, code lost:
if (((((int) (r9 >> 32)) & ((2003672218 + (((~((-744663649) | r58)) | (-2113077237)) * (-756))) + (((-744663649) | r8) * 756))) | (((int) r9) & ((((-384374209) + (((~((-50702126) | r8)) | 50332456) * 446)) + (((~((-369670) | r58)) | (-1538260992)) * 446)) + 973438896))) != 477111747) goto L738;
*/
/* JADX WARN: Code restructure failed: missing block: B:147:0x11d1, code lost:
if (((((int) (r13 >> 32)) & ((((-802173004) + (((-847358594) | r8) * (-369))) + (((~(919732163 | r8)) | (-1938008722)) * (-369))) + ((((~((-919732164) | r58)) | 72373570) | (~((-1090650129) | r8))) * 369))) | (((int) r13) & ((((-2038855459) + (((~((-710521475) | r58)) | (~((-1342309377) | r8))) * 920)) + (((~((-804910036) | r8)) | 710521474) * 920)) + ((((~((-710521475) | r8)) | (~((-94388562) | r58))) | (~((-1342309377) | r58))) * 920)))) == 477111747) goto L746;
*/
/* JADX WARN: Code restructure failed: missing block: B:487:0x1fbb, code lost:
r4.close();
*/
/* JADX WARN: Code restructure failed: missing block: B:492:0x1fcd, code lost:
if (r4 == null) goto L937;
*/
/* JADX WARN: Code restructure failed: missing block: B:572:0x08b6, code lost:
if (r2 != false) goto L686;
*/
/* JADX WARN: Code restructure failed: missing block: B:57:0x05c6, code lost:
if (((((int) (r11 >> 32)) & (((-1286603778) + (((-556040225) | r8) * 494)) + (((~(511933831 | r8)) | (-698721701)) * 494))) | (((int) r11) & (-1437226411))) != (-1032769152)) goto L659;
*/
/* JADX WARN: Code restructure failed: missing block: B:65:0x06c3, code lost:
if (((((int) (r9 >> 32)) & ((((-571691810) + (((~((-86052865) | r8)) | (~(1298642330 | r58))) * (-302))) + ((~((-86052865) | r58)) * (-604))) + (((~(1212589466 | r58)) | 1074005386) * 302))) | (((int) r9) & (((((~((-1304361178) | r58)) | (-132865233)) * 56) + 710212157) + (((-1304361178) | (~((-132865233) | r8))) * 56)))) == 542074309) goto L667;
*/
/* JADX WARN: Removed duplicated region for block: B:224:0x1bd1 */
/* JADX WARN: Removed duplicated region for block: B:226:0x1c04 */
/* JADX WARN: Removed duplicated region for block: B:253:0x1f32 */
/* JADX WARN: Removed duplicated region for block: B:255:0x1f65 */
/* JADX WARN: Removed duplicated region for block: B:566:0x07ef */
/* JADX WARN: Removed duplicated region for block: B:68:0x06cb */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static java.lang.Object[] c$351da427(int r58, java.lang.Object r59, int r60) {
/*
Method dump skipped, instructions count: 13732
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C2336acg.c$351da427(int, java.lang.Object, int):java.lang.Object[]");
}
@Override // o.ZI.IeS
public final void e(Object obj) {
int i2 = 2 % 2;
int i3 = f8516o + 99;
j = i3 % 128;
int i4 = i3 % 2;
C2274abX.a(this.c, (InterfaceC9008dbc) obj);
int i5 = f8516o + 63;
j = i5 % 128;
int i6 = i5 % 2;
}
public /* synthetic */ C2336acg(C2274abX c2274abX) {
this.c = c2274abX;
}
}