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

359 lines
13 KiB
Java

package o;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.PointF;
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 android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.InterfaceC9094ddI;
import o.ZI;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes4.dex */
public class aCB extends ZI<InterfaceC9094ddI.HBt> {
private static short[] b;
private static final byte[] $$a = {ISO7816.INS_DECREASE_STAMPED, 125, -39, -65};
private static final int $$b = CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA384;
private static int $10 = 0;
private static int $11 = 1;
private static int g = 0;
private static int i = 1;
private static int a = -416614335;
private static int e = 1406017063;
private static int d = -819600819;
private static byte[] c = {Ascii.NAK};
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> 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 k(byte r6, int r7, int r8, java.lang.Object[] r9) {
/*
int r8 = r8 * 2
int r8 = 3 - r8
byte[] r0 = o.aCB.$$a
int r6 = r6 * 3
int r6 = r6 + 1
int r7 = r7 * 2
int r7 = 110 - r7
byte[] r1 = new byte[r6]
r2 = 0
if (r0 != 0) goto L16
r3 = r6
r4 = r2
goto L2a
L16:
r3 = r2
L17:
int r8 = r8 + 1
int r4 = r3 + 1
byte r5 = (byte) r7
r1[r3] = r5
if (r4 != r6) goto L28
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L28:
r3 = r0[r8]
L2a:
int r3 = -r3
int r7 = r7 + r3
r3 = r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: o.aCB.k(byte, int, int, java.lang.Object[]):void");
}
@InterfaceC13391fZD
public aCB(C16903sI c16903sI) {
super(c16903sI);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void e(IU iu, InterfaceC9094ddI.HBt hBt) {
int i2 = 2 % 2;
int i3 = g + 53;
i = i3 % 128;
int i4 = i3 % 2;
hBt.c(iu.p());
int i5 = g + 53;
i = i5 % 128;
if (i5 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public final void c(final IU iu) {
int i2 = 2 % 2;
if (iu.v() == 0) {
ZI.IeS ieS = new ZI.IeS(iu) { // from class: o.aCG
private IU e;
@Override // o.ZI.IeS
public final void e(Object obj) {
aCB.e(this.e, (InterfaceC9094ddI.HBt) obj);
}
{
this.e = iu;
}
};
if (this.f != 0) {
int i3 = g;
int i4 = i3 + 3;
i = i4 % 128;
int i5 = i4 % 2;
int i6 = i3 + 7;
i = i6 % 128;
int i7 = i6 % 2;
ieS.e(this.f);
return;
}
return;
}
boolean z = false;
if (iu.r() != null || iu.g() == null) {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aCE
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9094ddI.HBt) obj).b();
}
};
if (this.f != 0) {
int i8 = g + 41;
i = i8 % 128;
int i9 = i8 % 2;
z = true;
}
if (!z) {
return;
}
ieS2.e(this.f);
return;
}
int i10 = i + 7;
g = i10 % 128;
int i11 = i10 % 2;
if (iu.g() != null) {
Object[] objArr = new Object[1];
h((short) (ViewConfiguration.getLongPressTimeout() >> 16), (byte) (TextUtils.lastIndexOf("", '0', 0, 0) + 59), ImageFormat.getBitsPerPixel(0) - 48, 1260067243 + (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), 1662256088 - (ViewConfiguration.getDoubleTapTimeout() >> 16), objArr);
if (!((String) objArr[0]).intern().equalsIgnoreCase(iu.g().b)) {
ZI.IeS ieS3 = new ZI.IeS(iu) { // from class: o.aCH
private IU b;
@Override // o.ZI.IeS
public final void e(Object obj) {
aCB.d(this.b, (InterfaceC9094ddI.HBt) obj);
}
{
this.b = iu;
}
};
if (this.f != 0) {
int i12 = g + 43;
i = i12 % 128;
if (i12 % 2 == 0) {
return;
}
ieS3.e(this.f);
return;
}
return;
}
}
ZI.IeS ieS4 = new ZI.IeS(iu) { // from class: o.aCD
private IU d;
@Override // o.ZI.IeS
public final void e(Object obj) {
aCB.b(this.d, (InterfaceC9094ddI.HBt) obj);
}
{
this.d = iu;
}
};
if (this.f != 0) {
ieS4.e(this.f);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void d(IU iu, InterfaceC9094ddI.HBt hBt) {
int i2 = 2 % 2;
int i3 = g + 85;
i = i3 % 128;
int i4 = i3 % 2;
hBt.c(iu);
if (i4 == 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void b(IU iu, InterfaceC9094ddI.HBt hBt) {
int i2 = 2 % 2;
int i3 = g + 25;
i = i3 % 128;
int i4 = i3 % 2;
hBt.e(iu);
int i5 = i + 57;
g = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 15 / 0;
}
}
private static void h(short s, byte b2, int i2, int i3, int i4, Object[] objArr) {
int i5;
int length;
byte[] bArr;
int i6 = 2 % 2;
DFY dfy = new DFY();
StringBuilder sb = new StringBuilder();
try {
Object[] objArr2 = {Integer.valueOf(i2), Integer.valueOf(e)};
Object obj = xzZ.y.get(-2092856797);
if (obj == null) {
Class cls = (Class) xzZ.c(337 - (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 5 - KeyEvent.keyCodeFromString(""), (char) (ViewConfiguration.getKeyRepeatTimeout() >> 16));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr3 = new Object[1];
k(b3, b4, b4, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(-2092856797, obj);
}
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
if (intValue == -1) {
int i7 = $11 + 89;
$10 = i7 % 128;
int i8 = i7 % 2;
i5 = 1;
} else {
i5 = 0;
}
if ((i5 ^ 1) != 1) {
byte[] bArr2 = c;
if (bArr2 != null) {
int i9 = $10 + 73;
$11 = i9 % 128;
int i10 = i9 % 2;
int length2 = bArr2.length;
byte[] bArr3 = new byte[length2];
for (int i11 = 0; i11 < length2; i11++) {
Object[] objArr4 = {Integer.valueOf(bArr2[i11])};
Object obj2 = xzZ.y.get(-1648115392);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(0, 0) + 60, 5 - (ViewConfiguration.getPressedStateDuration() >> 16), (char) (ViewConfiguration.getPressedStateDuration() >> 16));
byte b5 = (byte) 0;
byte b6 = (byte) (b5 + 1);
Object[] objArr5 = new Object[1];
k(b5, b6, (byte) (b6 - 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1648115392, obj2);
}
bArr3[i11] = ((Byte) ((Method) obj2).invoke(null, objArr4)).byteValue();
}
bArr2 = bArr3;
}
if (bArr2 != null) {
byte[] bArr4 = c;
Object[] objArr6 = {Integer.valueOf(i3), Integer.valueOf(a)};
Object obj3 = xzZ.y.get(-2092856797);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(337 - View.resolveSizeAndState(0, 0, 0), 4 - Process.getGidForName(""), (char) ((-1) - ExpandableListView.getPackedPositionChild(0L)));
byte b7 = (byte) 0;
byte b8 = b7;
Object[] objArr7 = new Object[1];
k(b7, b8, b8, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(-2092856797, obj3);
}
intValue = (byte) (((byte) (bArr4[((Integer) ((Method) obj3).invoke(null, objArr6)).intValue()] ^ (-7303220121662775787L))) + ((int) (e ^ (-7303220121662775787L))));
} else {
intValue = (short) (((short) (b[i3 + ((int) (a ^ (-7303220121662775787L)))] ^ (-7303220121662775787L))) + ((int) (e ^ (-7303220121662775787L))));
}
}
if (intValue > 0) {
int i12 = $11 + 49;
$10 = i12 % 128;
int i13 = i12 % 2;
dfy.c = ((i3 + intValue) - 2) + ((int) (a ^ (-7303220121662775787L))) + i5;
Object[] objArr8 = {dfy, Integer.valueOf(i4), Integer.valueOf(d), sb};
Object obj4 = xzZ.y.get(1546973421);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(748 - (Process.myTid() >> 22), Color.alpha(0) + 5, (char) (TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 1))).getMethod("q", Object.class, Integer.TYPE, Integer.TYPE, Object.class);
xzZ.y.put(1546973421, obj4);
}
((StringBuilder) ((Method) obj4).invoke(null, objArr8)).append(dfy.a);
dfy.e = dfy.a;
byte[] bArr5 = c;
if (bArr5 != null) {
int i14 = $10 + 85;
$11 = i14 % 128;
if (i14 % 2 == 0) {
length = bArr5.length;
bArr = new byte[length];
} else {
length = bArr5.length;
bArr = new byte[length];
}
for (int i15 = 0; i15 < length; i15++) {
int i16 = $10 + 55;
$11 = i16 % 128;
int i17 = i16 % 2;
bArr[i15] = (byte) (bArr5[i15] ^ (-7303220121662775787L));
}
bArr5 = bArr;
}
boolean z = bArr5 != null;
dfy.d = 1;
while (dfy.d < intValue) {
if (z) {
int i18 = $10 + 93;
$11 = i18 % 128;
int i19 = i18 % 2;
byte[] bArr6 = c;
dfy.c = dfy.c - 1;
dfy.a = (char) (dfy.e + (((byte) (((byte) (bArr6[r7] ^ (-7303220121662775787L))) + s)) ^ b2));
int i20 = $10 + 99;
$11 = i20 % 128;
int i21 = i20 % 2;
} else {
short[] sArr = b;
dfy.c = dfy.c - 1;
dfy.a = (char) (dfy.e + (((short) (((short) (sArr[r8] ^ (-7303220121662775787L))) + s)) ^ b2));
}
sb.append(dfy.a);
dfy.e = dfy.a;
dfy.d++;
}
}
objArr[0] = sb.toString();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}