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

423 lines
14 KiB
Java

package o;
import android.graphics.Color;
import android.os.Process;
import android.os.SystemClock;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import java.io.IOException;
import java.lang.reflect.Method;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.SimpleTimeZone;
import net.sf.scuba.smartcards.ISO7816;
/* renamed from: o.gnN, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15320gnN extends AbstractC15315gnE {
private byte[] b;
private static final byte[] $$a = {95, -10, ISO7816.INS_CREATE_FILE, 95};
private static final int $$b = 70;
private static int $10 = 0;
private static int $11 = 1;
private static int c = 0;
private static int e = 1;
private static long a = -8625807550985478515L;
/* 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:0x002f). 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 j(int r6, byte r7, short r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 2
int r0 = 1 - r6
int r8 = r8 * 4
int r8 = 3 - r8
int r7 = r7 * 2
int r7 = r7 + 119
byte[] r1 = o.C15320gnN.$$a
byte[] r0 = new byte[r0]
r2 = 0
int r6 = 0 - r6
if (r1 != 0) goto L18
r3 = r8
r4 = r2
goto L2f
L18:
r3 = r2
L19:
byte r4 = (byte) r7
int r8 = r8 + 1
r0[r3] = r4
int r4 = r3 + 1
if (r3 != r6) goto L2a
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L2a:
r3 = r1[r8]
r5 = r3
r3 = r8
r8 = r5
L2f:
int r8 = -r8
int r7 = r7 + r8
r8 = r3
r3 = r4
goto L19
*/
throw new UnsupportedOperationException("Method not decompiled: o.C15320gnN.j(int, byte, short, java.lang.Object[]):void");
}
private static void g(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a2 = GuL.a(a ^ (-7538262848231253921L), cArr, i);
int i3 = 4;
guL.a = 4;
while (guL.a < a2.length) {
int i4 = $11 + 81;
$10 = i4 % 128;
int i5 = i4 % 2;
guL.c = guL.a - i3;
int i6 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a2[guL.a] ^ a2[guL.a % i3]), Long.valueOf(guL.c), Long.valueOf(a)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(209 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), 5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (char) (Color.red(0) + 1706));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
j(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a2[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((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 391, ExpandableListView.getPackedPositionChild(0L) + 6, (char) (Process.myPid() >> 22));
byte b3 = (byte) 0;
byte b4 = (byte) (b3 + 1);
Object[] objArr5 = new Object[1];
j(b3, b4, (byte) (b4 - 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i7 = $10 + 105;
$11 = 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(a2, 4, a2.length - 4);
}
/* JADX INFO: Access modifiers changed from: package-private */
public C15320gnN(byte[] bArr) {
this.b = bArr;
}
public final Date e() throws ParseException {
int i = 2 % 2;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmssz");
simpleDateFormat.setTimeZone(new SimpleTimeZone(0, "Z"));
Date parse = simpleDateFormat.parse(a());
int i2 = c + 49;
e = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 74 / 0;
}
return parse;
}
public final String b() {
int i = 2 % 2;
String b = grR.b(this.b);
if (b.indexOf(45) < 0) {
int i2 = c + 97;
e = i2 % 128;
int i3 = i2 % 2;
if (b.indexOf(43) < 0) {
if (b.length() == 11) {
StringBuilder sb = new StringBuilder();
sb.append(b.substring(0, 10));
sb.append("00GMT+00:00");
return sb.toString();
}
StringBuilder sb2 = new StringBuilder();
sb2.append(b.substring(0, 12));
sb2.append("GMT+00:00");
return sb2.toString();
}
}
int indexOf = b.indexOf(45);
if (indexOf < 0) {
int i4 = e + 97;
c = i4 % 128;
int i5 = i4 % 2;
indexOf = b.indexOf(43);
int i6 = e + 29;
c = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 5 / 3;
}
}
if (indexOf == b.length() - 3) {
StringBuilder sb3 = new StringBuilder();
sb3.append(b);
Object[] objArr = new Object[1];
g(new char[]{65024, 65072, 22592, 34841, 24226, 14346}, 1 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), objArr);
sb3.append(((String) objArr[0]).intern());
b = sb3.toString();
}
if (indexOf == 10) {
StringBuilder sb4 = new StringBuilder();
sb4.append(b.substring(0, 10));
sb4.append("00GMT");
sb4.append(b.substring(10, 13));
sb4.append(":");
sb4.append(b.substring(13, 15));
return sb4.toString();
}
StringBuilder sb5 = new StringBuilder();
sb5.append(b.substring(0, 12));
sb5.append("GMT");
sb5.append(b.substring(12, 15));
sb5.append(":");
sb5.append(b.substring(15, 17));
return sb5.toString();
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0035, code lost:
r1 = "20".concat(java.lang.String.valueOf(r1));
r2 = o.C15320gnN.c + 79;
o.C15320gnN.e = r2 % 128;
r2 = r2 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x0046, code lost:
return r1;
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x0047, code lost:
"20".concat(java.lang.String.valueOf(r1));
r0 = null;
r0.hashCode();
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0052, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x0026, code lost:
if (r1.charAt(0) < '5') goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0019, code lost:
if (r1.charAt(0) < '\"') goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x005d, code lost:
return "19".concat(java.lang.String.valueOf(r1));
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0028, code lost:
r2 = o.C15320gnN.c + 119;
o.C15320gnN.e = r2 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0033, code lost:
if ((r2 % 2) == 0) goto L13;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.String a() {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
int r1 = o.C15320gnN.e
int r1 = r1 + 71
int r2 = r1 % 128
o.C15320gnN.c = r2
int r1 = r1 % r0
r2 = 0
if (r1 == 0) goto L1c
java.lang.String r1 = r4.b()
char r2 = r1.charAt(r2)
r3 = 34
if (r2 >= r3) goto L53
goto L28
L1c:
java.lang.String r1 = r4.b()
char r2 = r1.charAt(r2)
r3 = 53
if (r2 >= r3) goto L53
L28:
int r2 = o.C15320gnN.c
int r2 = r2 + 119
int r3 = r2 % 128
o.C15320gnN.e = r3
int r2 = r2 % r0
java.lang.String r3 = "20"
if (r2 == 0) goto L47
java.lang.String r1 = java.lang.String.valueOf(r1)
java.lang.String r1 = r3.concat(r1)
int r2 = o.C15320gnN.c
int r2 = r2 + 79
int r3 = r2 % 128
o.C15320gnN.e = r3
int r2 = r2 % r0
return r1
L47:
java.lang.String r0 = java.lang.String.valueOf(r1)
r3.concat(r0)
r0 = 0
r0.hashCode()
throw r0
L53:
java.lang.String r0 = "19"
java.lang.String r1 = java.lang.String.valueOf(r1)
java.lang.String r0 = r0.concat(r1)
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: o.C15320gnN.a():java.lang.String");
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15315gnE
public final int c() {
int d;
int i = 2 % 2;
int i2 = e + 115;
c = i2 % 128;
if (i2 % 2 != 0) {
int length = this.b.length;
d = goV.d(length) / length;
} else {
int length2 = this.b.length;
d = goV.d(length2) + 1 + length2;
}
int i3 = e + 123;
c = i3 % 128;
if (i3 % 2 == 0) {
return d;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object b(Object[] objArr) {
C15320gnN c15320gnN = (C15320gnN) objArr[0];
gnG gng = (gnG) objArr[1];
int i = 2 % 2;
int i2 = e + 117;
c = i2 % 128;
int i3 = i2 % 2;
gng.a(23);
int length = c15320gnN.b.length;
gng.d(length);
int i4 = e + 115;
c = i4 % 128;
int i5 = i4 % 2;
for (int i6 = 0; i6 != length; i6++) {
int i7 = e + 29;
c = i7 % 128;
int i8 = i7 % 2;
gng.a(c15320gnN.b[i6]);
}
return null;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15315gnE
protected final boolean e(AbstractC15315gnE abstractC15315gnE) {
int i = 2 % 2;
int i2 = c + 69;
e = i2 % 128;
if (i2 % 2 != 0) {
if (!(abstractC15315gnE instanceof C15320gnN)) {
return false;
}
boolean b = grK.b(this.b, ((C15320gnN) abstractC15315gnE).b);
int i3 = e + 89;
c = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 21 / 0;
}
return b;
}
boolean z = abstractC15315gnE instanceof C15320gnN;
throw null;
}
@Override // o.AbstractC15346gnv
public final int hashCode() {
int i = 2 % 2;
int i2 = e + 89;
c = i2 % 128;
int i3 = i2 % 2;
int c2 = grK.c(this.b);
int i4 = e + 21;
c = i4 % 128;
if (i4 % 2 == 0) {
return c2;
}
Object obj = null;
obj.hashCode();
throw null;
}
public final String toString() {
int i = 2 % 2;
int i2 = e + 1;
c = i2 % 128;
if (i2 % 2 == 0) {
return grR.b(this.b);
}
grR.b(this.b);
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15315gnE
public final boolean d() {
int i = 2 % 2;
int i2 = e;
int i3 = i2 + 109;
c = i3 % 128;
int i4 = i3 % 2;
int i5 = i2 + 29;
c = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 89 / 0;
}
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15315gnE
public final void c(gnG gng) throws IOException {
System.identityHashCode(this);
b(new Object[]{this, gng});
}
}