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

543 lines
18 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.PointF;
import android.net.Uri;
import android.os.Process;
import android.telephony.cdma.CdmaCellLocation;
import android.util.TypedValue;
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.huawei.hms.support.api.entity.common.CommonConstant;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import net.sf.scuba.smartcards.ISO7816;
import o.C15971jzF;
/* renamed from: o.uD */
/* loaded from: classes3.dex */
public final class C17127uD extends C16157lj {
private static char f;
private static char g;
private static char h;
private static char j;
/* renamed from: o */
private static int f9283o;
private final Fnl a;
private final C17809ztu b;
private final String d;
private final String i;
private static final byte[] $$d = {124, -126, ISO7816.INS_MSE, 69};
private static final int $$e = 249;
private static int $10 = 0;
private static int $11 = 1;
private static int n = 0;
public static /* synthetic */ Object b(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i;
int i5 = ~i2;
int i6 = ~i3;
int i7 = (i * (-519)) + (i2 * 521) + (((~(i2 | i3)) | (~(i4 | i5 | i6))) * 520);
int i8 = ~(i5 | i6);
int i9 = ~(i3 | i);
return (i7 + ((i8 | i9) * (-1040))) + ((((~(i | i5)) | (~(i4 | i6))) | i9) * 520) != 1 ? b(objArr) : e(objArr);
}
/* 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:0x002d). 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(int r6, short r7, int r8, java.lang.Object[] r9) {
/*
int r8 = r8 * 2
int r8 = r8 + 4
byte[] r0 = o.C17127uD.$$d
int r7 = 67 - r7
int r6 = r6 * 3
int r1 = r6 + 1
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L14
r3 = r8
r4 = r2
goto L2d
L14:
r3 = r2
r5 = r8
r8 = r7
r7 = r5
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:
r4 = r0[r7]
int r3 = r3 + 1
r5 = r3
r3 = r7
r7 = r4
r4 = r5
L2d:
int r8 = r8 + r7
int r7 = r3 + 1
r3 = r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.C17127uD.s(int, short, int, java.lang.Object[]):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C17127uD(Fnl fnl, C17809ztu c17809ztu, String str, String str2, Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
C14957gcv.e(fnl, "");
C14957gcv.e(c17809ztu, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
this.a = fnl;
this.b = c17809ztu;
this.d = str;
this.i = str2;
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x0027, code lost:
r1 = r1.r;
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x0029, code lost:
if (r1 == null) goto L29;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x002b, code lost:
r3 = o.C17127uD.f9283o + 31;
o.C17127uD.n = r3 % 128;
r3 = r3 % 2;
r1 = r1.F;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x0025, code lost:
if (r1 != null) goto L26;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x001a, code lost:
if (r1 != null) goto L26;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x0037, code lost:
r1 = false;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final boolean f() {
/*
r5 = this;
r0 = 2
int r1 = r0 % r0
int r1 = o.C17127uD.n
int r1 = r1 + 105
int r2 = r1 % 128
o.C17127uD.f9283o = r2
int r1 = r1 % r0
r2 = 0
if (r1 != 0) goto L1d
o.Fnl r1 = r5.a
o.azC r1 = r1.d
o.dAG r1 = r1.a()
r3 = 21
int r3 = r3 / r2
if (r1 == 0) goto L37
goto L27
L1d:
o.Fnl r1 = r5.a
o.azC r1 = r1.d
o.dAG r1 = r1.a()
if (r1 == 0) goto L37
L27:
o.YIo r1 = r1.r
if (r1 == 0) goto L37
int r3 = o.C17127uD.f9283o
int r3 = r3 + 31
int r4 = r3 % 128
o.C17127uD.n = r4
int r3 = r3 % r0
boolean r1 = r1.F
goto L38
L37:
r1 = r2
L38:
int r3 = o.C17127uD.n
int r3 = r3 + 11
int r4 = r3 % 128
o.C17127uD.f9283o = r4
int r3 = r3 % r0
if (r3 != 0) goto L46
r0 = 12
int r0 = r0 / r2
L46:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: o.C17127uD.f():boolean");
}
private final String i() {
int i = 2 % 2;
int i2 = n + 37;
f9283o = i2 % 128;
int i3 = i2 % 2;
String h2 = this.b.c.h();
if (h2 == null) {
int i4 = n + 63;
f9283o = i4 % 128;
int i5 = i4 % 2;
h2 = "";
}
int i6 = n + 21;
f9283o = i6 % 128;
if (i6 % 2 == 0) {
int i7 = 5 / 0;
}
return h2;
}
private final C13396fZU<String, String> j() {
C13396fZU<String, String> r;
int i = 2 % 2;
int i2 = n + 103;
f9283o = i2 % 128;
if (i2 % 2 == 0) {
r = this.b.c.r();
int i3 = 45 / 0;
} else {
r = this.b.c.r();
}
int i4 = f9283o + 47;
n = i4 % 128;
if (i4 % 2 == 0) {
return r;
}
throw null;
}
public final HashMap<String, Object> c(mfY mfy) {
int i = 2 % 2;
C14957gcv.e(mfy, "");
HashMap<String, Object> hashMap = new HashMap<>();
C15971jzF.Sts.C0121Sts c0121Sts = C15971jzF.e;
HashMap<String, Object> hashMap2 = hashMap;
hashMap2.put(c0121Sts.t, this.i);
hashMap2.put(c0121Sts.l, l());
if (mfy == mfY.MF_TRANSACTIONS_HISTORY_FUND_DETAIL) {
hashMap2.put(c0121Sts.j, j().d);
hashMap2.put(c0121Sts.k, j().e);
}
hashMap2.put("path", b(mfy));
hashMap2.put(CommonConstant.ReqAccessTokenParam.LANGUAGE_LABEL, this.d);
hashMap2.put("env", "prod");
if (i().length() > 0) {
int i2 = f9283o + 53;
n = i2 % 128;
int i3 = i2 % 2;
hashMap2.put("version", i());
int i4 = n + 23;
f9283o = i4 % 128;
int i5 = i4 % 2;
}
return hashMap;
}
public final HashMap<String, Object> g() {
int i = 2 % 2;
String upperCase = this.d.toUpperCase(Locale.ROOT);
C14957gcv.c((Object) upperCase, "");
C13396fZU[] c13396fZUArr = {new C13396fZU("language", upperCase)};
C14957gcv.e(c13396fZUArr, "");
HashMap<String, Object> hashMap = new HashMap<>(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
int i2 = n + 107;
f9283o = i2 % 128;
int i3 = i2 % 2;
return hashMap;
}
public static /* synthetic */ HashMap c(C17127uD c17127uD, String str) {
int i = 2 % 2;
int i2 = n + 21;
f9283o = i2 % 128;
int i3 = i2 % 2;
HashMap hashMap = (HashMap) b(new Object[]{c17127uD, str, null, null}, -1679596906, 1679596907, System.identityHashCode(c17127uD));
int i4 = f9283o + 43;
n = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 36 / 0;
}
return hashMap;
}
private static /* synthetic */ Object e(Object[] objArr) {
C17127uD c17127uD = (C17127uD) objArr[0];
String str = (String) objArr[1];
String str2 = (String) objArr[2];
String str3 = (String) objArr[3];
int i = 2 % 2;
HashMap hashMap = new HashMap();
C15971jzF.Sts.C0121Sts c0121Sts = C15971jzF.e;
HashMap hashMap2 = hashMap;
hashMap2.put(c0121Sts.f9187o, str);
if (str2 != null) {
hashMap2.put(c0121Sts.e, str2);
}
if (str3 != null) {
int i2 = f9283o + 69;
n = i2 % 128;
int i3 = i2 % 2;
hashMap2.put(c0121Sts.q, str3);
}
hashMap2.put(c0121Sts.t, c17127uD.i);
hashMap2.put(c0121Sts.l, c17127uD.l());
hashMap2.put(CommonConstant.ReqAccessTokenParam.LANGUAGE_LABEL, c17127uD.d);
hashMap2.put("env", "prod");
if (c17127uD.i().length() > 0) {
int i4 = n + 57;
f9283o = i4 % 128;
int i5 = i4 % 2;
hashMap2.put("version", c17127uD.i());
}
return hashMap;
}
private static /* synthetic */ Object b(Object[] objArr) {
Map map = (Map) objArr[0];
int i = 2 % 2;
C14957gcv.e(map, "");
HashMap hashMap = new HashMap();
C15971jzF.Sts.C0121Sts c0121Sts = C15971jzF.e;
HashMap hashMap2 = hashMap;
hashMap2.put(c0121Sts.e, map.get(c0121Sts.e));
hashMap2.put(c0121Sts.a, Uri.encode(String.valueOf(map.get(c0121Sts.m)), "utf-8"));
hashMap2.put(c0121Sts.d, map.get(c0121Sts.c));
hashMap2.put(c0121Sts.p, map.get(c0121Sts.r));
int i2 = f9283o + 67;
n = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 81 / 0;
}
return hashMap;
}
private String l() {
Object obj;
int i = 2 % 2;
if (f()) {
int i2 = n + 39;
f9283o = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
q(new char[]{9227, 9274}, 1 - ExpandableListView.getPackedPositionGroup(0L), objArr);
obj = objArr[0];
} else {
Object[] objArr2 = new Object[1];
q(new char[]{13586, 52929}, View.getDefaultSize(0, 0) + 1, objArr2);
obj = objArr2[0];
}
String intern = ((String) obj).intern();
int i4 = f9283o + 113;
n = i4 % 128;
int i5 = i4 % 2;
return intern;
}
private static String b(mfY mfy) {
int i = 2 % 2;
C14957gcv.e(mfy, "");
int i2 = RVV.e[mfy.ordinal()];
if (i2 != 1) {
int i3 = f9283o;
int i4 = i3 + 121;
n = i4 % 128;
if (i4 % 2 == 0 ? i2 != 2 : i2 != 5) {
if (i2 != 3) {
int i5 = i3 + 21;
n = i5 % 128;
int i6 = i5 % 2;
if (i2 == 4) {
return "transactions_portfolio";
}
int i7 = i3 + 53;
n = i7 % 128;
return (i7 % 2 == 0 ? i2 == 5 : i2 == 3) ? "transactions_fund_detail" : "fundfact";
}
}
}
return "discover";
}
/* renamed from: o.uD$Sts */
/* loaded from: classes3.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
private static void q(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
int i3 = 0;
jtb.b = 0;
char[] cArr3 = new char[2];
int i4 = $10 + 9;
$11 = i4 % 128;
int i5 = i4 % 2;
while (jtb.b < cArr.length) {
cArr3[i3] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i6 = $10 + 5;
$11 = i6 % 128;
int i7 = i6 % 2;
int i8 = 58224;
int i9 = i3;
while (i9 < 16) {
int i10 = $11 + 81;
$10 = i10 % 128;
int i11 = i10 % 2;
char c = cArr3[1];
char c2 = cArr3[i3];
char[] cArr4 = cArr3;
try {
Object[] objArr2 = {Integer.valueOf(c), Integer.valueOf((c2 + i8) ^ ((c2 << 4) + ((char) (g ^ 41718355337583039L)))), Integer.valueOf(c2 >>> 5), Integer.valueOf(f)};
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 412, KeyEvent.keyCodeFromString("") + 5, (char) (1 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))));
byte b = (byte) 0;
byte b2 = (byte) (b + 1);
Object[] objArr3 = new Object[1];
s(b, b2, (byte) (b2 - 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr4[1] = charValue;
Object[] objArr4 = {Integer.valueOf(cArr4[0]), Integer.valueOf((charValue + i8) ^ ((charValue << 4) + ((char) (j ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(h)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(411 - ((byte) KeyEvent.getModifierMetaStateMask()), (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 5, (char) View.MeasureSpec.makeMeasureSpec(0, 0));
byte b3 = (byte) 0;
byte b4 = (byte) (b3 + 1);
Object[] objArr5 = new Object[1];
s(b3, b4, (byte) (b4 - 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i8 -= 40503;
i9++;
cArr3 = cArr4;
i3 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr5 = cArr3;
cArr2[jtb.b] = cArr5[0];
cArr2[jtb.b + 1] = cArr5[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((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)) + 98, KeyEvent.keyCodeFromString("") + 5, (char) (ViewConfiguration.getWindowTouchSlop() >> 8));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
s(b5, b6, b6, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
cArr3 = cArr5;
i3 = 0;
}
objArr[0] = new String(cArr2, 0, i);
}
static void h() {
j = (char) 51508;
h = (char) 33607;
g = (char) 46505;
f = (char) 14964;
}
public static HashMap<String, Object> d(Map<String, String> map) {
return (HashMap) b(new Object[]{map}, -1312645088, 1312645088, (int) System.currentTimeMillis());
}
/* renamed from: o.uD$RVV */
/* loaded from: classes3.dex */
public final /* synthetic */ class RVV {
public static final int[] e;
static {
int[] iArr = new int[mfY.values().length];
try {
iArr[mfY.MF_DISCOVER_PORTFOLIO.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[mfY.MF_DISCOVER_NONE_ACCOUNT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[mfY.MF_DISCOVER_DEEPLINK.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[mfY.MF_TRANSACTIONS_HISTORY_PORTFOLIO.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
iArr[mfY.MF_TRANSACTIONS_HISTORY_FUND_DETAIL.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
e = iArr;
}
}
public final HashMap<String, Object> d(String str, String str2, String str3) {
return (HashMap) b(new Object[]{this, str, str2, str3}, -1679596906, 1679596907, System.identityHashCode(this));
}
static {
f9283o = 1;
h();
new Sts((byte) 0);
int i = n + 5;
f9283o = i % 128;
int i2 = i % 2;
}
}