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

394 lines
15 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.android.volley.AuthFailureError;
import com.android.volley.ClientError;
import com.android.volley.NetworkError;
import com.android.volley.NoConnectionError;
import com.android.volley.ServerError;
import com.android.volley.TimeoutError;
import com.android.volley.VolleyError;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.SocketTimeoutException;
import java.util.Collections;
import java.util.List;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.InterfaceC17333vqS;
/* loaded from: classes.dex */
final class nle {
private static final byte[] $$a = {33, ISOFileInfo.ENV_TEMP_EF, -97, 85};
private static final int $$b = 243;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 0;
private static int f = 1;
private static char[] b = {15996, 15987, 15994};
private static int c = 1934311150;
private static boolean a = true;
private static boolean e = true;
private static void h(int i, byte b2, int i2, Object[] objArr) {
byte[] bArr = $$a;
int i3 = i2 * 4;
int i4 = (b2 * 57) + 65;
int i5 = 4 - (i * 4);
byte[] bArr2 = new byte[1 - i3];
int i6 = 0 - i3;
int i7 = -1;
if (bArr == null) {
i4 = i5 + (-i6);
i5++;
}
while (true) {
i7++;
bArr2[i7] = (byte) i4;
if (i7 == i6) {
objArr[0] = new String(bArr2, 0);
return;
}
int i8 = i4;
int i9 = i5 + 1;
i4 = i8 + (-bArr[i5]);
i5 = i9;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void e(long j, HJP<?> hjp, byte[] bArr, int i) {
Object intern;
int i2 = 2 % 2;
int i3 = f + 115;
d = i3 % 128;
Object obj = null;
if (i3 % 2 == 0) {
if (qWd.a || j > 3000) {
Object[] objArr = new Object[5];
objArr[0] = hjp;
objArr[1] = Long.valueOf(j);
if (bArr != null) {
int i4 = d + 55;
f = i4 % 128;
if (i4 % 2 == 0) {
Integer.valueOf(bArr.length);
obj.hashCode();
throw null;
}
intern = Integer.valueOf(bArr.length);
} else {
Object[] objArr2 = new Object[1];
g(null, new byte[]{ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, null, 126 - TextUtils.lastIndexOf("", '0', 0), objArr2);
intern = ((String) objArr2[0]).intern();
}
objArr[2] = intern;
objArr[3] = Integer.valueOf(i);
objArr[4] = Integer.valueOf(hjp.getRetryPolicy().e());
qWd.d("HTTP response for request=<%s> [lifetime=%d], [size=%s], [rc=%d], [retryCount=%s]", objArr);
return;
}
return;
}
boolean z = qWd.a;
obj.hashCode();
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static DrQ b(HJP<?> hjp, long j, List<ucE> list) {
int i = 2 % 2;
int i2 = f + 91;
d = i2 % 128;
if (i2 % 2 == 0) {
InterfaceC17333vqS.IeS cacheEntry = hjp.getCacheEntry();
if (cacheEntry == null) {
return new DrQ(304, null, true, j, list);
}
DrQ drQ = new DrQ(304, cacheEntry.a, true, j, HNc.c(list, cacheEntry));
int i3 = d + 5;
f = i3 % 128;
int i4 = i3 % 2;
return drQ;
}
hjp.getCacheEntry();
Object obj = null;
obj.hashCode();
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static byte[] d(InputStream inputStream, int i, UgZ ugZ) throws IOException {
byte[] bArr;
int i2 = 2 % 2;
C17684yqj c17684yqj = new C17684yqj(ugZ, i);
try {
bArr = ugZ.c(1024);
int i3 = d + 35;
f = i3 % 128;
int i4 = i3 % 2;
while (true) {
try {
int read = inputStream.read(bArr);
if (read == -1) {
break;
}
int i5 = f + 7;
d = i5 % 128;
int i6 = i5 % 2;
c17684yqj.write(bArr, 0, read);
} catch (Throwable th) {
th = th;
if (inputStream != null) {
int i7 = d + 69;
f = i7 % 128;
int i8 = i7 % 2;
try {
inputStream.close();
} catch (IOException unused) {
qWd.e("Error occurred when closing InputStream", new Object[0]);
}
}
ugZ.d(bArr);
c17684yqj.close();
throw th;
}
}
byte[] byteArray = c17684yqj.toByteArray();
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException unused2) {
qWd.e("Error occurred when closing InputStream", new Object[0]);
}
}
ugZ.d(bArr);
c17684yqj.close();
return byteArray;
} catch (Throwable th2) {
th = th2;
bArr = null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void a(HJP<?> hjp, IeS ieS) throws VolleyError {
int i = 2 % 2;
int i2 = d + 47;
f = i2 % 128;
int i3 = i2 % 2;
XAJ retryPolicy = hjp.getRetryPolicy();
int timeoutMs = hjp.getTimeoutMs();
try {
retryPolicy.c(ieS.e);
hjp.addMarker(String.format("%s-retry [timeout=%s]", ieS.c, Integer.valueOf(timeoutMs)));
int i4 = f + 31;
d = i4 % 128;
int i5 = i4 % 2;
} catch (VolleyError e2) {
hjp.addMarker(String.format("%s-timeout-giveup [timeout=%s]", ieS.c, Integer.valueOf(timeoutMs)));
throw e2;
} catch (Exception e3) {
throw e3;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public static class IeS {
final String c;
final VolleyError e;
/* synthetic */ IeS(String str, VolleyError volleyError, byte b) {
this(str, volleyError);
}
private IeS(String str, VolleyError volleyError) {
this.c = str;
this.e = volleyError;
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object d(Object[] objArr) {
byte b2 = 0;
HJP hjp = (HJP) objArr[0];
IOException iOException = (IOException) objArr[1];
long longValue = ((Number) objArr[2]).longValue();
noY noy = (noY) objArr[3];
byte[] bArr = (byte[]) objArr[4];
int i = 2 % 2;
if (iOException instanceof SocketTimeoutException) {
return new IeS("socket", new TimeoutError(), b2);
}
if (!(!(iOException instanceof MalformedURLException))) {
StringBuilder sb = new StringBuilder("Bad URL ");
sb.append(hjp.getUrl());
throw new RuntimeException(sb.toString(), iOException);
}
int i2 = f;
int i3 = i2 + 47;
d = i3 % 128;
int i4 = i3 % 2;
if (noy == null) {
if (!hjp.shouldRetryConnectionErrors()) {
throw new NoConnectionError(iOException);
}
return new IeS("connection", new NoConnectionError(), b2);
}
int i5 = i2 + 103;
d = i5 % 128;
int i6 = i5 % 2;
int i7 = noy.b;
qWd.a("Unexpected response code %d for %s", Integer.valueOf(i7), hjp.getUrl());
if (bArr == null) {
return new IeS("network", new NetworkError(), b2);
}
DrQ drQ = new DrQ(i7, bArr, false, SystemClock.elapsedRealtime() - longValue, Collections.unmodifiableList(noy.e));
if (i7 == 401 || i7 == 403) {
return new IeS("auth", new AuthFailureError(drQ), b2);
}
if (i7 >= 400 && i7 <= 499) {
throw new ClientError(drQ);
}
if (i7 >= 500) {
int i8 = f + 63;
d = i8 % 128;
int i9 = i8 % 2;
if (i7 <= 599 && hjp.shouldRetryServerErrors()) {
return new IeS("server", new ServerError(drQ), b2);
}
}
throw new ServerError(drQ);
}
private static void g(char[] cArr, byte[] bArr, int[] iArr, int i, Object[] objArr) {
char[] cArr2;
int i2 = 2;
int i3 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr3 = b;
long j = 0;
if (cArr3 != null) {
int length = cArr3.length;
char[] cArr4 = new char[length];
int i4 = 0;
while (i4 < length) {
int i5 = $10 + 41;
$11 = i5 % 128;
int i6 = i5 % i2;
try {
Object[] objArr2 = {Integer.valueOf(cArr3[i4])};
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c(337 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), 6 - (ViewConfiguration.getGlobalActionKeyTimeout() > j ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == j ? 0 : -1)), (char) Color.alpha(0));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
h(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr4[i4] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i4++;
i2 = 2;
j = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr3 = cArr4;
}
try {
Object[] objArr4 = {Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((Process.myPid() >> 22) + 283, 5 - Drawable.resolveOpacity(0, 0), (char) (39813 - Color.alpha(0)));
byte b4 = (byte) 0;
byte b5 = (byte) (b4 + 1);
Object[] objArr5 = new Object[1];
h(b4, b5, (byte) (b5 - 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1521625011, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (e) {
int i7 = $11 + 65;
$10 = i7 % 128;
if (i7 % 2 != 0) {
c3614bBe.c = bArr.length;
cArr2 = new char[c3614bBe.c];
c3614bBe.a = 1;
} else {
c3614bBe.c = bArr.length;
cArr2 = new char[c3614bBe.c];
c3614bBe.a = 0;
}
int i8 = $11 + 75;
$10 = i8 % 128;
int i9 = i8 % 2;
while (c3614bBe.a < c3614bBe.c) {
cArr2[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue);
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(39 - TextUtils.indexOf((CharSequence) "", '0', 0), 5 - TextUtils.indexOf("", ""), (char) ((-1) - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -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 = iArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr5[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
c3614bBe.a++;
}
objArr[0] = new String(cArr5);
return;
}
c3614bBe.c = cArr.length;
char[] cArr6 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr6[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(40 - TextUtils.indexOf("", "", 0), 5 - Drawable.resolveOpacity(0, 0), (char) KeyEvent.normalizeMetaState(0))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
}
objArr[0] = new String(cArr6);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
static IeS b(HJP<?> hjp, IOException iOException, long j, noY noy, byte[] bArr) throws VolleyError {
Object[] objArr = {hjp, iOException, Long.valueOf(j), noy, bArr};
return (IeS) d(objArr);
}
}