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

551 lines
21 KiB
Java

package o;
import android.graphics.Color;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.domain.errors.FacialValidationException;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.C4716bfS;
import o.InterfaceC9273dgd;
import o.MC;
import o.ZI;
import o.wRi;
/* renamed from: o.bfS */
/* loaded from: classes4.dex */
public final class C4716bfS extends ZI<InterfaceC9273dgd.Sts> {
public static final InterfaceC14984gdp<Object>[] b = {C14929gcJ.c(new gcB(C4716bfS.class, "laserCode", "getLaserCode()Ljava/lang/String;"))};
public final rxl a;
public C0698Mn c;
public final InterfaceC14933gcS d;
public boolean e;
private final C17061td g;
private final ynu h;
private final C15746iJ i;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C4716bfS(C16903sI c16903sI, ynu ynuVar, C17061td c17061td, C15746iJ c15746iJ, rxl rxlVar) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(ynuVar, "");
C14957gcv.e(c17061td, "");
C14957gcv.e(c15746iJ, "");
C14957gcv.e(rxlVar, "");
this.h = ynuVar;
this.g = c17061td;
this.i = c15746iJ;
this.a = rxlVar;
gcT gct = gcT.c;
this.d = new Sts(this);
}
static {
new IeS((byte) 0);
}
/* renamed from: o.bfS$Sts */
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14935gcX<String> {
private C4716bfS a;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Sts(C4716bfS c4716bfS) {
super(null);
this.a = c4716bfS;
}
@Override // o.AbstractC14935gcX
public final void b(InterfaceC14984gdp<?> interfaceC14984gdp, String str, String str2) {
C14957gcv.e(interfaceC14984gdp, "");
C4716bfS.c(this.a);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.bfS$HBt */
/* loaded from: classes4.dex */
public final class HBt extends wRi.LWm<C17784zhb> {
private C4716bfS c;
/* renamed from: o.bfS$HBt$IeS */
/* loaded from: classes4.dex */
static final class IeS extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private C17784zhb c;
private C4716bfS e;
private static final byte[] $$a = {ISO7816.INS_CHANGE_CHV, -61, -106, ISO7816.INS_ENVELOPE};
private static final int $$b = 134;
private static int $10 = 0;
private static int $11 = 1;
private static int a = 0;
private static int i = 1;
private static char[] d = {64918};
private static long b = 8697341704369801959L;
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0029). 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(short r7, int r8, byte r9, java.lang.Object[] r10) {
/*
byte[] r0 = o.C4716bfS.HBt.IeS.$$a
int r9 = r9 * 2
int r9 = r9 + 1
int r8 = r8 + 4
int r7 = r7 + 98
byte[] r1 = new byte[r9]
r2 = 0
if (r0 != 0) goto L12
r3 = r8
r4 = r2
goto L29
L12:
r3 = r2
L13:
int r8 = r8 + 1
int r4 = r3 + 1
byte r5 = (byte) r7
r1[r3] = r5
if (r4 != r9) goto L24
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L24:
r3 = r0[r8]
r6 = r3
r3 = r8
r8 = r6
L29:
int r8 = -r8
int r7 = r7 + r8
r8 = r3
r3 = r4
goto L13
*/
throw new UnsupportedOperationException("Method not decompiled: o.C4716bfS.HBt.IeS.g(short, int, byte, java.lang.Object[]):void");
}
private static void f(char c, int i2, int i3, Object[] objArr) {
int i4 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i3];
dqy.a = 0;
while (dqy.a < i3) {
int i5 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(d[i2 + dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(308 - KeyEvent.keyCodeFromString(""), (ViewConfiguration.getKeyRepeatDelay() >> 16) + 5, (char) ((ViewConfiguration.getTouchSlop() >> 8) + 32797));
byte b2 = (byte) 0;
byte b3 = (byte) (b2 - 1);
Object[] objArr3 = new Object[1];
g(b2, b3, (byte) (b3 + 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1095064095, obj);
}
try {
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(b), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - TextUtils.getOffsetBefore("", 0), 5 - TextUtils.indexOf("", "", 0, 0), (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0, 0)));
byte b4 = (byte) 1;
byte b5 = (byte) (-b4);
Object[] objArr5 = new Object[1];
g(b4, b5, (byte) (b5 + 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i5] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
try {
Object[] objArr6 = {dqy, dqy};
Object obj3 = xzZ.y.get(1071125919);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 407, 5 - Color.red(0), (char) ((TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 29234));
byte b6 = (byte) (-1);
Object[] objArr7 = new Object[1];
g((byte) 8, b6, (byte) (b6 + 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj3);
}
((Method) obj3).invoke(null, objArr6);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
char[] cArr = new char[i3];
dqy.a = 0;
int i6 = $10 + 119;
$11 = i6 % 128;
int i7 = i6 % 2;
while (dqy.a < i3) {
int i8 = $11 + 103;
$10 = i8 % 128;
int i9 = i8 % 2;
cArr[dqy.a] = (char) jArr[dqy.a];
try {
Object[] objArr8 = {dqy, dqy};
Object obj4 = xzZ.y.get(1071125919);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(407 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), 5 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), (char) (29234 - View.MeasureSpec.getMode(0)));
byte b7 = (byte) (-1);
Object[] objArr9 = new Object[1];
g((byte) 8, b7, (byte) (b7 + 1), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj4);
}
((Method) obj4).invoke(null, objArr8);
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
objArr[0] = new String(cArr);
}
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
int i2 = 2 % 2;
int i3 = i + 57;
a = i3 % 128;
int i4 = i3 % 2;
b();
C14866gag c14866gag = C14866gag.c;
int i5 = i + 27;
a = i5 % 128;
if (i5 % 2 == 0) {
return c14866gag;
}
throw null;
}
private void b() {
int i2 = 2 % 2;
C17061td c17061td = this.e.g;
String str = this.c.e;
Object[] objArr = new Object[1];
f((char) (29301 - TextUtils.getCapsMode("", 0, 0)), (-1) - TextUtils.indexOf((CharSequence) "", '0', 0), 1 - Gravity.getAbsoluteGravity(0, 0), objArr);
String b2 = c17061td.b("ETB_CASA", str, "ETB", ((String) objArr[0]).intern());
C4716bfS c4716bfS = this.e;
ZI.IeS ieS = new ZI.IeS(b2) { // from class: o.bgc
private String e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C4716bfS.HBt.IeS.d(this.e, (InterfaceC9273dgd.Sts) obj);
}
{
this.e = b2;
}
};
if (c4716bfS.f != 0) {
int i3 = a + 23;
i = i3 % 128;
int i4 = i3 % 2;
ieS.e(c4716bfS.f);
int i5 = a + 107;
i = i5 % 128;
int i6 = i5 % 2;
}
}
private static final void b(String str, InterfaceC9273dgd.Sts sts) {
int i2 = 2 % 2;
int i3 = i + 113;
a = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(str, "");
sts.a(str);
int i5 = i + 37;
a = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 27 / 0;
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(C4716bfS c4716bfS, C17784zhb c17784zhb) {
super(0);
this.e = c4716bfS;
this.c = c17784zhb;
}
public static /* synthetic */ void d(String str, InterfaceC9273dgd.Sts sts) {
int i2 = 2 % 2;
int i3 = i + 111;
a = i3 % 128;
int i4 = i3 % 2;
b(str, sts);
int i5 = i + 3;
a = i5 % 128;
if (i5 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}
public HBt(C4716bfS c4716bfS) {
this.c = c4716bfS;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
C17784zhb c17784zhb = (C17784zhb) obj;
C14957gcv.e(c17784zhb, "");
C4716bfS.d(this.c);
if (C14957gcv.b((Object) c17784zhb.b, (Object) "3013")) {
this.c.i.e(new LWm(this.c), new IeS(this.c, c17784zhb));
return;
}
C4716bfS c4716bfS = this.c;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bfY
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9273dgd.Sts) obj2).a();
}
};
if (c4716bfS.f != 0) {
ieS.e(c4716bfS.f);
}
this.c.e = true;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C14957gcv.e(th, "");
this.c.e = true;
if (!(th instanceof FacialValidationException)) {
if (this.c.b(th, "3012") || this.c.b(th, "3015")) {
C4716bfS c4716bfS = this.c;
C4716bfS.c(c4716bfS, th, new Runnable(c4716bfS) { // from class: o.bfZ
private C4716bfS b;
@Override // java.lang.Runnable
public final void run() {
C4716bfS.HBt.d(this.b);
}
{
this.b = c4716bfS;
}
});
return;
} else {
C4716bfS.e(this.c, th);
return;
}
}
C4716bfS c4716bfS2 = this.c;
FacialValidationException facialValidationException = (FacialValidationException) th;
C14957gcv.e(facialValidationException, "");
JsH jsH = facialValidationException.b;
QLa qLa = jsH.b;
String str = qLa.c;
if (!C14957gcv.b((Object) str, (Object) "8101")) {
if (!C14957gcv.b((Object) str, (Object) "8103")) {
FacialValidationException facialValidationException2 = facialValidationException;
if (c4716bfS2.b(facialValidationException2)) {
c4716bfS2.d(c4716bfS2.j.e(facialValidationException2));
return;
}
return;
}
String str2 = qLa.b;
if (str2 == null) {
str2 = "";
}
String str3 = qLa.a;
ZI.IeS ieS = new ZI.IeS(str2, str3 != null ? str3 : "") { // from class: o.bfT
private String a;
private String e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C4716bfS.b(this.e, this.a, (InterfaceC9273dgd.Sts) obj);
}
{
this.e = str2;
this.a = r2;
}
};
if (c4716bfS2.f != 0) {
ieS.e(c4716bfS2.f);
return;
}
return;
}
String str4 = qLa.b;
String str5 = qLa.a;
Xay xay = jsH.c;
String str6 = xay != null ? xay.e : null;
C0698Mn c0698Mn = c4716bfS2.c;
String str7 = c0698Mn != null ? c0698Mn.c : null;
ZI.IeS ieS2 = new ZI.IeS(new MC.RVV(str4, str5, str6, str7 != null ? str7 : "")) { // from class: o.bfV
private MC.RVV b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C4716bfS.b(this.b, (InterfaceC9273dgd.Sts) obj);
}
{
this.b = r1;
}
};
if (c4716bfS2.f != 0) {
ieS2.e(c4716bfS2.f);
}
}
/* renamed from: o.bfS$HBt$LWm */
/* loaded from: classes4.dex */
static final class LWm extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private C4716bfS a;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
C4716bfS c4716bfS = this.a;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bga
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9273dgd.Sts) obj).e();
}
};
if (c4716bfS.f != 0) {
ieS.e(c4716bfS.f);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
LWm(C4716bfS c4716bfS) {
super(0);
this.a = c4716bfS;
}
}
public static /* synthetic */ void d(C4716bfS c4716bfS) {
C14957gcv.e(c4716bfS, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.bfW
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9273dgd.Sts) obj).c();
}
};
if (c4716bfS.f != 0) {
ieS.e(c4716bfS.f);
}
}
}
/* renamed from: o.bfS$IeS */
/* loaded from: classes4.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
public static /* synthetic */ void b(MC.RVV rvv, InterfaceC9273dgd.Sts sts) {
C14957gcv.e(rvv, "");
sts.b(rvv);
sts.ar_();
}
public static /* synthetic */ void b(C4716bfS c4716bfS, InterfaceC9273dgd.Sts sts) {
C14957gcv.e(c4716bfS, "");
boolean z = false;
String str = (String) c4716bfS.d.c(b[0]);
if (str != null && str.length() > 0 && str.length() == 12) {
z = true;
}
sts.d(z);
}
public static /* synthetic */ void b(String str, String str2, InterfaceC9273dgd.Sts sts) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
sts.b(str, str2);
sts.ar_();
}
public static final /* synthetic */ void c(C4716bfS c4716bfS) {
C4715bfR c4715bfR = new C4715bfR(c4716bfS);
if (c4716bfS.f != 0) {
c4715bfR.e(c4716bfS.f);
}
}
public static final /* synthetic */ void d(C4716bfS c4716bfS) {
if (c4716bfS.f != 0) {
c4716bfS.f.ar_();
}
}
public static final /* synthetic */ void e(C4716bfS c4716bfS, Throwable th) {
if (c4716bfS.b(th)) {
c4716bfS.d(c4716bfS.j.e(th));
}
}
public static final /* synthetic */ void c(C4716bfS c4716bfS, Throwable th, Runnable runnable) {
if (c4716bfS.b(th)) {
c4716bfS.d(c4716bfS.j.c(th, runnable));
}
}
public final void e(boolean z) {
if (this.e) {
this.e = false;
if (this.f != 0) {
this.f.y();
}
ynu ynuVar = this.h;
String str = (String) this.d.c(b[0]);
if (str == null) {
str = "";
}
this.h.d(ynuVar.e.b(new Bmg(str, ynuVar.c, z)), new HBt(this));
}
}
}