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

561 lines
20 KiB
Java

package o;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import org.threeten.bp.OffsetDateTime;
/* loaded from: classes3.dex */
public final class gaJ extends PDU {
private static int[] b;
private static int c;
private static final byte[] $$g = {85, -17, 4, -90};
private static final int $$h = 125;
private static int $10 = 0;
private static int $11 = 1;
private static int e = 1;
/* JADX WARN: Removed duplicated region for block: B:10:0x002a */
/* JADX WARN: Removed duplicated region for block: B:7:0x0022 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002a -> 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 i(int r7, int r8, short r9, java.lang.Object[] r10) {
/*
int r9 = r9 + 4
int r7 = r7 * 3
int r7 = r7 + 1
byte[] r0 = o.gaJ.$$g
int r8 = r8 * 2
int r8 = r8 + 102
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L15
r3 = r7
r8 = r9
r5 = r2
goto L2c
L15:
r3 = r2
r6 = r9
r9 = r8
r8 = r6
L19:
byte r4 = (byte) r9
int r5 = r3 + 1
r1[r3] = r4
int r8 = r8 + 1
if (r5 != r7) goto L2a
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L2a:
r3 = r0[r8]
L2c:
int r9 = r9 + r3
r3 = r5
goto L19
*/
throw new UnsupportedOperationException("Method not decompiled: o.gaJ.i(int, int, short, java.lang.Object[]):void");
}
@InterfaceC13391fZD
public gaJ() {
}
/* loaded from: classes3.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
public static muE c(C7133ciY c7133ciY) {
ArrayList arrayList;
String str;
RGZ rgz;
String str2;
xVK xvk;
List a;
int i = 2 % 2;
C14957gcv.e(c7133ciY, "");
e(new Object[]{c7133ciY});
String str3 = c7133ciY.c;
String str4 = c7133ciY.a;
Integer num = c7133ciY.f;
String str5 = c7133ciY.e;
String str6 = c7133ciY.d;
String str7 = c7133ciY.n;
String str8 = c7133ciY.i;
List<zkx> list = c7133ciY.h;
Object obj = null;
if (list == null || (a = C14881gav.a((Iterable) list, (Comparator) new IeS())) == null) {
arrayList = null;
} else {
List list2 = a;
C14957gcv.e(list2, "");
ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator it = list2.iterator();
while (it.hasNext()) {
int i2 = c + 113;
e = i2 % 128;
if (i2 % 2 == 0) {
arrayList2.add(b((zkx) it.next()));
int i3 = 4 / 0;
} else {
arrayList2.add(b((zkx) it.next()));
}
int i4 = c + 25;
e = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 3 % 4;
}
}
arrayList = arrayList2;
}
C1832aPl c1832aPl = c7133ciY.l;
if (c1832aPl != null) {
int i6 = e + 59;
c = i6 % 128;
if (i6 % 2 != 0) {
String str9 = c1832aPl.c;
throw null;
}
str = c1832aPl.c;
} else {
str = null;
}
Object[] objArr = new Object[1];
h(new int[]{-1885087323, -1851821103}, (ViewConfiguration.getTapTimeout() >> 16) + 1, objArr);
boolean b2 = C14957gcv.b((Object) str, (Object) ((String) objArr[0]).intern());
C1832aPl c1832aPl2 = c7133ciY.l;
String str10 = (c1832aPl2 == null || (xvk = c1832aPl2.b) == null) ? null : xvk.e;
C1832aPl c1832aPl3 = c7133ciY.l;
String str11 = c1832aPl3 != null ? c1832aPl3.a : null;
C1832aPl c1832aPl4 = c7133ciY.l;
xzK xzk = new xzK(b2, str10, str11, (c1832aPl4 == null || (str2 = c1832aPl4.d) == null) ? null : ZTC.b(str2, (OffsetDateTime) null));
String str12 = c7133ciY.b;
Puu puu = c7133ciY.f8646o;
if (puu != null) {
int i7 = e + 119;
c = i7 % 128;
if (i7 % 2 != 0) {
c(puu);
obj.hashCode();
throw null;
}
rgz = c(puu);
} else {
rgz = null;
}
fGZ fgz = c7133ciY.g;
return new muE(str3, str4, num, str5, str6, str7, str8, arrayList, xzk, str12, rgz, fgz != null ? e(fgz) : null, c7133ciY.j);
}
private static ENH b(zkx zkxVar) {
Wcm wcm;
int i = 2 % 2;
String str = zkxVar.i;
String str2 = zkxVar.h;
String str3 = zkxVar.j;
String str4 = zkxVar.n;
String str5 = zkxVar.b;
String str6 = zkxVar.c;
BBP d = d(zkxVar.f);
String str7 = zkxVar.l;
gEj gej = zkxVar.d;
ArrayList arrayList = null;
Wcm d2 = gej != null ? d(gej) : null;
gEj gej2 = zkxVar.a;
if (gej2 != null) {
int i2 = e + 17;
c = i2 % 128;
int i3 = i2 % 2;
wcm = d(gej2);
} else {
wcm = null;
}
String str8 = zkxVar.t;
String str9 = zkxVar.k;
List<WZR> list = zkxVar.f9337o;
if (list != null) {
List<WZR> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator it = list2.iterator();
while (it.hasNext()) {
arrayList2.add(a((WZR) it.next()));
int i4 = c + 87;
Iterator it2 = it;
e = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 3 % 2;
}
it = it2;
}
arrayList = arrayList2;
}
return new ENH(str, str2, str3, str4, str5, str6, d, str7, d2, wcm, str8, str9, arrayList, zkxVar.g, zkxVar.m, zkxVar.q, zkxVar.e);
}
private static Wcm d(gEj gej) {
int i = 2 % 2;
Wcm wcm = new Wcm(gej.b, gej.d);
int i2 = e + 91;
c = i2 % 128;
if (i2 % 2 == 0) {
return wcm;
}
Object obj = null;
obj.hashCode();
throw null;
}
private static BBP d(HOD hod) {
int i = 2 % 2;
BBP bbp = new BBP(hod.a, hod.b);
int i2 = c + 31;
e = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 71 / 0;
}
return bbp;
}
private static RGZ c(Puu puu) {
int i = 2 % 2;
String str = puu.e;
String str2 = puu.h;
String str3 = puu.b;
String str4 = puu.a;
String str5 = puu.d;
String str6 = puu.c;
String str7 = puu.j;
Object[] objArr = new Object[1];
h(new int[]{-1885087323, -1851821103}, 1 - View.MeasureSpec.makeMeasureSpec(0, 0), objArr);
RGZ rgz = new RGZ(str, str2, str3, str4, str5, str6, C14957gcv.b((Object) str7, (Object) ((String) objArr[0]).intern()));
int i2 = c + 43;
e = i2 % 128;
if (i2 % 2 != 0) {
return rgz;
}
Object obj = null;
obj.hashCode();
throw null;
}
private static RLk e(fGZ fgz) {
int i = 2 % 2;
RLk rLk = new RLk(fgz.d, fgz.a);
int i2 = e + 49;
c = i2 % 128;
if (i2 % 2 == 0) {
return rLk;
}
Object obj = null;
obj.hashCode();
throw null;
}
/* loaded from: classes3.dex */
public static final class IeS<T> implements Comparator {
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t, T t2) {
String str = ((zkx) t).m;
String str2 = ((zkx) t2).m;
if (str == str2) {
return 0;
}
if (str == null) {
return -1;
}
if (str2 == null) {
return 1;
}
return str.compareTo(str2);
}
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Code restructure failed: missing block: B:18:0x005c, code lost:
if (r6.g.a != null) goto L28;
*/
/* JADX WARN: Code restructure failed: missing block: B:20:0x0063, code lost:
if (r6.g.a != null) goto L28;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0028, code lost:
if ((!o.C14957gcv.b((java.lang.Object) r6.a, (java.lang.Object) "PENDING_LEADS_RESUBMIT")) != false) goto L28;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static /* synthetic */ java.lang.Object e(java.lang.Object[] r6) {
/*
r0 = 0
r6 = r6[r0]
o.ciY r6 = (o.C7133ciY) r6
r1 = 2
int r2 = r1 % r1
java.lang.String r2 = r6.a
java.lang.String r3 = "PENDING_OCR_RESUBMIT"
boolean r2 = o.C14957gcv.b(r2, r3)
r3 = 1
r2 = r2 ^ r3
r4 = 0
if (r2 == r3) goto L16
goto L2b
L16:
int r2 = o.gaJ.e
int r2 = r2 + 31
int r5 = r2 % 128
o.gaJ.c = r5
int r2 = r2 % r1
java.lang.String r2 = r6.a
java.lang.String r5 = "PENDING_LEADS_RESUBMIT"
boolean r2 = o.C14957gcv.b(r2, r5)
r2 = r2 ^ r3
if (r2 == 0) goto L2b
goto L76
L2b:
java.lang.Boolean r2 = r6.j
if (r2 == 0) goto L77
int r2 = o.gaJ.e
int r2 = r2 + 115
int r3 = r2 % 128
o.gaJ.c = r3
int r2 = r2 % r1
java.lang.Boolean r2 = r6.j
boolean r2 = r2.booleanValue()
if (r2 == 0) goto L76
o.fGZ r2 = r6.g
if (r2 == 0) goto L6e
o.fGZ r2 = r6.g
java.lang.String r2 = r2.d
if (r2 == 0) goto L66
int r2 = o.gaJ.c
int r2 = r2 + 123
int r3 = r2 % 128
o.gaJ.e = r3
int r2 = r2 % r1
if (r2 != 0) goto L5f
o.fGZ r6 = r6.g
java.lang.String r6 = r6.a
r1 = 39
int r1 = r1 / r0
if (r6 == 0) goto L66
goto L76
L5f:
o.fGZ r6 = r6.g
java.lang.String r6 = r6.a
if (r6 == 0) goto L66
goto L76
L66:
com.scb.phone.domain.entity.mwpartner.EntityMappingException r6 = new com.scb.phone.domain.entity.mwpartner.EntityMappingException
java.lang.String r0 = "HmlLoanOffersEntityMapper: data.type or data.subType must not be null"
r6.<init>(r0, r4)
throw r6
L6e:
com.scb.phone.domain.entity.mwpartner.EntityMappingException r6 = new com.scb.phone.domain.entity.mwpartner.EntityMappingException
java.lang.String r0 = "HmlLoanOffersEntityMapper: data.loanOfferConsent must not be null when isRequireConsent is true"
r6.<init>(r0, r4)
throw r6
L76:
return r4
L77:
com.scb.phone.domain.entity.mwpartner.EntityMappingException r6 = new com.scb.phone.domain.entity.mwpartner.EntityMappingException
java.lang.String r0 = "HmlLoanOffersEntityMapper: data.isRequireConsent must not be null in PENDING_OCR_RESUBMIT and PENDING_LEADS_RESUBMIT status"
r6.<init>(r0, r4)
throw r6
*/
throw new UnsupportedOperationException("Method not decompiled: o.gaJ.e(java.lang.Object[]):java.lang.Object");
}
private static void h(int[] iArr, int i, Object[] objArr) {
int[] iArr2;
int i2 = 2;
int i3 = 2 % 2;
C4403bZM c4403bZM = new C4403bZM();
char[] cArr = new char[4];
char[] cArr2 = new char[iArr.length * 2];
int[] iArr3 = b;
int i4 = 729798706;
int i5 = 1;
int i6 = 0;
if (iArr3 != null) {
int length = iArr3.length;
int[] iArr4 = new int[length];
int i7 = 0;
while (i7 < length) {
int i8 = $11 + 1;
$10 = i8 % 128;
if (i8 % i2 != 0) {
try {
Object[] objArr2 = new Object[1];
objArr2[i6] = Integer.valueOf(iArr3[i7]);
Object obj = xzZ.y.get(Integer.valueOf(i4));
if (obj == null) {
Class cls = (Class) xzZ.c(15 - Color.alpha(i6), 6 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), (char) ((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 58133));
Class<?>[] clsArr = new Class[1];
clsArr[i6] = Integer.TYPE;
obj = cls.getMethod("i", clsArr);
xzZ.y.put(729798706, obj);
}
iArr4[i7] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
i7 %= 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
Object[] objArr3 = {Integer.valueOf(iArr3[i7])};
Object obj2 = xzZ.y.get(729798706);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(View.getDefaultSize(0, 0) + 15, TextUtils.getCapsMode("", 0, 0) + 5, (char) (58135 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))))).getMethod("i", Integer.TYPE);
xzZ.y.put(729798706, obj2);
}
iArr4[i7] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
i7++;
}
i2 = 2;
i4 = 729798706;
i6 = 0;
}
int i9 = $10 + 109;
$11 = i9 % 128;
int i10 = i9 % 2;
iArr3 = iArr4;
}
int length2 = iArr3.length;
int[] iArr5 = new int[length2];
int[] iArr6 = b;
int i11 = 16;
if (iArr6 != null) {
int length3 = iArr6.length;
int[] iArr7 = new int[length3];
int i12 = 0;
while (i12 < length3) {
Object[] objArr4 = new Object[i5];
objArr4[0] = Integer.valueOf(iArr6[i12]);
Object obj3 = xzZ.y.get(729798706);
if (obj3 != null) {
iArr2 = iArr6;
} else {
obj3 = ((Class) xzZ.c(ImageFormat.getBitsPerPixel(0) + i11, 5 - (ViewConfiguration.getMaximumFlingVelocity() >> i11), (char) (58134 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24)))).getMethod("i", Integer.TYPE);
iArr2 = iArr6;
xzZ.y.put(729798706, obj3);
}
iArr7[i12] = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue();
i12++;
int i13 = $11 + 103;
$10 = i13 % 128;
int i14 = i13 % 2;
iArr6 = iArr2;
i11 = 16;
i5 = 1;
}
iArr6 = iArr7;
}
System.arraycopy(iArr6, 0, iArr5, 0, length2);
c4403bZM.b = 0;
while (c4403bZM.b < iArr.length) {
cArr[0] = (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 i15 = 0;
for (int i16 = 16; i15 < i16; i16 = 16) {
c4403bZM.e ^= iArr5[i15];
Object[] objArr5 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM};
Object obj4 = xzZ.y.get(-1196964548);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(118 - TextUtils.getCapsMode("", 0, 0), TextUtils.getCapsMode("", 0, 0) + 5, (char) ((-1) - ((byte) KeyEvent.getModifierMetaStateMask())));
byte b2 = (byte) 0;
byte b3 = (byte) (b2 + 1);
Object[] objArr6 = new Object[1];
i(b2, b3, (byte) (-b3), objArr6);
obj4 = cls2.getMethod((String) objArr6[0], Object.class, Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1196964548, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr5)).intValue();
c4403bZM.e = c4403bZM.a;
c4403bZM.a = intValue;
i15++;
}
int i17 = c4403bZM.e;
c4403bZM.e = c4403bZM.a;
c4403bZM.a = i17;
c4403bZM.a ^= iArr5[16];
c4403bZM.e ^= iArr5[17];
int i18 = c4403bZM.e;
int i19 = 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];
Object[] objArr7 = {c4403bZM, c4403bZM};
Object obj5 = xzZ.y.get(1914371176);
if (obj5 == null) {
Class cls3 = (Class) xzZ.c(TextUtils.getOffsetBefore("", 0) + 98, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 5, (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0)));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr8 = new Object[1];
i(b4, b5, (byte) (b5 - 1), objArr8);
obj5 = cls3.getMethod((String) objArr8[0], Object.class, Object.class);
xzZ.y.put(1914371176, obj5);
}
((Method) obj5).invoke(null, objArr7);
}
objArr[0] = new String(cArr2, 0, i);
}
static void d() {
b = new int[]{-407697394, -55856495, -1097486462, -546550471, 1984025014, -434653919, -295744015, 606452781, -378999142, 2068969201, 747372824, -484732626, -2080242070, -1342366917, 1606485568, 1202506479, 800973934, 850944833};
}
private static void e(C7133ciY c7133ciY) {
e(new Object[]{c7133ciY});
}
static {
c = 0;
d();
new HBt((byte) 0);
int i = e + 75;
c = i % 128;
int i2 = i % 2;
}
}