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

598 lines
22 KiB
Java

package o;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.PointF;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.lang.reflect.Method;
import o.C0690Mh;
import o.C7048cgt;
import o.InterfaceC8957dae;
import o.ZI;
import o.wRi;
/* renamed from: o.cgt, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public class C7048cgt<T extends InterfaceC8957dae> extends ZI<T> {
public final SbS a;
public IeS c;
public long e;
/* renamed from: o.cgt$IeS */
/* loaded from: classes4.dex */
public enum IeS {
DEFAULT,
EKYC,
LOANORIGINATION,
EASYCASH
}
@InterfaceC13391fZD
public C7048cgt(SbS sbS, C16903sI c16903sI) {
super(c16903sI);
this.a = sbS;
}
/* renamed from: o.cgt$1, reason: invalid class name */
/* loaded from: classes4.dex */
static /* synthetic */ class AnonymousClass1 {
static final int[] e;
static {
int[] iArr = new int[IeS.values().length];
e = iArr;
try {
iArr[IeS.EKYC.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
e[IeS.LOANORIGINATION.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
e[IeS.DEFAULT.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
/* renamed from: o.cgt$Sts */
/* loaded from: classes4.dex */
public final class Sts extends wRi.LWm<C16155liV> {
private C7048cgt b;
public Sts(C7048cgt c7048cgt) {
this.b = c7048cgt;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final C16155liV c16155liV = (C16155liV) obj;
if (this.b.f != 0) {
C7048cgt.d(this.b);
C7048cgt c7048cgt = this.b;
ZI.IeS ieS = new ZI.IeS(c16155liV) { // from class: o.cgv
private C16155liV d;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC8957dae) obj2).c(r0.d, r0.a, this.d.b);
}
{
this.d = c16155liV;
}
};
if (c7048cgt.f != 0) {
ieS.e(c7048cgt.f);
}
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(final Throwable th) {
C7048cgt.a(this.b);
if (!this.b.c(th, false)) {
C7048cgt c7048cgt = this.b;
ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.cgx
private Throwable a;
private C7048cgt.Sts c;
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC8957dae interfaceC8957dae = (InterfaceC8957dae) obj;
interfaceC8957dae.d(this.c.b.j.e(this.a).c);
}
{
this.c = this;
this.a = th;
}
};
if (c7048cgt.f != 0) {
ieS.e(c7048cgt.f);
return;
}
return;
}
C7048cgt.e(this.b, th, C0690Mh.IeS.NAVIGATE_BACK);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.cgt$LWm */
/* loaded from: classes4.dex */
public final class LWm extends wRi.LWm<C16994swm> {
private C7048cgt d;
private static final byte[] $$a = {85, -61, 49, 80};
private static final int $$b = 50;
private static int $10 = 0;
private static int $11 = 1;
private static int e = 0;
private static int b = 1;
private static char[] a = {49027};
private static char c = 35368;
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x002e). 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 g(int r6, byte r7, short r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 2
int r0 = r6 + 1
byte[] r1 = o.C7048cgt.LWm.$$a
int r7 = 120 - r7
int r8 = r8 * 2
int r8 = 3 - r8
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L15
r3 = r8
r4 = r2
r8 = r6
goto L2e
L15:
r3 = r2
L16:
byte r4 = (byte) r7
r0[r3] = r4
int r8 = r8 + 1
if (r3 != r6) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L25:
r4 = r1[r8]
int r3 = r3 + 1
r5 = r8
r8 = r7
r7 = r4
r4 = r3
r3 = r5
L2e:
int r7 = -r7
int r7 = r7 + r8
r8 = r3
r3 = r4
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: o.C7048cgt.LWm.g(int, byte, short, java.lang.Object[]):void");
}
private LWm(C7048cgt c7048cgt) {
this.d = c7048cgt;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
int i = 2 % 2;
int i2 = b + 25;
e = i2 % 128;
int i3 = i2 % 2;
d((C16994swm) obj);
int i4 = b + 95;
e = i4 % 128;
int i5 = i4 % 2;
}
private /* synthetic */ void e(Throwable th, InterfaceC8957dae interfaceC8957dae) {
int i = 2 % 2;
int i2 = e + 43;
b = i2 % 128;
int i3 = i2 % 2;
interfaceC8957dae.d(this.d.j.e(th).c);
int i4 = e + 93;
b = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(final Throwable th) {
int i = 2 % 2;
int i2 = b + 51;
e = i2 % 128;
if (i2 % 2 != 0) {
this.d.c(th, false);
throw null;
}
if (this.d.c(th, false)) {
int i3 = e + 17;
b = i3 % 128;
if (i3 % 2 != 0) {
C7048cgt.d(this.d, th, C0690Mh.IeS.NAVIGATE_BACK);
return;
} else {
C7048cgt.d(this.d, th, C0690Mh.IeS.NAVIGATE_BACK);
throw null;
}
}
C7048cgt.e(this.d);
C7048cgt c7048cgt = this.d;
ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.cgw
private Throwable d;
private C7048cgt.LWm e;
@Override // o.ZI.IeS
public final void e(Object obj) {
Object[] objArr = {this.e, this.d, (InterfaceC8957dae) obj};
C7048cgt.LWm.c(objArr);
}
{
this.e = this;
this.d = th;
}
};
if (c7048cgt.f != 0) {
int i4 = e + 73;
b = i4 % 128;
if (i4 % 2 != 0) {
ieS.e(c7048cgt.f);
}
}
int i5 = e + 9;
b = i5 % 128;
if (i5 % 2 == 0) {
throw null;
}
}
private void d(final C16994swm c16994swm) {
int i = 2 % 2;
if (this.d.f != 0) {
int i2 = e + 75;
b = i2 % 128;
if (i2 % 2 == 0) {
return;
}
C7048cgt.b(this.d);
C7048cgt c7048cgt = this.d;
ZI.IeS ieS = new ZI.IeS(c16994swm) { // from class: o.cgy
private C16994swm e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7048cgt.LWm.d(this.e, (InterfaceC8957dae) obj);
}
{
this.e = c16994swm;
}
};
if (c7048cgt.f != 0) {
int i3 = b + 79;
e = i3 % 128;
int i4 = i3 % 2;
ieS.e(c7048cgt.f);
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void d(C16994swm c16994swm, InterfaceC8957dae interfaceC8957dae) {
String str;
String str2;
Object obj;
int i = 2 % 2;
int i2 = b + 123;
e = i2 % 128;
if (i2 % 2 != 0) {
str = c16994swm.d;
str2 = c16994swm.e;
Object[] objArr = new Object[1];
f(View.getDefaultSize(0, 0), new char[]{13861}, (byte) (98 % (PointF.length(1.0f, 1.0f) > 2.0f ? 1 : (PointF.length(1.0f, 1.0f) == 2.0f ? 0 : -1))), objArr);
obj = objArr[0];
} else {
str = c16994swm.d;
str2 = c16994swm.e;
Object[] objArr2 = new Object[1];
f(View.getDefaultSize(0, 0) + 1, new char[]{13861}, (byte) ((PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 123), objArr2);
obj = objArr2[0];
}
interfaceC8957dae.c(((String) obj).intern(), str, str2);
int i3 = e + 87;
b = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 91 / 0;
}
}
private static void f(int i, char[] cArr, byte b2, Object[] objArr) {
int i2;
int i3 = 2;
int i4 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = a;
int i5 = 4;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i6 = 0;
while (i6 < length) {
int i7 = $10 + 111;
$11 = i7 % 128;
if (i7 % i3 == 0) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i6])};
Object obj = xzZ.y.get(-1987398494);
if (obj == null) {
Class cls = (Class) xzZ.c(297 - MotionEvent.axisFromString(""), (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + i5, (char) KeyEvent.normalizeMetaState(0));
byte b3 = (byte) 0;
byte b4 = (byte) (b3 + 3);
Object[] objArr3 = new Object[1];
g(b3, b4, (byte) (b4 - 3), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj);
}
cArr3[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
try {
Object[] objArr4 = {Integer.valueOf(cArr2[i6])};
Object obj2 = xzZ.y.get(-1987398494);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getDoubleTapTimeout() >> 16) + 298, 5 - View.MeasureSpec.getSize(0), (char) (1 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1))));
byte b5 = (byte) 0;
byte b6 = (byte) (b5 + 3);
Object[] objArr5 = new Object[1];
g(b5, b6, (byte) (b6 - 3), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj2);
}
cArr3[i6] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i6++;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
i3 = 2;
i5 = 4;
}
cArr2 = cArr3;
}
Object[] objArr6 = {Integer.valueOf(c)};
Object obj3 = xzZ.y.get(-1987398494);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(ImageFormat.getBitsPerPixel(0) + 299, TextUtils.getOffsetBefore("", 0) + 5, (char) View.getDefaultSize(0, 0));
byte b7 = (byte) 0;
byte b8 = (byte) (b7 + 3);
Object[] objArr7 = new Object[1];
g(b7, b8, (byte) (b8 - 3), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj3);
}
char charValue = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
i2 = i - 1;
cArr4[i2] = (char) (cArr[i2] - b2);
} else {
i2 = i;
}
if (i2 > 1) {
int i8 = $11 + 115;
$10 = i8 % 128;
int i9 = i8 % 2;
irs.e = 0;
int i10 = $11 + 109;
$10 = i10 % 128;
int i11 = 2;
int i12 = i10 % 2;
while (irs.e < i2) {
int i13 = $11 + 125;
$10 = i13 % 128;
int i14 = i13 % i11;
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
cArr4[irs.e] = (char) (irs.b - b2);
cArr4[irs.e + 1] = (char) (irs.c - b2);
} else {
try {
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs};
Object obj4 = xzZ.y.get(822107368);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((ViewConfiguration.getEdgeSlop() >> 16) + 233, (ViewConfiguration.getKeyRepeatDelay() >> 16) + 5, (char) (Color.rgb(0, 0, 0) + 16799240));
byte b9 = (byte) 0;
byte b10 = b9;
Object[] objArr9 = new Object[1];
g(b9, b10, b10, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj4);
}
if (((Integer) ((Method) obj4).invoke(null, objArr8)).intValue() == irs.j) {
Object[] objArr10 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj5 = xzZ.y.get(-1152873385);
if (obj5 == null) {
Class cls5 = (Class) xzZ.c(327 - KeyEvent.normalizeMetaState(0), TextUtils.indexOf("", "", 0) + 5, (char) TextUtils.getTrimmedLength(""));
byte b11 = (byte) 0;
byte b12 = (byte) (b11 + 2);
Object[] objArr11 = new Object[1];
g(b11, b12, (byte) (b12 - 2), objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj5);
}
int intValue = ((Integer) ((Method) obj5).invoke(null, objArr10)).intValue();
int i15 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i15];
} else if (irs.a == irs.d) {
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i16 = (irs.a * charValue) + irs.f;
int i17 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i16];
cArr4[irs.e + 1] = cArr2[i17];
int i18 = $11 + 9;
$10 = i18 % 128;
int i19 = i18 % 2;
} else {
int i20 = (irs.a * charValue) + irs.j;
int i21 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i20];
cArr4[irs.e + 1] = cArr2[i21];
}
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
i11 = 2;
irs.e += 2;
}
}
for (int i22 = 0; i22 < i; i22++) {
cArr4[i22] = (char) (cArr4[i22] ^ 13722);
}
objArr[0] = new String(cArr4);
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object c(Object[] objArr) {
LWm lWm = (LWm) objArr[0];
Throwable th = (Throwable) objArr[1];
InterfaceC8957dae interfaceC8957dae = (InterfaceC8957dae) objArr[2];
int i = 2 % 2;
int i2 = b + 121;
e = i2 % 128;
int i3 = i2 % 2;
lWm.e(th, interfaceC8957dae);
if (i3 != 0) {
throw null;
}
int i4 = e + 71;
b = i4 % 128;
int i5 = i4 % 2;
return null;
}
/* synthetic */ LWm(C7048cgt c7048cgt, byte b2) {
this(c7048cgt);
}
public static /* synthetic */ void b(LWm lWm, Throwable th, InterfaceC8957dae interfaceC8957dae) {
Object[] objArr = {lWm, th, interfaceC8957dae};
c(objArr);
}
}
static /* synthetic */ void a(C7048cgt c7048cgt) {
if (c7048cgt.f != 0) {
c7048cgt.f.ar_();
}
}
static /* synthetic */ void e(C7048cgt c7048cgt, Throwable th, C0690Mh.IeS ieS) {
if (c7048cgt.b(th)) {
c7048cgt.d(c7048cgt.j.d(th, ieS));
}
}
static /* synthetic */ void d(C7048cgt c7048cgt) {
if (c7048cgt.f != 0) {
c7048cgt.f.ar_();
}
}
static /* synthetic */ void d(C7048cgt c7048cgt, Throwable th, C0690Mh.IeS ieS) {
if (c7048cgt.b(th)) {
c7048cgt.d(c7048cgt.j.d(th, ieS));
}
}
static /* synthetic */ void e(C7048cgt c7048cgt) {
if (c7048cgt.f != 0) {
c7048cgt.f.ar_();
}
}
static /* synthetic */ void b(C7048cgt c7048cgt) {
if (c7048cgt.f != 0) {
c7048cgt.f.ar_();
}
}
public void d(String str, String str2) {
AbstractC13403fZf sts;
if (this.f != 0) {
this.f.y();
}
C5983cF c5983cF = new C5983cF();
c5983cF.j = "SCB_FastEasy_OTPPolicy";
c5983cF.a = str2;
c5983cF.h = str;
c5983cF.d = "";
c5983cF.e = "";
c5983cF.b = "";
c5983cF.c = "";
c5983cF.i = "SystemTokenStore";
c5983cF.f = "FastEasyApp";
int i = AnonymousClass1.e[this.c.ordinal()];
if (i == 1) {
this.a.b(c5983cF);
sts = new Sts(this);
} else if (i == 2) {
this.a.c(str2);
sts = new LWm(this, (byte) 0);
} else {
this.a.a(c5983cF);
sts = new Sts(this);
}
SbS sbS = this.a;
sbS.d(sbS.i, sts);
}
@Override // o.ZI
public final void w_() {
SbS sbS = this.a;
if (!sbS.h.isDisposed()) {
sbS.h.dispose();
}
super.w_();
}
}