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

597 lines
20 KiB
Java

package o;
import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.os.Process;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.scb.phone.domain.errors.RetrofitException;
import java.lang.reflect.Method;
import o.PRk;
import o.ZI;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes4.dex */
public final class bLJ extends ZI<InterfaceC9438djj> {
private final C15956jt a;
private final Context c;
private final Joj d;
private static final byte[] $$a = {53, 8, 9, -66};
private static final int $$b = CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA;
private static int $10 = 0;
private static int $11 = 1;
private static int i = 0;
private static int h = 1;
private static long b = 9051040786702654117L;
private static int e = 452713125;
private static char g = 63499;
public static /* synthetic */ Object a(Object[] objArr, int i2, int i3, int i4) {
int i5 = ~i2;
return ((((i2 * 273) + (i3 * (-271))) + (((~(((~i3) | i5) | (~i4))) | (~((i2 | i3) | i4))) * (-272))) + (((~(i5 | i4)) | (~(i5 | i3))) * (-272))) + (((~(i2 | i4)) | i3) * 272) != 1 ? c(objArr) : d(objArr);
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> 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 l(int r6, short r7, short r8, java.lang.Object[] r9) {
/*
int r7 = r7 * 3
int r7 = 4 - r7
int r6 = r6 * 3
int r0 = r6 + 1
int r8 = r8 + 114
byte[] r1 = o.bLJ.$$a
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L15
r4 = r6
r8 = r7
r3 = r2
goto L2a
L15:
r3 = r2
r5 = r8
r8 = r7
r7 = r5
L19:
byte r4 = (byte) r7
r0[r3] = r4
if (r3 != r6) goto L26
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L26:
int r3 = r3 + 1
r4 = r1[r8]
L2a:
int r4 = -r4
int r7 = r7 + r4
int r8 = r8 + 1
goto L19
*/
throw new UnsupportedOperationException("Method not decompiled: o.bLJ.l(int, short, short, java.lang.Object[]):void");
}
private static /* synthetic */ Object c(Object[] objArr) {
bLJ blj = (bLJ) objArr[0];
Throwable th = (Throwable) objArr[1];
int i2 = 2 % 2;
int i3 = i + 3;
h = i3 % 128;
int i4 = i3 % 2;
blj.g(th);
if (i4 != 0) {
return null;
}
throw null;
}
public static final /* synthetic */ void c(bLJ blj, String str, String str2) {
int i2 = 2 % 2;
int i3 = i + 29;
h = i3 % 128;
int i4 = i3 % 2;
blj.a(str, str2);
if (i4 == 0) {
throw null;
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public bLJ(C15956jt c15956jt, Joj joj, C16903sI c16903sI, Context context) {
super(c16903sI);
C14957gcv.e(c15956jt, "");
C14957gcv.e(joj, "");
C14957gcv.e(context, "");
this.a = c15956jt;
this.d = joj;
this.c = context;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private bLJ b;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
bLJ.a(new Object[]{this.b, th2}, -2028012337, 2028012337, (int) System.currentTimeMillis());
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(bLJ blj) {
super(1);
this.b = blj;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<String, C14866gag> {
private String a;
private bLJ d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(String str) {
String str2 = str;
C14957gcv.e(str2, "");
bLJ.c(this.d, this.a, str2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
LWm(bLJ blj, String str) {
super(1);
this.d = blj;
this.a = str;
}
}
public final void c(String str, String str2, String str3, String str4) {
IeS ieS;
LWm lWm;
Object obj;
String str5;
String str6;
int i2 = 2 % 2;
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
C14957gcv.e(str4, "");
if (this.f != 0) {
int i3 = i + 119;
h = i3 % 128;
int i4 = i3 % 2;
this.f.y();
}
String e2 = C6583cXR.e(this.c);
C15956jt c15956jt = this.a;
LWm lWm2 = new LWm(this, str3);
IeS ieS2 = new IeS(this);
String c = this.d.c();
if (c == null) {
c = "";
}
String h2 = this.d.h();
if (h2 == null) {
h2 = "";
}
String str7 = Build.BRAND;
if (str7 == null) {
int i5 = i + 117;
h = i5 % 128;
if (i5 % 2 == 0) {
throw null;
}
str7 = "";
}
String str8 = Build.MODEL;
if (str8 == null) {
int i6 = h + 67;
i = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 4 / 5;
}
str8 = "";
}
String str9 = Build.VERSION.RELEASE;
if (str9 == null) {
str9 = "";
}
if (this.d.j()) {
ieS = ieS2;
lWm = lWm2;
Object[] objArr = new Object[1];
k((char) (26973 - (ViewConfiguration.getKeyRepeatDelay() >> 16)), 768444246 - Process.getGidForName(""), new char[]{22335, 52615, 23853, 19817}, new char[]{21959}, new char[]{0, 0, 0, 0}, objArr);
obj = objArr[0];
} else {
ieS = ieS2;
lWm = lWm2;
Object[] objArr2 = new Object[1];
k((char) ((Process.myPid() >> 22) + 51025), MotionEvent.axisFromString("") - 430642833, new char[]{28296, 21737, 20966, 46535}, new char[]{45894}, new char[]{0, 0, 0, 0}, objArr2);
obj = objArr2[0];
}
String intern = ((String) obj).intern();
String str10 = e2;
if (str10 == null || str10.length() == 0) {
int i8 = h + 103;
i = i8 % 128;
int i9 = i8 % 2;
str5 = null;
} else {
str5 = e2;
}
if (str10 == null || str10.length() == 0) {
str6 = null;
} else {
Object[] objArr3 = new Object[1];
k((char) Color.red(0), MotionEvent.axisFromString("") + 494348542, new char[]{65007, 30504, 53021, 14683}, new char[]{44538, 12463, 53352, 12846, 32765, 16890, 60015}, new char[]{0, 0, 0, 0}, objArr3);
str6 = ((String) objArr3[0]).intern();
}
IeS ieS3 = ieS;
LWm lWm3 = lWm;
C1434aE c1434aE = new C1434aE(c, h2, str7, str8, str9, intern, str3, str4, str5, str6);
C14957gcv.e(lWm3, "");
C14957gcv.e(ieS3, "");
C14957gcv.e(str2, "");
C14957gcv.e(str, "");
C14957gcv.e(c1434aE, "");
c15956jt.b(c15956jt.c, lWm3, ieS3, new PRk.HBt(str2, str, c1434aE));
}
private static final void c(String str, InterfaceC9438djj interfaceC9438djj) {
int i2 = 2 % 2;
int i3 = i + 15;
h = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(str, "");
interfaceC9438djj.d(str);
int i5 = i + 33;
h = i5 % 128;
if (i5 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
private final void a(String str, final String str2) {
int i2 = 2 % 2;
if (this.f != 0) {
this.f.ar_();
}
if (C14957gcv.b((Object) str, (Object) "PRE_REGISTERED")) {
ZI.IeS ieS = new ZI.IeS(str2) { // from class: o.bLL
private String c;
@Override // o.ZI.IeS
public final void e(Object obj) {
bLJ.e(this.c, (InterfaceC9438djj) obj);
}
{
this.c = str2;
}
};
if (this.f != 0) {
ieS.e(this.f);
int i3 = i + 69;
h = i3 % 128;
int i4 = i3 % 2;
return;
}
return;
}
if (C14957gcv.b((Object) str, (Object) "DEVICE_NOT_REGISTERED")) {
ZI.IeS ieS2 = new ZI.IeS(str2) { // from class: o.bLK
private String b;
@Override // o.ZI.IeS
public final void e(Object obj) {
bLJ.b(this.b, (InterfaceC9438djj) obj);
}
{
this.b = str2;
}
};
if (this.f != 0) {
int i5 = h + 35;
i = i5 % 128;
int i6 = i5 % 2;
ieS2.e(this.f);
}
}
}
private static /* synthetic */ Object d(Object[] objArr) {
String str = (String) objArr[0];
InterfaceC9438djj interfaceC9438djj = (InterfaceC9438djj) objArr[1];
int i2 = 2 % 2;
int i3 = h + 29;
i = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(str, "");
interfaceC9438djj.c(str);
int i5 = i + 111;
h = i5 % 128;
if (i5 % 2 != 0) {
return null;
}
throw null;
}
private static final void c(C0693Mj c0693Mj, InterfaceC9438djj interfaceC9438djj) {
int i2 = 2 % 2;
int i3 = h + 55;
i = i3 % 128;
if (i3 % 2 != 0) {
C14957gcv.e(c0693Mj, "");
String str = c0693Mj.c;
C14957gcv.c((Object) str, "");
interfaceC9438djj.b(str);
int i4 = 33 / 0;
} else {
C14957gcv.e(c0693Mj, "");
String str2 = c0693Mj.c;
C14957gcv.c((Object) str2, "");
interfaceC9438djj.b(str2);
}
int i5 = h + 41;
i = i5 % 128;
int i6 = i5 % 2;
}
private static final void a(InterfaceC9438djj interfaceC9438djj) {
int i2 = 2 % 2;
int i3 = i + 15;
h = i3 % 128;
int i4 = i3 % 2;
interfaceC9438djj.b();
if (i4 == 0) {
Object obj = null;
obj.hashCode();
throw null;
}
int i5 = i + 43;
h = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 45 / 0;
}
}
private final void g(Throwable th) {
int i2 = 2 % 2;
int i3 = h + 45;
i = i3 % 128;
int i4 = i3 % 2;
if (this.f != 0) {
this.f.ar_();
int i5 = h + 45;
i = i5 % 128;
int i6 = i5 % 2;
}
boolean z = false;
if (!C15602gz.e(th, RetrofitException.RVV.OTP_FAILED, RetrofitException.RVV.OTP_REACH_MAX_LIMIT, RetrofitException.RVV.OTP_EXPIRED)) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.bLI
@Override // o.ZI.IeS
public final void e(Object obj) {
bLJ.b((InterfaceC9438djj) obj);
}
};
if (this.f != 0) {
int i7 = i + 31;
h = i7 % 128;
int i8 = i7 % 2;
ieS.e(this.f);
return;
}
return;
}
final C0693Mj e2 = this.j.e(th);
if (e2 != null) {
ZI.IeS ieS2 = new ZI.IeS(e2) { // from class: o.bLH
private C0693Mj a;
@Override // o.ZI.IeS
public final void e(Object obj) {
bLJ.d(this.a, (InterfaceC9438djj) obj);
}
{
this.a = e2;
}
};
if (this.f != 0) {
int i9 = i + 15;
h = i9 % 128;
int i10 = i9 % 2;
z = true;
} else {
int i11 = i + 25;
h = i11 % 128;
int i12 = i11 % 2;
}
if (z) {
int i13 = i + 3;
h = i13 % 128;
if (i13 % 2 != 0) {
ieS2.e(this.f);
} else {
ieS2.e(this.f);
throw null;
}
}
}
}
private static void k(char c, int i2, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) {
char c2;
int i3 = 2 % 2;
Nhs nhs = new Nhs();
int length = cArr.length;
char[] cArr4 = new char[length];
int length2 = cArr3.length;
char[] cArr5 = new char[length2];
int i4 = 0;
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 i5 = $11 + 117;
$10 = i5 % 128;
int i6 = i5 % 2;
while (nhs.a < length3) {
int i7 = $10 + 17;
$11 = i7 % 128;
int i8 = i7 % 2;
try {
Object[] objArr2 = {nhs};
Object obj = xzZ.y.get(263693715);
if (obj == null) {
Class cls = (Class) xzZ.c((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 44, 5 - TextUtils.indexOf("", ""), (char) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 1));
Class<?>[] clsArr = new Class[1];
clsArr[i4] = Object.class;
obj = cls.getMethod("t", clsArr);
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 cls2 = (Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(i4, i4) + 352, 6 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (char) (Color.blue(i4) + 52128));
byte b2 = (byte) i4;
byte b3 = b2;
Object[] objArr4 = new Object[1];
l(b2, b3, (byte) (b3 + 1), objArr4);
String str = (String) objArr4[i4];
Class<?>[] clsArr2 = new Class[1];
clsArr2[i4] = Object.class;
obj2 = cls2.getMethod(str, clsArr2);
xzZ.y.put(-484664112, obj2);
}
int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
int i9 = cArr4[nhs.a % 4] * 32718;
Object[] objArr5 = new Object[3];
objArr5[2] = Integer.valueOf(cArr5[intValue]);
objArr5[1] = Integer.valueOf(i9);
objArr5[i4] = nhs;
Object obj3 = xzZ.y.get(430099516);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(748 - Color.argb(i4, i4, i4, i4), TextUtils.getCapsMode("", i4, i4) + 5, (char) (ViewConfiguration.getPressedStateDuration() >> 16));
Class<?>[] clsArr3 = new Class[3];
clsArr3[i4] = Object.class;
clsArr3[1] = Integer.TYPE;
clsArr3[2] = Integer.TYPE;
obj3 = cls3.getMethod(com.pingan.ai.p.a, clsArr3);
xzZ.y.put(430099516, obj3);
}
((Method) obj3).invoke(null, objArr5);
int i10 = cArr4[intValue2] * 32718;
Object[] objArr6 = new Object[2];
objArr6[1] = Integer.valueOf(cArr5[intValue]);
objArr6[i4] = Integer.valueOf(i10);
Object obj4 = xzZ.y.get(1019894806);
if (obj4 != null) {
c2 = 2;
} else {
Class cls4 = (Class) xzZ.c((ExpandableListView.getPackedPositionForChild(i4, i4) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(i4, i4) == 0L ? 0 : -1)) + 403, TextUtils.getTrimmedLength("") + 5, (char) (21608 - ((Process.getThreadPriority(i4) + 20) >> 6)));
byte b4 = (byte) i4;
byte b5 = b4;
Object[] objArr7 = new Object[1];
l(b4, b5, b5, objArr7);
String str2 = (String) objArr7[i4];
c2 = 2;
Class<?>[] clsArr4 = new Class[2];
clsArr4[i4] = Integer.TYPE;
clsArr4[1] = Integer.TYPE;
obj4 = cls4.getMethod(str2, clsArr4);
xzZ.y.put(1019894806, obj4);
}
cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
cArr4[intValue2] = nhs.c;
cArr6[nhs.a] = (char) ((((int) (e ^ 9051040786702654117L)) ^ ((cArr4[intValue2] ^ cArr2[nhs.a]) ^ (b ^ 9051040786702654117L))) ^ ((char) (g ^ 9051040786702654117L)));
nhs.a++;
i4 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(cArr6);
}
private static final void d(String str, InterfaceC9438djj interfaceC9438djj) {
a(new Object[]{str, interfaceC9438djj}, -30772986, 30772987, (int) System.currentTimeMillis());
}
public static /* synthetic */ void d(C0693Mj c0693Mj, InterfaceC9438djj interfaceC9438djj) {
int i2 = 2 % 2;
int i3 = h + 83;
i = i3 % 128;
int i4 = i3 % 2;
c(c0693Mj, interfaceC9438djj);
if (i4 != 0) {
throw null;
}
}
public static /* synthetic */ void b(InterfaceC9438djj interfaceC9438djj) {
int i2 = 2 % 2;
int i3 = i + 85;
h = i3 % 128;
int i4 = i3 % 2;
a(interfaceC9438djj);
int i5 = i + 57;
h = i5 % 128;
int i6 = i5 % 2;
}
public static /* synthetic */ void b(String str, InterfaceC9438djj interfaceC9438djj) {
int i2 = 2 % 2;
int i3 = i + 107;
h = i3 % 128;
int i4 = i3 % 2;
Object[] objArr = {str, interfaceC9438djj};
int currentTimeMillis = (int) System.currentTimeMillis();
if (i4 != 0) {
a(objArr, -30772986, 30772987, currentTimeMillis);
} else {
a(objArr, -30772986, 30772987, currentTimeMillis);
throw null;
}
}
public static /* synthetic */ void e(String str, InterfaceC9438djj interfaceC9438djj) {
int i2 = 2 % 2;
int i3 = h + 111;
i = i3 % 128;
int i4 = i3 % 2;
c(str, interfaceC9438djj);
if (i4 != 0) {
throw null;
}
}
}