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

555 lines
19 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.graphics.Color;
import android.media.AudioTrack;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.android.gms.tasks.Task;
import com.google.android.play.core.integrity.IntegrityServiceException;
import com.huawei.hms.common.ApiException;
import com.huawei.hms.support.api.entity.safetydetect.SysIntegrityRequest;
import com.huawei.hms.support.api.entity.safetydetect.SysIntegrityResp;
import com.huawei.hms.support.api.safetydetect.SafetyDetect;
import com.huawei.hms.support.api.safetydetect.SafetyDetectClient;
import com.huawei.hms.support.api.safetydetect.SafetyDetectStatusCodes;
import java.lang.reflect.Method;
/* renamed from: o.dtq */
/* loaded from: classes.dex */
public final class C9967dtq implements phk {
private static int a;
private static char[] b;
private final Context c;
private final xJw d;
private static final byte[] $$a = {51, -93, -34, -1};
private static final int $$b = 31;
private static int $10 = 0;
private static int $11 = 1;
private static int e = 1;
public static /* synthetic */ Object d(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i;
int i5 = ~(i3 | i2);
if ((i * (-109)) + (i2 * 111) + ((i4 | i5) * (-220)) + ((i5 | (~(i | i2))) * 220) + (((~(i | (~i2))) | (~(i4 | i2))) * 110) != 1) {
return b(objArr);
}
SafetyDetectClient safetyDetectClient = (SafetyDetectClient) objArr[0];
SysIntegrityRequest sysIntegrityRequest = (SysIntegrityRequest) objArr[1];
InterfaceC13178fSz interfaceC13178fSz = (InterfaceC13178fSz) objArr[2];
int i6 = 2 % 2;
int i7 = a + 109;
e = i7 % 128;
int i8 = i7 % 2;
b(safetyDetectClient, sysIntegrityRequest, interfaceC13178fSz);
int i9 = e + 75;
a = i9 % 128;
int i10 = i9 % 2;
return null;
}
/* 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 g(short r5, byte r6, byte r7, java.lang.Object[] r8) {
/*
byte[] r0 = o.C9967dtq.$$a
int r6 = r6 * 4
int r6 = 1 - r6
int r7 = r7 * 2
int r7 = r7 + 71
int r5 = r5 * 2
int r5 = 4 - r5
byte[] r1 = new byte[r6]
r2 = 0
if (r0 != 0) goto L17
r4 = r7
r3 = r2
r7 = r6
goto L29
L17:
r3 = r2
L18:
byte r4 = (byte) r7
r1[r3] = r4
int r3 = r3 + 1
if (r3 != r6) goto L27
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L27:
r4 = r0[r5]
L29:
int r5 = r5 + 1
int r7 = r7 + r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.C9967dtq.g(short, byte, byte, java.lang.Object[]):void");
}
@InterfaceC13391fZD
public C9967dtq(Context context, xJw xjw) {
C14957gcv.e(context, "");
C14957gcv.e(xjw, "");
this.c = context;
this.d = xjw;
}
/* renamed from: o.dtq$Sts */
/* loaded from: classes.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<AbstractC8775dVi, C14866gag> {
private InterfaceC13178fSz<C17395wQg> b;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(AbstractC8775dVi abstractC8775dVi) {
AbstractC8775dVi abstractC8775dVi2 = abstractC8775dVi;
C14957gcv.e(abstractC8775dVi2, "");
this.b.c(new C17395wQg(abstractC8775dVi2.c(), (String) null, 4));
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(InterfaceC13178fSz<C17395wQg> interfaceC13178fSz) {
super(1);
this.b = interfaceC13178fSz;
}
}
@Override // o.phk
public final AbstractC13175fSw<C17395wQg> d(String str) {
int i = 2 % 2;
C14957gcv.e(str, "");
HMk hMk = (HMk) Qof.d(this.c).d.b();
C14957gcv.c(hMk, "");
Task<AbstractC8775dVi> c = hMk.c(new ANV().a(str).b(this.d.e()).b());
C14957gcv.c(c, "");
AbstractC13175fSw<C17395wQg> d = AbstractC13175fSw.d(new fSB(c) { // from class: o.Mvj
private Task e;
@Override // o.fSB
public final void d(InterfaceC13178fSz interfaceC13178fSz) {
C9967dtq.c(this.e, interfaceC13178fSz);
}
{
this.e = c;
}
});
C14957gcv.c(d, "");
int i2 = e + 123;
a = i2 % 128;
if (i2 % 2 == 0) {
return d;
}
Object obj = null;
obj.hashCode();
throw null;
}
private static final void b(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
int i = 2 % 2;
int i2 = e + 23;
a = i2 % 128;
if (i2 % 2 == 0) {
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
} else {
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
throw null;
}
}
private static final void a(Task task, InterfaceC13178fSz interfaceC13178fSz) {
int i = 2 % 2;
C14957gcv.e(task, "");
task.addOnSuccessListener(new OnSuccessListener(new Sts(interfaceC13178fSz)) { // from class: o.wua
private InterfaceC14894gbR e;
@Override // com.google.android.gms.tasks.OnSuccessListener
public final void onSuccess(Object obj) {
C9967dtq.a(this.e, obj);
}
{
this.e = r1;
}
}).addOnFailureListener(new OnFailureListener(interfaceC13178fSz) { // from class: o.BFF
private InterfaceC13178fSz a;
@Override // com.google.android.gms.tasks.OnFailureListener
public final void onFailure(Exception exc) {
C9967dtq.d(new Object[]{this.a, exc}, -913093433, 913093433, (int) System.currentTimeMillis());
}
{
this.a = interfaceC13178fSz;
}
});
int i2 = a + 103;
e = i2 % 128;
int i3 = i2 % 2;
}
private static final void e(InterfaceC13178fSz interfaceC13178fSz, Exception exc) {
int i = 2 % 2;
int i2 = e + 119;
a = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(exc, "");
if (!(exc instanceof IntegrityServiceException)) {
interfaceC13178fSz.e(exc);
return;
}
interfaceC13178fSz.c(new C17395wQg((String) null, String.valueOf(((IntegrityServiceException) exc).getStatusCode()), 4));
int i4 = a + 61;
e = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.phk
public final AbstractC13175fSw<C17395wQg> a(String str) {
int i = 2 % 2;
C14957gcv.e(str, "");
SafetyDetectClient client = SafetyDetect.getClient(this.c);
SysIntegrityRequest sysIntegrityRequest = new SysIntegrityRequest();
sysIntegrityRequest.setAppId(this.d.d());
byte[] bytes = str.getBytes(gdP.a);
C14957gcv.c(bytes, "");
sysIntegrityRequest.setNonce(bytes);
Object[] objArr = new Object[1];
f(new byte[]{0, 1, 1, 1, 1}, new int[]{0, 5, 0, 5}, false, objArr);
sysIntegrityRequest.setAlg(((String) objArr[0]).intern());
AbstractC13175fSw<C17395wQg> d = AbstractC13175fSw.d((fSB) new C17514xRX(client, sysIntegrityRequest));
C14957gcv.c(d, "");
int i2 = a + 57;
e = i2 % 128;
if (i2 % 2 != 0) {
return d;
}
throw null;
}
private static final void b(InterfaceC13178fSz interfaceC13178fSz, SysIntegrityResp sysIntegrityResp) {
int i = 2 % 2;
interfaceC13178fSz.c(new C17395wQg(sysIntegrityResp.getResult(), (String) null, 4));
int i2 = e + 87;
a = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
}
private static final void b(SafetyDetectClient safetyDetectClient, SysIntegrityRequest sysIntegrityRequest, InterfaceC13178fSz interfaceC13178fSz) {
int i = 2 % 2;
C14957gcv.e(sysIntegrityRequest, "");
safetyDetectClient.sysIntegrity(sysIntegrityRequest).e(new IHX(interfaceC13178fSz) { // from class: o.NMn
private InterfaceC13178fSz a;
@Override // o.IHX
public final void onSuccess(Object obj) {
C9967dtq.a(this.a, (SysIntegrityResp) obj);
}
{
this.a = interfaceC13178fSz;
}
}).e(new LRb(interfaceC13178fSz) { // from class: o.uja
private InterfaceC13178fSz b;
@Override // o.LRb
public final void onFailure(Exception exc) {
C9967dtq.b(this.b, exc);
}
{
this.b = interfaceC13178fSz;
}
});
int i2 = e + 43;
a = i2 % 128;
int i3 = i2 % 2;
}
private static final void a(InterfaceC13178fSz interfaceC13178fSz, Exception exc) {
int i = 2 % 2;
int i2 = a + 21;
e = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
if (exc instanceof ApiException) {
ApiException apiException = (ApiException) exc;
int statusCode = apiException.getStatusCode();
interfaceC13178fSz.c(new C17395wQg((String) null, String.valueOf(statusCode), SafetyDetectStatusCodes.getStatusCodeString(apiException.getStatusCode())));
return;
}
interfaceC13178fSz.e(exc);
int i3 = e + 13;
a = i3 % 128;
if (i3 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
boolean z = exc instanceof ApiException;
throw null;
}
/* renamed from: o.dtq$LWm */
/* loaded from: classes.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
private static void f(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
int i;
char[] cArr;
int i2 = 2 % 2;
TVH tvh = new TVH();
int i3 = 0;
int i4 = iArr[0];
int i5 = iArr[1];
int i6 = iArr[2];
char c = 3;
int i7 = iArr[3];
char[] cArr2 = b;
if (cArr2 != null) {
int i8 = $11 + 57;
$10 = i8 % 128;
int i9 = i8 % 2;
int length = cArr2.length;
char[] cArr3 = new char[length];
int i10 = 0;
while (i10 < length) {
try {
Object[] objArr2 = new Object[1];
objArr2[i3] = Integer.valueOf(cArr2[i10]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
cArr = cArr2;
} else {
Class cls = (Class) xzZ.c(223 - TextUtils.getOffsetBefore("", i3), 5 - ExpandableListView.getPackedPositionType(0L), (char) ((ViewConfiguration.getScrollDefaultDelay() >> 16) + 41977));
byte b2 = (byte) ($$a[c] + 1);
byte b3 = b2;
cArr = cArr2;
Object[] objArr3 = new Object[1];
g(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr3[i10] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i10++;
cArr2 = cArr;
i3 = 0;
c = 3;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
char[] cArr4 = new char[i5];
System.arraycopy(cArr2, i4, cArr4, 0, i5);
if (bArr != null) {
char[] cArr5 = new char[i5];
tvh.c = 0;
char c2 = 0;
while (tvh.c < i5) {
if (bArr[tvh.c] == 1) {
int i11 = tvh.c;
try {
Object[] objArr4 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj2 = xzZ.y.get(850398076);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 502, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) (54 - Color.argb(0, 0, 0, 0)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr5[i11] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} else {
int i12 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj3 = xzZ.y.get(1084521042);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(16 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (58134 - TextUtils.getCapsMode("", 0, 0)))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj3);
}
cArr5[i12] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
}
c2 = cArr5[tvh.c];
try {
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(402 - Color.red(0), (ViewConfiguration.getScrollBarSize() >> 8) + 5, (char) ((ViewConfiguration.getScrollDefaultDelay() >> 16) + 21608));
byte b4 = $$a[3];
byte b5 = (byte) (b4 + 1);
Object[] objArr7 = new Object[1];
g(b5, b5, (byte) (-b4), objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
cArr4 = cArr5;
}
if (i7 > 0) {
char[] cArr6 = new char[i5];
i = 0;
System.arraycopy(cArr4, 0, cArr6, 0, i5);
int i13 = i5 - i7;
System.arraycopy(cArr6, 0, cArr4, i13, i7);
System.arraycopy(cArr6, i7, cArr4, 0, i13);
} else {
i = 0;
}
if (z) {
char[] cArr7 = new char[i5];
while (true) {
tvh.c = i;
if (tvh.c >= i5) {
break;
}
int i14 = $10 + 7;
$11 = i14 % 128;
int i15 = i14 % 2;
cArr7[tvh.c] = cArr4[(i5 - tvh.c) - 1];
i = tvh.c + 1;
}
cArr4 = cArr7;
}
if (i6 > 0) {
int i16 = $11 + 27;
$10 = i16 % 128;
if (i16 % 2 != 0) {
tvh.c = 1;
} else {
tvh.c = 0;
}
while (tvh.c < i5) {
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
tvh.c++;
}
}
objArr[0] = new String(cArr4);
}
private static /* synthetic */ Object b(Object[] objArr) {
InterfaceC13178fSz interfaceC13178fSz = (InterfaceC13178fSz) objArr[0];
Exception exc = (Exception) objArr[1];
int i = 2 % 2;
int i2 = e + 121;
a = i2 % 128;
int i3 = i2 % 2;
e(interfaceC13178fSz, exc);
if (i3 != 0) {
throw null;
}
int i4 = a + 47;
e = i4 % 128;
int i5 = i4 % 2;
return null;
}
static void e() {
b = new char[]{39970, 40025, 40009, 39992, 39998};
}
static {
a = 0;
e();
new LWm((byte) 0);
int i = e + 37;
a = i % 128;
int i2 = i % 2;
}
public static /* synthetic */ void c(Task task, InterfaceC13178fSz interfaceC13178fSz) {
int i = 2 % 2;
int i2 = e + 73;
a = i2 % 128;
int i3 = i2 % 2;
a(task, interfaceC13178fSz);
int i4 = a + 61;
e = i4 % 128;
int i5 = i4 % 2;
}
public static /* synthetic */ void a(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
int i = 2 % 2;
int i2 = e + 91;
a = i2 % 128;
int i3 = i2 % 2;
b(interfaceC14894gbR, obj);
if (i3 == 0) {
return;
}
Object obj2 = null;
obj2.hashCode();
throw null;
}
public static /* synthetic */ void a(InterfaceC13178fSz interfaceC13178fSz, SysIntegrityResp sysIntegrityResp) {
int i = 2 % 2;
int i2 = e + 57;
a = i2 % 128;
int i3 = i2 % 2;
b(interfaceC13178fSz, sysIntegrityResp);
int i4 = a + 47;
e = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public static /* synthetic */ void b(InterfaceC13178fSz interfaceC13178fSz, Exception exc) {
int i = 2 % 2;
int i2 = a + 121;
e = i2 % 128;
int i3 = i2 % 2;
a(interfaceC13178fSz, exc);
int i4 = a + 77;
e = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
}