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

345 lines
14 KiB
Java

package o;
import android.os.Process;
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.google.common.base.Ascii;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.AbstractC15351go;
import o.HUj;
/* loaded from: classes3.dex */
public final class HUj extends C13353fY<HBt> {
private final InterfaceC0773Ogw d;
/* renamed from: o.HUj$4, reason: invalid class name */
/* loaded from: classes3.dex */
static final class AnonymousClass4 extends AbstractC14961gcz implements InterfaceC14894gbR<HBt, fRY> {
private InterfaceC0773Ogw e;
/* renamed from: o.HUj$4$2, reason: invalid class name */
/* loaded from: classes3.dex */
static final class AnonymousClass2 extends AbstractC14961gcz implements InterfaceC14894gbR<String, fRZ> {
private InterfaceC0773Ogw a;
private HBt e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ fRZ invoke(String str) {
String str2 = str;
InterfaceC0773Ogw interfaceC0773Ogw = this.a;
HBt hBt = this.e;
C14957gcv.c((Object) str2, "");
return interfaceC0773Ogw.c(hBt.a(str2));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
AnonymousClass2(InterfaceC0773Ogw interfaceC0773Ogw, HBt hBt) {
super(1);
this.a = interfaceC0773Ogw;
this.e = hBt;
}
}
@Override // o.InterfaceC14894gbR
public final /* synthetic */ fRY invoke(HBt hBt) {
HBt hBt2 = hBt;
C14957gcv.e(hBt2, "");
AbstractC13175fSw<String> n = this.e.n();
final AnonymousClass2 anonymousClass2 = new AnonymousClass2(this.e, hBt2);
C13363fYb c13363fYb = new C13363fYb(n, new fSS(anonymousClass2) { // from class: o.gts
private InterfaceC14894gbR b;
@Override // o.fSS
public final Object a(Object obj) {
return HUj.AnonymousClass4.c(this.b, obj);
}
{
this.b = anonymousClass2;
}
});
C14957gcv.c(c13363fYb, "");
return c13363fYb;
}
public static /* synthetic */ fRZ c(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
C14957gcv.e(interfaceC14894gbR, "");
return (fRZ) interfaceC14894gbR.invoke(obj);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
AnonymousClass4(InterfaceC0773Ogw interfaceC0773Ogw) {
super(1);
this.e = interfaceC0773Ogw;
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public HUj(yRw yrw, yRw yrw2, InterfaceC0773Ogw interfaceC0773Ogw) {
super(yrw, yrw2, new AnonymousClass4(interfaceC0773Ogw));
C14957gcv.e(yrw, "");
C14957gcv.e(yrw2, "");
C14957gcv.e(interfaceC0773Ogw, "");
this.d = interfaceC0773Ogw;
}
/* loaded from: classes3.dex */
public static final class HBt implements AbstractC15351go.HBt {
private final boolean b;
private final String e;
private static final byte[] $$a = {126, ISO7816.INS_INCREASE, 86, Ascii.DEL};
private static final int $$b = 10;
private static int $10 = 0;
private static int $11 = 1;
private static int g = 0;
private static int h = 1;
private static char[] d = {16110, 16109};
private static int c = 1934311133;
private static boolean a = true;
private static boolean f = true;
private static void j(int i, short s, byte b, Object[] objArr) {
int i2 = 4 - (s * 3);
int i3 = 122 - (i * 57);
byte[] bArr = $$a;
int i4 = b * 3;
byte[] bArr2 = new byte[i4 + 1];
int i5 = -1;
if (bArr == null) {
i2++;
i3 += i2;
i5 = -1;
}
while (true) {
int i6 = i2;
int i7 = i3;
int i8 = i5 + 1;
bArr2[i8] = (byte) i7;
if (i8 == i4) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i2 = i6 + 1;
i3 = bArr[i6] + i7;
i5 = i8;
}
}
}
public HBt(boolean z, String str) {
this.b = z;
this.e = str;
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x0023, code lost:
if (r7.b != false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x001b, code lost:
if (r7.b != true) goto L10;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x0025, code lost:
r4 = new java.lang.Object[1];
i(null, new byte[]{net.sf.scuba.smartcards.ISOFileInfo.DATA_BYTES2}, null, android.text.TextUtils.getTrimmedLength("") + 127, r4);
r1 = r4[0];
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0039, code lost:
r4 = new java.lang.Object[1];
i(null, new byte[]{-126}, null, android.graphics.Color.argb(0, 0, 0, 0) + 127, r4);
r1 = r4[0];
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final o.H a(java.lang.String r8) {
/*
r7 = this;
r0 = 2
int r1 = r0 % r0
int r1 = o.HUj.HBt.g
int r1 = r1 + 21
int r2 = r1 % 128
o.HUj.HBt.h = r2
int r1 = r1 % r0
java.lang.String r2 = ""
r3 = 0
r4 = 1
r5 = 0
if (r1 != 0) goto L1e
o.C14957gcv.e(r8, r2)
boolean r1 = r7.b
r6 = 31
int r6 = r6 / r5
if (r1 == r4) goto L25
goto L39
L1e:
o.C14957gcv.e(r8, r2)
boolean r1 = r7.b
if (r1 == 0) goto L39
L25:
byte[] r1 = new byte[r4]
r6 = -127(0xffffffffffffff81, float:NaN)
r1[r5] = r6
int r2 = android.text.TextUtils.getTrimmedLength(r2)
int r2 = r2 + 127
java.lang.Object[] r4 = new java.lang.Object[r4]
i(r3, r1, r3, r2, r4)
r1 = r4[r5]
goto L4c
L39:
byte[] r1 = new byte[r4]
r2 = -126(0xffffffffffffff82, float:NaN)
r1[r5] = r2
int r2 = android.graphics.Color.argb(r5, r5, r5, r5)
int r2 = r2 + 127
java.lang.Object[] r4 = new java.lang.Object[r4]
i(r3, r1, r3, r2, r4)
r1 = r4[r5]
L4c:
java.lang.String r1 = (java.lang.String) r1
java.lang.String r1 = r1.intern()
o.H r2 = new o.H
java.lang.String r3 = r7.e
r2.<init>(r8, r1, r3)
int r8 = o.HUj.HBt.g
int r8 = r8 + 89
int r1 = r8 % 128
o.HUj.HBt.h = r1
int r8 = r8 % r0
return r2
*/
throw new UnsupportedOperationException("Method not decompiled: o.HUj.HBt.a(java.lang.String):o.H");
}
private static void i(char[] cArr, byte[] bArr, int[] iArr, int i, Object[] objArr) {
char[] cArr2;
int i2 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr3 = d;
long j = 0;
int i3 = 1;
if (cArr3 != null) {
int length = cArr3.length;
char[] cArr4 = new char[length];
int i4 = 0;
while (i4 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr3[i4])};
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c(337 - ((Process.getThreadPriority(0) + 20) >> 6), (ExpandableListView.getPackedPositionForChild(0, 0) > j ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == j ? 0 : -1)) + 6, (char) (1 - (ViewConfiguration.getZoomControlsTimeout() > j ? 1 : (ViewConfiguration.getZoomControlsTimeout() == j ? 0 : -1))));
byte b = (byte) 1;
byte b2 = (byte) (b - 1);
Object[] objArr3 = new Object[1];
j(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr4[i4] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i4++;
j = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr3 = cArr4;
}
Object[] objArr4 = {Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(View.combineMeasuredStates(0, 0) + 283, TextUtils.indexOf((CharSequence) "", '0', 0) + 6, (char) ((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 39813));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
j(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1521625011, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (f) {
c3614bBe.c = bArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
int i5 = $11 + 51;
$10 = i5 % 128;
int i6 = i5 % 2;
while (c3614bBe.a < c3614bBe.c) {
cArr5[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - i3) - c3614bBe.a] + i] - intValue);
try {
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(41 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), 5 - TextUtils.indexOf("", ""), (char) (ViewConfiguration.getFadingEdgeLength() >> 16));
Class<?>[] clsArr = new Class[2];
clsArr[0] = Object.class;
clsArr[i3] = Object.class;
obj3 = cls3.getMethod("D", clsArr);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
i3 = 1;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
objArr[0] = new String(cArr5);
return;
}
if (!a) {
c3614bBe.c = iArr.length;
char[] cArr6 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr6[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
c3614bBe.a++;
int i7 = $10 + 95;
$11 = i7 % 128;
int i8 = i7 % 2;
}
objArr[0] = new String(cArr6);
return;
}
int i9 = $11 + 45;
$10 = i9 % 128;
if (i9 % 2 != 0) {
c3614bBe.c = cArr.length;
cArr2 = new char[c3614bBe.c];
c3614bBe.a = 1;
} else {
c3614bBe.c = cArr.length;
cArr2 = new char[c3614bBe.c];
c3614bBe.a = 0;
}
while (c3614bBe.a < c3614bBe.c) {
cArr2[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 40, (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 4, (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
}
objArr[0] = new String(cArr2);
}
}
}