378 lines
14 KiB
Java
378 lines
14 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import android.graphics.Color;
|
|
import android.graphics.ImageFormat;
|
|
import android.media.AudioTrack;
|
|
import android.os.Process;
|
|
import android.text.AndroidCharacter;
|
|
import android.text.TextUtils;
|
|
import android.view.Gravity;
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
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.List;
|
|
import net.sf.scuba.smartcards.ISOFileInfo;
|
|
import o.C15715hv;
|
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
|
|
|
/* renamed from: o.zk, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C17789zk extends BaseAssetsDisplayMapper {
|
|
private static boolean a;
|
|
private static int b;
|
|
private static char[] d;
|
|
private static boolean h;
|
|
private static int i;
|
|
private static final byte[] $$d = {67, 63, -31, 118};
|
|
private static final int $$e = CipherSuite.TLS_DH_RSA_WITH_SEED_CBC_SHA;
|
|
private static int $10 = 0;
|
|
private static int $11 = 1;
|
|
private static int g = 1;
|
|
|
|
/* 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: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 q(byte r5, short r6, int r7, java.lang.Object[] r8) {
|
|
/*
|
|
byte[] r0 = o.C17789zk.$$d
|
|
int r7 = r7 * 57
|
|
int r7 = r7 + 65
|
|
int r5 = r5 * 3
|
|
int r1 = r5 + 1
|
|
int r6 = r6 + 4
|
|
byte[] r1 = new byte[r1]
|
|
r2 = 0
|
|
if (r0 != 0) goto L15
|
|
r3 = r7
|
|
r4 = r2
|
|
r7 = r5
|
|
goto L29
|
|
L15:
|
|
r3 = r2
|
|
L16:
|
|
byte r4 = (byte) r7
|
|
r1[r3] = r4
|
|
int r6 = r6 + 1
|
|
int r4 = r3 + 1
|
|
if (r3 != r5) goto L27
|
|
java.lang.String r5 = new java.lang.String
|
|
r5.<init>(r1, r2)
|
|
r8[r2] = r5
|
|
return
|
|
L27:
|
|
r3 = r0[r6]
|
|
L29:
|
|
int r7 = r7 + r3
|
|
r3 = r4
|
|
goto L16
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.C17789zk.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 C17789zk(Resources resources, SharedPreferences sharedPreferences, String str) {
|
|
super(resources, sharedPreferences, str);
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(sharedPreferences, "");
|
|
C14957gcv.e(str, "");
|
|
}
|
|
|
|
/* renamed from: o.zk$IeS */
|
|
/* loaded from: classes3.dex */
|
|
public static final class IeS {
|
|
private IeS() {
|
|
}
|
|
|
|
public /* synthetic */ IeS(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public final TY e(C6410cS c6410cS, String str, C8463dLv c8463dLv, C1203Xy c1203Xy, boolean z, String str2) {
|
|
String str3;
|
|
String str4;
|
|
boolean z2;
|
|
C14851gaI c14851gaI;
|
|
int i2 = 2 % 2;
|
|
C14957gcv.e(c6410cS, "");
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(c8463dLv, "");
|
|
C14957gcv.e(c1203Xy, "");
|
|
String str5 = c8463dLv.n;
|
|
String str6 = c8463dLv.i;
|
|
String str7 = str6 == null ? "" : str6;
|
|
String str8 = c6410cS.f;
|
|
String str9 = c6410cS.j;
|
|
String str10 = c8463dLv.e;
|
|
String b_ = b_(c8463dLv.b);
|
|
String str11 = c1203Xy.f.f;
|
|
List<XI> list = c1203Xy.f.i;
|
|
C14957gcv.c(list, "");
|
|
C14957gcv.e(list, "");
|
|
XI xi = list.isEmpty() ? null : list.get(0);
|
|
if (xi != null) {
|
|
int i3 = g + 57;
|
|
i = i3 % 128;
|
|
if (i3 % 2 != 0) {
|
|
String str12 = xi.a;
|
|
throw null;
|
|
}
|
|
str3 = xi.a;
|
|
} else {
|
|
str3 = null;
|
|
}
|
|
if (str3 == null) {
|
|
int i4 = g + 107;
|
|
i = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
str4 = "";
|
|
} else {
|
|
str4 = str3;
|
|
}
|
|
String b_2 = b_(c1203Xy.f.d);
|
|
String m = m(c6410cS.g);
|
|
String m2 = m(c6410cS.i);
|
|
String m3 = m(c6410cS.c);
|
|
String m4 = m(c6410cS.a);
|
|
String str13 = c8463dLv.g;
|
|
if (c6410cS.b == null || !(!gdZ.d((CharSequence) r4))) {
|
|
z2 = true;
|
|
} else {
|
|
int i6 = i + 63;
|
|
g = i6 % 128;
|
|
int i7 = i6 % 2;
|
|
z2 = false;
|
|
}
|
|
String str14 = z2 ^ true ? c6410cS.b : null;
|
|
C15758iOf c15758iOf = c8463dLv.f;
|
|
if (c15758iOf != null) {
|
|
int i8 = i + 119;
|
|
g = i8 % 128;
|
|
int i9 = i8 % 2;
|
|
c14851gaI = c15758iOf.c;
|
|
} else {
|
|
c14851gaI = null;
|
|
}
|
|
if (c14851gaI == null) {
|
|
int i10 = g + 27;
|
|
i = i10 % 128;
|
|
if (i10 % 2 != 0) {
|
|
C14851gaI c14851gaI2 = C14851gaI.c;
|
|
throw null;
|
|
}
|
|
c14851gaI = C14851gaI.c;
|
|
}
|
|
TO to = new TO(b(c14851gaI, z));
|
|
String str15 = c6410cS.h;
|
|
String str16 = c1203Xy.f.k;
|
|
String str17 = c1203Xy.f.g;
|
|
String str18 = str2 == null ? "" : str2;
|
|
C14957gcv.c((Object) str11, "");
|
|
return new TY(str5, str8, str7, str9, str10, str, str11, b_2, str4, m, m2, m3, m4, str13, str14, to, str15, b_, str16, str17, str18, 131072);
|
|
}
|
|
|
|
private static String m(String str) {
|
|
int i2 = 2 % 2;
|
|
if (str != null) {
|
|
int i3 = i + 71;
|
|
g = i3 % 128;
|
|
if (i3 % 2 == 0) {
|
|
gdZ.a(str, ",", "");
|
|
throw null;
|
|
}
|
|
String a2 = gdZ.a(str, ",", "");
|
|
if (a2 != null) {
|
|
return a2;
|
|
}
|
|
}
|
|
Object[] objArr = new Object[1];
|
|
n(null, new byte[]{ISOFileInfo.DATA_BYTES2}, null, 127 - TextUtils.indexOf("", "", 0), objArr);
|
|
String intern = ((String) objArr[0]).intern();
|
|
int i4 = g + 69;
|
|
i = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
return intern;
|
|
}
|
|
|
|
private final List<XL> b(List<C16360nhu> list, boolean z) {
|
|
int i2;
|
|
int i3 = 2 % 2;
|
|
ArrayList arrayList = new ArrayList();
|
|
if (z) {
|
|
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));
|
|
}
|
|
List<C16360nhu> list2 = list;
|
|
C14957gcv.e(list2, "");
|
|
if (list2 instanceof Collection) {
|
|
i2 = list2.size();
|
|
int i4 = i + 85;
|
|
g = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
} else {
|
|
i2 = 10;
|
|
}
|
|
ArrayList arrayList2 = new ArrayList(i2);
|
|
for (C16360nhu c16360nhu : list2) {
|
|
arrayList2.add(new XL(c16360nhu.d, c16360nhu.c, c16360nhu.a, c16360nhu.b, c16360nhu.e, null));
|
|
}
|
|
arrayList.addAll(C14881gav.d((Iterable) arrayList2));
|
|
return arrayList;
|
|
}
|
|
|
|
private static void n(char[] cArr, byte[] bArr, int[] iArr, int i2, Object[] objArr) {
|
|
int i3;
|
|
char[] cArr2;
|
|
int i4 = 2 % 2;
|
|
C3614bBe c3614bBe = new C3614bBe();
|
|
char[] cArr3 = d;
|
|
int i5 = 0;
|
|
if (cArr3 != null) {
|
|
int length = cArr3.length;
|
|
char[] cArr4 = new char[length];
|
|
int i6 = 0;
|
|
while (i6 < length) {
|
|
try {
|
|
Object[] objArr2 = new Object[1];
|
|
objArr2[i5] = Integer.valueOf(cArr3[i6]);
|
|
Object obj = xzZ.y.get(-950481649);
|
|
if (obj == null) {
|
|
Class cls = (Class) xzZ.c(337 - Color.argb(i5, i5, i5, i5), 5 - TextUtils.getOffsetAfter("", i5), (char) View.getDefaultSize(i5, i5));
|
|
byte b2 = (byte) i5;
|
|
byte b3 = (byte) (b2 - 1);
|
|
Object[] objArr3 = new Object[1];
|
|
q(b2, b3, (byte) (b3 + 1), objArr3);
|
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
|
xzZ.y.put(-950481649, obj);
|
|
}
|
|
cArr4[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
|
i6++;
|
|
i5 = 0;
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
cArr3 = cArr4;
|
|
}
|
|
Object[] objArr4 = {Integer.valueOf(b)};
|
|
Object obj2 = xzZ.y.get(-1521625011);
|
|
if (obj2 == null) {
|
|
Class cls2 = (Class) xzZ.c(283 - TextUtils.getOffsetBefore("", 0), '5' - AndroidCharacter.getMirror('0'), (char) (Process.getGidForName("") + 39814));
|
|
byte b4 = (byte) 0;
|
|
byte b5 = (byte) (b4 - 1);
|
|
Object[] objArr5 = new Object[1];
|
|
q(b4, b5, (byte) (-b5), objArr5);
|
|
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
|
|
xzZ.y.put(-1521625011, obj2);
|
|
}
|
|
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
|
|
if (h) {
|
|
int i7 = $11 + 55;
|
|
$10 = i7 % 128;
|
|
if (i7 % 2 != 0) {
|
|
c3614bBe.c = bArr.length;
|
|
cArr2 = new char[c3614bBe.c];
|
|
i3 = 0;
|
|
} else {
|
|
i3 = 0;
|
|
c3614bBe.c = bArr.length;
|
|
cArr2 = new char[c3614bBe.c];
|
|
}
|
|
c3614bBe.a = i3;
|
|
int i8 = $11 + 107;
|
|
$10 = i8 % 128;
|
|
int i9 = i8 % 2;
|
|
while (c3614bBe.a < c3614bBe.c) {
|
|
int i10 = $10 + 75;
|
|
$11 = i10 % 128;
|
|
int i11 = i10 % 2;
|
|
cArr2[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i2] - intValue);
|
|
Object[] objArr6 = {c3614bBe, c3614bBe};
|
|
Object obj3 = xzZ.y.get(1779759091);
|
|
if (obj3 == null) {
|
|
obj3 = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0, 0) + 41, ImageFormat.getBitsPerPixel(0) + 6, (char) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1))).getMethod("D", Object.class, Object.class);
|
|
xzZ.y.put(1779759091, obj3);
|
|
}
|
|
((Method) obj3).invoke(null, objArr6);
|
|
}
|
|
objArr[0] = new String(cArr2);
|
|
return;
|
|
}
|
|
if (a) {
|
|
c3614bBe.c = cArr.length;
|
|
char[] cArr5 = new char[c3614bBe.c];
|
|
c3614bBe.a = 0;
|
|
while (c3614bBe.a < c3614bBe.c) {
|
|
int i12 = $10 + 11;
|
|
$11 = i12 % 128;
|
|
if (i12 % 2 == 0) {
|
|
cArr5[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c / 0) % c3614bBe.a] * i2] * intValue);
|
|
Object[] objArr7 = {c3614bBe, c3614bBe};
|
|
Object obj4 = xzZ.y.get(1779759091);
|
|
if (obj4 == null) {
|
|
obj4 = ((Class) xzZ.c(40 - (ViewConfiguration.getFadingEdgeLength() >> 16), (Process.myTid() >> 22) + 5, (char) Gravity.getAbsoluteGravity(0, 0))).getMethod("D", Object.class, Object.class);
|
|
xzZ.y.put(1779759091, obj4);
|
|
}
|
|
((Method) obj4).invoke(null, objArr7);
|
|
} else {
|
|
cArr5[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
|
|
Object[] objArr8 = {c3614bBe, c3614bBe};
|
|
Object obj5 = xzZ.y.get(1779759091);
|
|
if (obj5 == null) {
|
|
obj5 = ((Class) xzZ.c((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 40, 5 - (ViewConfiguration.getKeyRepeatDelay() >> 16), (char) (1 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))))).getMethod("D", Object.class, Object.class);
|
|
xzZ.y.put(1779759091, obj5);
|
|
}
|
|
((Method) obj5).invoke(null, objArr8);
|
|
}
|
|
}
|
|
objArr[0] = new String(cArr5);
|
|
return;
|
|
}
|
|
int i13 = 0;
|
|
c3614bBe.c = iArr.length;
|
|
char[] cArr6 = new char[c3614bBe.c];
|
|
while (true) {
|
|
c3614bBe.a = i13;
|
|
if (c3614bBe.a >= c3614bBe.c) {
|
|
objArr[0] = new String(cArr6);
|
|
return;
|
|
} else {
|
|
cArr6[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
|
|
i13 = c3614bBe.a + 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
static void i() {
|
|
d = new char[]{16105};
|
|
b = 1934311129;
|
|
a = true;
|
|
h = true;
|
|
}
|
|
|
|
static {
|
|
i = 0;
|
|
i();
|
|
new IeS((byte) 0);
|
|
int i2 = g + 19;
|
|
i = i2 % 128;
|
|
if (i2 % 2 != 0) {
|
|
throw null;
|
|
}
|
|
}
|
|
}
|