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

269 lines
9.9 KiB
Java

package o;
import android.graphics.Color;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.scb.phone.domain.errors.RetrofitException;
import com.scb.phone.domain.interactor.emailverification.EmailMeVerificationCodeUseCase;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
/* loaded from: classes3.dex */
public final class MoA extends wRi {
private final Xky c;
private final InterfaceC14210fos e;
private static final byte[] $$a = {80, 41, ISO7816.INS_UPDATE_RECORD, 94};
private static final int $$b = 27;
private static int $10 = 0;
private static int $11 = 1;
private static int g = 0;
/* renamed from: o */
private static int f8276o = 1;
private static char d = 16190;
private static char a = 5263;
private static char b = 32138;
private static char j = 14891;
/* JADX WARN: Removed duplicated region for block: B:10:0x0022 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001a */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0022 -> B:4:0x0028). 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 l(int r5, int r6, short r7, java.lang.Object[] r8) {
/*
int r6 = r6 * 4
int r0 = r6 + 1
int r7 = r7 * 4
int r7 = 3 - r7
byte[] r1 = o.MoA.$$a
int r5 = 67 - r5
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L14
r4 = r6
r3 = r2
goto L28
L14:
r3 = r2
L15:
byte r4 = (byte) r5
r0[r3] = r4
if (r3 != r6) goto L22
java.lang.String r5 = new java.lang.String
r5.<init>(r0, r2)
r8[r2] = r5
return
L22:
int r7 = r7 + 1
r4 = r1[r7]
int r3 = r3 + 1
L28:
int r5 = r5 + r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: o.MoA.l(int, int, short, java.lang.Object[]):void");
}
@InterfaceC13391fZD
public MoA(yRw yrw, yRw yrw2, InterfaceC14210fos interfaceC14210fos, Xky xky) {
super(yrw, yrw2);
this.e = interfaceC14210fos;
this.c = xky;
}
public static /* synthetic */ InterfaceC13169fSq a(Throwable th) throws Throwable {
int i = 2 % 2;
int i2 = g;
int i3 = i2 + 99;
f8276o = i3 % 128;
int i4 = i3 % 2;
if (th instanceof RetrofitException) {
int i5 = i2 + 37;
f8276o = i5 % 128;
int i6 = i5 % 2;
if ("3000".equals(((RetrofitException) th).e.c.e)) {
return AbstractC13163fSk.error(new EmailMeVerificationCodeUseCase.EmailVerificationCodeNotSendException());
}
}
return AbstractC13163fSk.error(th);
}
public static /* synthetic */ Object e(Object[] objArr) {
MoA moA = (MoA) objArr[0];
int i = 2 % 2;
AbstractC13163fSk e = moA.e(moA.e.c().onErrorResumeNext(new fSS() { // from class: o.qYZ
@Override // o.fSS
public final Object a(Object obj) {
return MoA.a((Throwable) obj);
}
}));
int i2 = f8276o + 51;
g = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 37 / 0;
}
return e;
}
public static /* synthetic */ InterfaceC13169fSq e(Throwable th) throws Throwable {
int i = 2 % 2;
int i2 = g + 65;
int i3 = i2 % 128;
f8276o = i3;
int i4 = i2 % 2;
if (!(!(th instanceof RetrofitException))) {
int i5 = i3 + 9;
g = i5 % 128;
int i6 = i5 % 2;
if ("3000".equals(((RetrofitException) th).e.c.e)) {
AbstractC13163fSk error = AbstractC13163fSk.error(new EmailMeVerificationCodeUseCase.EmailVerificationCodeNotSendException());
int i7 = g + 29;
f8276o = i7 % 128;
int i8 = i7 % 2;
return error;
}
}
return AbstractC13163fSk.error(th);
}
public final AbstractC13163fSk<qbg> d(String str, String str2) {
int i = 2 % 2;
AbstractC13163fSk<qbg> e = e(this.c.c(str, str2).onErrorResumeNext(new fSS() { // from class: o.oca
@Override // o.fSS
public final Object a(Object obj) {
return MoA.e((Throwable) obj);
}
}));
int i2 = g + 25;
f8276o = i2 % 128;
if (i2 % 2 != 0) {
return e;
}
throw null;
}
public final void a() {
iKd r;
Object obj;
int i = 2 % 2;
int i2 = g + 15;
f8276o = i2 % 128;
if (i2 % 2 == 0) {
r = this.c.r();
Object[] objArr = new Object[1];
k(new char[]{57101, 38399}, 1 - (ViewConfiguration.getMaximumDrawingCacheSize() / 101), objArr);
obj = objArr[0];
} else {
r = this.c.r();
Object[] objArr2 = new Object[1];
k(new char[]{57101, 38399}, 1 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), objArr2);
obj = objArr2[0];
}
r.i = ((String) obj).intern();
this.c.b(r);
int i3 = f8276o + 77;
g = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
}
private static void k(char[] cArr, int i, Object[] objArr) {
int i2 = 2;
int i3 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
jtb.b = 0;
char[] cArr3 = new char[2];
while (jtb.b < cArr.length) {
cArr3[0] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i4 = 58224;
int i5 = 0;
while (i5 < 16) {
int i6 = $10 + 79;
$11 = i6 % 128;
int i7 = i6 % i2;
char c = cArr3[1];
char c2 = cArr3[0];
int i8 = (c2 + i4) ^ ((c2 << 4) + ((char) (b ^ 41718355337583039L)));
int i9 = c2 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(j);
objArr2[i2] = Integer.valueOf(i9);
objArr2[1] = Integer.valueOf(i8);
objArr2[0] = Integer.valueOf(c);
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c(411 - TextUtils.lastIndexOf("", '0', 0), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 5, (char) Color.red(0));
byte b2 = (byte) ($$b & 5);
byte b3 = (byte) (b2 - 1);
Object[] objArr3 = new Object[1];
l(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr3[1] = charValue;
Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i4) ^ ((charValue << 4) + ((char) (d ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(a)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(ExpandableListView.getPackedPositionChild(0L) + 413, (ViewConfiguration.getScrollBarSize() >> 8) + 5, (char) ((-1) - MotionEvent.axisFromString("")));
byte b4 = (byte) ($$b & 5);
byte b5 = (byte) (b4 - 1);
Object[] objArr5 = new Object[1];
l(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i4 -= 40503;
i5++;
i2 = 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2[jtb.b] = cArr3[0];
cArr2[jtb.b + 1] = cArr3[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(KeyEvent.getDeadChar(0, 0) + 98, TextUtils.indexOf((CharSequence) "", '0', 0) + 6, (char) (ViewConfiguration.getDoubleTapTimeout() >> 16));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
l(b6, b7, b7, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
int i10 = $11 + 51;
$10 = i10 % 128;
int i11 = i10 % 2;
i2 = 2;
}
String str = new String(cArr2, 0, i);
int i12 = $10 + 65;
$11 = i12 % 128;
int i13 = i12 % 2;
objArr[0] = str;
}
public final AbstractC13163fSk d() {
System.identityHashCode(this);
return (AbstractC13163fSk) e(new Object[]{this});
}
}