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

520 lines
18 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C15715hv;
/* renamed from: o.ni, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16361ni extends C16157lj {
private static int a;
private static char b;
private static long d;
private static int i;
private static final byte[] $$d = {76, ISO7816.INS_UPDATE_RECORD, -78, ISOFileInfo.FCI_EXT};
private static final int $$e = 202;
private static int $10 = 0;
private static int $11 = 1;
private static int g = 0;
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0026). 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 s(short r6, short r7, int r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 4
int r6 = r6 + 1
byte[] r0 = o.C16361ni.$$d
int r8 = 115 - r8
int r7 = r7 * 2
int r7 = 4 - r7
byte[] r1 = new byte[r6]
r2 = 0
if (r0 != 0) goto L14
r3 = r6
r4 = r2
goto L26
L14:
r3 = r2
L15:
int r4 = r3 + 1
byte r5 = (byte) r8
r1[r3] = r5
if (r4 != r6) goto L24
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L24:
r3 = r0[r7]
L26:
int r7 = r7 + 1
int r8 = r8 + r3
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: o.C16361ni.s(short, short, int, java.lang.Object[]):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C16361ni(Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
}
/* renamed from: o.ni$LWm */
/* loaded from: classes3.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
public final C0432Gk d(iAj iaj, C0430Gj c0430Gj) {
String str;
String str2;
boolean z;
int i2 = 2 % 2;
C14957gcv.e(iaj, "");
C14957gcv.e(c0430Gj, "");
boolean z2 = false;
C0432Gk c0432Gk = new C0432Gk((byte) 0);
String str3 = iaj.k;
String str4 = null;
if (str3 != null) {
int i3 = g + 35;
i = i3 % 128;
if (i3 % 2 == 0) {
d(C2974aoj.a(str3, null));
throw null;
}
str = d(C2974aoj.a(str3, null));
} else {
str = null;
}
c0432Gk.x = str != null ? str : "";
c0432Gk.m = c0430Gj.f8183o;
c0432Gk.g = c0430Gj.f;
String str5 = iaj.h;
c0432Gk.b = str5 != null ? k(str5) : null;
String str6 = iaj.d;
if (str6 != null) {
StringBuilder sb = new StringBuilder();
sb.append(str6);
sb.append("%");
str2 = sb.toString();
} else {
str2 = null;
}
c0432Gk.n = str2;
String str7 = iaj.g;
if (str7 != null) {
System.identityHashCode(this);
str4 = (String) a(new Object[]{this, str7});
}
c0432Gk.l = str4;
c0432Gk.s = h(iaj.f);
c0432Gk.k = h(iaj.c);
c0432Gk.f = iaj.b;
c0432Gk.u = h(iaj.f9167o);
c0432Gk.p = h(iaj.i);
c0432Gk.v = h(iaj.m);
c0432Gk.q = h(iaj.j);
c0432Gk.w = h(iaj.n);
c0432Gk.y = iaj.l;
RVV d2 = d(iaj.e);
c0432Gk.c = d2.d;
c0432Gk.r = d2.a;
List<C0552JgO> list = iaj.e;
if (list == null || d2.d != list.size()) {
z = false;
} else {
int i4 = i;
int i5 = i4 + 103;
g = i5 % 128;
int i6 = i5 % 2;
int i7 = i4 + 15;
g = i7 % 128;
int i8 = i7 % 2;
z = true;
}
c0432Gk.e = z;
List<C0552JgO> list2 = iaj.e;
if (list2 != null && d2.a == list2.size()) {
z2 = true;
}
c0432Gk.h = z2;
String c = c(C15715hv.tOB.transaction_successful, String.valueOf(c0432Gk.r));
String c2 = c(C15715hv.tOB.transaction_failed, String.valueOf(c0432Gk.c));
if (c0430Gj.i) {
int i9 = i + 49;
g = i9 % 128;
int i10 = i9 % 2;
c = c(C15715hv.tOB.new_transaction_successful, String.valueOf(c0432Gk.r));
c2 = c(C15715hv.tOB.new_transaction_failed, String.valueOf(c0432Gk.c));
}
c0432Gk.j = c0430Gj.i;
c0432Gk.t = c;
c0432Gk.d = c2;
c0432Gk.f8184o = d2.e;
c0432Gk.a = c0430Gj.c;
c0432Gk.i = a(c0430Gj, iaj.a);
return c0432Gk;
}
/* JADX WARN: Removed duplicated region for block: B:14:0x0046 */
/* JADX WARN: Removed duplicated region for block: B:16:? A[RETURN, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static boolean a(o.C0430Gj r4, java.lang.String r5) {
/*
r0 = 2
int r1 = r0 % r0
int r1 = o.C16361ni.g
int r1 = r1 + 89
int r2 = r1 % 128
o.C16361ni.i = r2
int r1 = r1 % r0
java.lang.String r1 = r4.a
java.lang.String r2 = "CDX"
boolean r1 = o.C14957gcv.b(r1, r2)
r2 = 1
r1 = r1 ^ r2
if (r1 == r2) goto L20
java.lang.String r1 = "EFFECTIVE_RATE"
boolean r5 = o.C14957gcv.b(r5, r1)
if (r5 == r2) goto L47
L20:
java.lang.String r4 = r4.h
java.lang.CharSequence r4 = (java.lang.CharSequence) r4
r5 = 0
if (r4 == 0) goto L41
int r1 = o.C16361ni.i
int r1 = r1 + 101
int r3 = r1 % 128
o.C16361ni.g = r3
int r1 = r1 % r0
boolean r4 = o.gdZ.d(r4)
if (r4 != 0) goto L41
int r4 = o.C16361ni.g
int r4 = r4 + 21
int r1 = r4 % 128
o.C16361ni.i = r1
int r4 = r4 % r0
r4 = r5
goto L42
L41:
r4 = r2
L42:
r4 = r4 ^ r2
if (r4 == 0) goto L46
goto L47
L46:
r2 = r5
L47:
return r2
*/
throw new UnsupportedOperationException("Method not decompiled: o.C16361ni.a(o.Gj, java.lang.String):boolean");
}
private final String k(String str) {
int i2 = 2 % 2;
int i3 = g + 55;
i = i3 % 128;
int i4 = i3 % 2;
Object[] objArr = new Object[1];
q((char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 9743), 135114442 - View.MeasureSpec.getMode(0), new char[]{51805, 3502, 4104, 62758}, new char[]{33684}, new char[]{0, 0, 0, 0}, objArr);
String format = String.format("%s %s", gjJ.e(str, ((String) objArr[0]).intern()), this.e.getString(C15715hv.tOB.month_label));
C14957gcv.c((Object) format, "");
int i5 = g + 117;
i = i5 % 128;
int i6 = i5 % 2;
return format;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object a(Object[] objArr) {
C16361ni c16361ni = (C16361ni) objArr[0];
String str = (String) objArr[1];
int i2 = 2 % 2;
int i3 = i + 7;
g = i3 % 128;
int i4 = i3 % 2;
gcH gch = gcH.d;
String format = String.format("%s %s", Arrays.copyOf(new Object[]{c16361ni.e.getString(C15715hv.tOB.ref_id_label), str}, 2));
C14957gcv.c((Object) format, "");
int i5 = g + 3;
i = i5 % 128;
int i6 = i5 % 2;
return format;
}
private final RVV d(List<C0552JgO> list) {
int i2 = 2 % 2;
int i3 = i + 77;
g = i3 % 128;
int i4 = i3 % 2;
int i5 = 0;
if (list == null) {
RVV rvv = new RVV(new ArrayList(), 0, 0);
int i6 = g + 49;
i = i6 % 128;
int i7 = i6 % 2;
return rvv;
}
List<C0552JgO> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator<T> it = list2.iterator();
int i8 = 0;
while (it.hasNext()) {
int i9 = i + 121;
g = i9 % 128;
int i10 = i9 % 2;
IeS d2 = d((C0552JgO) it.next());
if (d2.b) {
int i11 = g + 111;
i = i11 % 128;
i5 = i11 % 2 == 0 ? i5 + 72 : i5 + 1;
} else {
i8++;
}
arrayList.add(d2.c);
}
return new RVV(arrayList, i5, i8);
}
private static void q(char c, int i2, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) {
int i3 = 2;
int i4 = 2 % 2;
Nhs nhs = new Nhs();
int length = cArr.length;
char[] cArr4 = new char[length];
int length2 = cArr3.length;
char[] cArr5 = new char[length2];
System.arraycopy(cArr, 0, cArr4, 0, length);
System.arraycopy(cArr3, 0, cArr5, 0, length2);
cArr4[0] = (char) (cArr4[0] ^ c);
cArr5[2] = (char) (cArr5[2] + ((char) i2));
int length3 = cArr2.length;
char[] cArr6 = new char[length3];
nhs.a = 0;
while (nhs.a < length3) {
int i5 = $11 + 37;
$10 = i5 % 128;
int i6 = i5 % i3;
try {
Object[] objArr2 = {nhs};
Object obj = xzZ.y.get(263693715);
if (obj == null) {
obj = ((Class) xzZ.c(']' - AndroidCharacter.getMirror('0'), (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 4, (char) View.resolveSize(0, 0))).getMethod("t", Object.class);
xzZ.y.put(263693715, obj);
}
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
try {
Object[] objArr3 = {nhs};
Object obj2 = xzZ.y.get(-484664112);
if (obj2 == null) {
Class cls = (Class) xzZ.c(352 - Color.argb(0, 0, 0, 0), 5 - TextUtils.getOffsetBefore("", 0), (char) ((ViewConfiguration.getEdgeSlop() >> 16) + 52128));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr4 = new Object[1];
s(b2, b3, b3, objArr4);
obj2 = cls.getMethod((String) objArr4[0], Object.class);
xzZ.y.put(-484664112, obj2);
}
int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
try {
Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])};
Object obj3 = xzZ.y.get(430099516);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(748 - (ViewConfiguration.getScrollBarSize() >> 8), 4 - TextUtils.indexOf((CharSequence) "", '0', 0), (char) TextUtils.indexOf("", "", 0))).getMethod(com.pingan.ai.p.a, Object.class, Integer.TYPE, Integer.TYPE);
xzZ.y.put(430099516, obj3);
}
((Method) obj3).invoke(null, objArr5);
try {
Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])};
Object obj4 = xzZ.y.get(1019894806);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(403 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), 5 - View.combineMeasuredStates(0, 0), (char) (((byte) KeyEvent.getModifierMetaStateMask()) + 21609));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr7 = new Object[1];
s(b4, b5, (byte) (b5 + 1), objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(1019894806, obj4);
}
cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
cArr4[intValue2] = nhs.c;
cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr2[nhs.a]) ^ (d ^ 9051040786702654117L)) ^ ((int) (a ^ 9051040786702654117L))) ^ ((char) (b ^ 9051040786702654117L)));
nhs.a++;
int i7 = $11 + 21;
$10 = i7 % 128;
int i8 = i7 % 2;
i3 = 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;
}
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
objArr[0] = new String(cArr6);
}
private static IeS d(C0552JgO c0552JgO) {
String str;
String str2;
int i2 = 2 % 2;
C0450Gv c0450Gv = new C0450Gv((byte) 0);
Glc glc = c0552JgO.i;
String str3 = null;
if (glc != null) {
int i3 = i + 23;
g = i3 % 128;
if (i3 % 2 != 0) {
str = glc.c;
int i4 = 98 / 0;
} else {
str = glc.c;
}
} else {
str = null;
}
c0450Gv.d = str;
CoP coP = c0552JgO.a;
if (coP != null) {
int i5 = g + 57;
i = i5 % 128;
int i6 = i5 % 2;
str2 = coP.d;
} else {
str2 = null;
}
c0450Gv.c = str2;
CoP coP2 = c0552JgO.a;
if (coP2 != null) {
str3 = coP2.e;
int i7 = g + 97;
i = i7 % 128;
int i8 = i7 % 2;
}
c0450Gv.e = str3;
c0450Gv.b = h(c0552JgO.c);
c0450Gv.a = h(c0552JgO.d);
c0450Gv.h = h(c0552JgO.e);
c0450Gv.j = h(c0552JgO.g);
return c0552JgO.b ? new IeS(c0450Gv, true) : new IeS(c0450Gv, false);
}
private static String h(Double d2) {
int i2 = 2 % 2;
int i3 = g + 55;
i = i3 % 128;
int i4 = i3 % 2;
String c = c(d2);
C14957gcv.c((Object) c, "");
int i5 = g + 89;
i = i5 % 128;
int i6 = i5 % 2;
return c;
}
/* renamed from: o.ni$IeS */
/* loaded from: classes3.dex */
public static final class IeS {
final boolean b;
final C0450Gv c;
public IeS(C0450Gv c0450Gv, boolean z) {
C14957gcv.e(c0450Gv, "");
this.c = c0450Gv;
this.b = z;
}
}
/* renamed from: o.ni$RVV */
/* loaded from: classes3.dex */
public static final class RVV {
final int a;
final int d;
final List<C0450Gv> e;
public RVV(List<C0450Gv> list, int i, int i2) {
C14957gcv.e(list, "");
this.e = list;
this.a = i;
this.d = i2;
}
}
static void h() {
d = 9051040786702654117L;
a = 452713125;
b = (char) 9400;
}
private final String n(String str) {
System.identityHashCode(this);
return (String) a(new Object[]{this, str});
}
static {
i = 1;
h();
new LWm((byte) 0);
int i2 = g + 61;
i = i2 % 128;
int i3 = i2 % 2;
}
}