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

632 lines
20 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.text.TextUtils;
import android.view.ViewConfiguration;
import com.scb.phone.domain.errors.RetrofitException;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C0690Mh;
import o.InterfaceC9094ddI;
import o.ZI;
import o.aBW;
import o.wRi;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes4.dex */
public class aBW extends ZI<InterfaceC9094ddI.Sts> {
private final Vir a;
private final C15616hE b;
private final C0167Ap c;
private EyW e;
private static final byte[] $$a = {ISO7816.INS_CHANGE_CHV, ISOFileInfo.A1, ISO7816.INS_ENVELOPE, -12};
private static final int $$b = CipherSuite.TLS_PSK_WITH_3DES_EDE_CBC_SHA;
private static int $10 = 0;
private static int $11 = 1;
private static int h = 0;
private static int i = 1;
private static long d = -1522624576216344584L;
public static /* synthetic */ Object d(Object[] objArr, int i2, int i3, int i4) {
int i5 = (i2 * (-523)) + (i3 * 263);
int i6 = ~((~i2) | i3);
int i7 = ~i3;
int i8 = ~(i2 | i7);
return ((i5 + (((i6 | i8) | (~(i7 | i4))) * 262)) + (i8 * (-786))) + ((i8 | ((~(i7 | (~i4))) | i6)) * 262) != 1 ? a(objArr) : b(objArr);
}
private static void l(short s, int i2, int i3, Object[] objArr) {
byte[] bArr = $$a;
int i4 = i2 * 3;
int i5 = i3 + 4;
int i6 = (s * 2) + 119;
byte[] bArr2 = new byte[1 - i4];
int i7 = 0 - i4;
int i8 = -1;
if (bArr == null) {
i6 += -i7;
}
while (true) {
i5++;
i8++;
bArr2[i8] = (byte) i6;
if (i8 == i7) {
objArr[0] = new String(bArr2, 0);
return;
}
i6 += -bArr[i5];
}
}
private static /* synthetic */ Object a(Object[] objArr) {
aBW abw = (aBW) objArr[0];
Throwable th = (Throwable) objArr[1];
int i2 = 2 % 2;
int i3 = h + 79;
i = i3 % 128;
if (i3 % 2 == 0) {
abw.b(th);
throw null;
}
if (abw.b(th)) {
abw.d(abw.j.e(th));
}
int i4 = h + 77;
i = i4 % 128;
int i5 = i4 % 2;
return null;
}
static /* synthetic */ C16903sI a(aBW abw) {
int i2 = 2 % 2;
int i3 = i + 29;
h = i3 % 128;
int i4 = i3 % 2;
C16903sI c16903sI = abw.j;
int i5 = i + 41;
h = i5 % 128;
if (i5 % 2 == 0) {
return c16903sI;
}
Object obj = null;
obj.hashCode();
throw null;
}
static /* synthetic */ C16903sI b(aBW abw) {
int i2 = 2 % 2;
int i3 = i + 35;
h = i3 % 128;
int i4 = i3 % 2;
Object obj = null;
C16903sI c16903sI = abw.j;
if (i4 != 0) {
obj.hashCode();
throw null;
}
int i5 = i + 45;
h = i5 % 128;
if (i5 % 2 == 0) {
return c16903sI;
}
throw null;
}
static /* synthetic */ void d(aBW abw) {
int i2 = 2 % 2;
if (abw.f != 0) {
int i3 = h + 55;
i = i3 % 128;
if (i3 % 2 == 0) {
abw.f.ar_();
int i4 = 50 / 0;
} else {
abw.f.ar_();
}
}
int i5 = i + 33;
h = i5 % 128;
int i6 = i5 % 2;
}
static /* synthetic */ void d(aBW abw, Throwable th) {
int i2 = 2 % 2;
int i3 = i + 53;
h = i3 % 128;
Object obj = null;
if (i3 % 2 != 0) {
abw.b(th);
obj.hashCode();
throw null;
}
if (abw.b(th)) {
int i4 = h + 67;
i = i4 % 128;
if (i4 % 2 != 0) {
abw.d(abw.j.e(th));
} else {
abw.d(abw.j.e(th));
obj.hashCode();
throw null;
}
}
}
static /* synthetic */ void e(aBW abw) {
int i2 = 2 % 2;
int i3 = h + 39;
i = i3 % 128;
int i4 = i3 % 2;
if (abw.f != 0) {
int i5 = i + 69;
h = i5 % 128;
int i6 = i5 % 2;
abw.f.ar_();
}
int i7 = i + 119;
h = i7 % 128;
if (i7 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
static /* synthetic */ C16903sI i(aBW abw) {
int i2 = 2 % 2;
int i3 = h + 69;
i = i3 % 128;
int i4 = i3 % 2;
C16903sI c16903sI = abw.j;
if (i4 != 0) {
return c16903sI;
}
Object obj = null;
obj.hashCode();
throw null;
}
@InterfaceC13391fZD
public aBW(C16903sI c16903sI, Vir vir, C0167Ap c0167Ap, C15616hE c15616hE) {
super(c16903sI);
this.a = vir;
this.c = c0167Ap;
this.b = c15616hE;
}
public final void d() {
int i2 = 2 % 2;
int i3 = i + 27;
h = i3 % 128;
int i4 = i3 % 2;
if (this.f != 0) {
int i5 = h + 49;
i = i5 % 128;
int i6 = i5 % 2;
this.f.y();
}
this.b.d(new InterfaceC14894gbR(this) { // from class: o.aBS
private aBW a;
@Override // o.InterfaceC14894gbR
public final Object invoke(Object obj) {
return aBW.e(this.a, (EyW) obj);
}
{
this.a = this;
}
}, new InterfaceC14894gbR(this) { // from class: o.aBV
private aBW e;
@Override // o.InterfaceC14894gbR
public final Object invoke(Object obj) {
return aBW.a(this.e, (Throwable) obj);
}
{
this.e = this;
}
});
}
private /* synthetic */ C14866gag e(EyW eyW) {
int i2 = 2 % 2;
int i3 = h + 95;
i = i3 % 128;
if (i3 % 2 != 0) {
this.e = eyW;
if (this.f != 0) {
int i4 = h + 65;
i = i4 % 128;
if (i4 % 2 != 0) {
this.f.ar_();
int i5 = h + 75;
i = i5 % 128;
int i6 = i5 % 2;
}
}
return C14866gag.c;
}
this.e = eyW;
T t = this.f;
Object obj = null;
obj.hashCode();
throw null;
}
private static /* synthetic */ Object b(Object[] objArr) {
aBW abw = (aBW) objArr[0];
Throwable th = (Throwable) objArr[1];
int i2 = 2 % 2;
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (abw.b(th)) {
int i3 = h + 105;
i = i3 % 128;
int i4 = i3 % 2;
abw.d(abw.j.d(th, ieS));
int i5 = h + 95;
i = i5 % 128;
int i6 = i5 % 2;
}
return C14866gag.c;
}
private static void k(char[] cArr, int i2, Object[] objArr) {
int i3 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(d ^ (-7538262848231253921L), cArr, i2);
guL.a = 4;
while (guL.a < a.length) {
guL.c = guL.a - 4;
int i4 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(d)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0') + 209, 5 - TextUtils.indexOf("", "", 0, 0), (char) (1705 - TextUtils.lastIndexOf("", '0', 0)));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
l(b, b2, (byte) (b2 - 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i4] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 392, (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 4, (char) (TextUtils.lastIndexOf("", '0', 0) + 1));
byte b3 = (byte) ($$b & 5);
byte b4 = (byte) (b3 - 1);
Object[] objArr5 = new Object[1];
l(b3, b4, (byte) (b4 - 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i5 = $11 + 9;
$10 = i5 % 128;
int i6 = i5 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
String str = new String(a, 4, a.length - 4);
int i7 = $10 + 113;
$11 = i7 % 128;
int i8 = i7 % 2;
objArr[0] = str;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.aBW$1, reason: invalid class name */
/* loaded from: classes4.dex */
public final class AnonymousClass1 extends wRi.LWm<MBF> {
private aBW c;
AnonymousClass1(aBW abw) {
this.c = abw;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final MBF mbf = (MBF) obj;
super.onNext(mbf);
aBW.d(this.c);
aBW abw = this.c;
ZI.IeS ieS = new ZI.IeS(this, mbf) { // from class: o.aBU
private MBF a;
private aBW.AnonymousClass1 e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
InterfaceC9094ddI.Sts sts = (InterfaceC9094ddI.Sts) obj2;
sts.a(aBW.c(this.e.c).d(this.a));
}
{
this.e = this;
this.a = mbf;
}
};
if (abw.f != 0) {
ieS.e(abw.f);
}
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(final Throwable th) {
char c;
super.onError(th);
aBW.e(this.c);
if (th instanceof RetrofitException) {
RetrofitException retrofitException = (RetrofitException) th;
if (retrofitException.e == null || retrofitException.e.c == null) {
aBW.d(new Object[]{this.c, th}, -1311578434, 1311578434, (int) System.currentTimeMillis());
return;
}
String str = retrofitException.e.c.e;
str.hashCode();
switch (str.hashCode()) {
case 1507521:
if (str.equals("1035")) {
c = 0;
break;
}
c = 65535;
break;
case 1507522:
default:
c = 65535;
break;
case 1507523:
if (str.equals("1037")) {
c = 1;
break;
}
c = 65535;
break;
case 1507524:
if (str.equals("1038")) {
c = 2;
break;
}
c = 65535;
break;
}
if (c != 0) {
if (c == 1) {
aBW abw = this.c;
ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.aBZ
private aBW.AnonymousClass1 d;
private Throwable e;
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC9094ddI.Sts sts = (InterfaceC9094ddI.Sts) obj;
sts.a(aBW.b(this.d.c).e(this.e).c);
}
{
this.d = this;
this.e = th;
}
};
if (abw.f != 0) {
ieS.e(abw.f);
return;
}
return;
}
if (c != 2) {
aBW abw2 = this.c;
ZI.IeS ieS2 = new ZI.IeS(this, th) { // from class: o.aBY
private Throwable c;
private aBW.AnonymousClass1 d;
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC9094ddI.Sts sts = (InterfaceC9094ddI.Sts) obj;
sts.e(aBW.a(this.d.c).e(this.c));
}
{
this.d = this;
this.c = th;
}
};
if (abw2.f != 0) {
ieS2.e(abw2.f);
return;
}
return;
}
}
aBW abw3 = this.c;
ZI.IeS ieS3 = new ZI.IeS(this, th) { // from class: o.aBX
private Throwable a;
private aBW.AnonymousClass1 c;
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC9094ddI.Sts sts = (InterfaceC9094ddI.Sts) obj;
sts.b(aBW.i(this.c.c).e(this.a).c);
}
{
this.c = this;
this.a = th;
}
};
if (abw3.f != 0) {
ieS3.e(abw3.f);
return;
}
return;
}
aBW.d(this.c, th);
}
}
/* JADX WARN: Removed duplicated region for block: B:16:0x0088 */
/* JADX WARN: Removed duplicated region for block: B:19:0x0090 */
/* JADX WARN: Removed duplicated region for block: B:22:0x008b */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void d(boolean r10, java.lang.String r11, java.lang.String r12) {
/*
r9 = this;
r0 = 2
int r1 = r0 % r0
T extends o.cYp r1 = r9.f
r2 = 0
if (r1 == 0) goto L2d
int r1 = o.aBW.h
int r3 = r1 + 105
int r4 = r3 % 128
o.aBW.i = r4
int r3 = r3 % r0
int r1 = r1 + 97
int r3 = r1 % 128
o.aBW.i = r3
int r1 = r1 % r0
int r3 = r3 + 33
int r1 = r3 % 128
o.aBW.h = r1
int r3 = r3 % r0
if (r3 != 0) goto L27
T extends o.cYp r1 = r9.f
r1.y()
goto L2d
L27:
T extends o.cYp r10 = r9.f
r10.y()
throw r2
L2d:
r1 = 5
r3 = 0
r4 = 1
if (r10 == 0) goto L6b
int r10 = o.aBW.i
int r10 = r10 + 3
int r5 = r10 % 128
o.aBW.h = r5
int r10 = r10 % r0
r5 = 0
if (r10 == 0) goto L58
char[] r10 = new char[r1]
r10 = {x00c0: FILL_ARRAY_DATA , data: [27645, -7685, -14018, 27596, 15188} // fill-array
long r7 = android.os.SystemClock.elapsedRealtime()
int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))
java.lang.Object[] r5 = new java.lang.Object[r4]
k(r10, r0, r5)
r10 = r5[r3]
java.lang.String r10 = (java.lang.String) r10
java.lang.String r10 = r10.intern()
goto L84
L58:
char[] r10 = new char[r1]
r10 = {x00ca: FILL_ARRAY_DATA , data: [27645, -7685, -14018, 27596, 15188} // fill-array
long r7 = android.os.SystemClock.elapsedRealtime()
int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))
java.lang.Object[] r5 = new java.lang.Object[r4]
k(r10, r0, r5)
r10 = r5[r3]
goto L7e
L6b:
char[] r10 = new char[r1]
r10 = {x00d4: FILL_ARRAY_DATA , data: [-9462, 8387, 58, -9414, -3907} // fill-array
int r0 = android.view.ViewConfiguration.getTouchSlop()
int r0 = r0 >> 8
int r0 = r0 + r4
java.lang.Object[] r5 = new java.lang.Object[r4]
k(r10, r0, r5)
r10 = r5[r3]
L7e:
java.lang.String r10 = (java.lang.String) r10
java.lang.String r10 = r10.intern()
L84:
o.EyW r0 = r9.e
if (r0 == 0) goto L8b
java.lang.String r0 = r0.b
goto L8c
L8b:
r0 = r2
L8c:
o.EyW r5 = r9.e
if (r5 == 0) goto L92
java.lang.String r2 = r5.a
L92:
o.ee r5 = new o.ee
char[] r1 = new char[r1]
r1 = {x00de: FILL_ARRAY_DATA , data: [27645, -7685, -14018, 27596, 15188} // fill-array
int r6 = android.graphics.ImageFormat.getBitsPerPixel(r3)
int r6 = -r6
java.lang.Object[] r4 = new java.lang.Object[r4]
k(r1, r6, r4)
r1 = r4[r3]
java.lang.String r1 = (java.lang.String) r1
java.lang.String r1 = r1.intern()
r5.<init>(r10, r0, r2, r1)
o.Vir r10 = r9.a
r10.d(r11, r12, r5)
o.Vir r10 = r9.a
o.aBW$1 r11 = new o.aBW$1
r11.<init>(r9)
o.fSk r12 = r10.i
r10.d(r12, r11)
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.aBW.d(boolean, java.lang.String, java.lang.String):void");
}
private /* synthetic */ C14866gag g(Throwable th) {
return (C14866gag) d(new Object[]{this, th}, -1150074621, 1150074622, System.identityHashCode(this));
}
static /* bridge */ /* synthetic */ C0167Ap c(aBW abw) {
int i2 = 2 % 2;
int i3 = h + 123;
i = i3 % 128;
int i4 = i3 % 2;
C0167Ap c0167Ap = abw.c;
if (i4 != 0) {
return c0167Ap;
}
throw null;
}
public static /* synthetic */ C14866gag a(aBW abw, Throwable th) {
int i2 = 2 % 2;
int i3 = h + 13;
i = i3 % 128;
int i4 = i3 % 2;
C14866gag c14866gag = (C14866gag) d(new Object[]{abw, th}, -1150074621, 1150074622, System.identityHashCode(abw));
int i5 = i + 107;
h = i5 % 128;
int i6 = i5 % 2;
return c14866gag;
}
public static /* synthetic */ C14866gag e(aBW abw, EyW eyW) {
int i2 = 2 % 2;
int i3 = h + 85;
i = i3 % 128;
int i4 = i3 % 2;
C14866gag e = abw.e(eyW);
if (i4 == 0) {
int i5 = 87 / 0;
}
return e;
}
}