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

347 lines
14 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.ImageFormat;
import android.graphics.drawable.Drawable;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.tO, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17027tO extends C17082tl {
private static final byte[] $$d = {90, 40, 10, 105};
private static final int $$e = 207;
private static int $10 = 0;
private static int $11 = 1;
private static int a = 0;
private static int b = 1;
private static long d = -519588466624663715L;
/* 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:0x0027). 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(int r5, short r6, short r7, java.lang.Object[] r8) {
/*
int r6 = r6 + 77
int r5 = r5 + 4
byte[] r0 = o.C17027tO.$$d
int r7 = r7 * 3
int r1 = r7 + 1
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L13
r4 = r6
r6 = r7
r3 = r2
goto L27
L13:
r3 = r2
L14:
byte r4 = (byte) r6
int r5 = r5 + 1
r1[r3] = r4
if (r3 != r7) goto L23
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L23:
int r3 = r3 + 1
r4 = r0[r5]
L27:
int r6 = r6 + r4
goto L14
*/
throw new UnsupportedOperationException("Method not decompiled: o.C17027tO.q(int, short, short, java.lang.Object[]):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C17027tO(Resources resources, SharedPreferences sharedPreferences, String str) {
super(resources, sharedPreferences, str);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
C14957gcv.e(str, "");
}
public final NO c(ToF toF) {
String str;
double d2;
ArrayList arrayList;
Wcm wcm;
int i = 2 % 2;
C14957gcv.e(toF, "");
String d3 = C16157lj.d(Double.valueOf(toF.j));
C14957gcv.c((Object) d3, "");
String str2 = toF.b;
if (str2 == null) {
int i2 = a + 7;
b = i2 % 128;
int i3 = i2 % 2;
str = "";
} else {
str = str2;
}
Double d4 = toF.c.c;
Object obj = null;
if (d4 != null) {
int i4 = a + 29;
b = i4 % 128;
if (i4 % 2 == 0) {
d4.doubleValue();
obj.hashCode();
throw null;
}
d2 = d4.doubleValue();
} else {
d2 = 0.0d;
}
String d5 = C16157lj.d(Double.valueOf(d2));
C14957gcv.c((Object) d5, "");
String str3 = toF.c.b;
if (str3 == null) {
int i5 = b;
int i6 = i5 + 41;
a = i6 % 128;
if (i6 % 2 != 0) {
throw null;
}
int i7 = i5 + 55;
a = i7 % 128;
int i8 = i7 % 2;
str3 = "";
}
C0740Nm c0740Nm = new C0740Nm(d5, str3, toF.c.i, toF.c.e);
String a2 = a(toF.n);
C14957gcv.c((Object) a2, "");
String format = String.format("%.2f", Arrays.copyOf(new Object[]{Double.valueOf(toF.d)}, 1));
C14957gcv.c((Object) format, "");
String l = l(format);
if (l == null) {
int i9 = b + 101;
a = i9 % 128;
if (i9 % 2 != 0) {
throw null;
}
l = "";
}
List<UzV> list = toF.f;
if (list != null) {
List<UzV> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (UzV uzV : list2) {
arrayList2.add(C17082tl.c(this, uzV.e, uzV.b, 0, 0, 12));
}
arrayList = arrayList2;
} else {
arrayList = null;
}
Wcm wcm2 = toF.a;
if (wcm2 != null) {
String str4 = (String) C6583cXR.c(new Object[]{Double.valueOf(Double.parseDouble(wcm2.e))}, -150997759, 150997764, (int) System.currentTimeMillis());
C14957gcv.c((Object) str4, "");
String b2 = C6583cXR.b(Double.parseDouble(wcm2.d));
C14957gcv.c((Object) b2, "");
wcm = new Wcm(str4, b2);
} else {
wcm = null;
}
return new NO(d3, str, c0740Nm, a2, l, arrayList, wcm);
}
public static C16884s a(ToF toF, String str) {
String format;
int i = 2 % 2;
C14957gcv.e(toF, "");
String str2 = toF.h;
String obj = C15602gz.e(toF.j).toString();
String valueOf = String.valueOf(toF.b);
Double d2 = toF.c.c;
C14957gcv.e(d2);
String obj2 = C15602gz.e(d2.doubleValue()).toString();
String str3 = toF.c.b;
if (str3 == null) {
int i2 = a + 75;
b = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 93 / 0;
}
str3 = "";
}
A a2 = new A(obj2, str3);
String valueOf2 = String.valueOf(toF.i);
OffsetDateTime offsetDateTime = toF.n;
if (offsetDateTime == null) {
int i4 = b + 53;
int i5 = i4 % 128;
a = i5;
int i6 = i4 % 2;
int i7 = i5 + 115;
b = i7 % 128;
int i8 = i7 % 2;
format = null;
} else {
format = offsetDateTime.format(C15554gto.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSXXX").withZone(AbstractC15502gsH.of("Asia/Bangkok")));
}
C14957gcv.c((Object) format, "");
String obj3 = C15602gz.e(toF.d).toString();
String str4 = toF.e;
if (str4 == null) {
Object[] objArr = new Object[1];
n(new char[]{31915}, 9587 - View.combineMeasuredStates(0, 0), objArr);
str4 = ((String) objArr[0]).intern();
}
return new C16884s(str2, obj, valueOf, a2, valueOf2, format, obj3, str4, str);
}
private static void n(char[] cArr, int i, Object[] objArr) {
Object method;
int i2 = 2 % 2;
C4593bdB c4593bdB = new C4593bdB();
c4593bdB.a = i;
int length = cArr.length;
long[] jArr = new long[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i3 = $10 + 109;
$11 = i3 % 128;
if (i3 % 2 == 0) {
int i4 = c4593bdB.e;
try {
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj = xzZ.y.get(-1229953068);
if (obj == null) {
Class cls = (Class) xzZ.c(402 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), Drawable.resolveOpacity(0, 0) + 5, (char) ((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 21608));
byte b2 = (byte) (-1);
byte b3 = (byte) (b2 + 1);
Object[] objArr3 = new Object[1];
q(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i4] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() % (d ^ (-6958928035870403642L));
try {
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(238 - (ViewConfiguration.getEdgeSlop() >> 16), 5 - (ViewConfiguration.getKeyRepeatDelay() >> 16), (char) (ViewConfiguration.getPressedStateDuration() >> 16));
byte b4 = (byte) (-1);
byte b5 = (byte) (-b4);
Object[] objArr5 = new Object[1];
q(b4, b5, (byte) (b5 - 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} else {
int i5 = c4593bdB.e;
try {
Object[] objArr6 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1229953068);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getPressedStateDuration() >> 16) + 402, TextUtils.lastIndexOf("", '0', 0, 0) + 6, (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 21607));
byte b6 = (byte) (-1);
byte b7 = (byte) (b6 + 1);
Object[] objArr7 = new Object[1];
q(b6, b7, b7, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj3);
}
jArr[i5] = ((Long) ((Method) obj3).invoke(null, objArr6)).longValue() ^ (d ^ (-6958928035870403642L));
Object[] objArr8 = {c4593bdB, c4593bdB};
Object obj4 = xzZ.y.get(-1143917229);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(237 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), ImageFormat.getBitsPerPixel(0) + 6, (char) ((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) - 1));
byte b8 = (byte) (-1);
byte b9 = (byte) (-b8);
Object[] objArr9 = new Object[1];
q(b8, b9, (byte) (b9 - 1), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj4);
}
((Method) obj4).invoke(null, objArr8);
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i6 = $10 + 83;
$11 = i6 % 128;
if (i6 % 2 == 0) {
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
Object[] objArr10 = {c4593bdB, c4593bdB};
Object obj5 = xzZ.y.get(-1143917229);
if (obj5 == null) {
Class cls5 = (Class) xzZ.c(TextUtils.getOffsetAfter("", 0) + 238, MotionEvent.axisFromString("") + 6, (char) TextUtils.indexOf("", "", 0));
byte b10 = (byte) (-1);
byte b11 = (byte) (-b10);
Object[] objArr11 = new Object[1];
q(b10, b11, (byte) (b11 - 1), objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj5);
}
Object obj6 = null;
((Method) obj5).invoke(null, objArr10);
obj6.hashCode();
throw null;
}
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
Object[] objArr12 = {c4593bdB, c4593bdB};
Object obj7 = xzZ.y.get(-1143917229);
if (obj7 != null) {
method = obj7;
} else {
Class cls6 = (Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0, 0) + 239, (ViewConfiguration.getFadingEdgeLength() >> 16) + 5, (char) (ViewConfiguration.getScrollBarSize() >> 8));
byte b12 = (byte) (-1);
byte b13 = (byte) (-b12);
Object[] objArr13 = new Object[1];
q(b12, b13, (byte) (b13 - 1), objArr13);
method = cls6.getMethod((String) objArr13[0], Object.class, Object.class);
xzZ.y.put(-1143917229, method);
}
((Method) method).invoke(null, objArr12);
int i7 = $10 + 123;
$11 = i7 % 128;
int i8 = i7 % 2;
}
objArr[0] = new String(cArr2);
}
}