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

530 lines
18 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Color;
import android.telephony.cdma.CdmaCellLocation;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
import android.util.TypedValue;
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 o.C15715hv;
/* renamed from: o.Bw, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0230Bw extends BaseAssetsDisplayMapper {
private static char[] a;
private static int b;
private static final byte[] $$d = {55, -34, 73, 110};
private static final int $$e = 49;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 1;
public static /* synthetic */ Object b(Object[] objArr, int i, int i2, int i3) {
C16607pfX c16607pfX = (C16607pfX) objArr[0];
int i4 = 2 % 2;
int i5 = d + 29;
b = i5 % 128;
int i6 = i5 % 2;
C1108Vu c = c(c16607pfX);
int i7 = d + 37;
b = i7 % 128;
int i8 = i7 % 2;
return c;
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> 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(byte r7, short r8, int r9, java.lang.Object[] r10) {
/*
int r9 = r9 * 4
int r9 = 1 - r9
byte[] r0 = o.C0230Bw.$$d
int r7 = r7 * 2
int r7 = r7 + 71
int r8 = r8 * 2
int r8 = 3 - r8
byte[] r1 = new byte[r9]
r2 = 0
if (r0 != 0) goto L17
r7 = r8
r3 = r9
r5 = r2
goto L2e
L17:
r3 = r2
L18:
byte r4 = (byte) r7
int r5 = r3 + 1
r1[r3] = r4
if (r5 != r9) goto L27
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L27:
int r8 = r8 + 1
r3 = r0[r8]
r6 = r8
r8 = r7
r7 = r6
L2e:
int r8 = r8 + r3
r3 = r5
r6 = r8
r8 = r7
r7 = r6
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.C0230Bw.q(byte, short, int, java.lang.Object[]):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C0230Bw(Resources resources, SharedPreferences sharedPreferences, String str) {
super(resources, sharedPreferences, str);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
C14957gcv.e(str, "");
}
/* renamed from: o.Bw$LWm */
/* loaded from: classes3.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
/* JADX WARN: Code restructure failed: missing block: B:32:0x0034, code lost:
r4 = r4;
o.C14957gcv.e(r4, "");
*/
/* JADX WARN: Code restructure failed: missing block: B:33:0x003d, code lost:
if ((r4 instanceof java.util.Collection) == false) goto L12;
*/
/* JADX WARN: Code restructure failed: missing block: B:34:0x003f, code lost:
r13 = r4.size();
*/
/* JADX WARN: Code restructure failed: missing block: B:35:0x0049, code lost:
r12 = new java.util.ArrayList(r13);
r4 = r4.iterator();
r13 = 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:37:0x0057, code lost:
if (r4.hasNext() == false) goto L72;
*/
/* JADX WARN: Code restructure failed: missing block: B:38:0x0059, code lost:
r14 = (o.kRG) r4.next();
r15 = r14.a;
r8 = r15.hashCode();
*/
/* JADX WARN: Code restructure failed: missing block: B:39:0x0068, code lost:
if (r8 == (-1786549249)) goto L38;
*/
/* JADX WARN: Code restructure failed: missing block: B:40:0x006a, code lost:
r7 = o.C0230Bw.b + 107;
r16 = r4;
o.C0230Bw.d = r7 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:41:0x0075, code lost:
if ((r7 % 2) == 0) goto L71;
*/
/* JADX WARN: Code restructure failed: missing block: B:43:0x007a, code lost:
if (r8 == 561259739) goto L33;
*/
/* JADX WARN: Code restructure failed: missing block: B:45:0x007f, code lost:
if (r8 == 1585680696) goto L25;
*/
/* JADX WARN: Code restructure failed: missing block: B:47:0x0088, code lost:
if (r15.equals("TIMES_PER_CUSTOMER_PER_MONTH") != false) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:48:0x008a, code lost:
r4 = o.C0230Bw.d + 93;
o.C0230Bw.b = r4 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:49:0x0093, code lost:
if ((r4 % 2) != 0) goto L70;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0024, code lost:
if (r4 != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:51:0x0096, code lost:
r4 = null;
r4.hashCode();
*/
/* JADX WARN: Code restructure failed: missing block: B:52:0x009a, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:54:0x00c6, code lost:
r12.add(o.C14866gag.c);
r4 = r16;
*/
/* JADX WARN: Code restructure failed: missing block: B:55:0x009b, code lost:
r13 = (int) r14.b;
*/
/* JADX WARN: Code restructure failed: missing block: B:59:0x00a5, code lost:
if (r15.equals("PER_CUSTOMER_PER_DAY") == false) goto L75;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x00d1, code lost:
r13 = 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:60:0x00a7, code lost:
r7 = r14.b;
r4 = o.C0230Bw.b + 105;
o.C0230Bw.d = r4 % 128;
r4 = r4 % 2;
r10 = r7;
*/
/* JADX WARN: Code restructure failed: missing block: B:64:0x00b4, code lost:
r4 = null;
r4.hashCode();
*/
/* JADX WARN: Code restructure failed: missing block: B:65:0x00b8, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:66:0x00b9, code lost:
r16 = r4;
*/
/* JADX WARN: Code restructure failed: missing block: B:67:0x00c1, code lost:
if (r15.equals("PER_CUSTOMER_PER_MONTH") != false) goto L41;
*/
/* JADX WARN: Code restructure failed: missing block: B:68:0x00c4, code lost:
r5 = r14.b;
*/
/* JADX WARN: Code restructure failed: missing block: B:73:0x0047, code lost:
r13 = 10;
*/
/* JADX WARN: Code restructure failed: missing block: B:75:0x0032, code lost:
if (r4 != null) goto L9;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final o.VC c(o.C1106Vt r37, o.NxD r38, boolean r39, java.lang.Double r40) {
/*
Method dump skipped, instructions count: 538
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C0230Bw.c(o.Vt, o.NxD, boolean, java.lang.Double):o.VC");
}
private final String b(boolean z, double d2) {
String string;
int i;
int i2 = 2 % 2;
int i3 = d + 83;
b = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
if (z) {
string = this.e.getString(C15715hv.tOB.remittance_promptpay_input_remaining_daily_limit_message, c(Double.valueOf(d2)));
C14957gcv.c((Object) string, "");
i = d + 71;
b = i % 128;
} else {
string = this.e.getString(C15715hv.tOB.remittance_input_remaining_daily_limit_message, c(Double.valueOf(d2)));
C14957gcv.c((Object) string, "");
i = b + 39;
d = i % 128;
}
int i4 = i % 2;
return string;
}
private final SpannableStringBuilder Ub_() {
int i = 2 % 2;
int i2 = d + 121;
b = i2 % 128;
int i3 = i2 % 2;
SpannableStringBuilder Qn_ = C17046tXv.Qn_(this.e.getString(C15715hv.tOB.remittance_input_amount_from_title), this.e.getString(C15715hv.tOB.remittance_input_amount_from_currency));
int i4 = b + 99;
d = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 83 / 0;
}
return Qn_;
}
private final SpannableStringBuilder Uc_(String str) {
int i = 2 % 2;
String string = this.e.getString(C15715hv.tOB.remittance_input_amount_to_title, str);
StringBuilder sb = new StringBuilder(" ");
sb.append(str);
sb.append(" ");
SpannableStringBuilder Qn_ = C17046tXv.Qn_(string, sb.toString());
int i2 = d + 9;
b = i2 % 128;
int i3 = i2 % 2;
return Qn_;
}
/* JADX WARN: Code restructure failed: missing block: B:9:0x0049, code lost:
if (r7 == null) goto L14;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static o.C1108Vu c(o.C16607pfX r7) {
/*
r0 = 2
int r1 = r0 % r0
r1 = 0
if (r7 == 0) goto L20
int r2 = o.C0230Bw.d
int r2 = r2 + 25
int r3 = r2 % 128
o.C0230Bw.b = r3
int r2 = r2 % r0
if (r2 != 0) goto L1d
java.lang.String r2 = r7.d
int r3 = o.C0230Bw.b
int r3 = r3 + 107
int r4 = r3 % 128
o.C0230Bw.d = r4
int r3 = r3 % r0
goto L21
L1d:
java.lang.String r7 = r7.d
throw r1
L20:
r2 = r1
L21:
r3 = 1
byte[] r4 = new byte[r3]
r5 = 0
r4[r5] = r3
int[] r6 = new int[]{r5, r3, r5, r3}
java.lang.Object[] r3 = new java.lang.Object[r3]
n(r4, r6, r5, r3)
r3 = r3[r5]
java.lang.String r3 = (java.lang.String) r3
java.lang.String r3 = r3.intern()
boolean r2 = o.C14957gcv.b(r2, r3)
if (r7 == 0) goto L4b
int r3 = o.C0230Bw.d
int r3 = r3 + 91
int r4 = r3 % 128
o.C0230Bw.b = r4
int r3 = r3 % r0
java.util.List<java.lang.String> r7 = r7.b
if (r7 != 0) goto L4f
L4b:
o.gaI r7 = o.C14851gaI.c
java.util.List r7 = (java.util.List) r7
L4f:
o.Vu r0 = new o.Vu
r0.<init>(r2, r7, r1)
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: o.C0230Bw.c(o.pfX):o.Vu");
}
private static void n(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
int i;
char[] cArr;
char[] cArr2;
int i2 = 2 % 2;
TVH tvh = new TVH();
int i3 = 0;
int i4 = iArr[0];
int i5 = 1;
int i6 = iArr[1];
int i7 = iArr[2];
int i8 = iArr[3];
char[] cArr3 = a;
long j = 0;
if (cArr3 != null) {
int length = cArr3.length;
char[] cArr4 = new char[length];
int i9 = 0;
while (i9 < length) {
try {
Object[] objArr2 = new Object[i5];
objArr2[i3] = Integer.valueOf(cArr3[i9]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
cArr2 = cArr3;
} else {
Class cls = (Class) xzZ.c(Color.blue(i3) + 223, (TypedValue.complexToFraction(i3, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(i3, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (41977 - ExpandableListView.getPackedPositionType(j)));
byte b2 = (byte) i3;
byte b3 = b2;
cArr2 = cArr3;
Object[] objArr3 = new Object[1];
q(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr4[i9] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i9++;
cArr3 = cArr2;
i3 = 0;
i5 = 1;
j = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
int i10 = $10 + 105;
$11 = i10 % 128;
int i11 = i10 % 2;
cArr3 = cArr4;
}
char[] cArr5 = new char[i6];
System.arraycopy(cArr3, i4, cArr5, 0, i6);
if (bArr != null) {
char[] cArr6 = new char[i6];
tvh.c = 0;
int i12 = $11 + 121;
$10 = i12 % 128;
int i13 = i12 % 2;
char c = 0;
while (tvh.c < i6) {
if (bArr[tvh.c] == 1) {
int i14 = tvh.c;
Object[] objArr4 = {Integer.valueOf(cArr5[tvh.c]), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(850398076);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(502 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), 5 - ExpandableListView.getPackedPositionGroup(0L), (char) (54 - View.resolveSize(0, 0)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr6[i14] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
} else {
int i15 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr5[tvh.c]), Integer.valueOf(c)};
Object obj3 = xzZ.y.get(1084521042);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(15 - TextUtils.indexOf("", "", 0, 0), KeyEvent.getDeadChar(0, 0) + 5, (char) (58133 - TextUtils.indexOf((CharSequence) "", '0')))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj3);
}
cArr6[i15] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
}
c = cArr6[tvh.c];
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(401 - ((byte) KeyEvent.getModifierMetaStateMask()), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 5, (char) (ExpandableListView.getPackedPositionGroup(0L) + 21608));
byte b4 = (byte) ($$e & 7);
byte b5 = (byte) (b4 - 1);
Object[] objArr7 = new Object[1];
q(b4, b5, b5, objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
}
cArr5 = cArr6;
}
if (i8 > 0) {
char[] cArr7 = new char[i6];
System.arraycopy(cArr5, 0, cArr7, 0, i6);
int i16 = i6 - i8;
System.arraycopy(cArr7, 0, cArr5, i16, i8);
System.arraycopy(cArr7, i8, cArr5, 0, i16);
}
if (z) {
int i17 = $11 + 37;
$10 = i17 % 128;
if (i17 % 2 != 0) {
cArr = new char[i6];
i = 1;
tvh.c = 1;
} else {
i = 1;
cArr = new char[i6];
tvh.c = 0;
}
while (tvh.c < i6) {
cArr[tvh.c] = cArr5[(i6 - tvh.c) - i];
tvh.c += i;
i = 1;
}
cArr5 = cArr;
}
if (i7 > 0) {
int i18 = $11 + 85;
$10 = i18 % 128;
int i19 = i18 % 2;
int i20 = 0;
while (true) {
tvh.c = i20;
if (tvh.c >= i6) {
break;
}
cArr5[tvh.c] = (char) (cArr5[tvh.c] - iArr[2]);
i20 = tvh.c + 1;
}
}
objArr[0] = new String(cArr5);
}
static void g() {
a = new char[]{39955};
}
private static /* synthetic */ C1108Vu e(C16607pfX c16607pfX) {
return (C1108Vu) b(new Object[]{c16607pfX}, 300704198, -300704198, (int) System.currentTimeMillis());
}
static {
b = 0;
g();
new LWm((byte) 0);
int i = d + 111;
b = i % 128;
int i2 = i % 2;
}
}