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

404 lines
15 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C15715hv;
import o.NZ;
/* renamed from: o.tU, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17041tU extends BaseAssetsDisplayMapper {
private static int a;
private static int b;
private static final byte[] $$d = {76, ISO7816.INS_UPDATE_RECORD, -78, ISOFileInfo.FCI_EXT};
private static final int $$e = 58;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 0;
/* 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 q(int r6, byte r7, short r8, java.lang.Object[] r9) {
/*
int r8 = r8 * 7
int r8 = r8 + 69
byte[] r0 = o.C17041tU.$$d
int r7 = r7 * 3
int r1 = r7 + 1
int r6 = r6 * 3
int r6 = 3 - r6
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L17
r8 = r6
r4 = r7
r3 = r2
goto L2e
L17:
r3 = r2
L18:
byte r4 = (byte) r8
r1[r3] = r4
if (r3 != r7) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L25:
int r6 = r6 + 1
int r3 = r3 + 1
r4 = r0[r6]
r5 = r8
r8 = r6
r6 = r5
L2e:
int r4 = -r4
int r6 = r6 + r4
r5 = r8
r8 = r6
r6 = r5
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.C17041tU.q(int, byte, short, java.lang.Object[]):void");
}
/* renamed from: o.tU$HBt */
/* loaded from: classes3.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C17041tU(Resources resources, SharedPreferences sharedPreferences, String str) {
super(resources, sharedPreferences, str);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
C14957gcv.e(str, "");
}
public final NZ e(C0765Oa c0765Oa, List<C1259ZbO> list, String str) {
String str2;
Boolean bool;
List list2;
List<String> list3;
C14851gaI c14851gaI;
C14851gaI c14851gaI2;
int i = 2 % 2;
C14957gcv.e(c0765Oa, "");
C14957gcv.e(list, "");
C14957gcv.e(str, "");
String str3 = c0765Oa.a.b;
List<String> list4 = c0765Oa.a.c;
C14957gcv.e(list4, "");
C14957gcv.e("\n", "");
String b2 = C14881gav.b(list4, "\n", null, null, 0, null, null, 62);
StringBuilder sb = new StringBuilder();
sb.append(str3);
sb.append("\n");
sb.append(b2);
String obj = sb.toString();
String str4 = (String) C6583cXR.c(new Object[]{false, true, c0765Oa.a.j}, -1092823629, 1092823630, (int) System.currentTimeMillis());
C14957gcv.c((Object) str4, "");
String str5 = c0765Oa.a.d.c;
if (str5 == null) {
Object[] objArr = new Object[1];
n(-TextUtils.lastIndexOf("", '0'), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), ExpandableListView.getPackedPositionType(0L) + 76, new char[]{0}, true, objArr);
str2 = ((String) objArr[0]).intern();
} else {
str2 = str5;
}
String str6 = c0765Oa.a.d.e;
if (str6 == null) {
Object[] objArr2 = new Object[1];
n((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), KeyEvent.keyCodeFromString("") + 1, View.MeasureSpec.getSize(0) + 76, new char[]{0}, true, objArr2);
str6 = ((String) objArr2[0]).intern();
}
String str7 = str6;
String str8 = c0765Oa.a.e;
String str9 = c0765Oa.a.g;
String str10 = (String) C6583cXR.c(new Object[]{false, true, c0765Oa.a.h}, -1092823629, 1092823630, (int) System.currentTimeMillis());
String b3 = C14881gav.b(c0765Oa.a.p, "\n", null, null, 0, null, RVV.e, 30);
String str11 = c0765Oa.a.a;
Object obj2 = null;
if (str11 != null) {
Object[] objArr3 = new Object[1];
n(1 - Color.red(0), View.getDefaultSize(0, 0) + 1, TextUtils.indexOf("", "") + 77, new char[]{0}, false, objArr3);
bool = Boolean.valueOf(str11.equals(((String) objArr3[0]).intern()));
} else {
bool = null;
}
NZ.IeS ieS = new NZ.IeS(obj, str4, str2, str7, str8, str9, str10, b3, bool);
NZ.ojQ ojq = new NZ.ojQ(C14881gav.b(c0765Oa.a.i, "\n", null, null, 0, null, IeS.a, 30));
String i2 = C6583cXR.i(c0765Oa.a.n);
C14957gcv.c((Object) i2, "");
NZ.RVV rvv = new NZ.RVV(i2, c(c0765Oa.a.l.d, list, str));
List<NX> list5 = c0765Oa.a.m;
C14957gcv.e(list5, "");
ArrayList arrayList = new ArrayList(list5 instanceof Collection ? list5.size() : 10);
for (NX nx : list5) {
arrayList.add(new C13396fZU(b_(nx.d), C6583cXR.b(nx.e, false)));
}
NZ.Sts sts = new NZ.Sts(arrayList);
String str12 = c0765Oa.a.f;
if (str12 != null) {
list2 = Collections.singletonList(str12);
C14957gcv.c(list2, "");
} else {
list2 = null;
}
NY ny = c0765Oa.a.f8308o;
if (ny != null) {
int i3 = b + 1;
d = i3 % 128;
if (i3 % 2 != 0) {
List<String> list6 = ny.c;
obj2.hashCode();
throw null;
}
list3 = ny.c;
} else {
list3 = null;
}
NY ny2 = c0765Oa.a.f8308o;
List<String> list7 = ny2 != null ? ny2.b : null;
ArrayList arrayList2 = new ArrayList();
NY ny3 = c0765Oa.a.f8308o;
if (ny3 == null || (c14851gaI = ny3.c) == null) {
c14851gaI = C14851gaI.c;
}
arrayList2.addAll(c14851gaI);
NY ny4 = c0765Oa.a.f8308o;
if (ny4 == null || (c14851gaI2 = ny4.b) == null) {
c14851gaI2 = C14851gaI.c;
}
arrayList2.addAll(c14851gaI2);
C14866gag c14866gag = C14866gag.c;
NZ.jbe jbeVar = new NZ.jbe(list2, list3, list7, arrayList2);
NZ.tOB tob = new NZ.tOB(Integer.parseInt(c0765Oa.i));
NZ.ZqN zqN = new NZ.ZqN(!c0765Oa.c.contains(OVB.TERMS_N_CONDITIONS.toString()));
List<String> list8 = c0765Oa.c;
ArrayList arrayList3 = new ArrayList();
for (Object obj3 : list8) {
if (!C14957gcv.b(obj3, (Object) OVB.TERMS_N_CONDITIONS.toString())) {
int i4 = b + 85;
d = i4 % 128;
int i5 = i4 % 2;
arrayList3.add(obj3);
int i6 = b + 21;
d = i6 % 128;
int i7 = i6 % 2;
}
}
ArrayList arrayList4 = arrayList3;
C14957gcv.e(arrayList4, "");
ArrayList arrayList5 = new ArrayList(arrayList4.size());
Iterator it = arrayList4.iterator();
while (it.hasNext()) {
arrayList5.add(new NZ.LWm(OVB.valueOf((String) it.next()), NZ.LWm.Sts.EMPTY));
}
ArrayList arrayList6 = arrayList5;
String str13 = c0765Oa.b.d;
String str14 = c0765Oa.b.d;
String str15 = c0765Oa.b.b.b;
String c = c(C15715hv.tOB.hml_business_owner_review_repayment_term_amount, c0765Oa.b.a, c0765Oa.b.b.a);
C14957gcv.c((Object) c, "");
return new NZ(ieS, ojq, rvv, sts, jbeVar, tob, zqN, arrayList6, str13, new NZ.saX(str14, str15, c));
}
/* renamed from: o.tU$RVV */
/* loaded from: classes3.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<String, CharSequence> {
public static final RVV e = new RVV();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ CharSequence invoke(String str) {
String str2 = str;
C14957gcv.e(str2, "");
return "- ".concat(String.valueOf(str2));
}
RVV() {
super(1);
}
}
/* renamed from: o.tU$IeS */
/* loaded from: classes3.dex */
static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<String, CharSequence> {
public static final IeS a = new IeS();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ CharSequence invoke(String str) {
String str2 = str;
C14957gcv.e(str2, "");
return "- ".concat(String.valueOf(str2));
}
IeS() {
super(1);
}
}
private static String c(String str, List<C1259ZbO> list, String str2) {
Object obj;
int i = 2 % 2;
Object obj2 = null;
if (str == null) {
return null;
}
int i2 = d + 13;
b = i2 % 128;
if (i2 % 2 != 0) {
Iterator<T> it = list.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (C14957gcv.b((Object) ((C1259ZbO) obj).d, (Object) str)) {
int i3 = b + 95;
d = i3 % 128;
int i4 = i3 % 2;
break;
}
}
C1259ZbO c1259ZbO = (C1259ZbO) obj;
if (c1259ZbO == null) {
return null;
}
Urh<String> urh = c1259ZbO.b;
return C14957gcv.b((Object) str2, (Object) "th") ? urh.d : urh.b;
}
list.iterator();
obj2.hashCode();
throw null;
}
private static void n(int i, int i2, int i3, char[] cArr, boolean z, Object[] objArr) {
char[] cArr2;
int i4 = 2 % 2;
zUI zui = new zUI();
char[] cArr3 = new char[i];
zui.d = 0;
while (zui.d < i) {
zui.c = cArr[zui.d];
cArr3[zui.d] = (char) (i3 + zui.c);
int i5 = zui.d;
try {
Object[] objArr2 = {Integer.valueOf(cArr3[i5]), Integer.valueOf(a)};
Object obj = xzZ.y.get(880493502);
if (obj == null) {
Class cls = (Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 144, 7 - (ViewConfiguration.getScrollDefaultDelay() >> 16), (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16));
byte b2 = (byte) 0;
byte b3 = b2;
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);
}
cArr3[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {zui, zui};
Object obj2 = xzZ.y.get(1294990079);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 341, 5 - Color.green(0), (char) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
q(b4, b5, (byte) (b5 + 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
if (i2 > 0) {
zui.a = i2;
char[] cArr4 = new char[i];
System.arraycopy(cArr3, 0, cArr4, 0, i);
System.arraycopy(cArr4, 0, cArr3, i - zui.a, zui.a);
System.arraycopy(cArr4, zui.a, cArr3, 0, i - zui.a);
}
if (z) {
int i6 = $10 + 63;
$11 = i6 % 128;
if (i6 % 2 == 0) {
cArr2 = new char[i];
zui.d = 1;
} else {
cArr2 = new char[i];
zui.d = 0;
}
while (zui.d < i) {
cArr2[zui.d] = cArr3[(i - zui.d) - 1];
Object[] objArr6 = {zui, zui};
Object obj3 = xzZ.y.get(1294990079);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 341, (-16777211) - Color.rgb(0, 0, 0), (char) (ImageFormat.getBitsPerPixel(0) + 1));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
q(b6, b7, (byte) (b7 + 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
cArr3 = cArr2;
}
String str = new String(cArr3);
int i7 = $11 + 37;
$10 = i7 % 128;
int i8 = i7 % 2;
objArr[0] = str;
}
static void i() {
a = 2015661627;
}
static {
b = 1;
i();
new HBt((byte) 0);
int i = d + 81;
b = i % 128;
int i2 = i % 2;
}
}