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

507 lines
17 KiB
Java

package o;
import android.graphics.Color;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import com.google.common.base.Ascii;
import com.google.zxing.NotFoundException;
import java.lang.reflect.Method;
import java.util.EnumMap;
import java.util.Map;
import net.sf.scuba.smartcards.ISOFileInfo;
import org.bouncycastle.crypto.signers.PSSSigner;
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.gkt, reason: case insensitive filesystem */
/* loaded from: classes2.dex */
public final class C15233gkt {
private static int b;
private static final int[] d;
private static char[] e;
private static boolean g;
private static int h;
private static boolean i;
private final int[] a = new int[4];
private final StringBuilder c = new StringBuilder();
private static final byte[] $$a = {38, -26, Ascii.ESC, PSSSigner.TRAILER_IMPLICIT};
private static final int $$b = 244;
private static int $10 = 0;
private static int $11 = 1;
private static int f = 0;
public static /* synthetic */ Object a(Object[] objArr, int i2, int i3, int i4) {
return d(objArr);
}
/* JADX WARN: Removed duplicated region for block: B:10:0x002c */
/* JADX WARN: Removed duplicated region for block: B:7:0x0024 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002c -> B:4:0x0031). 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 k(int r6, byte r7, short r8, java.lang.Object[] r9) {
/*
byte[] r0 = o.C15233gkt.$$a
int r7 = r7 * 4
int r1 = 1 - r7
int r6 = r6 * 2
int r6 = 4 - r6
int r8 = r8 * 57
int r8 = 122 - r8
byte[] r1 = new byte[r1]
r2 = 0
int r7 = 0 - r7
if (r0 != 0) goto L19
r8 = r6
r3 = r7
r4 = r2
goto L31
L19:
r3 = r2
L1a:
r5 = r8
r8 = r6
r6 = r5
byte r4 = (byte) r6
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r7) goto L2c
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L2c:
r3 = r0[r8]
r5 = r8
r8 = r6
r6 = r5
L31:
int r6 = r6 + 1
int r3 = -r3
int r8 = r8 + r3
r3 = r4
goto L1a
*/
throw new UnsupportedOperationException("Method not decompiled: o.C15233gkt.k(int, byte, short, java.lang.Object[]):void");
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object d(Object[] objArr) {
int i2;
C15233gkt c15233gkt = (C15233gkt) objArr[0];
int intValue = ((Number) objArr[1]).intValue();
C17416wdP c17416wdP = (C17416wdP) objArr[2];
int[] iArr = (int[]) objArr[3];
int i3 = 2 % 2;
StringBuilder sb = c15233gkt.c;
sb.setLength(0);
int c = c15233gkt.c(c17416wdP, iArr, sb);
String obj = sb.toString();
Map<MoF, Object> b2 = b(obj);
float f2 = intValue;
WFF wff = new WFF(obj, null, new qCz[]{new qCz((iArr[0] + iArr[1]) / 2.0f, f2), new qCz(c, f2)}, PTS.UPC_EAN_EXTENSION);
if (b2 != null) {
int i4 = f;
int i5 = i4 + 37;
h = i5 % 128;
int i6 = i5 % 2;
if (b2 != null) {
int i7 = i4 + 71;
h = i7 % 128;
int i8 = i7 % 2;
Map<MoF, Object> map = wff.e;
if (map == null) {
wff.e = b2;
i2 = f + 1;
h = i2 % 128;
} else {
map.putAll(b2);
i2 = h + 91;
f = i2 % 128;
}
int i9 = i2 % 2;
}
}
return wff;
}
private int c(C17416wdP c17416wdP, int[] iArr, StringBuilder sb) throws NotFoundException {
int e2;
int length;
int i2;
int i3 = 2 % 2;
int i4 = f + 11;
h = i4 % 128;
int i5 = i4 % 2;
int[] iArr2 = this.a;
iArr2[0] = 0;
iArr2[1] = 0;
iArr2[2] = 0;
iArr2[3] = 0;
int i6 = c17416wdP.d;
int i7 = iArr[1];
int i8 = 0;
for (int i9 = 0; i9 < 5 && i7 < i6; i9++) {
int i10 = f + 35;
h = i10 % 128;
if (i10 % 2 == 0) {
e2 = rua.e(c17416wdP, iArr2, i7, rua.d);
sb.append((char) ((e2 - 55) / 48));
length = iArr2.length;
i2 = 1;
} else {
e2 = rua.e(c17416wdP, iArr2, i7, rua.d);
sb.append((char) ((e2 % 10) + 48));
length = iArr2.length;
i2 = 0;
}
while (i2 < length) {
i7 += iArr2[i2];
i2++;
}
if (e2 >= 10) {
int i11 = f;
int i12 = i11 + 95;
h = i12 % 128;
int i13 = i12 % 2;
i8 |= 1 << (4 - i9);
int i14 = i11 + 59;
h = i14 % 128;
int i15 = i14 % 2;
}
if (i9 != 4) {
i7 = c17416wdP.c(c17416wdP.a(i7));
}
}
if (sb.length() != 5) {
throw NotFoundException.b();
}
if (a(sb.toString()) != a(i8)) {
throw NotFoundException.b();
}
int i16 = h + 95;
f = i16 % 128;
if (i16 % 2 == 0) {
return i7;
}
Object obj = null;
obj.hashCode();
throw null;
}
private static int a(CharSequence charSequence) {
int i2 = 2 % 2;
int length = charSequence.length();
int i3 = length - 2;
int i4 = f + 85;
h = i4 % 128;
int i5 = i4 % 2;
int i6 = 0;
while (i3 >= 0) {
int i7 = f + 105;
h = i7 % 128;
if (i7 % 2 == 0) {
i6 >>>= charSequence.charAt(i3) >> UrlTreeKt.configurablePathSegmentSuffixChar;
i3 += 29;
} else {
i6 += charSequence.charAt(i3) - '0';
i3 -= 2;
}
}
int i8 = i6 * 3;
int i9 = length - 1;
while (i9 >= 0) {
int i10 = h + 113;
f = i10 % 128;
if (i10 % 2 != 0) {
i8 >>= charSequence.charAt(i9) % '\f';
i9 += 108;
} else {
i8 += charSequence.charAt(i9) - '0';
i9 -= 2;
}
}
return (i8 * 3) % 10;
}
private static int a(int i2) throws NotFoundException {
int i3 = 2 % 2;
int i4 = f + 109;
h = i4 % 128;
int i5 = i4 % 2;
int i6 = 0;
while (i6 < 10) {
int i7 = f + 111;
int i8 = i7 % 128;
h = i8;
if (i7 % 2 == 0) {
int i9 = 95 / 0;
if (i2 == d[i6]) {
return i6;
}
i6++;
int i10 = i8 + 39;
f = i10 % 128;
int i11 = i10 % 2;
} else {
if (i2 == d[i6]) {
return i6;
}
i6++;
int i102 = i8 + 39;
f = i102 % 128;
int i112 = i102 % 2;
}
}
throw NotFoundException.b();
}
private static Map<MoF, Object> b(String str) {
int i2 = 2 % 2;
if (str.length() == 5) {
String c = c(str);
if (c == null) {
return null;
}
EnumMap enumMap = new EnumMap(MoF.class);
enumMap.put((EnumMap) MoF.SUGGESTED_PRICE, (MoF) c);
int i3 = h + 55;
f = i3 % 128;
if (i3 % 2 == 0) {
return enumMap;
}
throw null;
}
int i4 = h + 39;
f = i4 % 128;
int i5 = i4 % 2;
return null;
}
private static void j(char[] cArr, byte[] bArr, int[] iArr, int i2, Object[] objArr) {
int i3 = 2;
int i4 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr2 = e;
char c = '0';
int i5 = 0;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i6 = 0;
while (i6 < length) {
int i7 = $10 + 31;
$11 = i7 % 128;
int i8 = i7 % i3;
try {
Object[] objArr2 = new Object[1];
objArr2[i5] = Integer.valueOf(cArr2[i6]);
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.lastIndexOf("", c) + 338, 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) Color.red(i5));
byte b2 = (byte) i5;
byte b3 = b2;
Object[] objArr3 = new Object[1];
k(b2, b3, (byte) (b3 + 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr3[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i6++;
i3 = 2;
c = '0';
i5 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
Object[] objArr4 = {Integer.valueOf(b)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 283, (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 5, (char) (39813 - (ViewConfiguration.getScrollBarFadeDuration() >> 16)));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
k(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1521625011, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (i) {
c3614bBe.c = bArr.length;
char[] cArr4 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr4[c3614bBe.a] = (char) (cArr2[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i2] - intValue);
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(41 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (ViewConfiguration.getDoubleTapTimeout() >> 16) + 5, (char) View.getDefaultSize(0, 0))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr4);
return;
}
if (!g) {
c3614bBe.c = iArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr5[c3614bBe.a] = (char) (cArr2[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
c3614bBe.a++;
int i9 = $10 + 97;
$11 = i9 % 128;
int i10 = i9 % 2;
}
objArr[0] = new String(cArr5);
return;
}
c3614bBe.c = cArr.length;
char[] cArr6 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr6[c3614bBe.a] = (char) (cArr2[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
try {
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(40 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
int i11 = $10 + 121;
$11 = i11 % 128;
int i12 = i11 % 2;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
String str = new String(cArr6);
int i13 = $10 + 29;
$11 = i13 % 128;
int i14 = i13 % 2;
objArr[0] = str;
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
private static String c(String str) {
String str2;
String valueOf;
char c;
int i2 = 2 % 2;
char charAt = str.charAt(0);
if (charAt != '0') {
int i3 = f;
int i4 = i3 + 31;
h = i4 % 128;
int i5 = i4 % 2;
if (charAt != '5') {
int i6 = i3 + 41;
h = i6 % 128;
str2 = "";
if (i6 % 2 != 0 ? charAt == '9' : charAt == 'm') {
str.hashCode();
switch (str.hashCode()) {
case 54118329:
if (str.equals("90000")) {
c = 0;
break;
}
c = 65535;
break;
case 54395376:
if (str.equals("99990")) {
c = 1;
break;
}
c = 65535;
break;
case 54395377:
if (str.equals("99991")) {
int i7 = f + 9;
h = i7 % 128;
int i8 = i7 % 2;
c = 2;
break;
}
c = 65535;
break;
default:
c = 65535;
break;
}
if (c == 0) {
return null;
}
if (c == 1) {
return "Used";
}
if (c == 2) {
return "0.00";
}
}
} else {
str2 = "$";
}
} else {
str2 = "£";
}
int parseInt = Integer.parseInt(str.substring(1));
int i9 = parseInt / 100;
int i10 = parseInt % 100;
if (i10 < 10) {
Object[] objArr = new Object[1];
j(null, new byte[]{ISOFileInfo.DATA_BYTES2}, null, 127 - ExpandableListView.getPackedPositionType(0L), objArr);
StringBuilder sb = new StringBuilder(((String) objArr[0]).intern());
sb.append(i10);
valueOf = sb.toString();
} else {
valueOf = String.valueOf(i10);
}
StringBuilder sb2 = new StringBuilder();
sb2.append(str2);
sb2.append(String.valueOf(i9));
sb2.append('.');
sb2.append(valueOf);
return sb2.toString();
}
static void b() {
e = new char[]{15923};
b = 1934311139;
g = true;
i = true;
}
final WFF e(int i2, C17416wdP c17416wdP, int[] iArr) throws NotFoundException {
return (WFF) d(new Object[]{this, Integer.valueOf(i2), c17416wdP, iArr});
}
static {
h = 1;
b();
d = new int[]{24, 20, 18, 17, 12, 6, 3, 10, 9, 5};
int i2 = f + 69;
h = i2 % 128;
int i3 = i2 % 2;
}
}