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

473 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.Color;
import android.os.Process;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
/* loaded from: classes3.dex */
public final class DN extends BaseAssetsDisplayMapper {
private static int a;
private static int[] d;
private final InterfaceC3521azC b;
private static final byte[] $$d = {35, 6, 76, ISO7816.INS_READ_RECORD2};
private static final int $$e = 108;
private static int $10 = 0;
private static int $11 = 1;
private static int j = 1;
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
/* JADX WARN: Type inference failed for: r8v2, types: [int] */
/* 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 q(byte r6, byte r7, short r8, java.lang.Object[] r9) {
/*
int r8 = r8 * 2
int r8 = r8 + 102
int r7 = r7 * 4
int r7 = 1 - r7
byte[] r0 = o.DN.$$d
int r6 = r6 + 4
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L15
r4 = r8
r3 = 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:
int r6 = r6 + 1
r4 = r0[r6]
r5 = r8
r8 = r6
r6 = r5
L2c:
int r4 = -r4
int r6 = r6 + r4
r5 = r8
r8 = r6
r6 = r5
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: o.DN.q(byte, byte, short, java.lang.Object[]):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public DN(Resources resources, SharedPreferences sharedPreferences, String str, InterfaceC3521azC interfaceC3521azC) {
super(resources, sharedPreferences, str);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
C14957gcv.e(str, "");
C14957gcv.e(interfaceC3521azC, "");
this.b = interfaceC3521azC;
}
/* JADX WARN: Removed duplicated region for block: B:22:0x012c */
/* JADX WARN: Removed duplicated region for block: B:25:0x0168 */
/* JADX WARN: Removed duplicated region for block: B:29:0x012e */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final o.XB a(o.C17165uSq r9, java.util.List<o.hAo> r10) {
/*
Method dump skipped, instructions count: 377
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.DN.a(o.uSq, java.util.List):o.XB");
}
private static void n(int[] iArr, int i, Object[] objArr) {
Object method;
int[] iArr2;
char c;
int i2 = 2 % 2;
C4403bZM c4403bZM = new C4403bZM();
char[] cArr = new char[4];
char[] cArr2 = new char[iArr.length * 2];
int[] iArr3 = d;
int i3 = 1;
int i4 = 0;
if (iArr3 != null) {
int length = iArr3.length;
int[] iArr4 = new int[length];
int i5 = 0;
while (i5 < length) {
try {
Object[] objArr2 = new Object[i3];
objArr2[0] = Integer.valueOf(iArr3[i5]);
Object obj = xzZ.y.get(729798706);
if (obj == null) {
obj = ((Class) xzZ.c(14 - TextUtils.lastIndexOf("", '0', 0), 5 - (Process.myTid() >> 22), (char) (58134 - (ViewConfiguration.getJumpTapTimeout() >> 16)))).getMethod("i", Integer.TYPE);
xzZ.y.put(729798706, obj);
}
iArr4[i5] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
i5++;
int i6 = $11 + 101;
$10 = i6 % 128;
int i7 = i6 % 2;
i3 = 1;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
int i8 = $10 + 99;
$11 = i8 % 128;
int i9 = i8 % 2;
iArr3 = iArr4;
}
int length2 = iArr3.length;
int[] iArr5 = new int[length2];
int[] iArr6 = d;
if (iArr6 != null) {
int length3 = iArr6.length;
int[] iArr7 = new int[length3];
int i10 = 0;
while (i10 < length3) {
Object[] objArr3 = new Object[1];
objArr3[i4] = Integer.valueOf(iArr6[i10]);
Object obj2 = xzZ.y.get(729798706);
if (obj2 != null) {
iArr2 = iArr6;
c = 55346;
} else {
iArr2 = iArr6;
obj2 = ((Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 15, (ViewConfiguration.getKeyRepeatDelay() >> 16) + 5, (char) (TextUtils.indexOf("", "", 0) + 58134))).getMethod("i", Integer.TYPE);
c = 55346;
xzZ.y.put(729798706, obj2);
}
iArr7[i10] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
i10++;
iArr6 = iArr2;
i4 = 0;
}
iArr6 = iArr7;
}
int i11 = i4;
System.arraycopy(iArr6, i11, iArr5, i11, length2);
c4403bZM.b = i11;
while (c4403bZM.b < iArr.length) {
cArr[i11] = (char) (iArr[c4403bZM.b] >> 16);
cArr[1] = (char) iArr[c4403bZM.b];
cArr[2] = (char) (iArr[c4403bZM.b + 1] >> 16);
cArr[3] = (char) iArr[c4403bZM.b + 1];
c4403bZM.e = (cArr[0] << 16) + cArr[1];
c4403bZM.a = (cArr[2] << 16) + cArr[3];
C4403bZM.d(iArr5);
int i12 = 0;
for (int i13 = 16; i12 < i13; i13 = 16) {
c4403bZM.e ^= iArr5[i12];
Object[] objArr4 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM};
Object obj3 = xzZ.y.get(-1196964548);
if (obj3 != null) {
method = obj3;
} else {
Class cls = (Class) xzZ.c(118 - Color.red(0), 5 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (char) ((-16777216) - Color.rgb(0, 0, 0)));
byte b = (byte) (-1);
byte b2 = (byte) (b + 1);
Object[] objArr5 = new Object[1];
q(b, b2, (byte) (b2 + 1), objArr5);
method = cls.getMethod((String) objArr5[0], Object.class, Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1196964548, method);
}
int intValue = ((Integer) ((Method) method).invoke(null, objArr4)).intValue();
c4403bZM.e = c4403bZM.a;
c4403bZM.a = intValue;
i12++;
}
int i14 = c4403bZM.e;
c4403bZM.e = c4403bZM.a;
c4403bZM.a = i14;
c4403bZM.a ^= iArr5[16];
c4403bZM.e ^= iArr5[17];
int i15 = c4403bZM.e;
int i16 = c4403bZM.a;
cArr[0] = (char) (c4403bZM.e >>> 16);
cArr[1] = (char) c4403bZM.e;
cArr[2] = (char) (c4403bZM.a >>> 16);
cArr[3] = (char) c4403bZM.a;
C4403bZM.d(iArr5);
cArr2[c4403bZM.b * 2] = cArr[0];
cArr2[(c4403bZM.b * 2) + 1] = cArr[1];
cArr2[(c4403bZM.b * 2) + 2] = cArr[2];
cArr2[(c4403bZM.b * 2) + 3] = cArr[3];
try {
Object[] objArr6 = {c4403bZM, c4403bZM};
Object obj4 = xzZ.y.get(1914371176);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(Gravity.getAbsoluteGravity(0, 0) + 98, 5 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (1 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))));
byte b3 = (byte) (-1);
byte b4 = (byte) (b3 + 1);
Object[] objArr7 = new Object[1];
q(b3, b4, b4, objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1914371176, obj4);
}
((Method) obj4).invoke(null, objArr6);
i11 = 0;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
String str = new String(cArr2, 0, i);
int i17 = $10 + 91;
$11 = i17 % 128;
if (i17 % 2 == 0) {
throw null;
}
objArr[0] = str;
}
/* JADX WARN: Removed duplicated region for block: B:11:0x0044 */
/* JADX WARN: Removed duplicated region for block: B:14:0x0079 */
/* JADX WARN: Removed duplicated region for block: B:20:0x00ac */
/* JADX WARN: Removed duplicated region for block: B:25:0x00cc */
/* JADX WARN: Removed duplicated region for block: B:28:0x00e0 */
/* JADX WARN: Removed duplicated region for block: B:33:0x0106 */
/* JADX WARN: Removed duplicated region for block: B:36:0x0133 */
/* JADX WARN: Removed duplicated region for block: B:41:0x014c */
/* JADX WARN: Removed duplicated region for block: B:46:0x0165 */
/* JADX WARN: Removed duplicated region for block: B:55:0x0160 */
/* JADX WARN: Removed duplicated region for block: B:57:0x0147 */
/* JADX WARN: Removed duplicated region for block: B:58:0x0112 */
/* JADX WARN: Removed duplicated region for block: B:60:0x00f3 */
/* JADX WARN: Removed duplicated region for block: B:61:0x00cf */
/* JADX WARN: Removed duplicated region for block: B:63:0x00c3 */
/* JADX WARN: Removed duplicated region for block: B:66:0x008e */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final o.XB c(o.XB r11, o.C1193Xr r12, boolean r13) {
/*
Method dump skipped, instructions count: 431
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.DN.c(o.XB, o.Xr, boolean):o.XB");
}
public final XB c(List<? extends C17165uSq> list, List<hAo> list2, String str) {
C17165uSq c17165uSq;
Object obj;
int i = 2 % 2;
C14957gcv.e(list2, "");
if (list != null) {
int i2 = a + 123;
j = i2 % 128;
int i3 = i2 % 2;
Iterator<T> it = list.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
int i4 = a + 123;
j = i4 % 128;
int i5 = i4 % 2;
obj = it.next();
if (gdZ.a(((C17165uSq) obj).i, str, true)) {
break;
}
}
c17165uSq = (C17165uSq) obj;
} else {
int i6 = j + 33;
a = i6 % 128;
int i7 = i6 % 2;
c17165uSq = null;
}
if (c17165uSq == null) {
return null;
}
XB a2 = a(c17165uSq, list2);
a2.f8439o = true;
return a2;
}
/* JADX WARN: Removed duplicated region for block: B:10:0x002a */
/* JADX WARN: Removed duplicated region for block: B:17:0x004f A[RETURN] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final java.lang.String k(java.lang.String r6) {
/*
r5 = this;
r0 = 2
int r1 = r0 % r0
r1 = r6
java.lang.CharSequence r1 = (java.lang.CharSequence) r1
r2 = 1
if (r1 == 0) goto L24
int r3 = o.DN.a
int r3 = r3 + 105
int r4 = r3 % 128
o.DN.j = r4
int r3 = r3 % r0
if (r3 == 0) goto L1c
boolean r1 = o.gdZ.d(r1)
if (r1 != 0) goto L24
r1 = 0
goto L25
L1c:
o.gdZ.d(r1)
r6 = 0
r6.hashCode()
throw r6
L24:
r1 = r2
L25:
r1 = r1 ^ r2
java.lang.String r2 = ""
if (r1 == 0) goto L4f
o.azC r1 = r5.b
boolean r1 = r1.j()
if (r1 == 0) goto L45
java.lang.String r1 = r5.baseAzureURL
java.lang.String r6 = o.C6583cXR.e(r6, r1)
o.C14957gcv.c(r6, r2)
int r1 = o.DN.a
int r1 = r1 + 101
int r2 = r1 % 128
o.DN.j = r2
int r1 = r1 % r0
goto L4e
L45:
java.lang.String r0 = "v1/staticcontents/"
java.lang.String r6 = o.C6583cXR.e(r6, r0)
o.C14957gcv.c(r6, r2)
L4e:
return r6
L4f:
return r2
*/
throw new UnsupportedOperationException("Method not decompiled: o.DN.k(java.lang.String):java.lang.String");
}
/* loaded from: classes3.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
public final List<XB> c(List<? extends C17165uSq> list, List<hAo> list2) {
int i = 2 % 2;
C14957gcv.e(list2, "");
if (list == null) {
C14851gaI c14851gaI = C14851gaI.c;
int i2 = a + 53;
j = i2 % 128;
int i3 = i2 % 2;
return c14851gaI;
}
List<? extends C17165uSq> list3 = list;
C14957gcv.e(list3, "");
ArrayList arrayList = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
Iterator<T> it = list3.iterator();
while (!(!it.hasNext())) {
int i4 = j + 1;
a = i4 % 128;
int i5 = i4 % 2;
arrayList.add(a((C17165uSq) it.next(), list2));
}
return arrayList;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object b(Object[] objArr) {
C14851gaI c14851gaI;
int i;
DN dn = (DN) objArr[0];
List list = (List) objArr[1];
int i2 = 2 % 2;
if (list != null) {
List<Zqy> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (Zqy zqy : list2) {
String str = null;
String b_ = dn.b_(zqy != null ? zqy.a : null);
if (zqy != null) {
int i3 = j + 5;
a = i3 % 128;
if (i3 % 2 != 0) {
str = zqy.c;
int i4 = 17 / 0;
} else {
str = zqy.c;
}
}
arrayList.add(new XE(b_, str));
}
c14851gaI = arrayList;
i = j + 29;
} else {
c14851gaI = C14851gaI.c;
i = j + 31;
}
a = i % 128;
int i5 = i % 2;
return c14851gaI;
}
static void j() {
d = new int[]{1316663970, -777817094, -1440426465, -644572235, 659689679, -1063248871, -260285008, 2071773339, 236943253, 1938694596, -1434937579, -1441906655, -602727146, 1679957493, 1337502452, 1978355975, -1763284320, 376932639};
}
private final List<XE> a(List<Zqy> list) {
System.identityHashCode(this);
return (List) b(new Object[]{this, list});
}
static {
a = 0;
j();
new LWm((byte) 0);
int i = j + 39;
a = i % 128;
int i2 = i % 2;
}
}