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

481 lines
17 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.media.AudioTrack;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.View;
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 o.C15715hv;
import org.bouncycastle.crypto.tls.CipherSuite;
/* renamed from: o.zn, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17795zn extends BaseAssetsDisplayMapper {
private static char[] a;
private static int d;
private static final byte[] $$d = {29, 33, 79, 109};
private static final int $$e = 202;
private static int $10 = 0;
private static int $11 = 1;
private static int b = 0;
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002b). 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 r5, int r6, byte r7, java.lang.Object[] r8) {
/*
int r7 = r7 * 3
int r0 = 1 - r7
int r5 = r5 * 2
int r5 = 73 - r5
byte[] r1 = o.C17795zn.$$d
int r6 = r6 + 4
byte[] r0 = new byte[r0]
r2 = 0
int r7 = 0 - r7
if (r1 != 0) goto L17
r4 = r5
r5 = r7
r3 = r2
goto L2b
L17:
r3 = r2
L18:
int r6 = r6 + 1
byte r4 = (byte) r5
r0[r3] = r4
if (r3 != r7) goto L27
java.lang.String r5 = new java.lang.String
r5.<init>(r0, r2)
r8[r2] = r5
return
L27:
int r3 = r3 + 1
r4 = r1[r6]
L2b:
int r5 = r5 + r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.C17795zn.q(byte, int, byte, java.lang.Object[]):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C17795zn(Resources resources, SharedPreferences sharedPreferences, String str) {
super(resources, sharedPreferences, str);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
C14957gcv.e(str, "");
}
/* renamed from: o.zn$Sts */
/* loaded from: classes3.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
public final TW b(C6410cS c6410cS, eWY ewy, String str, String str2, String str3, C1203Xy c1203Xy, C1193Xr c1193Xr) {
int i = 2 % 2;
C14957gcv.e(c6410cS, "");
C14957gcv.e(ewy, "");
C14957gcv.e(c1203Xy, "");
C14957gcv.e(c1193Xr, "");
String str4 = ewy.D;
String str5 = ewy.t;
String str6 = c6410cS.f;
String str7 = c6410cS.j;
String str8 = c6410cS.e;
String str9 = c6410cS.d;
String str10 = ewy.n;
String str11 = c1203Xy.a;
String b_ = b_(c1193Xr.c());
String m = m(c6410cS.g);
String m2 = m(c6410cS.i);
String m3 = m(c6410cS.c);
String m4 = m(c6410cS.a);
String str12 = ewy.r;
String str13 = c6410cS.b;
TO to = new TO(b(ewy.k));
String str14 = c6410cS.h;
String str15 = c1193Xr.F;
String str16 = c1193Xr.M;
String str17 = c1193Xr.L;
C14957gcv.c((Object) str4, "");
C14957gcv.c((Object) str5, "");
C14957gcv.c((Object) str10, "");
C14957gcv.c((Object) str11, "");
C14957gcv.c((Object) str12, "");
TW tw = new TW(str4, str6, str5, str7, str8, str9, str10, b_, str11, m, m2, m3, m4, str12, str13, to, str14, str15, str, str16, str2, str17, str3);
int i2 = b + 73;
d = i2 % 128;
if (i2 % 2 != 0) {
return tw;
}
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0025, code lost:
if (o.gdZ.a("012", r4, true) == false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x001a, code lost:
if (o.gdZ.a("012", r4, false) == false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0027, code lost:
r5 = r6;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static java.lang.String c(java.lang.String r4, java.lang.String r5, java.lang.String r6) {
/*
r0 = 2
int r1 = r0 % r0
int r1 = o.C17795zn.b
int r1 = r1 + 39
int r2 = r1 % 128
o.C17795zn.d = r2
int r1 = r1 % r0
java.lang.String r2 = "012"
java.lang.String r3 = ""
if (r1 != 0) goto L1d
o.C14957gcv.e(r4, r3)
r1 = 0
boolean r4 = o.gdZ.a(r2, r4, r1)
if (r4 != 0) goto L28
goto L27
L1d:
o.C14957gcv.e(r4, r3)
r1 = 1
boolean r4 = o.gdZ.a(r2, r4, r1)
if (r4 != 0) goto L28
L27:
r5 = r6
L28:
int r4 = o.C17795zn.d
int r4 = r4 + 125
int r6 = r4 % 128
o.C17795zn.b = r6
int r4 = r4 % r0
return r5
*/
throw new UnsupportedOperationException("Method not decompiled: o.C17795zn.c(java.lang.String, java.lang.String, java.lang.String):java.lang.String");
}
private static String m(String str) {
int i = 2 % 2;
int i2 = d + 73;
int i3 = i2 % 128;
b = i3;
int i4 = i2 % 2;
if (str != null) {
int i5 = i3 + 11;
d = i5 % 128;
if (i5 % 2 == 0) {
gdZ.a(str, ",", "");
Object obj = null;
obj.hashCode();
throw null;
}
String a2 = gdZ.a(str, ",", "");
if (a2 != null) {
return a2;
}
}
Object[] objArr = new Object[1];
n(new byte[]{0}, new int[]{0, 1, CipherSuite.TLS_DHE_PSK_WITH_AES_128_GCM_SHA256, 0}, false, objArr);
return ((String) objArr[0]).intern();
}
private static List<XL> b(Jky jky) {
int i = 2 % 2;
ArrayList arrayList = new ArrayList();
C14851gaI c14851gaI = null;
if (jky != null) {
int i2 = d + 7;
b = i2 % 128;
int i3 = i2 % 2;
List<jSX> list = jky.e;
if (list != null) {
ArrayList arrayList2 = new ArrayList();
for (jSX jsx : list) {
int i4 = d + 29;
b = i4 % 128;
int i5 = i4 % 2;
XL xl = jsx != null ? new XL(jsx.f, jsx.i, jsx.d, jsx.c, jsx.e, jsx.b) : null;
if (xl != null) {
arrayList2.add(xl);
}
}
c14851gaI = C14881gav.d((Iterable) arrayList2);
}
}
if (c14851gaI == null) {
c14851gaI = C14851gaI.c;
}
arrayList.addAll(c14851gaI);
return arrayList;
}
private final List<XL> d(List<XL> list, boolean z) {
int i = 2 % 2;
ArrayList arrayList = new ArrayList();
if (z) {
arrayList.add(new XL("TEXT", e(C15715hv.tOB.point_x_partner_payment_remark), null, e(C15715hv.tOB.point_x_partner_payment_bill_payment_remark_message), null, null, null));
int i2 = b + 95;
d = i2 % 128;
int i3 = i2 % 2;
}
List<XL> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (XL xl : list2) {
arrayList2.add(new XL(xl.f, xl.g, xl.d, xl.b, xl.a, xl.i));
int i4 = b + 31;
d = i4 % 128;
int i5 = i4 % 2;
}
arrayList.addAll(C14881gav.d((Iterable) arrayList2));
return arrayList;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object a(Object[] objArr) {
C17640yZm c17640yZm = (C17640yZm) objArr[0];
int i = 2 % 2;
XL xl = new XL(c17640yZm.i, c17640yZm.d, c17640yZm.a, c17640yZm.e, c17640yZm.b, c17640yZm.c);
int i2 = d + 87;
b = i2 % 128;
if (i2 % 2 == 0) {
return xl;
}
throw null;
}
public final TW e(TW tw, List<XL> list, boolean z) {
int i = 2 % 2;
C14957gcv.e(tw, "");
C14957gcv.e(list, "");
tw.e = new TO(d(list, z));
int i2 = d + 49;
b = i2 % 128;
int i3 = i2 % 2;
return tw;
}
public static List<XL> e(List<C17640yZm> list) {
int i;
int i2 = 2 % 2;
C14957gcv.e(list, "");
List<C17640yZm> list2 = list;
C14957gcv.e(list2, "");
if (list2 instanceof Collection) {
i = list2.size();
int i3 = b + 63;
d = i3 % 128;
int i4 = i3 % 2;
} else {
i = 10;
}
ArrayList arrayList = new ArrayList(i);
Iterator<T> it = list2.iterator();
while (it.hasNext()) {
int i5 = b + 3;
d = i5 % 128;
int i6 = i5 % 2;
Object[] objArr = {(C17640yZm) it.next()};
arrayList.add((XL) a(objArr));
int i7 = d + 37;
b = i7 % 128;
int i8 = i7 % 2;
}
return arrayList;
}
private static void n(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
int i;
char[] cArr;
int i2 = 2 % 2;
TVH tvh = new TVH();
int i3 = 0;
int i4 = iArr[0];
int i5 = 1;
int i6 = iArr[1];
int i7 = iArr[2];
int i8 = iArr[3];
char[] cArr2 = a;
long j = 0;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i9 = 0;
while (i9 < length) {
try {
Object[] objArr2 = new Object[i5];
objArr2[i3] = Integer.valueOf(cArr2[i9]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
cArr = cArr2;
} else {
Class cls = (Class) xzZ.c(224 - (SystemClock.uptimeMillis() > j ? 1 : (SystemClock.uptimeMillis() == j ? 0 : -1)), 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) (TextUtils.getCapsMode("", i3, i3) + 41977));
byte b2 = (byte) 1;
byte b3 = (byte) (-b2);
cArr = cArr2;
Object[] objArr3 = new Object[1];
q(b2, b3, (byte) (b3 + 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr3[i9] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i9++;
cArr2 = cArr;
i3 = 0;
i5 = 1;
j = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
char[] cArr4 = new char[i6];
System.arraycopy(cArr2, i4, cArr4, 0, i6);
if (bArr != null) {
int i10 = $11 + 61;
$10 = i10 % 128;
int i11 = i10 % 2;
char[] cArr5 = new char[i6];
tvh.c = 0;
char c = 0;
while (tvh.c < i6) {
if (bArr[tvh.c] == 1) {
int i12 = $11 + 79;
$10 = i12 % 128;
if (i12 % 2 != 0) {
int i13 = tvh.c;
Object[] objArr4 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(850398076);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(502 - ExpandableListView.getPackedPositionGroup(0L), (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 6, (char) (54 - (ViewConfiguration.getLongPressTimeout() >> 16)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
Object obj3 = null;
cArr5[i13] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
obj3.hashCode();
throw null;
}
int i14 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c)};
Object obj4 = xzZ.y.get(850398076);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(502 - Gravity.getAbsoluteGravity(0, 0), 4 - TextUtils.indexOf((CharSequence) "", '0', 0), (char) (54 - Color.red(0)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj4);
}
cArr5[i14] = ((Character) ((Method) obj4).invoke(null, objArr5)).charValue();
} else {
int i15 = tvh.c;
Object[] objArr6 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c)};
Object obj5 = xzZ.y.get(1084521042);
if (obj5 == null) {
obj5 = ((Class) xzZ.c(16 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 5 - TextUtils.indexOf("", ""), (char) (View.resolveSize(0, 0) + 58134))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj5);
}
cArr5[i15] = ((Character) ((Method) obj5).invoke(null, objArr6)).charValue();
}
c = cArr5[tvh.c];
Object[] objArr7 = {tvh, tvh};
Object obj6 = xzZ.y.get(1698744941);
if (obj6 == null) {
Class cls2 = (Class) xzZ.c(402 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 5 - Color.alpha(0), (char) (21608 - ExpandableListView.getPackedPositionGroup(0L)));
byte b4 = (byte) 0;
byte b5 = (byte) (b4 - 1);
Object[] objArr8 = new Object[1];
q(b4, b5, (byte) (b5 + 1), objArr8);
obj6 = cls2.getMethod((String) objArr8[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj6);
}
((Method) obj6).invoke(null, objArr7);
}
cArr4 = cArr5;
}
if (i8 > 0) {
char[] cArr6 = new char[i6];
i = 0;
System.arraycopy(cArr4, 0, cArr6, 0, i6);
int i16 = i6 - i8;
System.arraycopy(cArr6, 0, cArr4, i16, i8);
System.arraycopy(cArr6, i8, cArr4, 0, i16);
} else {
i = 0;
}
if (!(!z)) {
char[] cArr7 = new char[i6];
while (true) {
tvh.c = i;
if (tvh.c >= i6) {
break;
}
cArr7[tvh.c] = cArr4[(i6 - tvh.c) - 1];
i = tvh.c + 1;
}
cArr4 = cArr7;
}
if (i7 > 0) {
tvh.c = 0;
while (tvh.c < i6) {
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
tvh.c++;
int i17 = $10 + 63;
$11 = i17 % 128;
int i18 = i17 % 2;
}
}
objArr[0] = new String(cArr4);
}
static void j() {
a = new char[]{40038};
}
private static XL d(C17640yZm c17640yZm) {
return (XL) a(new Object[]{c17640yZm});
}
static {
d = 1;
j();
new Sts((byte) 0);
int i = b + 27;
d = i % 128;
int i2 = i % 2;
}
}