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

623 lines
21 KiB
Java

package o;
import android.view.ViewConfiguration;
import com.scb.phone.domain.errors.RetrofitException;
import java.security.SecureRandom;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Iterator;
import net.sf.scuba.smartcards.ISO7816;
import o.C1816aPI;
import o.ZI;
import o.wRi;
import org.bouncycastle.crypto.tls.CipherSuite;
/* renamed from: o.aPI, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C1816aPI extends ZI<InterfaceC9237dft> {
private static char a;
private static char[] b;
private static int i;
private final xZj c;
private final C16231mZ d;
private final String e;
private static final byte[] $$a = {123, ISO7816.INS_READ_RECORD2, ISO7816.INS_MSE, -23};
private static final int $$b = CipherSuite.TLS_PSK_WITH_NULL_SHA256;
private static int $10 = 0;
private static int $11 = 1;
private static int h = 0;
/* 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:0x002c). 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(byte r6, byte r7, byte r8, java.lang.Object[] r9) {
/*
int r7 = r7 * 4
int r7 = r7 + 1
int r6 = r6 * 4
int r6 = r6 + 4
byte[] r0 = o.C1816aPI.$$a
int r8 = 120 - r8
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L15
r3 = r8
r4 = r2
r8 = r6
goto L2c
L15:
r3 = r2
L16:
byte r4 = (byte) r8
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:
r4 = r0[r6]
r5 = r8
r8 = r6
r6 = r4
r4 = r3
r3 = r5
L2c:
int r6 = -r6
int r6 = r6 + r3
int r8 = r8 + 1
r3 = r4
r5 = r8
r8 = r6
r6 = r5
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: o.C1816aPI.g(byte, byte, byte, java.lang.Object[]):void");
}
public static final /* synthetic */ C16903sI a(C1816aPI c1816aPI) {
int i2 = 2 % 2;
int i3 = h + 41;
i = i3 % 128;
int i4 = i3 % 2;
C16903sI c16903sI = c1816aPI.j;
if (i4 == 0) {
throw null;
}
int i5 = i + 113;
h = i5 % 128;
if (i5 % 2 == 0) {
return c16903sI;
}
throw null;
}
public static final /* synthetic */ boolean b(C1816aPI c1816aPI, Throwable th) {
int i2 = 2 % 2;
int i3 = h + 81;
i = i3 % 128;
if (i3 % 2 != 0) {
return c1816aPI.i(th);
}
c1816aPI.i(th);
Object obj = null;
obj.hashCode();
throw null;
}
public static final /* synthetic */ void d(C1816aPI c1816aPI) {
boolean z;
int i2 = 2 % 2;
int i3 = i + 87;
h = i3 % 128;
if (i3 % 2 == 0) {
if (c1816aPI.f != 0) {
z = true;
} else {
int i4 = i + 25;
h = i4 % 128;
int i5 = i4 % 2;
z = false;
}
if (z) {
c1816aPI.f.ar_();
return;
}
return;
}
T t = c1816aPI.f;
throw null;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C1816aPI(C16903sI c16903sI, xZj xzj, C16231mZ c16231mZ, String str) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(xzj, "");
C14957gcv.e(c16231mZ, "");
C14957gcv.e(str, "");
this.c = xzj;
this.d = c16231mZ;
this.e = str;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object a(Object[] objArr) {
C1816aPI c1816aPI = (C1816aPI) objArr[0];
String str = (String) objArr[1];
String str2 = (String) objArr[2];
String str3 = (String) objArr[3];
int i2 = 2 % 2;
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.aPK
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9237dft) obj).y();
}
};
Object obj = null;
if (c1816aPI.f != 0) {
int i3 = i + 125;
h = i3 % 128;
if (i3 % 2 != 0) {
ieS.e(c1816aPI.f);
obj.hashCode();
throw null;
}
ieS.e(c1816aPI.f);
}
WWl wWl = new WWl(str, str2, c1816aPI.e);
Object[] objArr2 = new Object[1];
k((ViewConfiguration.getJumpTapTimeout() >> 16) + 2, new char[]{3, 1}, (byte) (121 - (ViewConfiguration.getDoubleTapTimeout() >> 16)), objArr2);
if (C14957gcv.b((Object) str2, (Object) ((String) objArr2[0]).intern())) {
wWl = new WWl(str, str2, str3, c1816aPI.e);
int i4 = i + 57;
h = i4 % 128;
int i5 = i4 % 2;
}
c1816aPI.c.e(wWl);
xZj xzj = c1816aPI.c;
xzj.d(xzj.i, new LWm(c1816aPI));
int i6 = h + 53;
i = i6 % 128;
int i7 = i6 % 2;
return null;
}
/* renamed from: o.aPI$LWm */
/* loaded from: classes4.dex */
public final class LWm extends wRi.LWm<Hxe> {
private C1816aPI e;
public LWm(C1816aPI c1816aPI) {
this.e = c1816aPI;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final Hxe hxe = (Hxe) obj;
C14957gcv.e(hxe, "");
final C1816aPI c1816aPI = this.e;
ZI.IeS ieS = new ZI.IeS(c1816aPI, hxe) { // from class: o.aPL
private Hxe b;
private C1816aPI d;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C1816aPI.LWm.d(this.d, this.b, (InterfaceC9237dft) obj2);
}
{
this.d = c1816aPI;
this.b = hxe;
}
};
if (c1816aPI.f != 0) {
ieS.e(c1816aPI.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(final Throwable th) {
C14957gcv.e(th, "");
final C1816aPI c1816aPI = this.e;
ZI.IeS ieS = new ZI.IeS(c1816aPI, th, this) { // from class: o.aPN
private C1816aPI b;
private Throwable c;
private C1816aPI.LWm d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C1816aPI.LWm.c(this.b, this.c, this.d, (InterfaceC9237dft) obj);
}
{
this.b = c1816aPI;
this.c = th;
this.d = this;
}
};
if (c1816aPI.f != 0) {
ieS.e(c1816aPI.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
C1816aPI.d(this.e);
}
public static /* synthetic */ void d(C1816aPI c1816aPI, Hxe hxe, InterfaceC9237dft interfaceC9237dft) {
C0451Gw c0451Gw;
C14957gcv.e(c1816aPI, "");
C14957gcv.e(hxe, "");
interfaceC9237dft.ar_();
C16231mZ a = c1816aPI.a();
C14957gcv.e(hxe, "");
ArrayList arrayList = new ArrayList();
C14851gaI c14851gaI = hxe.b;
if (c14851gaI == null) {
c14851gaI = C14851gaI.c;
}
for (Iterator<QhH> it = c14851gaI.iterator(); it.hasNext(); it = it) {
QhH next = it.next();
SecureRandom secureRandom = new SecureRandom();
String str = next.b;
String e = a.e(cXG.d("yyyy-MM-dd", next.f));
String str2 = next.f;
String format = ((NumberFormat) C6583cXR.c(new Object[]{2}, -1969602709, 1969602717, 2)).format(next.g);
String e2 = a.e(cXG.d("yyyy-MM-dd", next.d));
String str3 = next.d;
String str4 = next.e;
double nextDouble = secureRandom.nextDouble();
arrayList.add(new C0419Ge(str, e, str2, format, e2, str3, str4, String.valueOf(nextDouble), next.a, next.c));
}
ArrayList arrayList2 = arrayList;
Integer num = hxe.a;
dUL dul = hxe.c;
if (dul == null) {
c0451Gw = new C0451Gw((byte) 0);
} else {
c0451Gw = new C0451Gw(dul.a);
}
interfaceC9237dft.b(new C0425Gi(arrayList2, num, c0451Gw, a.k(hxe.d)));
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
public static /* synthetic */ void c(C1816aPI c1816aPI, Throwable th, LWm lWm, InterfaceC9237dft interfaceC9237dft) {
C14957gcv.e(c1816aPI, "");
C14957gcv.e(th, "");
C14957gcv.e(lWm, "");
interfaceC9237dft.ar_();
if (C1816aPI.b(c1816aPI, th)) {
return;
}
if (th instanceof RetrofitException) {
VCl vCl = ((RetrofitException) th).e;
C14866gag c14866gag = null;
if (vCl != null) {
ggV ggv = vCl.c;
String str = ggv.e;
String str2 = ggv != null ? ggv.d : null;
if (str2 == null) {
str2 = "";
}
String str3 = ggv != null ? ggv.c : null;
if (str3 == null) {
str3 = "";
}
if (str != null) {
int hashCode = str.hashCode();
if (hashCode != 51576) {
if (hashCode != 1567036) {
switch (hashCode) {
case 1567038:
if (str.equals("3012")) {
interfaceC9237dft.a(str2, str3);
break;
}
break;
case 1567039:
if (str.equals("3013")) {
interfaceC9237dft.a(str2, str3);
break;
}
break;
case 1567040:
if (str.equals("3014")) {
interfaceC9237dft.a(str2, str3);
break;
}
break;
case 1567041:
if (str.equals("3015")) {
interfaceC9237dft.b(str2, str3);
break;
}
break;
}
c14866gag = C14866gag.c;
} else if (str.equals("3010")) {
interfaceC9237dft.e(str2, str3);
c14866gag = C14866gag.c;
}
} else if (str.equals("426")) {
return;
}
}
C0693Mj e = C1816aPI.a(c1816aPI).e(th);
C14957gcv.c(e, "");
interfaceC9237dft.c(e);
c14866gag = C14866gag.c;
}
if (c14866gag != null) {
return;
}
}
C0693Mj e2 = C1816aPI.a(c1816aPI).e(th);
C14957gcv.c(e2, "");
interfaceC9237dft.c(e2);
}
}
public final String b() {
int i2 = 2 % 2;
int i3 = i + 13;
h = i3 % 128;
int i4 = i3 % 2;
String k = this.d.k(this.c.d.a());
int i5 = h + 59;
i = i5 % 128;
int i6 = i5 % 2;
return k;
}
@Override // o.ZI
public final void w_() {
int i2 = 2 % 2;
int i3 = i + 67;
h = i3 % 128;
if (i3 % 2 == 0) {
this.c.d.d();
super.w_();
int i4 = h + 91;
i = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 62 / 0;
return;
}
return;
}
this.c.d.d();
super.w_();
Object obj = null;
obj.hashCode();
throw null;
}
/* renamed from: o.aPI$Sts */
/* loaded from: classes4.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
/* JADX WARN: Code restructure failed: missing block: B:48:0x0193, code lost:
if (r2.b == r2.c) goto L45;
*/
/* JADX WARN: Code restructure failed: missing block: B:51:0x01e7, code lost:
r7 = new java.lang.Object[]{r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2};
r9 = o.xzZ.y.get(822107368);
*/
/* JADX WARN: Code restructure failed: missing block: B:52:0x0235, code lost:
if (r9 == null) goto L54;
*/
/* JADX WARN: Code restructure failed: missing block: B:56:0x02c7, code lost:
if (((java.lang.Integer) ((java.lang.reflect.Method) r9).invoke(null, r7)).intValue() != r2.j) goto L70;
*/
/* JADX WARN: Code restructure failed: missing block: B:57:0x02c9, code lost:
r6 = o.C1816aPI.$11 + 5;
o.C1816aPI.$10 = r6 % 128;
r6 = r6 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:59:0x02d5, code lost:
r7 = new java.lang.Object[]{r2, r2, java.lang.Integer.valueOf(r1), java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), java.lang.Integer.valueOf(r1), r2, java.lang.Integer.valueOf(r1), r2};
r6 = o.xzZ.y.get(-1152873385);
*/
/* JADX WARN: Code restructure failed: missing block: B:60:0x0318, code lost:
if (r6 == null) goto L62;
*/
/* JADX WARN: Code restructure failed: missing block: B:62:0x039c, code lost:
r6 = ((java.lang.Integer) ((java.lang.reflect.Method) r6).invoke(null, r7)).intValue();
*/
/* JADX WARN: Code restructure failed: missing block: B:63:0x03a9, code lost:
r7 = (r2.d * r1) + r2.j;
r4[r2.e] = r3[r6];
r4[r2.e + 1] = r3[r7];
r6 = o.C1816aPI.$10 + 31;
o.C1816aPI.$11 = r6 % 128;
r6 = r6 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:66:0x0322, code lost:
r6 = (java.lang.Class) o.xzZ.c(android.graphics.Color.blue(0) + 327, 4 - android.text.TextUtils.indexOf((java.lang.CharSequence) "", '0'), (char) ((android.os.Process.getElapsedCpuTime() > 0 ? 1 : (android.os.Process.getElapsedCpuTime() == 0 ? 0 : -1)) - 1));
r10 = (byte) 0;
r11 = r10;
r15 = new java.lang.Object[1];
g(r10, r11, (byte) (r11 + 2), r15);
r6 = r6.getMethod((java.lang.String) r15[0], java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class);
o.xzZ.y.put(-1152873385, r6);
*/
/* JADX WARN: Code restructure failed: missing block: B:68:0x03c7, code lost:
r0 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:69:0x03c8, code lost:
r1 = r0.getCause();
*/
/* JADX WARN: Code restructure failed: missing block: B:70:0x03cc, code lost:
if (r1 != null) goto L68;
*/
/* JADX WARN: Code restructure failed: missing block: B:71:0x03ce, code lost:
throw r1;
*/
/* JADX WARN: Code restructure failed: missing block: B:72:0x03cf, code lost:
throw r0;
*/
/* JADX WARN: Code restructure failed: missing block: B:74:0x03dc, code lost:
if (r2.a != r2.d) goto L75;
*/
/* JADX WARN: Code restructure failed: missing block: B:75:0x03de, code lost:
r6 = o.C1816aPI.$10 + 11;
o.C1816aPI.$11 = r6 % 128;
r6 = r6 % 2;
r2.f = ((r2.f + r1) - 1) % r1;
r2.j = ((r2.j + r1) - 1) % r1;
r6 = (r2.a * r1) + r2.f;
r7 = (r2.d * r1) + r2.j;
r4[r2.e] = r3[r6];
r4[r2.e + 1] = r3[r7];
r6 = o.C1816aPI.$10 + 65;
o.C1816aPI.$11 = r6 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:76:0x041a, code lost:
if ((r6 % 2) != 0) goto L105;
*/
/* JADX WARN: Code restructure failed: missing block: B:77:0x041c, code lost:
r24 = 3 / 3;
*/
/* JADX WARN: Code restructure failed: missing block: B:80:0x041f, code lost:
r6 = (r2.a * r1) + r2.j;
r7 = (r2.d * r1) + r2.f;
r4[r2.e] = r3[r6];
r4[r2.e + 1] = r3[r7];
*/
/* JADX WARN: Code restructure failed: missing block: B:82:0x0239, code lost:
r9 = (java.lang.Class) o.xzZ.c(android.graphics.Color.rgb(0, 0, 0) + 16777449, android.text.TextUtils.indexOf((java.lang.CharSequence) "", '0', 0, 0) + 6, (char) ((android.view.ViewConfiguration.getWindowTouchSlop() >> 8) + 22024));
r10 = (byte) 0;
r11 = r10;
r14 = new java.lang.Object[1];
g(r10, r11, r11, r14);
r9 = r9.getMethod((java.lang.String) r14[0], java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class);
o.xzZ.y.put(822107368, r9);
*/
/* JADX WARN: Code restructure failed: missing block: B:84:0x0440, code lost:
r0 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:85:0x0441, code lost:
r1 = r0.getCause();
*/
/* JADX WARN: Code restructure failed: missing block: B:86:0x0445, code lost:
if (r1 != null) goto L80;
*/
/* JADX WARN: Code restructure failed: missing block: B:87:0x0447, code lost:
throw r1;
*/
/* JADX WARN: Code restructure failed: missing block: B:88:0x0448, code lost:
throw r0;
*/
/* JADX WARN: Code restructure failed: missing block: B:89:0x01a9, code lost:
r6 = o.C1816aPI.$11 + 83;
o.C1816aPI.$10 = r6 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:90:0x01b3, code lost:
if ((r6 % 2) == 0) goto L48;
*/
/* JADX WARN: Code restructure failed: missing block: B:91:0x01b5, code lost:
r4[r2.e] = (char) (r2.b - r29);
r4[r2.e] = (char) (r2.c >> r29);
*/
/* JADX WARN: Code restructure failed: missing block: B:94:0x01c8, code lost:
r4[r2.e] = (char) (r2.b - r29);
r4[r2.e + 1] = (char) (r2.c - r29);
*/
/* JADX WARN: Code restructure failed: missing block: B:96:0x01a7, code lost:
if (r2.b == r2.c) goto L45;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void k(int r27, char[] r28, byte r29, java.lang.Object[] r30) {
/*
Method dump skipped, instructions count: 1127
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C1816aPI.k(int, char[], byte, java.lang.Object[]):void");
}
static void c() {
b = new char[]{35368, 49027, 35371, 49026};
a = (char) 35371;
}
public final void d(String str, String str2, String str3) {
Object[] objArr = {this, str, str2, str3};
System.identityHashCode(this);
a(objArr);
}
public final C16231mZ a() {
int i2 = 2 % 2;
int i3 = h + 1;
i = i3 % 128;
int i4 = i3 % 2;
C16231mZ c16231mZ = this.d;
if (i4 == 0) {
int i5 = 18 / 0;
}
return c16231mZ;
}
static {
i = 1;
c();
new Sts((byte) 0);
int i2 = h + 59;
i = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
}
}