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

302 lines
10 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.Process;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.common.base.Ascii;
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
import o.C15715hv;
import org.bouncycastle.crypto.tls.CipherSuite;
/* renamed from: o.zu, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17810zu extends BaseAssetsDisplayMapper {
private static int a;
private static int b;
private static final byte[] $$d = {69, ISO7816.INS_CHANGE_CHV, 67, Ascii.CAN};
private static final int $$e = 231;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 1;
/* 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:0x002d). 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 q(short r6, byte r7, short r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 7
int r6 = 76 - r6
int r8 = r8 * 3
int r0 = r8 + 1
byte[] r1 = o.C17810zu.$$d
int r7 = r7 * 3
int r7 = r7 + 4
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L17
r3 = r7
r6 = r8
r4 = r2
goto L2d
L17:
r3 = r2
L18:
byte r4 = (byte) r6
r0[r3] = r4
if (r3 != r8) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L25:
int r3 = r3 + 1
r4 = r1[r7]
r5 = r3
r3 = r7
r7 = r4
r4 = r5
L2d:
int r7 = -r7
int r3 = r3 + 1
int r6 = r6 + r7
r7 = r3
r3 = r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.C17810zu.q(short, byte, short, java.lang.Object[]):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C17810zu(Resources resources, SharedPreferences sharedPreferences, String str) {
super(resources, sharedPreferences, str);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
C14957gcv.e(str, "");
}
/* renamed from: o.zu$IeS */
/* loaded from: classes3.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
public final TY b(C6410cS c6410cS, String str, String str2, nET net2, C1203Xy c1203Xy, String str3) {
boolean z;
String str4;
int i = 2 % 2;
C14957gcv.e(c6410cS, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(net2, "");
C14957gcv.e(c1203Xy, "");
C14957gcv.e(str3, "");
String str5 = net2.d;
String str6 = net2.a;
String str7 = c6410cS.f;
String str8 = c6410cS.j;
String b_ = b_(net2.e);
String str9 = c1203Xy.f.f;
String b_2 = b_(c1203Xy.f.d);
String k = k(c6410cS.g);
String k2 = k(c6410cS.i);
String k3 = k(c6410cS.c);
String k4 = k(c6410cS.a);
String str10 = net2.b;
String str11 = c6410cS.b;
if (str11 == null || gdZ.d((CharSequence) str11)) {
z = true;
} else {
int i2 = d + 23;
a = i2 % 128;
int i3 = i2 % 2;
z = false;
}
if (!z) {
String str12 = c6410cS.b;
int i4 = a + 57;
str4 = str12;
d = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 2 % 3;
}
} else {
int i6 = d + 65;
a = i6 % 128;
int i7 = i6 % 2;
str4 = null;
}
TO to = new TO(m(c6410cS.f));
String str13 = c6410cS.h;
String str14 = c1203Xy.f.k;
String str15 = c1203Xy.f.g;
C14957gcv.c((Object) str9, "");
return new TY(str5, str7, str6, str8, str, str2, str9, b_2, str3, k, k2, k3, k4, str10, str4, to, str13, b_, str14, str15, (String) null, 2228224);
}
private static String k(String str) {
String a2;
int i = 2 % 2;
int i2 = a + 67;
d = i2 % 128;
if (i2 % 2 == 0) {
Object obj = null;
obj.hashCode();
throw null;
}
if (str != null && (a2 = gdZ.a(str, ",", "")) != null) {
return a2;
}
Object[] objArr = new Object[1];
n(1 - TextUtils.getTrimmedLength(""), AndroidCharacter.getMirror('0') - '/', 215 - TextUtils.indexOf((CharSequence) "", '0', 0), new char[]{0}, false, objArr);
String intern = ((String) objArr[0]).intern();
int i3 = d + 17;
a = i3 % 128;
int i4 = i3 % 2;
return intern;
}
private final List<XL> m(String str) {
int i = 2 % 2;
ArrayList arrayList = new ArrayList();
if (C14957gcv.b((Object) str, (Object) "P")) {
arrayList.add(new XL("TEXT", e(C15715hv.tOB.point_x_partner_payment_remark), null, e(C15715hv.tOB.point_x_partner_payment_credit_card_remark_message), null, null, null));
}
ArrayList arrayList2 = arrayList;
int i2 = d + 73;
a = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 85 / 0;
}
return arrayList2;
}
private static void n(int i, int i2, int i3, char[] cArr, boolean z, Object[] objArr) {
int i4 = 2 % 2;
zUI zui = new zUI();
char[] cArr2 = new char[i];
zui.d = 0;
while (zui.d < i) {
zui.c = cArr[zui.d];
cArr2[zui.d] = (char) (i3 + zui.c);
int i5 = zui.d;
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i5]), Integer.valueOf(b)};
Object obj = xzZ.y.get(880493502);
if (obj == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> 16) + CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA, 7 - KeyEvent.normalizeMetaState(0), (char) KeyEvent.keyCodeFromString(""));
byte b2 = (byte) ($$e & 1);
byte b3 = (byte) (b2 - 1);
Object[] objArr3 = new Object[1];
q(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(880493502, obj);
}
cArr2[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
try {
Object[] objArr4 = {zui, zui};
Object obj2 = xzZ.y.get(1294990079);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 343, ((Process.getThreadPriority(0) + 20) >> 6) + 5, (char) Color.argb(0, 0, 0, 0));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
q(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i6 = $10 + 81;
$11 = i6 % 128;
int i7 = i6 % 2;
} 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;
}
}
if (i2 > 0) {
zui.a = i2;
char[] cArr3 = new char[i];
System.arraycopy(cArr2, 0, cArr3, 0, i);
System.arraycopy(cArr3, 0, cArr2, i - zui.a, zui.a);
System.arraycopy(cArr3, zui.a, cArr2, 0, i - zui.a);
int i8 = $11 + 25;
$10 = i8 % 128;
if (i8 % 2 != 0) {
int i9 = 2 / 2;
}
}
if (!(!z)) {
char[] cArr4 = new char[i];
zui.d = 0;
while (zui.d < i) {
cArr4[zui.d] = cArr2[(i - zui.d) - 1];
try {
Object[] objArr6 = {zui, zui};
Object obj3 = xzZ.y.get(1294990079);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 341, ExpandableListView.getPackedPositionChild(0L) + 6, (char) (Process.myTid() >> 22));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
q(b6, b7, b7, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj3);
}
((Method) obj3).invoke(null, objArr6);
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
cArr2 = cArr4;
}
objArr[0] = new String(cArr2);
}
static void i() {
b = 2015661711;
}
static {
a = 0;
i();
new IeS((byte) 0);
int i = d + 39;
a = i % 128;
int i2 = i % 2;
}
}