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

187 lines
7.3 KiB
Java

package o;
import android.graphics.Color;
import android.os.Process;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.ViewConfiguration;
import com.adobe.internal.xmp.XMPException;
import io.beid.beidk.definitions.LivenessStatus;
import java.lang.reflect.Method;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Locale;
import org.bouncycastle.pqc.math.linearalgebra.Matrix;
import org.jmrtd.lds.CVCAFile;
/* renamed from: o.vQX, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C17270vQX {
private static final byte[] $$a = {94, -37, CVCAFile.CAR_TAG, -43};
private static final int $$b = 34;
private static int $10 = 0;
private static int $11 = 1;
private static int b = 0;
private static int e = 1;
private static long d = 671234599390723313L;
private static void g(int i, byte b2, short s, Object[] objArr) {
int i2 = 3 - (b2 * 3);
int i3 = 121 - (i * 2);
byte[] bArr = $$a;
int i4 = s * 2;
byte[] bArr2 = new byte[1 - i4];
int i5 = 0 - i4;
int i6 = -1;
if (bArr == null) {
i3 += i2;
i2 = i2;
i6 = -1;
}
while (true) {
int i7 = i6 + 1;
bArr2[i7] = (byte) i3;
int i8 = i2 + 1;
if (i7 == i5) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i3 += bArr[i8];
i2 = i8;
i6 = i7;
}
}
}
private static void f(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(d ^ (-7538262848231253921L), cArr, i);
int i3 = 4;
guL.a = 4;
while (guL.a < a.length) {
int i4 = $10 + 77;
$11 = i4 % 128;
int i5 = i4 % 2;
guL.c = guL.a - i3;
int i6 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % i3]), Long.valueOf(guL.c), Long.valueOf(d)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(208 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), ((Process.getThreadPriority(0) + 20) >> 6) + 5, (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1707));
byte b2 = (byte) 1;
byte b3 = (byte) (b2 - 1);
Object[] objArr3 = new Object[1];
g(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i6] = ((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(TextUtils.indexOf((CharSequence) "", '0') + 393, (KeyEvent.getMaxKeyCode() >> 16) + 5, (char) (ViewConfiguration.getTouchSlop() >> 8));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
g(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i7 = $11 + 15;
$10 = i7 % 128;
int i8 = i7 % 2;
i3 = 4;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(a, 4, a.length - 4);
}
public static ogk e(String str) throws XMPException {
int i = 2 % 2;
ogk e2 = e(str, new KUl());
int i2 = e + 53;
b = i2 % 128;
if (i2 % 2 == 0) {
return e2;
}
throw null;
}
/* JADX WARN: Removed duplicated region for block: B:115:0x0270 */
/* JADX WARN: Removed duplicated region for block: B:121:0x0304 A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:122:0x0305 */
/* JADX WARN: Removed duplicated region for block: B:145:0x030d */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static o.ogk e(java.lang.String r17, o.ogk r18) throws com.adobe.internal.xmp.XMPException {
/*
Method dump skipped, instructions count: 800
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C17270vQX.e(java.lang.String, o.ogk):o.ogk");
}
public static String a(ogk ogkVar) {
int i = 2 % 2;
StringBuffer stringBuffer = new StringBuffer();
if (ogkVar.f()) {
DecimalFormat decimalFormat = new DecimalFormat(LivenessStatus.OK, new DecimalFormatSymbols(Locale.ENGLISH));
stringBuffer.append(decimalFormat.format(ogkVar.j()));
if (ogkVar.d() == 0) {
return stringBuffer.toString();
}
decimalFormat.applyPattern("'-'00");
stringBuffer.append(decimalFormat.format(ogkVar.d()));
if (ogkVar.e() == 0) {
String obj = stringBuffer.toString();
int i2 = e + 103;
b = i2 % 128;
int i3 = i2 % 2;
return obj;
}
stringBuffer.append(decimalFormat.format(ogkVar.e()));
if (ogkVar.m()) {
stringBuffer.append('T');
Object[] objArr = new Object[1];
f(new char[]{11074, 11122, 12392, 21750, 26698, 7866}, (-16777216) - Color.rgb(0, 0, 0), objArr);
decimalFormat.applyPattern(((String) objArr[0]).intern());
stringBuffer.append(decimalFormat.format(ogkVar.c()));
stringBuffer.append(':');
stringBuffer.append(decimalFormat.format(ogkVar.a()));
if (ogkVar.h() != 0 || ogkVar.g() != 0) {
decimalFormat.applyPattern(":00.#########");
stringBuffer.append(decimalFormat.format(ogkVar.h() + (ogkVar.g() / 1.0E9d)));
}
if (ogkVar.k()) {
int i4 = b + 43;
e = i4 % 128;
int i5 = i4 % 2;
int offset = ogkVar.i().getOffset(ogkVar.b().getTimeInMillis());
if (offset == 0) {
stringBuffer.append(Matrix.MATRIX_TYPE_ZERO);
} else {
int i6 = offset / 3600000;
int abs = Math.abs((offset % 3600000) / 60000);
decimalFormat.applyPattern("+00;-00");
stringBuffer.append(decimalFormat.format(i6));
decimalFormat.applyPattern(":00");
stringBuffer.append(decimalFormat.format(abs));
}
}
}
}
return stringBuffer.toString();
}
}