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

579 lines
22 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
import o.C0690Mh;
import o.C15715hv;
import o.C17647yc;
import o.C7744cuB;
import o.PRA;
import o.ZI;
import o.wRi;
/* renamed from: o.cuB, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public class C7744cuB extends ZI<InterfaceC9527dlS> {
public xNF a;
public final SharedPreferences b;
private C17647yc c;
public C16867ruj d;
public final ioC e;
@InterfaceC13391fZD
public C7744cuB(xNF xnf, C16867ruj c16867ruj, C17647yc c17647yc, ioC ioc, C16903sI c16903sI, SharedPreferences sharedPreferences) {
super(c16903sI);
this.a = xnf;
this.d = c16867ruj;
this.c = c17647yc;
this.e = ioc;
this.b = sharedPreferences;
}
/* renamed from: o.cuB$4, reason: invalid class name */
/* loaded from: classes4.dex */
public class AnonymousClass4 extends wRi.LWm<List<XNX>> {
private C7744cuB b;
public AnonymousClass4(C7744cuB c7744cuB) {
this.b = c7744cuB;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
YKU yku = new YKU((List) obj);
final List list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this) { // from class: o.cuE
private C7744cuB.AnonymousClass4 d;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return C7744cuB.AnonymousClass4.e(this.d, (XNX) obj2);
}
{
this.d = this;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
C7744cuB c7744cuB = this.b;
ZI.IeS ieS = new ZI.IeS(list) { // from class: o.cuK
private List c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9527dlS) obj2).e((List<IQ>) this.c);
}
{
this.c = list;
}
};
if (c7744cuB.f != 0) {
ieS.e(c7744cuB.f);
}
C7744cuB.e(this.b);
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C7744cuB.a(this.b);
if (this.b.i(th)) {
return;
}
C7744cuB.c(this.b, th, C0690Mh.IeS.NAVIGATE_BACK);
}
public static /* synthetic */ IQ e(AnonymousClass4 anonymousClass4, XNX xnx) {
SK sk;
String str;
C17647yc c17647yc = anonymousClass4.b.c;
C14957gcv.e(xnx, "");
C17641ya c17641ya = c17647yc.d;
String str2 = xnx.d;
C14957gcv.e(str2, "");
if (C14957gcv.b((Object) str2, (Object) CommonConstant.RETKEY.EMAIL)) {
String e = c17641ya.e(C15715hv.tOB.manage_notifications_email_group_title);
C14957gcv.c((Object) e, "");
String e2 = c17641ya.e(C15715hv.tOB.manage_notifications_email_main_checkbox_title);
C14957gcv.c((Object) e2, "");
String e3 = c17641ya.e(C15715hv.tOB.manage_notifications_email_main_checkbox_subtitle);
C14957gcv.c((Object) e3, "");
sk = new SK(e, e2, e3);
} else if (C14957gcv.b((Object) str2, (Object) "PUSH")) {
String e4 = c17641ya.e(C15715hv.tOB.manage_notifications_push_group_title);
C14957gcv.c((Object) e4, "");
String e5 = c17641ya.e(C15715hv.tOB.manage_notifications_push_main_checkbox_title);
C14957gcv.c((Object) e5, "");
String e6 = c17641ya.e(C15715hv.tOB.manage_notifications_push_main_checkbox_subtitle);
C14957gcv.c((Object) e6, "");
sk = new SK(e4, e5, e6);
} else {
sk = new SK(str2, str2, "");
}
String str3 = sk.b;
IO io2 = new IO(xnx.d, 0, sk.d, sk.a, xnx.c);
List<ZQZ> list = xnx.a;
C17533xZ c17533xZ = c17647yc.b;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (ZQZ zqz : list) {
C14957gcv.e(zqz, "");
if (C14957gcv.b(C16157lj.c(new Object[]{c17533xZ}, 1165015125, -1165015124, System.identityHashCode(c17533xZ)), (Object) "en")) {
str = zqz.c;
} else {
str = zqz.d;
}
arrayList.add(new IO(zqz.e, zqz.b, str, "", zqz.a));
}
return new IQ(str3, io2, C14881gav.a((Iterable) arrayList, (Comparator) new C17647yc.IeS()));
}
}
/* renamed from: o.cuB$Sts */
/* loaded from: classes4.dex */
public class Sts extends wRi.LWm {
private C7744cuB a;
private boolean c;
private String d;
private String e;
private static final byte[] $$a = {97, ISO7816.INS_LOAD_KEY_FILE, 14, 49};
private static final int $$b = 248;
private static int $10 = 0;
private static int $11 = 1;
private static int g = 0;
private static int h = 1;
private static char[] b = {35368, 49027, 49026, 35371};
private static char i = 35371;
/* 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 k(int r6, byte r7, byte r8, java.lang.Object[] r9) {
/*
int r8 = r8 + 117
int r6 = r6 * 3
int r6 = 1 - r6
int r7 = r7 * 2
int r7 = 3 - r7
byte[] r0 = o.C7744cuB.Sts.$$a
byte[] r1 = new byte[r6]
r2 = 0
if (r0 != 0) goto L15
r3 = r8
r4 = r2
r8 = r6
goto L29
L15:
r3 = r2
L16:
int r7 = r7 + 1
int r4 = r3 + 1
byte r5 = (byte) r8
r1[r3] = r5
if (r4 != r6) goto L27
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L27:
r3 = r0[r7]
L29:
int r8 = r8 + r3
r3 = r4
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: o.C7744cuB.Sts.k(int, byte, byte, java.lang.Object[]):void");
}
public Sts(C7744cuB c7744cuB, boolean z, String str, String str2) {
this.a = c7744cuB;
this.c = z;
this.d = str;
this.e = str2;
}
private /* synthetic */ void d(InterfaceC9527dlS interfaceC9527dlS) {
int i2 = 2 % 2;
int i3 = h + 79;
g = i3 % 128;
if (i3 % 2 != 0) {
interfaceC9527dlS.d(this.c);
int i4 = 44 / 0;
} else {
interfaceC9527dlS.d(this.c);
}
int i5 = g + 37;
h = i5 % 128;
if (i5 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
Object obj;
int i2 = 2 % 2;
iKd K = this.a.d.b.K();
if (K != null && CommonConstant.RETKEY.EMAIL.equals(this.d)) {
if (this.c) {
int i3 = h + 79;
g = i3 % 128;
int i4 = i3 % 2;
Object[] objArr = new Object[1];
f(-TextUtils.lastIndexOf("", '0', 0, 0), new char[]{13750}, (byte) (11 - Color.red(0)), objArr);
obj = objArr[0];
} else {
Object[] objArr2 = new Object[1];
f(-(ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), new char[]{13830}, (byte) (92 - (ViewConfiguration.getKeyRepeatDelay() >> 16)), objArr2);
obj = objArr2[0];
}
K.g = ((String) obj).intern();
}
C7744cuB.c(this.a);
C7744cuB c7744cuB = this.a;
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cuL
private C7744cuB.Sts e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C7744cuB.Sts.d(this.e, (InterfaceC9527dlS) obj2);
}
{
this.e = this;
}
};
if (c7744cuB.f != 0) {
int i5 = h;
int i6 = i5 + 7;
g = i6 % 128;
int i7 = i6 % 2;
int i8 = i5 + 47;
g = i8 % 128;
int i9 = i8 % 2;
ieS.e(c7744cuB.f);
}
int i10 = g + 47;
h = i10 % 128;
int i11 = i10 % 2;
}
private /* synthetic */ void e(InterfaceC9527dlS interfaceC9527dlS) {
String str;
String str2;
boolean z;
int i2 = 2 % 2;
int i3 = h + 89;
g = i3 % 128;
if (i3 % 2 != 0) {
str = this.d;
str2 = this.e;
z = this.c;
} else {
str = this.d;
str2 = this.e;
z = !this.c;
}
interfaceC9527dlS.a(str, str2, z);
int i4 = g + 39;
h = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
boolean z;
int i2 = 2 % 2;
C7744cuB.h(this.a);
C7744cuB c7744cuB = this.a;
c7744cuB.d(c7744cuB.j.e(th));
C7744cuB c7744cuB2 = this.a;
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cuG
private C7744cuB.Sts c;
@Override // o.ZI.IeS
public final void e(Object obj) {
Object[] objArr = {this.c, (InterfaceC9527dlS) obj};
C7744cuB.Sts.c(objArr);
}
{
this.c = this;
}
};
if (c7744cuB2.f != 0) {
int i3 = h + 71;
g = i3 % 128;
int i4 = i3 % 2;
z = true;
} else {
z = false;
}
if (z) {
int i5 = g + 59;
h = i5 % 128;
int i6 = i5 % 2;
ieS.e(c7744cuB2.f);
int i7 = h + 81;
g = i7 % 128;
int i8 = i7 % 2;
}
}
private static void f(int i2, char[] cArr, byte b2, Object[] objArr) {
int i3;
char c;
Object method;
int i4 = 2;
int i5 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = b;
char c2 = '0';
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i6 = 0;
while (i6 < length) {
int i7 = $10 + 107;
$11 = i7 % 128;
if (i7 % i4 == 0) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i6])};
Object obj = xzZ.y.get(-1987398494);
if (obj == null) {
Class cls = (Class) xzZ.c(AndroidCharacter.getMirror(c2) + 250, 5 - (ViewConfiguration.getEdgeSlop() >> 16), (char) (ViewConfiguration.getDoubleTapTimeout() >> 16));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr3 = new Object[1];
k(b3, b4, b4, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj);
}
cArr3[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
Object[] objArr4 = {Integer.valueOf(cArr2[i6])};
Object obj2 = xzZ.y.get(-1987398494);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(299 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), 4 - TextUtils.lastIndexOf("", '0', 0, 0), (char) (ViewConfiguration.getJumpTapTimeout() >> 16));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr5 = new Object[1];
k(b5, b6, b6, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj2);
}
cArr3[i6] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i6++;
}
i4 = 2;
c2 = '0';
}
cArr2 = cArr3;
}
Object[] objArr6 = {Integer.valueOf(i)};
Object obj3 = xzZ.y.get(-1987398494);
char c3 = 6;
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(ExpandableListView.getPackedPositionChild(0L) + 299, ExpandableListView.getPackedPositionChild(0L) + 6, (char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1));
byte b7 = (byte) 0;
byte b8 = b7;
Object[] objArr7 = new Object[1];
k(b7, b8, b8, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj3);
}
char charValue = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue();
char[] cArr4 = new char[i2];
if (i2 % 2 != 0) {
i3 = i2 - 1;
cArr4[i3] = (char) (cArr[i3] - b2);
} else {
i3 = i2;
}
if (i3 > 1) {
int i8 = $11 + 83;
$10 = i8 % 128;
if (i8 % 2 != 0) {
irs.e = 1;
} else {
irs.e = 0;
}
while (irs.e < i3) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
cArr4[irs.e] = (char) (irs.b - b2);
cArr4[irs.e + 1] = (char) (irs.c - b2);
c = c3;
} else {
Object[] objArr8 = new Object[13];
objArr8[12] = irs;
objArr8[11] = Integer.valueOf(charValue);
objArr8[10] = irs;
objArr8[9] = irs;
objArr8[8] = Integer.valueOf(charValue);
objArr8[7] = irs;
objArr8[c3] = irs;
objArr8[5] = Integer.valueOf(charValue);
objArr8[4] = irs;
objArr8[3] = irs;
objArr8[2] = Integer.valueOf(charValue);
objArr8[1] = irs;
objArr8[0] = irs;
Object obj4 = xzZ.y.get(822107368);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(233 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (Process.myTid() >> 22) + 5, (char) (22024 - View.MeasureSpec.makeMeasureSpec(0, 0)));
byte b9 = (byte) 0;
byte b10 = b9;
Object[] objArr9 = new Object[1];
k(b9, b10, (byte) (b10 + 3), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj4);
}
if (((Integer) ((Method) obj4).invoke(null, objArr8)).intValue() == irs.j) {
Object[] objArr10 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj5 = xzZ.y.get(-1152873385);
if (obj5 != null) {
method = obj5;
c = 6;
} else {
Class cls5 = (Class) xzZ.c(326 - TextUtils.indexOf((CharSequence) "", '0', 0), 4 - TextUtils.lastIndexOf("", '0', 0), (char) (ViewConfiguration.getLongPressTimeout() >> 16));
byte b11 = (byte) 0;
byte b12 = b11;
Object[] objArr11 = new Object[1];
k(b11, b12, (byte) (b12 + 1), objArr11);
c = 6;
method = cls5.getMethod((String) objArr11[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, method);
}
int intValue = ((Integer) ((Method) method).invoke(null, objArr10)).intValue();
int i9 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i9];
} else {
c = 6;
if (irs.a == irs.d) {
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i10 = (irs.a * charValue) + irs.f;
int i11 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i10];
cArr4[irs.e + 1] = cArr2[i11];
} else {
int i12 = (irs.a * charValue) + irs.j;
int i13 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i12];
cArr4[irs.e + 1] = cArr2[i13];
}
}
}
irs.e += 2;
c3 = c;
}
}
for (int i14 = 0; i14 < i2; i14++) {
cArr4[i14] = (char) (cArr4[i14] ^ 13722);
}
objArr[0] = new String(cArr4);
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object c(Object[] objArr) {
Sts sts = (Sts) objArr[0];
InterfaceC9527dlS interfaceC9527dlS = (InterfaceC9527dlS) objArr[1];
int i2 = 2 % 2;
int i3 = h + 43;
g = i3 % 128;
int i4 = i3 % 2;
sts.e(interfaceC9527dlS);
if (i4 == 0) {
return null;
}
int i5 = 58 / 0;
return null;
}
public static /* synthetic */ void d(Sts sts, InterfaceC9527dlS interfaceC9527dlS) {
int i2 = 2 % 2;
int i3 = g + 21;
h = i3 % 128;
int i4 = i3 % 2;
sts.d(interfaceC9527dlS);
if (i4 == 0) {
int i5 = 91 / 0;
}
int i6 = g + 123;
h = i6 % 128;
if (i6 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public static /* synthetic */ void a(Sts sts, InterfaceC9527dlS interfaceC9527dlS) {
Object[] objArr = {sts, interfaceC9527dlS};
c(objArr);
}
}
static /* synthetic */ void e(C7744cuB c7744cuB) {
if (c7744cuB.f != 0) {
c7744cuB.f.ar_();
}
}
static /* synthetic */ void a(C7744cuB c7744cuB) {
if (c7744cuB.f != 0) {
c7744cuB.f.ar_();
}
}
static /* synthetic */ void c(C7744cuB c7744cuB, Throwable th, C0690Mh.IeS ieS) {
if (c7744cuB.b(th)) {
c7744cuB.d(c7744cuB.j.d(th, ieS));
}
}
static /* synthetic */ void c(C7744cuB c7744cuB) {
if (c7744cuB.f != 0) {
c7744cuB.f.ar_();
}
}
static /* synthetic */ void h(C7744cuB c7744cuB) {
if (c7744cuB.f != 0) {
c7744cuB.f.ar_();
}
}
}