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

584 lines
21 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Color;
import android.media.AudioTrack;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
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.List;
import net.sf.scuba.smartcards.ISO7816;
import o.C15715hv;
import o.PRA;
/* renamed from: o.Dm, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0297Dm extends BaseAssetsDisplayMapper {
private final DO a;
private final DP b;
private final DK d;
private static final byte[] $$d = {85, 123, 51, ISO7816.INS_READ_RECORD2};
private static final int $$e = 39;
private static int $10 = 0;
private static int $11 = 1;
private static int h = 0;
private static int f = 1;
private static char[] g = {49026};
private static char j = 35368;
public static /* synthetic */ Object b(Object[] objArr, int i, int i2, int i3) {
int i4 = (i * (-1335)) + (i2 * (-667));
int i5 = ~i2;
int i6 = i | i3;
return ((i4 + (((~i6) | i5) * (-668))) + ((i | (~(i3 | i5))) * 1336)) + ((i6 | i5) * 668) != 1 ? a(objArr) : b(objArr);
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0023 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001b */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0023 -> 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, int r7, int r8, java.lang.Object[] r9) {
/*
byte[] r0 = o.C0297Dm.$$d
int r7 = r7 * 2
int r7 = r7 + 4
int r8 = r8 * 2
int r1 = r8 + 1
int r6 = r6 + 117
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L15
r3 = r7
r7 = r8
r4 = r2
goto L2c
L15:
r3 = r2
L16:
byte r4 = (byte) r6
r1[r3] = r4
if (r3 != r8) goto L23
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L23:
r4 = r0[r7]
int r3 = r3 + 1
r5 = r7
r7 = r6
r6 = r4
r4 = r3
r3 = r5
L2c:
int r6 = -r6
int r6 = r6 + r7
int r7 = r3 + 1
r3 = r4
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: o.C0297Dm.q(byte, int, int, java.lang.Object[]):void");
}
@InterfaceC13391fZD
public C0297Dm(Resources resources, SharedPreferences sharedPreferences, DO r3, DP dp, DK dk, String str) {
super(resources, sharedPreferences, str);
this.a = r3;
this.b = dp;
this.d = dk;
}
private static /* synthetic */ Object a(Object[] objArr) {
String c;
C0297Dm c0297Dm = (C0297Dm) objArr[0];
C1193Xr c1193Xr = (C1193Xr) objArr[1];
int i = 2 % 2;
int i2 = h + 57;
f = i2 % 128;
int i3 = i2 % 2;
if (!TextUtils.isEmpty(c1193Xr.f8453o)) {
c1193Xr.i = c1193Xr.h;
return c1193Xr;
}
int i4 = f + 75;
h = i4 % 128;
if (i4 % 2 != 0) {
int i5 = C15715hv.tOB.biller_ac;
Object[] objArr2 = new Object[0];
objArr2[1] = c1193Xr.g;
c = c0297Dm.c(i5, objArr2);
} else {
c = c0297Dm.c(C15715hv.tOB.biller_ac, c1193Xr.g);
}
c1193Xr.i = c;
return c1193Xr;
}
private /* synthetic */ C1193Xr b(String str, mKA mka) {
int i = 2 % 2;
int i2 = h + 109;
f = i2 % 128;
int i3 = i2 % 2;
C1193Xr d = d(mka, str);
int i4 = h + 93;
f = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 86 / 0;
}
return d;
}
public final List<C1193Xr> c(List<mKA> list, final String str) {
int i = 2 % 2;
YKU yku = new YKU(list);
YKU yku2 = new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this, str) { // from class: o.Ds
private String a;
private C0297Dm c;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return C0297Dm.c(this.c, this.a, (mKA) obj);
}
{
this.c = this;
this.a = str;
}
}));
YKU yku3 = new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw(this) { // from class: o.Dr
private C0297Dm b;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
C0297Dm c0297Dm = this.b;
return (C1193Xr) C0297Dm.b(new Object[]{c0297Dm, (C1193Xr) obj}, -1306424839, 1306424839, System.identityHashCode(c0297Dm));
}
{
this.b = this;
}
}));
List<C1193Xr> list2 = (List) new YKU(yku3.a, new C17745zRk(yku3.b, xNZ.a(new InterfaceC1244Ytw() { // from class: o.Dp
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return ((C1193Xr) obj).W;
}
}))).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
int i2 = h + 13;
f = i2 % 128;
int i3 = i2 % 2;
return list2;
}
public static List<C1193Xr> c(List<C1193Xr> list) {
int i = 2 % 2;
YKU yku = new YKU(list);
List<C1193Xr> list2 = (List) new YKU(yku.a, new GEP(yku.b, new Jel() { // from class: o.Dq
@Override // o.Jel
public final boolean e(Object obj) {
return ((C1193Xr) obj).y;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
int i2 = h + 119;
f = i2 % 128;
int i3 = i2 % 2;
return list2;
}
private static /* synthetic */ boolean c(C1019Twi c1019Twi, mKA mka) {
int i = 2 % 2;
int i2 = f + 3;
h = i2 % 128;
if (i2 % 2 == 0) {
return a(c1019Twi, mka);
}
a(c1019Twi, mka);
Object obj = null;
obj.hashCode();
throw null;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:24:0x0096 */
/* JADX WARN: Removed duplicated region for block: B:59:0x0152 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final o.C1193Xr b(java.util.List<o.mKA> r11, final o.C1019Twi r12, java.lang.String r13) {
/*
Method dump skipped, instructions count: 351
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C0297Dm.b(java.util.List, o.Twi, java.lang.String):o.Xr");
}
private static List<XL> b(Jky jky) {
int i = 2 % 2;
ArrayList arrayList = new ArrayList();
if (jky != null) {
int i2 = h + 59;
f = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
if (jky.e != null && !jky.e.isEmpty()) {
int i3 = f + 87;
h = i3 % 128;
if (i3 % 2 == 0) {
for (jSX jsx : jky.e) {
arrayList.add(new XL(jsx.f, jsx.i, jsx.d, jsx.c, jsx.e, jsx.b, jsx.a));
}
} else {
jky.e.iterator();
obj.hashCode();
throw null;
}
}
} else {
List<jSX> list = jky.e;
throw null;
}
}
return arrayList;
}
private static boolean a(C1019Twi c1019Twi, mKA mka) {
int i = 2 % 2;
boolean z = true;
if (!((Boolean) b(new Object[]{c1019Twi, mka}, -639268361, 639268362, (int) System.currentTimeMillis())).booleanValue()) {
int i2 = h + 93;
f = i2 % 128;
if (i2 % 2 == 0) {
b(c1019Twi, mka);
Object obj = null;
obj.hashCode();
throw null;
}
if ((!b(c1019Twi, mka)) && !c(c1019Twi)) {
int i3 = f + 73;
h = i3 % 128;
int i4 = i3 % 2;
if (!mka.a.equals(c1019Twi.x)) {
int i5 = h + 7;
f = i5 % 128;
int i6 = i5 % 2;
z = false;
}
}
}
int i7 = h + 87;
f = i7 % 128;
int i8 = i7 % 2;
return z;
}
private static boolean b(C1019Twi c1019Twi, mKA mka) {
int i = 2 % 2;
int i2 = f + 101;
h = i2 % 128;
int i3 = i2 % 2;
if (c1019Twi.y != null) {
int i4 = h + 41;
f = i4 % 128;
if (i4 % 2 == 0) {
mka.a.equals(c1019Twi.y.c);
throw null;
}
if (mka.a.equals(c1019Twi.y.c)) {
int i5 = h + 13;
f = i5 % 128;
int i6 = i5 % 2;
return true;
}
}
return false;
}
private static /* synthetic */ Object b(Object[] objArr) {
boolean z = false;
C1019Twi c1019Twi = (C1019Twi) objArr[0];
mKA mka = (mKA) objArr[1];
int i = 2 % 2;
int i2 = h + 23;
f = i2 % 128;
if (i2 % 2 != 0) {
if (c1019Twi.p != null && mka.m.equals(c1019Twi.p.c)) {
int i3 = h + 19;
f = i3 % 128;
int i4 = i3 % 2;
z = true;
}
return Boolean.valueOf(z);
}
GCM gcm = c1019Twi.p;
Object obj = null;
obj.hashCode();
throw null;
}
private static boolean c(C1019Twi c1019Twi) {
int i = 2 % 2;
int i2 = h + 23;
f = i2 % 128;
int i3 = i2 % 2;
if (c1019Twi.m == null) {
return false;
}
int i4 = f + 11;
h = i4 % 128;
int i5 = i4 % 2;
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.Dm$3, reason: invalid class name */
/* loaded from: classes3.dex */
public static /* synthetic */ class AnonymousClass3 {
static final int[] d;
static {
int[] iArr = new int[paz.values().length];
d = iArr;
try {
iArr[paz.NORMALL_BILLER.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
d[paz.ONUS_BILLER.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
d[paz.OFFUS_BILLER.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
/* JADX WARN: Code restructure failed: missing block: B:53:0x017b, code lost:
if (android.text.TextUtils.isEmpty(r22.a) == false) goto L84;
*/
/* JADX WARN: Code restructure failed: missing block: B:54:0x0186, code lost:
r0 = c(o.C15715hv.tOB.biller_ac, i(r22.a));
*/
/* JADX WARN: Code restructure failed: missing block: B:56:0x0184, code lost:
if (android.text.TextUtils.isEmpty(r22.a) != true) goto L84;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final o.C1193Xr d(o.mKA r22, java.lang.String r23) {
/*
Method dump skipped, instructions count: 621
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C0297Dm.d(o.mKA, java.lang.String):o.Xr");
}
private static void n(int i, char[] cArr, byte b, Object[] objArr) {
int i2;
char c;
int i3 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = g;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
for (int i4 = 0; i4 < length; i4++) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i4])};
Object obj = xzZ.y.get(-1987398494);
if (obj == null) {
Class cls = (Class) xzZ.c(299 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 4 - Process.getGidForName(""), (char) ((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) - 1));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
q(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj);
}
cArr3[i4] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
try {
Object[] objArr4 = {Integer.valueOf(j)};
Object obj2 = xzZ.y.get(-1987398494);
char c2 = 6;
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(298 - (ViewConfiguration.getFadingEdgeLength() >> 16), MotionEvent.axisFromString("") + 6, (char) (ViewConfiguration.getTapTimeout() >> 16));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
q(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj2);
}
char charValue = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
int i5 = $11 + 99;
$10 = i5 % 128;
if (i5 % 2 != 0) {
i2 = i + 113;
cArr4[i2] = (char) (cArr[i2] >>> b);
} else {
i2 = i - 1;
cArr4[i2] = (char) (cArr[i2] - b);
}
} else {
i2 = i;
}
if (i2 > 1) {
int i6 = $11 + 97;
$10 = i6 % 128;
int i7 = i6 % 2;
irs.e = 0;
while (irs.e < i2) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
cArr4[irs.e] = (char) (irs.b - b);
cArr4[irs.e + 1] = (char) (irs.c - b);
c = c2;
} else {
Object[] objArr6 = new Object[13];
objArr6[12] = irs;
objArr6[11] = Integer.valueOf(charValue);
objArr6[10] = irs;
objArr6[9] = irs;
objArr6[8] = Integer.valueOf(charValue);
objArr6[7] = irs;
objArr6[c2] = irs;
objArr6[5] = Integer.valueOf(charValue);
objArr6[4] = irs;
objArr6[3] = irs;
objArr6[2] = Integer.valueOf(charValue);
objArr6[1] = irs;
objArr6[0] = irs;
Object obj3 = xzZ.y.get(822107368);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(233 - Color.green(0), 4 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (char) (22024 - TextUtils.getTrimmedLength("")));
byte b6 = (byte) ($$e & 11);
byte b7 = (byte) (b6 - 3);
Object[] objArr7 = new Object[1];
q(b6, b7, b7, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj3);
}
if (((Integer) ((Method) obj3).invoke(null, objArr6)).intValue() == irs.j) {
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj4 = xzZ.y.get(-1152873385);
if (obj4 != null) {
c = 6;
} else {
Class cls4 = (Class) xzZ.c(327 - View.MeasureSpec.getMode(0), ((Process.getThreadPriority(0) + 20) >> 6) + 5, (char) ((-16777216) - Color.rgb(0, 0, 0)));
byte b8 = (byte) ($$e & 1);
byte b9 = (byte) (b8 - 1);
Object[] objArr9 = new Object[1];
q(b8, b9, b9, objArr9);
c = 6;
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr8)).intValue();
int i8 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i8];
} else {
c = 6;
if (irs.a == irs.d) {
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i9 = (irs.a * charValue) + irs.f;
int i10 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i9];
cArr4[irs.e + 1] = cArr2[i10];
} else {
int i11 = (irs.a * charValue) + irs.j;
int i12 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i11];
cArr4[irs.e + 1] = cArr2[i12];
}
}
}
irs.e += 2;
c2 = c;
}
}
int i13 = 0;
while (i13 < i) {
int i14 = $11 + 23;
$10 = i14 % 128;
if (i14 % 2 != 0) {
cArr4[i13] = (char) (cArr4[i13] ^ 7515);
i13 += 110;
} else {
cArr4[i13] = (char) (cArr4[i13] ^ 13722);
i13++;
}
}
objArr[0] = new String(cArr4);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
public final C1193Xr c(C1193Xr c1193Xr) {
return (C1193Xr) b(new Object[]{this, c1193Xr}, -1306424839, 1306424839, System.identityHashCode(this));
}
private static boolean d(C1019Twi c1019Twi, mKA mka) {
return ((Boolean) b(new Object[]{c1019Twi, mka}, -639268361, 639268362, (int) System.currentTimeMillis())).booleanValue();
}
public static /* synthetic */ boolean b(C0297Dm c0297Dm, C1019Twi c1019Twi, mKA mka) {
int i = 2 % 2;
int i2 = f + 105;
h = i2 % 128;
if (i2 % 2 == 0) {
return c(c1019Twi, mka);
}
c(c1019Twi, mka);
throw null;
}
public static /* synthetic */ C1193Xr c(C0297Dm c0297Dm, String str, mKA mka) {
int i = 2 % 2;
int i2 = f + 23;
h = i2 % 128;
if (i2 % 2 == 0) {
return c0297Dm.b(str, mka);
}
c0297Dm.b(str, mka);
Object obj = null;
obj.hashCode();
throw null;
}
}