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

527 lines
17 KiB
Java

package o;
import android.graphics.Color;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import o.PRA;
import org.threeten.bp.OffsetDateTime;
/* loaded from: classes.dex */
public class ZTC {
private static final byte[] $$a = {104, 69, 71, -100};
private static final int $$b = 225;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 0;
private static int b = 1;
private static long e = 7033373131116246362L;
public static /* synthetic */ Object e(Object[] objArr, int i, int i2, int i3) {
int i4 = (i * 659) + (i2 * (-657));
int i5 = ~((~i) | i2);
int i6 = ~((~i2) | i);
int i7 = ~(i | i3);
int i8 = i4 + ((i5 | i6 | i7) * (-658)) + (i6 * 658) + ((i7 | i6) * 658);
if (i8 != 1) {
if (i8 != 2) {
return c(objArr);
}
ZTC ztc = (ZTC) objArr[0];
yzb yzbVar = (yzb) objArr[1];
int i9 = 2 % 2;
C15612hBE c15612hBE = new C15612hBE(yzbVar.e, yzbVar.h, yzbVar.c, yzbVar.a, yzbVar.i, yzbVar.f, ztc.c(yzbVar.d));
int i10 = b + 31;
d = i10 % 128;
int i11 = i10 % 2;
return c15612hBE;
}
C16562pOe c16562pOe = (C16562pOe) objArr[0];
int i12 = 2 % 2;
iJI iji = new iJI("error");
if (c16562pOe != null && c16562pOe.getStatus() != null && c16562pOe.getStatus().e != null) {
int i13 = d + 125;
b = i13 % 128;
int i14 = i13 % 2;
String str = c16562pOe.getStatus().e;
String str2 = c16562pOe.getStatus().h;
String str3 = c16562pOe.getStatus().c;
BET a = BET.a(str);
iji.a = str;
iji.e = a.status;
iji.b = str2;
iji.d = str3;
int i15 = b + 95;
d = i15 % 128;
int i16 = i15 % 2;
}
return iji;
}
private static void r(byte b2, int i, short s, Object[] objArr) {
int i2 = s * 4;
int i3 = 3 - (i * 2);
int i4 = (b2 * 2) + 119;
byte[] bArr = $$a;
byte[] bArr2 = new byte[1 - i2];
int i5 = 0 - i2;
int i6 = -1;
if (bArr == null) {
i4 += -i5;
}
while (true) {
i6++;
bArr2[i6] = (byte) i4;
if (i6 == i5) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i3++;
i4 += -bArr[i3];
}
}
}
public static <I, O> List<O> b(List<I> list, InterfaceC1244Ytw<I, O> interfaceC1244Ytw) {
int i = 2 % 2;
int i2 = d + 13;
b = i2 % 128;
int i3 = i2 % 2;
if (list == null) {
list = new ArrayList<>();
}
YKU yku = new YKU(list);
List<O> list2 = (List) new YKU(yku.a, new wxK(yku.b, interfaceC1244Ytw)).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
int i4 = d + 121;
b = i4 % 128;
if (i4 % 2 != 0) {
return list2;
}
Object obj = null;
obj.hashCode();
throw null;
}
public static <I, O, C extends Comparable<C>> List<O> d(List<I> list, InterfaceC1244Ytw<I, O> interfaceC1244Ytw, InterfaceC1244Ytw<O, C> interfaceC1244Ytw2) {
int i = 2 % 2;
if (list == null) {
list = new ArrayList<>();
int i2 = d + 11;
b = i2 % 128;
int i3 = i2 % 2;
}
YKU yku = new YKU(list);
YKU yku2 = new YKU(yku.a, new wxK(yku.b, interfaceC1244Ytw));
List<O> list2 = (List) new YKU(yku2.a, new C17745zRk(yku2.b, xNZ.a(interfaceC1244Ytw2))).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
int i4 = b + 63;
d = i4 % 128;
if (i4 % 2 == 0) {
return list2;
}
throw null;
}
private static void p(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(e ^ (-7538262848231253921L), cArr, i);
int i3 = 4;
guL.a = 4;
while (guL.a < a.length) {
int i4 = $10 + 37;
$11 = i4 % 128;
int i5 = i4 % 2;
guL.c = guL.a - i3;
int i6 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % i3]), Long.valueOf(guL.c), Long.valueOf(e)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 207, 5 - ExpandableListView.getPackedPositionType(0L), (char) (1706 - (ViewConfiguration.getKeyRepeatDelay() >> 16)));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
r(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(View.combineMeasuredStates(0, 0) + 392, Color.argb(0, 0, 0, 0) + 5, (char) ExpandableListView.getPackedPositionType(0L));
byte b4 = (byte) ($$b & 7);
byte b5 = (byte) (b4 - 1);
Object[] objArr5 = new Object[1];
r(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i7 = $11 + 109;
$10 = i7 % 128;
int i8 = i7 % 2;
i3 = 4;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(a, 4, a.length - 4);
}
/* JADX INFO: Access modifiers changed from: protected */
@Deprecated
public OffsetDateTime e(String str) {
int i = 2 % 2;
int i2 = b + 67;
d = i2 % 128;
int i3 = i2 % 2;
try {
OffsetDateTime parse = OffsetDateTime.parse(str);
int i4 = b + 47;
d = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 41 / 0;
}
return parse;
} catch (Exception e2) {
guQ.c(e2, "API returns an invalid date time format!!", new Object[0]);
return OffsetDateTime.now();
}
}
/* JADX WARN: Code restructure failed: missing block: B:15:0x0032, code lost:
if (r1.length() <= 10) goto L13;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static /* synthetic */ java.lang.Object c(java.lang.Object[] r5) {
/*
r0 = 0
r1 = r5[r0]
java.lang.String r1 = (java.lang.String) r1
r2 = 1
r5 = r5[r2]
org.threeten.bp.OffsetDateTime r5 = (org.threeten.bp.OffsetDateTime) r5
r2 = 2
int r3 = r2 % r2
int r3 = o.ZTC.b
int r3 = r3 + 31
int r4 = r3 % 128
o.ZTC.d = r4
int r3 = r3 % r2
if (r1 == 0) goto L49
int r4 = r4 + 111
int r3 = r4 % 128
o.ZTC.b = r3
int r4 = r4 % r2
if (r4 != 0) goto L2c
int r2 = r1.length() // Catch: java.lang.Exception -> L2a
r3 = 75
if (r2 > r3) goto L3d
goto L34
L2a:
r1 = move-exception
goto L42
L2c:
int r2 = r1.length() // Catch: java.lang.Exception -> L2a
r3 = 10
if (r2 > r3) goto L3d
L34:
o.gsH r2 = o.AbstractC15502gsH.systemDefault() // Catch: java.lang.Exception -> L2a
org.threeten.bp.OffsetDateTime r5 = c(r1, r5, r2) // Catch: java.lang.Exception -> L2a
goto L41
L3d:
org.threeten.bp.OffsetDateTime r5 = org.threeten.bp.OffsetDateTime.parse(r1) // Catch: java.lang.Exception -> L2a
L41:
return r5
L42:
java.lang.Object[] r0 = new java.lang.Object[r0]
java.lang.String r2 = "API returns an invalid date time format!!"
o.guQ.c(r1, r2, r0)
L49:
return r5
*/
throw new UnsupportedOperationException("Method not decompiled: o.ZTC.c(java.lang.Object[]):java.lang.Object");
}
public static OffsetDateTime a(String str) {
int i = 2 % 2;
Object obj = null;
try {
if (str.length() > 10) {
OffsetDateTime parse = OffsetDateTime.parse(str);
int i2 = b + 31;
d = i2 % 128;
int i3 = i2 % 2;
return parse;
}
int i4 = b + 13;
d = i4 % 128;
if (i4 % 2 == 0) {
return c(str, null, AbstractC15502gsH.of("Asia/Bangkok"));
}
c(str, null, AbstractC15502gsH.of("Asia/Bangkok"));
obj.hashCode();
throw null;
} catch (Exception e2) {
guQ.c(e2, "API returns an invalid date time format!!", new Object[0]);
return null;
}
}
public static OffsetDateTime d(String str) {
OffsetDateTime c;
int i = 2 % 2;
int i2 = d + 83;
b = i2 % 128;
if (i2 % 2 == 0) {
c = c(str, null, AbstractC15502gsH.systemDefault());
int i3 = 73 / 0;
} else {
c = c(str, null, AbstractC15502gsH.systemDefault());
}
int i4 = d + 65;
b = i4 % 128;
int i5 = i4 % 2;
return c;
}
private static OffsetDateTime c(String str, OffsetDateTime offsetDateTime, AbstractC15502gsH abstractC15502gsH) {
int i = 2 % 2;
try {
OffsetDateTime offsetDateTime2 = gsN.parse(str, new C15553gtn().appendPattern("yyyy-MM-dd").parseDefaulting(EnumC15534gtD.NANO_OF_DAY, 0L).toFormatter().withZone(abstractC15502gsH)).toOffsetDateTime();
int i2 = b + 55;
d = i2 % 128;
if (i2 % 2 == 0) {
return offsetDateTime2;
}
throw null;
} catch (Exception e2) {
guQ.c(e2, "API returns an invalid date time format!!", new Object[0]);
return offsetDateTime;
}
}
public static String a(Double d2) {
int i = 2 % 2;
int i2 = d + 33;
b = i2 % 128;
int i3 = i2 % 2;
if (d2.doubleValue() > 0.0d) {
int i4 = b + 37;
d = i4 % 128;
int i5 = i4 % 2;
return RCJ.POSITIVE.toString();
}
if (d2.doubleValue() < 0.0d) {
return RCJ.NEGATIVE.toString();
}
String obj = RCJ.ZERO.toString();
int i6 = d + 55;
b = i6 % 128;
int i7 = i6 % 2;
return obj;
}
/* JADX INFO: Access modifiers changed from: protected */
public static String a(Integer num) {
int i = 2 % 2;
int i2 = d + 63;
int i3 = i2 % 128;
b = i3;
int i4 = i2 % 2;
if (num == null) {
Object[] objArr = new Object[1];
p(new char[]{26381, 26429, 403, 10588, 44534}, 1 - (ViewConfiguration.getTouchSlop() >> 8), objArr);
return ((String) objArr[0]).intern();
}
int i5 = i3 + 95;
d = i5 % 128;
int i6 = i5 % 2;
return String.valueOf(num);
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0015, code lost:
if (r4 != null) goto L8;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0012, code lost:
if (r4 != null) goto L8;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x0029, code lost:
r1 = r1 + 75;
o.ZTC.d = r1 % 128;
r1 = r1 % 2;
r1 = 0.0d;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0017, code lost:
r1 = java.lang.Double.valueOf(r4).doubleValue();
r4 = o.ZTC.d + 29;
o.ZTC.b = r4 % 128;
r4 = r4 % 2;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static java.lang.Double c(java.lang.String r4) {
/*
r0 = 2
int r1 = r0 % r0
int r1 = o.ZTC.b
int r2 = r1 + 77
int r3 = r2 % 128
o.ZTC.d = r3
int r2 = r2 % r0
if (r2 == 0) goto L15
r2 = 61
int r2 = r2 / 0
if (r4 == 0) goto L29
goto L17
L15:
if (r4 == 0) goto L29
L17:
java.lang.Double r4 = java.lang.Double.valueOf(r4)
double r1 = r4.doubleValue()
int r4 = o.ZTC.d
int r4 = r4 + 29
int r3 = r4 % 128
o.ZTC.b = r3
int r4 = r4 % r0
goto L32
L29:
int r1 = r1 + 75
int r4 = r1 % 128
o.ZTC.d = r4
int r1 = r1 % r0
r1 = 0
L32:
java.lang.Double r4 = java.lang.Double.valueOf(r1)
return r4
*/
throw new UnsupportedOperationException("Method not decompiled: o.ZTC.c(java.lang.String):java.lang.Double");
}
public static boolean a(C16562pOe c16562pOe) {
int i = 2 % 2;
int i2 = b + 55;
d = i2 % 128;
int i3 = i2 % 2;
yzb status = c16562pOe.getStatus();
if (i3 == 0) {
boolean equals = status.e.equals("1000");
int i4 = d + 87;
b = i4 % 128;
int i5 = i4 % 2;
return equals;
}
status.e.equals("1000");
throw null;
}
public Pag d(C16562pOe c16562pOe) {
int i = 2 % 2;
Pag a = new Pag().a((iJI) e(new Object[]{c16562pOe}, 321450472, -321450471, (int) System.currentTimeMillis()));
int i2 = b + 47;
d = i2 % 128;
int i3 = i2 % 2;
return a;
}
private List<mNf> c(List<SWg> list) {
int i = 2 % 2;
ArrayList arrayList = new ArrayList();
if (list == null) {
return arrayList;
}
YKU yku = new YKU(list);
List<mNf> list2 = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this) { // from class: o.JZf
private ZTC a;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return ZTC.e((SWg) obj);
}
{
this.a = this;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
int i2 = d + 21;
b = i2 % 128;
int i3 = i2 % 2;
return list2;
}
private static mNf b(SWg sWg) {
int i = 2 % 2;
mNf mnf = new mNf(sWg.c, sWg.e, sWg.b);
int i2 = d + 7;
b = i2 % 128;
if (i2 % 2 != 0) {
return mnf;
}
throw null;
}
public static OffsetDateTime b(String str, OffsetDateTime offsetDateTime) {
return (OffsetDateTime) e(new Object[]{str, offsetDateTime}, 267499366, -267499366, (int) System.currentTimeMillis());
}
public static iJI e(C16562pOe c16562pOe) {
return (iJI) e(new Object[]{c16562pOe}, 321450472, -321450471, (int) System.currentTimeMillis());
}
/* JADX INFO: Access modifiers changed from: protected */
public final C15612hBE d(yzb yzbVar) {
return (C15612hBE) e(new Object[]{this, yzbVar}, -1912851710, 1912851712, System.identityHashCode(this));
}
public static String b(String str) {
int i = 2 % 2;
int i2 = d;
int i3 = i2 + 23;
b = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 14 / 0;
if (str != null) {
return str;
}
} else if (str != null) {
return str;
}
int i5 = i2 + 93;
b = i5 % 128;
int i6 = i5 % 2;
return "";
}
public static /* synthetic */ mNf e(SWg sWg) {
int i = 2 % 2;
int i2 = d + 29;
b = i2 % 128;
if (i2 % 2 != 0) {
return b(sWg);
}
b(sWg);
Object obj = null;
obj.hashCode();
throw null;
}
}