530 lines
20 KiB
Java
530 lines
20 KiB
Java
package o;
|
|
|
|
import android.graphics.Color;
|
|
import android.graphics.PointF;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.media.AudioTrack;
|
|
import android.os.Process;
|
|
import android.text.TextUtils;
|
|
import android.util.TypedValue;
|
|
import android.view.Gravity;
|
|
import android.view.KeyEvent;
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
import android.widget.ExpandableListView;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import com.google.common.base.Ascii;
|
|
import com.google.common.primitives.UnsignedBytes;
|
|
import java.lang.reflect.Method;
|
|
import org.jmrtd.PassportService;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public final class ghS {
|
|
private static final byte[] $$a = {4, 8, Ascii.DC4, -35};
|
|
private static final int $$b = PassportService.DEFAULT_MAX_BLOCKSIZE;
|
|
private static int $10 = 0;
|
|
private static int $11 = 1;
|
|
private static int e = 0;
|
|
private static int c = 1;
|
|
private static char[] a = {36834};
|
|
private static long b = -7131804954078674758L;
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x002a */
|
|
/* JADX WARN: Removed duplicated region for block: B:7:0x0022 */
|
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002a -> B:4:0x002c). 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 f(short r6, byte r7, byte r8, java.lang.Object[] r9) {
|
|
/*
|
|
byte[] r0 = o.ghS.$$a
|
|
int r8 = r8 * 2
|
|
int r8 = r8 + 4
|
|
int r6 = r6 * 2
|
|
int r1 = 1 - r6
|
|
int r7 = 106 - r7
|
|
byte[] r1 = new byte[r1]
|
|
r2 = 0
|
|
int r6 = 0 - r6
|
|
if (r0 != 0) goto L17
|
|
r3 = r6
|
|
r7 = r8
|
|
r4 = r2
|
|
goto L2c
|
|
L17:
|
|
r3 = r2
|
|
r5 = r8
|
|
r8 = r7
|
|
r7 = r5
|
|
L1b:
|
|
byte r4 = (byte) r8
|
|
r1[r3] = r4
|
|
int r4 = r3 + 1
|
|
if (r3 != r6) goto L2a
|
|
java.lang.String r6 = new java.lang.String
|
|
r6.<init>(r1, r2)
|
|
r9[r2] = r6
|
|
return
|
|
L2a:
|
|
r3 = r0[r7]
|
|
L2c:
|
|
int r8 = r8 + r3
|
|
int r7 = r7 + 1
|
|
r3 = r4
|
|
goto L1b
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.ghS.f(short, byte, byte, java.lang.Object[]):void");
|
|
}
|
|
|
|
public static String e(byte b2) {
|
|
String str;
|
|
int i = 2 % 2;
|
|
int i2 = b2 & UnsignedBytes.MAX_VALUE;
|
|
StringBuilder sb = new StringBuilder();
|
|
if (i2 < 16) {
|
|
int i3 = e + 21;
|
|
c = i3 % 128;
|
|
if (i3 % 2 == 0) {
|
|
Object[] objArr = new Object[1];
|
|
d((char) (ViewConfiguration.getPressedStateDuration() >> 87), (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 1 >> (ViewConfiguration.getWindowTouchSlop() * 66), objArr);
|
|
str = ((String) objArr[0]).intern();
|
|
} else {
|
|
Object[] objArr2 = new Object[1];
|
|
d((char) (ViewConfiguration.getPressedStateDuration() >> 16), 1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 1 - (ViewConfiguration.getWindowTouchSlop() >> 8), objArr2);
|
|
str = ((String) objArr2[0]).intern();
|
|
}
|
|
} else {
|
|
str = "";
|
|
}
|
|
sb.append(str);
|
|
sb.append(Integer.toHexString(i2));
|
|
return sb.toString().toUpperCase();
|
|
}
|
|
|
|
public static String e(short s) {
|
|
String str;
|
|
String str2;
|
|
int i = 2 % 2;
|
|
int i2 = 65535 & s;
|
|
StringBuilder sb = new StringBuilder();
|
|
String str3 = "";
|
|
Object[] objArr = new Object[1];
|
|
d((char) Color.red(0), TextUtils.indexOf("", "", 0), -TextUtils.indexOf((CharSequence) "", '0', 0, 0), objArr);
|
|
String intern = ((String) objArr[0]).intern();
|
|
if (i2 < 4096) {
|
|
int i3 = e + 67;
|
|
c = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
Object[] objArr2 = new Object[1];
|
|
d((char) (ViewConfiguration.getKeyRepeatDelay() >> 16), (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 1 - Gravity.getAbsoluteGravity(0, 0), objArr2);
|
|
str = ((String) objArr2[0]).intern();
|
|
} else {
|
|
str = "";
|
|
}
|
|
sb.append(str);
|
|
if (i2 < 256) {
|
|
int i5 = e + 113;
|
|
c = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
Object[] objArr3 = new Object[1];
|
|
d((char) (ViewConfiguration.getKeyRepeatDelay() >> 16), ViewConfiguration.getTouchSlop() >> 8, 1 - Color.red(0), objArr3);
|
|
str2 = ((String) objArr3[0]).intern();
|
|
} else {
|
|
str2 = "";
|
|
}
|
|
sb.append(str2);
|
|
if (i2 < 16) {
|
|
int i7 = e + 77;
|
|
c = i7 % 128;
|
|
if (i7 % 2 == 0) {
|
|
int i8 = 67 / 0;
|
|
}
|
|
str3 = intern;
|
|
}
|
|
sb.append(str3);
|
|
sb.append(Integer.toHexString(s));
|
|
String obj = sb.toString();
|
|
if (obj.length() > 4) {
|
|
obj = obj.substring(obj.length() - 4, obj.length());
|
|
}
|
|
return obj.toUpperCase();
|
|
}
|
|
|
|
private static void d(char c2, int i, int i2, Object[] objArr) {
|
|
int i3 = 2;
|
|
int i4 = 2 % 2;
|
|
dQY dqy = new dQY();
|
|
long[] jArr = new long[i2];
|
|
int i5 = 0;
|
|
dqy.a = 0;
|
|
while (dqy.a < i2) {
|
|
int i6 = $10 + 55;
|
|
$11 = i6 % 128;
|
|
if (i6 % i3 == 0) {
|
|
int i7 = dqy.a;
|
|
try {
|
|
Object[] objArr2 = new Object[1];
|
|
objArr2[i5] = Integer.valueOf(a[i - dqy.a]);
|
|
Object obj = xzZ.y.get(1095064095);
|
|
if (obj == null) {
|
|
Class cls = (Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 309, View.MeasureSpec.makeMeasureSpec(i5, i5) + 5, (char) (32798 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
|
|
byte b2 = (byte) i5;
|
|
Object[] objArr3 = new Object[1];
|
|
f(b2, $$a[1], b2, objArr3);
|
|
String str = (String) objArr3[i5];
|
|
Class<?>[] clsArr = new Class[1];
|
|
clsArr[i5] = Integer.TYPE;
|
|
obj = cls.getMethod(str, clsArr);
|
|
xzZ.y.put(1095064095, obj);
|
|
}
|
|
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(b), Integer.valueOf(c2)};
|
|
Object obj2 = xzZ.y.get(-548438098);
|
|
if (obj2 == null) {
|
|
Class cls2 = (Class) xzZ.c(412 - KeyEvent.getDeadChar(0, 0), 5 - (ViewConfiguration.getPressedStateDuration() >> 16), (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)));
|
|
byte b3 = (byte) 0;
|
|
Object[] objArr5 = new Object[1];
|
|
f(b3, (byte) (b3 | 7), b3, objArr5);
|
|
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
|
|
xzZ.y.put(-548438098, obj2);
|
|
}
|
|
jArr[i7] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
|
|
Object[] objArr6 = {dqy, dqy};
|
|
Object obj3 = xzZ.y.get(1071125919);
|
|
if (obj3 == null) {
|
|
Class cls3 = (Class) xzZ.c((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 407, (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) (29234 - (ViewConfiguration.getMaximumFlingVelocity() >> 16)));
|
|
byte b4 = (byte) 0;
|
|
byte b5 = b4;
|
|
Object[] objArr7 = new Object[1];
|
|
f(b4, b5, b5, objArr7);
|
|
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
|
|
xzZ.y.put(1071125919, obj3);
|
|
}
|
|
((Method) obj3).invoke(null, objArr6);
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
} else {
|
|
int i8 = dqy.a;
|
|
Object[] objArr8 = {Integer.valueOf(a[i + dqy.a])};
|
|
Object obj4 = xzZ.y.get(1095064095);
|
|
if (obj4 == null) {
|
|
Class cls4 = (Class) xzZ.c(308 - (ViewConfiguration.getScrollDefaultDelay() >> 16), 5 - View.MeasureSpec.getSize(0), (char) ((ViewConfiguration.getScrollDefaultDelay() >> 16) + 32797));
|
|
byte b6 = (byte) 0;
|
|
Object[] objArr9 = new Object[1];
|
|
f(b6, $$a[1], b6, objArr9);
|
|
obj4 = cls4.getMethod((String) objArr9[0], Integer.TYPE);
|
|
xzZ.y.put(1095064095, obj4);
|
|
}
|
|
Object[] objArr10 = {Long.valueOf(((Long) ((Method) obj4).invoke(null, objArr8)).longValue()), Long.valueOf(dqy.a), Long.valueOf(b), Integer.valueOf(c2)};
|
|
Object obj5 = xzZ.y.get(-548438098);
|
|
if (obj5 == null) {
|
|
Class cls5 = (Class) xzZ.c(412 - (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), Drawable.resolveOpacity(0, 0) + 5, (char) TextUtils.getTrimmedLength(""));
|
|
byte b7 = (byte) 0;
|
|
Object[] objArr11 = new Object[1];
|
|
f(b7, (byte) (b7 | 7), b7, objArr11);
|
|
obj5 = cls5.getMethod((String) objArr11[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
|
|
xzZ.y.put(-548438098, obj5);
|
|
}
|
|
jArr[i8] = ((Long) ((Method) obj5).invoke(null, objArr10)).longValue();
|
|
Object[] objArr12 = {dqy, dqy};
|
|
Object obj6 = xzZ.y.get(1071125919);
|
|
if (obj6 == null) {
|
|
Class cls6 = (Class) xzZ.c(407 - ExpandableListView.getPackedPositionGroup(0L), 5 - Color.blue(0), (char) (29233 - TextUtils.indexOf((CharSequence) "", '0')));
|
|
byte b8 = (byte) 0;
|
|
byte b9 = b8;
|
|
Object[] objArr13 = new Object[1];
|
|
f(b8, b9, b9, objArr13);
|
|
obj6 = cls6.getMethod((String) objArr13[0], Object.class, Object.class);
|
|
xzZ.y.put(1071125919, obj6);
|
|
}
|
|
((Method) obj6).invoke(null, objArr12);
|
|
}
|
|
i3 = 2;
|
|
i5 = 0;
|
|
}
|
|
char[] cArr = new char[i2];
|
|
dqy.a = 0;
|
|
while (dqy.a < i2) {
|
|
int i9 = $10 + 59;
|
|
$11 = i9 % 128;
|
|
int i10 = i9 % 2;
|
|
cArr[dqy.a] = (char) jArr[dqy.a];
|
|
Object[] objArr14 = {dqy, dqy};
|
|
Object obj7 = xzZ.y.get(1071125919);
|
|
if (obj7 == null) {
|
|
Class cls7 = (Class) xzZ.c(407 - (ViewConfiguration.getJumpTapTimeout() >> 16), (Process.myTid() >> 22) + 5, (char) (Color.green(0) + 29234));
|
|
byte b10 = (byte) 0;
|
|
byte b11 = b10;
|
|
Object[] objArr15 = new Object[1];
|
|
f(b10, b11, b11, objArr15);
|
|
obj7 = cls7.getMethod((String) objArr15[0], Object.class, Object.class);
|
|
xzZ.y.put(1071125919, obj7);
|
|
}
|
|
((Method) obj7).invoke(null, objArr14);
|
|
}
|
|
objArr[0] = new String(cArr);
|
|
}
|
|
|
|
public static String c(byte[] bArr) {
|
|
int i = 2 % 2;
|
|
int i2 = e + 43;
|
|
c = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
String a2 = a(bArr);
|
|
int i4 = e + 121;
|
|
c = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
return a2;
|
|
}
|
|
|
|
private static String a(byte[] bArr) {
|
|
int i = 2 % 2;
|
|
int i2 = e;
|
|
int i3 = i2 + 113;
|
|
c = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
if (bArr != null) {
|
|
return (String) c(new Object[]{bArr, Integer.valueOf(bArr.length)});
|
|
}
|
|
int i5 = i2 + 125;
|
|
c = i5 % 128;
|
|
if (i5 % 2 == 0) {
|
|
int i6 = 76 / 0;
|
|
}
|
|
return "NULL";
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ Object c(Object[] objArr) {
|
|
byte[] bArr = (byte[]) objArr[0];
|
|
int intValue = ((Number) objArr[1]).intValue();
|
|
int i = 2 % 2;
|
|
if (bArr == null) {
|
|
int i2 = c + 27;
|
|
e = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
return "NULL";
|
|
}
|
|
StringBuffer stringBuffer = new StringBuffer();
|
|
int i4 = 0;
|
|
while (i4 < intValue) {
|
|
if (i4 != 0) {
|
|
int i5 = c;
|
|
int i6 = i5 + 13;
|
|
e = i6 % 128;
|
|
int i7 = i6 % 2;
|
|
if (i4 % 1000 == 0) {
|
|
int i8 = i5 + 103;
|
|
e = i8 % 128;
|
|
if (i8 % 2 != 0) {
|
|
stringBuffer.append("\n");
|
|
int i9 = 83 / 0;
|
|
} else {
|
|
stringBuffer.append("\n");
|
|
}
|
|
}
|
|
}
|
|
stringBuffer.append(e(bArr[i4]));
|
|
i4++;
|
|
int i10 = e + 23;
|
|
c = i10 % 128;
|
|
int i11 = i10 % 2;
|
|
}
|
|
return stringBuffer.toString();
|
|
}
|
|
|
|
public static byte[] c(String str) throws NumberFormatException {
|
|
int i = 2 % 2;
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
StringBuffer stringBuffer = new StringBuffer();
|
|
int i2 = 0;
|
|
for (int i3 = 0; i3 < str.length(); i3++) {
|
|
int i4 = e + 93;
|
|
c = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
char charAt = str.charAt(i3);
|
|
if (!Character.isWhitespace(charAt)) {
|
|
if ("0123456789abcdefABCDEF".indexOf(charAt) < 0) {
|
|
throw new NumberFormatException();
|
|
}
|
|
int i6 = e + 63;
|
|
c = i6 % 128;
|
|
int i7 = i6 % 2;
|
|
stringBuffer.append(charAt);
|
|
int i8 = c + 93;
|
|
e = i8 % 128;
|
|
int i9 = i8 % 2;
|
|
}
|
|
}
|
|
if (stringBuffer.length() % 2 != 0) {
|
|
Object[] objArr = new Object[1];
|
|
d((char) ExpandableListView.getPackedPositionGroup(0L), TextUtils.getOffsetBefore("", 0), 1 - View.getDefaultSize(0, 0), objArr);
|
|
stringBuffer.insert(0, ((String) objArr[0]).intern());
|
|
int i10 = e + 63;
|
|
c = i10 % 128;
|
|
if (i10 % 2 == 0) {
|
|
int i11 = 2 % 5;
|
|
}
|
|
}
|
|
byte[] bArr = new byte[stringBuffer.length() / 2];
|
|
while (i2 < stringBuffer.length()) {
|
|
int i12 = e + 91;
|
|
c = i12 % 128;
|
|
if (i12 % 2 == 0) {
|
|
bArr[i2 >> 5] = (byte) (((e(stringBuffer.charAt(i2)) & 1722) * 2) | (e(stringBuffer.charAt(i2)) & 7249));
|
|
i2 += 54;
|
|
} else {
|
|
bArr[i2 / 2] = (byte) (((e(stringBuffer.charAt(i2)) & 255) << 4) | (e(stringBuffer.charAt(i2 + 1)) & 255));
|
|
i2 += 2;
|
|
}
|
|
}
|
|
return bArr;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:17:0x0033 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x0036 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:20:0x0037 */
|
|
/* JADX WARN: Removed duplicated region for block: B:5:0x001b A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x001f */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private static int e(char r5) throws java.lang.NumberFormatException {
|
|
/*
|
|
r0 = 2
|
|
int r1 = r0 % r0
|
|
int r1 = o.ghS.e
|
|
int r1 = r1 + 119
|
|
int r2 = r1 % 128
|
|
o.ghS.c = r2
|
|
int r1 = r1 % r0
|
|
r3 = 9
|
|
r4 = 0
|
|
if (r1 != 0) goto L17
|
|
r1 = 7
|
|
int r1 = r1 / r4
|
|
switch(r5) {
|
|
case 48: goto L36;
|
|
case 49: goto L34;
|
|
case 50: goto L33;
|
|
case 51: goto L31;
|
|
case 52: goto L2f;
|
|
case 53: goto L2d;
|
|
case 54: goto L2b;
|
|
case 55: goto L1f;
|
|
case 56: goto L1c;
|
|
case 57: goto L1b;
|
|
default: goto L16;
|
|
}
|
|
L16:
|
|
goto L37
|
|
L17:
|
|
switch(r5) {
|
|
case 48: goto L36;
|
|
case 49: goto L34;
|
|
case 50: goto L33;
|
|
case 51: goto L31;
|
|
case 52: goto L2f;
|
|
case 53: goto L2d;
|
|
case 54: goto L2b;
|
|
case 55: goto L1f;
|
|
case 56: goto L1c;
|
|
case 57: goto L1b;
|
|
default: goto L1a;
|
|
}
|
|
L1a:
|
|
goto L37
|
|
L1b:
|
|
return r3
|
|
L1c:
|
|
r5 = 8
|
|
return r5
|
|
L1f:
|
|
int r2 = r2 + r3
|
|
int r5 = r2 % 128
|
|
o.ghS.e = r5
|
|
int r2 = r2 % r0
|
|
if (r2 != 0) goto L29
|
|
r5 = 7
|
|
return r5
|
|
L29:
|
|
r5 = 0
|
|
throw r5
|
|
L2b:
|
|
r5 = 6
|
|
return r5
|
|
L2d:
|
|
r5 = 5
|
|
return r5
|
|
L2f:
|
|
r5 = 4
|
|
return r5
|
|
L31:
|
|
r5 = 3
|
|
return r5
|
|
L33:
|
|
return r0
|
|
L34:
|
|
r5 = 1
|
|
return r5
|
|
L36:
|
|
return r4
|
|
L37:
|
|
switch(r5) {
|
|
case 65: goto L52;
|
|
case 66: goto L4f;
|
|
case 67: goto L4c;
|
|
case 68: goto L49;
|
|
case 69: goto L46;
|
|
case 70: goto L43;
|
|
default: goto L3a;
|
|
}
|
|
L3a:
|
|
switch(r5) {
|
|
case 97: goto L52;
|
|
case 98: goto L4f;
|
|
case 99: goto L4c;
|
|
case 100: goto L49;
|
|
case 101: goto L46;
|
|
case 102: goto L43;
|
|
default: goto L3d;
|
|
}
|
|
L3d:
|
|
java.lang.NumberFormatException r5 = new java.lang.NumberFormatException
|
|
r5.<init>()
|
|
throw r5
|
|
L43:
|
|
r5 = 15
|
|
return r5
|
|
L46:
|
|
r5 = 14
|
|
return r5
|
|
L49:
|
|
r5 = 13
|
|
return r5
|
|
L4c:
|
|
r5 = 12
|
|
return r5
|
|
L4f:
|
|
r5 = 11
|
|
return r5
|
|
L52:
|
|
r5 = 10
|
|
return r5
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.ghS.e(char):int");
|
|
}
|
|
|
|
private static String e(byte[] bArr, int i) {
|
|
return (String) c(new Object[]{bArr, Integer.valueOf(i)});
|
|
}
|
|
}
|