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

382 lines
13 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Process;
import android.os.SystemClock;
import android.view.View;
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.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C15715hv;
import org.bouncycastle.crypto.signers.PSSSigner;
/* renamed from: o.pJ, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16551pJ extends BaseAssetsDisplayMapper {
private static int f;
private static long h;
private boolean a;
private boolean b;
private boolean d;
private static final byte[] $$d = {55, PSSSigner.TRAILER_IMPLICIT, ISOFileInfo.LCS_BYTE, Ascii.SYN};
private static final int $$e = 76;
private static int $10 = 0;
private static int $11 = 1;
private static int g = 1;
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> B:4:0x002a). 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 r5, short r6, short r7, java.lang.Object[] r8) {
/*
byte[] r0 = o.C16551pJ.$$d
int r7 = r7 * 3
int r1 = 1 - r7
int r6 = r6 * 3
int r6 = 4 - r6
int r5 = r5 * 2
int r5 = 121 - r5
byte[] r1 = new byte[r1]
r2 = 0
int r7 = 0 - r7
if (r0 != 0) goto L18
r4 = r7
r3 = r2
goto L2a
L18:
r3 = r2
L19:
byte r4 = (byte) r5
r1[r3] = r4
if (r3 != r7) goto L26
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L26:
int r3 = r3 + 1
r4 = r0[r6]
L2a:
int r6 = r6 + 1
int r5 = r5 + r4
goto L19
*/
throw new UnsupportedOperationException("Method not decompiled: o.C16551pJ.q(int, short, short, java.lang.Object[]):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C16551pJ(Resources resources, SharedPreferences sharedPreferences, String str) {
super(resources, sharedPreferences, str);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
C14957gcv.e(str, "");
}
/* renamed from: o.pJ$HBt */
/* loaded from: classes3.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
public final C0700Mo e(bVO bvo) {
int i;
int i2 = 2 % 2;
C14957gcv.e(bvo, "");
List<C17602yEv> list = bvo.a;
C14957gcv.e(list, "");
if (list instanceof Collection) {
i = list.size();
int i3 = g + 115;
f = i3 % 128;
int i4 = i3 % 2;
} else {
i = 10;
}
ArrayList arrayList = new ArrayList(i);
Iterator<T> it = list.iterator();
while (true) {
Object obj = null;
if (!it.hasNext()) {
return new C0700Mo(C14881gav.a((Iterable) arrayList, (Comparator) new RVV()), null);
}
int i5 = g + 1;
f = i5 % 128;
if (i5 % 2 != 0) {
arrayList.add(d((C17602yEv) it.next()));
obj.hashCode();
throw null;
}
arrayList.add(d((C17602yEv) it.next()));
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object c(Object[] objArr) {
bVO bvo = (bVO) objArr[0];
int i = 2 % 2;
C14957gcv.e(bvo, "");
List<ioL> list = bvo.b;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
Iterator<T> it = list.iterator();
while (it.hasNext()) {
int i2 = f + 31;
g = i2 % 128;
int i3 = i2 % 2;
arrayList.add(d((ioL) it.next()));
}
return new C0700Mo(null, C14881gav.a((Iterable) arrayList, (Comparator) new LWm()));
}
private final C0698Mn d(C17602yEv c17602yEv) {
int i = 2 % 2;
int i2 = c17602yEv.h;
String str = c17602yEv.e;
String str2 = c17602yEv.b;
String c = c(c17602yEv.e, c17602yEv.a);
String str3 = c17602yEv.d;
String b_ = b_(c17602yEv.c);
C14957gcv.c((Object) b_, "");
C0698Mn c0698Mn = new C0698Mn(i2, str, str2, c, str3, b_, k(c17602yEv.e));
int i3 = f + 53;
g = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 10 / 0;
}
return c0698Mn;
}
private static C0715My d(ioL iol) {
int i = 2 % 2;
int i2 = iol.c;
String str = iol.d;
int i3 = iol.a;
List<xCW> list = iol.e;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
Iterator<T> it = list.iterator();
while (!(!it.hasNext())) {
int i4 = f + 107;
g = i4 % 128;
int i5 = i4 % 2;
arrayList.add(c((xCW) it.next()));
}
return new C0715My(i2, str, i3, arrayList);
}
private static void n(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(h ^ (-7538262848231253921L), cArr, i);
guL.a = 4;
int i3 = $11 + 121;
$10 = i3 % 128;
int i4 = i3 % 2;
while (guL.a < a.length) {
guL.c = guL.a - 4;
int i5 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(h)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(Color.alpha(0) + 208, 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) ((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 1707));
byte b = (byte) 1;
byte b2 = (byte) (b - 1);
Object[] objArr3 = new Object[1];
q(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(392 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), View.resolveSize(0, 0) + 5, (char) Drawable.resolveOpacity(0, 0));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
q(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i6 = $10 + 65;
$11 = i6 % 128;
int i7 = i6 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(a, 4, a.length - 4);
}
private static C0716Mz c(xCW xcw) {
int i = 2 % 2;
C0716Mz c0716Mz = new C0716Mz(xcw.d, xcw.a, xcw.b, xcw.c);
int i2 = f + 7;
g = i2 % 128;
int i3 = i2 % 2;
return c0716Mz;
}
private String k(String str) {
int i = 2 % 2;
if (str != null) {
switch (str.hashCode()) {
case 48:
Object[] objArr = new Object[1];
n(new char[]{5925, 5909, 13712, 62700, 4044}, (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 1, objArr);
if (str.equals(((String) objArr[0]).intern()) && !this.d) {
this.d = true;
String e = e(C15715hv.tOB.auto_product_list_contractual_account_type_title);
C14957gcv.c((Object) e, "");
return e;
}
break;
case 49:
Object[] objArr2 = new Object[1];
n(new char[]{9775, 9758, 53354, 55649, 12917}, Color.blue(0) + 1, objArr2);
if (str.equals(((String) objArr2[0]).intern())) {
if (this.b) {
return "";
}
this.b = true;
String e2 = e(C15715hv.tOB.auto_product_list_fixed_deposit_account_type_title);
C14957gcv.c((Object) e2, "");
return e2;
}
break;
case 50:
Object[] objArr3 = new Object[1];
n(new char[]{51961, 51915, 64941, 42804, 52009}, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), objArr3);
if (str.equals(((String) objArr3[0]).intern())) {
if (this.a) {
return "";
}
int i2 = f + 13;
g = i2 % 128;
if (i2 % 2 == 0) {
this.a = true;
String e3 = e(C15715hv.tOB.auto_product_list_saving_account_type_title);
C14957gcv.c((Object) e3, "");
return e3;
}
this.a = true;
String e4 = e(C15715hv.tOB.auto_product_list_saving_account_type_title);
C14957gcv.c((Object) e4, "");
return e4;
}
break;
}
}
int i3 = g + 75;
f = i3 % 128;
if (i3 % 2 == 0) {
return "";
}
Object obj = null;
obj.hashCode();
throw null;
}
/* renamed from: o.pJ$LWm */
/* loaded from: classes3.dex */
public static final class LWm<T> implements Comparator {
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t, T t2) {
Integer valueOf = Integer.valueOf(((C0715My) t).c);
Integer valueOf2 = Integer.valueOf(((C0715My) t2).c);
if (valueOf == valueOf2) {
return 0;
}
if (valueOf == null) {
return -1;
}
if (valueOf2 == null) {
return 1;
}
return valueOf.compareTo(valueOf2);
}
}
/* renamed from: o.pJ$RVV */
/* loaded from: classes3.dex */
public static final class RVV<T> implements Comparator {
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t, T t2) {
Integer valueOf = Integer.valueOf(((C0698Mn) t).i);
Integer valueOf2 = Integer.valueOf(((C0698Mn) t2).i);
if (valueOf == valueOf2) {
return 0;
}
if (valueOf == null) {
return -1;
}
if (valueOf2 == null) {
return 1;
}
return valueOf.compareTo(valueOf2);
}
}
private static String c(String str, String str2) {
int i = 2 % 2;
n(new char[]{51961, 51915, 64941, 42804, 52009}, 1 - (Process.myTid() >> 22), new Object[1]);
if (!C14957gcv.b((Object) str, (Object) ((String) r4[0]).intern())) {
return null;
}
int i2 = g + 35;
int i3 = i2 % 128;
f = i3;
int i4 = i2 % 2;
int i5 = i3 + 109;
g = i5 % 128;
int i6 = i5 % 2;
return str2;
}
static void g() {
h = 502407424324358206L;
}
public static C0700Mo c(bVO bvo) {
return (C0700Mo) c(new Object[]{bvo});
}
static {
f = 0;
g();
new HBt((byte) 0);
int i = g + 7;
f = i % 128;
int i2 = i % 2;
}
}