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

593 lines
20 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
import java.lang.reflect.Method;
import java.util.Arrays;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C15715hv;
/* renamed from: o.lK, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16104lK extends BaseAssetsDisplayMapper {
private static long a;
private static int b;
private static char d;
private static int f;
private static final byte[] $$d = {43, -66, 11, ISOFileInfo.LCS_BYTE};
private static final int $$e = 23;
private static int $10 = 0;
private static int $11 = 1;
private static int i = 1;
/* 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:0x002e). 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 s(byte r6, byte r7, short r8, java.lang.Object[] r9) {
/*
byte[] r0 = o.C16104lK.$$d
int r7 = r7 * 4
int r7 = 4 - r7
int r6 = r6 * 2
int r1 = 1 - r6
int r8 = 115 - r8
byte[] r1 = new byte[r1]
r2 = 0
int r6 = 0 - r6
if (r0 != 0) goto L17
r3 = r8
r4 = r2
r8 = r7
goto L2e
L17:
r3 = r2
L18:
byte r4 = (byte) r8
r1[r3] = r4
if (r3 != r6) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L25:
int r3 = r3 + 1
r4 = r0[r7]
r5 = r8
r8 = r7
r7 = r4
r4 = r3
r3 = r5
L2e:
int r7 = -r7
int r7 = r7 + r3
int r8 = r8 + 1
r3 = r4
r5 = r8
r8 = r7
r7 = r5
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.C16104lK.s(byte, byte, short, java.lang.Object[]):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C16104lK(Resources resources, SharedPreferences sharedPreferences, String str) {
super(resources, sharedPreferences, str);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
C14957gcv.e(str, "");
}
/* renamed from: o.lK$IeS */
/* loaded from: classes3.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object c(Object[] objArr) {
String format;
String format2;
String str;
String str2;
boolean z;
String str3;
boolean z2;
boolean z3;
String str4;
String e;
C16104lK c16104lK = (C16104lK) objArr[0];
KoG koG = (KoG) objArr[1];
boolean booleanValue = ((Boolean) objArr[2]).booleanValue();
int i2 = 2 % 2;
int i3 = f + 117;
i = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(koG, "");
KoG koG2 = koG;
boolean c = c((Pag) koG2);
String str5 = koG.b;
String d2 = d(koG.d, koG.D, Boolean.valueOf(booleanValue));
String c2 = c(koG.B);
if (koG.C != null) {
int i5 = i + 63;
f = i5 % 128;
if (i5 % 2 != 0) {
gcH gch = gcH.d;
String str6 = koG.D;
throw null;
}
gcH gch2 = gcH.d;
String str7 = koG.D;
if (str7 == null) {
int i6 = i + 37;
f = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 54 / 0;
}
str7 = "";
}
if (k(str7)) {
e = c16104lK.e(C15715hv.tOB.account_summary_level_up_loan_payment_due);
int i8 = i + 101;
f = i8 % 128;
int i9 = i8 % 2;
} else {
e = c16104lK.e(C15715hv.tOB.account_summary_loan_payment_due);
}
C14957gcv.c((Object) e, "");
format = String.format(e, Arrays.copyOf(new Object[]{c16104lK.e(koG.C)}, 1));
C14957gcv.c((Object) format, "");
} else {
gcH gch3 = gcH.d;
String str8 = koG.D;
if (str8 == null) {
str8 = "";
}
String e2 = k(str8) ? c16104lK.e(C15715hv.tOB.account_summary_level_up_loan_payment_due) : c16104lK.e(C15715hv.tOB.account_summary_loan_payment_due);
C14957gcv.c((Object) e2, "");
format = String.format(e2, Arrays.copyOf(new Object[]{""}, 1));
C14957gcv.c((Object) format, "");
}
String str9 = format;
if (koG.C != null) {
gcH gch4 = gcH.d;
String e3 = c16104lK.e(C15715hv.tOB.due);
C14957gcv.c((Object) e3, "");
format2 = String.format(e3, Arrays.copyOf(new Object[]{c16104lK.e(koG.C)}, 1));
C14957gcv.c((Object) format2, "");
} else {
gcH gch5 = gcH.d;
String e4 = c16104lK.e(C15715hv.tOB.loan_detail_due);
C14957gcv.c((Object) e4, "");
format2 = String.format(e4, Arrays.copyOf(new Object[]{""}, 1));
C14957gcv.c((Object) format2, "");
}
String str10 = format2;
String c3 = c(koG.H);
String c4 = c(koG.M);
String c5 = c(koG.v);
String str11 = koG.D;
if (str11 == null) {
str11 = "";
}
Integer d3 = k(str11) ? d(koG.J, koG.M) : d(koG.v, koG.M);
String c6 = c(koG.d, booleanValue);
String c7 = c(koG.f);
if (koG.i != null) {
gcH gch6 = gcH.d;
String e5 = c16104lK.e(C15715hv.tOB.percentage_format);
C14957gcv.c((Object) e5, "");
String format3 = String.format(e5, Arrays.copyOf(new Object[]{String.valueOf(koG.i), c16104lK.e(C15715hv.tOB.percentage)}, 2));
C14957gcv.c((Object) format3, "");
str = format3;
} else {
str = null;
}
String c8 = c(koG);
String d4 = d(koG.E);
boolean b2 = b(koG2);
String str12 = koG.n;
String str13 = koG.k.type;
String e6 = e(koG.k);
int a2 = a(false);
boolean z4 = koG.p;
String str14 = koG.x;
String str15 = (str14 == null || gdZ.d((CharSequence) str14)) ^ true ? koG.x : "";
String b_ = c16104lK.b_(koG.z);
String b_2 = c16104lK.b_(koG.c);
String str16 = koG.r;
String str17 = koG.K;
String str18 = koG.I;
String str19 = koG.m;
String c9 = koG.t != null ? c(koG.t) : "0.00";
String str20 = koG.y;
String str21 = koG.u;
String str22 = koG.w;
String c10 = c(koG.J);
boolean a3 = a(koG2);
String str23 = koG.D;
if (str23 == null) {
int i10 = i + 105;
str2 = str22;
f = i10 % 128;
if (i10 % 2 != 0) {
z = false;
int i11 = 99 / 0;
} else {
z = false;
}
str23 = "";
} else {
str2 = str22;
z = false;
}
boolean k = k(str23);
String str24 = koG.A;
if (str24 == null) {
str24 = "";
}
boolean q = q(str24);
String str25 = koG.s;
String str26 = koG.A;
String str27 = koG.G;
String str28 = koG.D;
String str29 = koG.a;
String b_3 = c16104lK.b_(koG.F);
String str30 = koG.j;
boolean e7 = e(koG2);
String str31 = koG.N;
if (str31 == null) {
str31 = "";
}
boolean m = m(str31);
String str32 = koG.g;
boolean z5 = koG.f8243o;
String str33 = koG.h;
String str34 = koG.q;
if (str34 == null || gdZ.d((CharSequence) str34)) {
str3 = str33;
z2 = true;
z3 = true;
} else {
str3 = str33;
z3 = z;
z2 = true;
}
if ((!z3) != z2) {
String str35 = koG.n;
if (str35 == null || gdZ.d((CharSequence) str35)) {
z = true;
}
str4 = z ? "" : koG.n;
} else {
str4 = koG.q;
}
int a4 = a(true);
String str36 = koG.L;
C14957gcv.c(d3, "");
return new C0385Fj(c, c6, d2, c2, str9, str10, c4, c10, c5, d3.intValue(), str5, str12, str13, e6, c3, c7, str, c8, d4, str4, a2, a4, z4, str15, b_, str16, str17, str25, b_2, b2, a3, k, q, str18, str19, c9, str20, str21, str2, str26, str27, str28, str29, b_3, str30, e7, m, str32, z5, str3, str36);
}
private static void n(char c, int i2, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) {
int i3 = 2;
int i4 = 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 i5 = $11 + 11;
$10 = i5 % 128;
int i6 = i5 % 2;
while (nhs.a < length3) {
int i7 = $10 + 119;
$11 = i7 % 128;
int i8 = i7 % i3;
try {
Object[] objArr2 = {nhs};
Object obj = xzZ.y.get(263693715);
if (obj == null) {
obj = ((Class) xzZ.c(44 - TextUtils.lastIndexOf("", '0'), 5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (char) Color.red(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((ViewConfiguration.getKeyRepeatDelay() >> 16) + 352, 5 - View.MeasureSpec.getSize(0), (char) (ImageFormat.getBitsPerPixel(0) + 52129));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr4 = new Object[1];
s(b2, b3, b3, 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((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 749, KeyEvent.getDeadChar(0, 0) + 5, (char) View.MeasureSpec.getSize(0))).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) {
Class cls2 = (Class) xzZ.c(401 - ImageFormat.getBitsPerPixel(0), ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) (21608 - Color.blue(0)));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr7 = new Object[1];
s(b4, b5, (byte) (b5 + 1), objArr7);
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]) ^ (a ^ 9051040786702654117L)) ^ ((int) (b ^ 9051040786702654117L))) ^ ((char) (d ^ 9051040786702654117L)));
nhs.a++;
i3 = 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
String str = new String(cArr6);
int i9 = $11 + 49;
$10 = i9 % 128;
if (i9 % 2 == 0) {
objArr[0] = str;
} else {
int i10 = 13 / 0;
objArr[0] = str;
}
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0016, code lost:
if (r3 != false) goto L8;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0013, code lost:
if ((!r3) != true) goto L8;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0026, code lost:
return o.C15715hv.IeS.ic_loan_default;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0018, code lost:
r3 = o.C15715hv.IeS.ic_loan_detail_default;
r1 = o.C16104lK.f + 91;
o.C16104lK.i = r1 % 128;
r1 = r1 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:?, code lost:
return r3;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static int a(boolean r3) {
/*
r0 = 2
int r1 = r0 % r0
int r1 = o.C16104lK.i
int r1 = r1 + 65
int r2 = r1 % 128
o.C16104lK.f = r2
int r1 = r1 % r0
if (r1 == 0) goto L16
r1 = 7
int r1 = r1 / 0
r1 = 1
r3 = r3 ^ r1
if (r3 == r1) goto L24
goto L18
L16:
if (r3 == 0) goto L24
L18:
int r3 = o.C15715hv.IeS.ic_loan_detail_default
int r1 = o.C16104lK.f
int r1 = r1 + 91
int r2 = r1 % 128
o.C16104lK.i = r2
int r1 = r1 % r0
goto L26
L24:
int r3 = o.C15715hv.IeS.ic_loan_default
L26:
return r3
*/
throw new UnsupportedOperationException("Method not decompiled: o.C16104lK.a(boolean):int");
}
private static boolean m(String str) {
int i2 = 2 % 2;
int i3 = i + 77;
f = i3 % 128;
int i4 = i3 % 2;
if (str.length() <= 0) {
return false;
}
int i5 = f + 43;
i = i5 % 128;
if (i5 % 2 == 0) {
Object[] objArr = new Object[1];
n((char) (31145 / Drawable.resolveOpacity(1, 1)), (-1171079481) >> (ViewConfiguration.getScrollBarFadeDuration() << 11), new char[]{51100, 12990, 53946, 40706}, new char[]{39632}, new char[]{14569, 30467, 2559, 56329}, objArr);
if (!C14957gcv.b((Object) ((String) objArr[0]).intern(), (Object) str)) {
return false;
}
} else {
Object[] objArr2 = new Object[1];
n((char) (722 - Drawable.resolveOpacity(0, 0)), (ViewConfiguration.getScrollBarFadeDuration() >> 16) - 1171079481, new char[]{51100, 12990, 53946, 40706}, new char[]{39632}, new char[]{14569, 30467, 2559, 56329}, objArr2);
if (!C14957gcv.b((Object) ((String) objArr2[0]).intern(), (Object) str)) {
return false;
}
}
return true;
}
/* JADX WARN: Code restructure failed: missing block: B:24:0x00c2, code lost:
if (o.C14957gcv.b((java.lang.Object) ((java.lang.String) r0[0]).intern(), (java.lang.Object) r14.N) != false) goto L31;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x00f8, code lost:
return "";
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x00f6, code lost:
if (o.C14957gcv.b((java.lang.Object) ((java.lang.String) r0[0]).intern(), (java.lang.Object) r14.N) != false) goto L31;
*/
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
/* JADX WARN: Removed duplicated region for block: B:21:0x007c */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static java.lang.String c(o.KoG r14) {
/*
Method dump skipped, instructions count: 308
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C16104lK.c(o.KoG):java.lang.String");
}
private static boolean k(String str) {
int i2 = 2 % 2;
int i3 = f + 103;
i = i3 % 128;
int i4 = i3 % 2;
boolean b2 = C14957gcv.b((Object) "0014", (Object) str);
int i5 = f + 67;
i = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 88 / 0;
}
return b2;
}
private static boolean q(String str) {
int i2 = 2 % 2;
int i3 = i + 77;
f = i3 % 128;
int i4 = i3 % 2;
boolean b2 = C14957gcv.b((Object) "CREDIT_BALANCE_BAR", (Object) str);
int i5 = i + 121;
f = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 29 / 0;
}
return b2;
}
private static String e(EnumC17275vSN enumC17275vSN) {
int i2;
int i3 = 2 % 2;
int i4 = i + 19;
f = i4 % 128;
if (i4 % 2 == 0 ? (i2 = HBt.d[enumC17275vSN.ordinal()]) == 1 : (i2 = HBt.d[enumC17275vSN.ordinal()]) == 1) {
return "carloan";
}
if (i2 == 2) {
return "mortgage";
}
if (i2 == 3) {
return "speedy";
}
int i5 = f + 71;
int i6 = i5 % 128;
i = i6;
if (i5 % 2 != 0 ? i2 == 4 : i2 == 4) {
return "commercial";
}
int i7 = i6 + 31;
f = i7 % 128;
return (i7 % 2 == 0 ? i2 == 5 : i2 == 5) ? "levelup" : "";
}
static void h() {
a = -6804155791990791604L;
b = 452713125;
d = (char) 55973;
}
/* renamed from: o.lK$HBt */
/* loaded from: classes3.dex */
public final /* synthetic */ class HBt {
public static final int[] d;
static {
int[] iArr = new int[EnumC17275vSN.values().length];
try {
iArr[EnumC17275vSN.CAR_LOAN.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[EnumC17275vSN.MORTGAGE_LOAN.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[EnumC17275vSN.SPEEDY_LOAN.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[EnumC17275vSN.COMMERCIAL_LOAN.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
iArr[EnumC17275vSN.LEVEL_UP.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
d = iArr;
}
}
public final C0385Fj e(KoG koG, boolean z) {
Object[] objArr = {this, koG, Boolean.valueOf(z)};
System.identityHashCode(this);
return (C0385Fj) c(objArr);
}
static {
f = 0;
h();
new IeS((byte) 0);
int i2 = i + 83;
f = i2 % 128;
int i3 = i2 % 2;
}
}