308 lines
11 KiB
Java
308 lines
11 KiB
Java
|
package o;
|
||
|
|
||
|
import android.graphics.Color;
|
||
|
import android.text.TextUtils;
|
||
|
import android.view.Gravity;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.widget.ExpandableListView;
|
||
|
import com.google.common.base.Ascii;
|
||
|
import java.lang.reflect.Method;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.List;
|
||
|
import net.sf.scuba.smartcards.ISO7816;
|
||
|
|
||
|
/* renamed from: o.fwR, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C14607fwR {
|
||
|
private static int a;
|
||
|
private static int[] b;
|
||
|
private static final byte[] $$a = {ISO7816.INS_MANAGE_CHANNEL, Ascii.SYN, 62, 17};
|
||
|
private static final int $$b = 62;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int d = 0;
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0029 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x0021 */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x002b). 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 r5, int r6, int r7, java.lang.Object[] r8) {
|
||
|
/*
|
||
|
int r5 = r5 * 2
|
||
|
int r5 = r5 + 102
|
||
|
int r6 = r6 * 3
|
||
|
int r6 = 4 - r6
|
||
|
byte[] r0 = o.C14607fwR.$$a
|
||
|
int r7 = r7 * 3
|
||
|
int r1 = 1 - r7
|
||
|
byte[] r1 = new byte[r1]
|
||
|
r2 = 0
|
||
|
int r7 = 0 - r7
|
||
|
if (r0 != 0) goto L19
|
||
|
r3 = r5
|
||
|
r5 = r7
|
||
|
r4 = r2
|
||
|
goto L2b
|
||
|
L19:
|
||
|
r3 = r2
|
||
|
L1a:
|
||
|
byte r4 = (byte) r5
|
||
|
r1[r3] = r4
|
||
|
int r4 = r3 + 1
|
||
|
if (r3 != r7) goto L29
|
||
|
java.lang.String r5 = new java.lang.String
|
||
|
r5.<init>(r1, r2)
|
||
|
r8[r2] = r5
|
||
|
return
|
||
|
L29:
|
||
|
r3 = r0[r6]
|
||
|
L2b:
|
||
|
int r5 = r5 + r3
|
||
|
int r6 = r6 + 1
|
||
|
r3 = r4
|
||
|
goto L1a
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.C14607fwR.f(short, int, int, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
private C14607fwR() {
|
||
|
}
|
||
|
|
||
|
public static final nYO c(JCU jcu) {
|
||
|
int i = 2 % 2;
|
||
|
C14957gcv.e(jcu, "");
|
||
|
String str = jcu.c;
|
||
|
Object[] objArr = new Object[1];
|
||
|
e(new int[]{1076538612, 1095806785}, 1 - TextUtils.getOffsetBefore("", 0), objArr);
|
||
|
nYO nyo = new nYO(C14957gcv.b((Object) str, (Object) ((String) objArr[0]).intern()), b(jcu.e));
|
||
|
int i2 = a + 113;
|
||
|
d = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
return nyo;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
private static List<DtD> b(List<TYn> list) {
|
||
|
int i = 2 % 2;
|
||
|
ArrayList arrayList = new ArrayList();
|
||
|
Object obj = null;
|
||
|
if (list != null) {
|
||
|
int i2 = d + 115;
|
||
|
a = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
Iterator<TYn> it = list.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
arrayList.add(a(it.next()));
|
||
|
}
|
||
|
} else {
|
||
|
list.iterator();
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
int i3 = a + 3;
|
||
|
d = i3 % 128;
|
||
|
if (i3 % 2 == 0) {
|
||
|
return arrayList;
|
||
|
}
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
private static DtD a(TYn tYn) {
|
||
|
int i = 2 % 2;
|
||
|
String str = tYn.b;
|
||
|
String str2 = tYn.d;
|
||
|
String str3 = tYn.a;
|
||
|
String str4 = tYn.e;
|
||
|
Object[] objArr = new Object[1];
|
||
|
e(new int[]{1076538612, 1095806785}, -TextUtils.lastIndexOf("", '0'), objArr);
|
||
|
DtD dtD = new DtD(str, str2, str3, C14957gcv.b((Object) str4, (Object) ((String) objArr[0]).intern()));
|
||
|
int i2 = a + 37;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
return dtD;
|
||
|
}
|
||
|
|
||
|
private static void e(int[] iArr, int i, Object[] objArr) {
|
||
|
int length;
|
||
|
int[] iArr2;
|
||
|
int[] iArr3;
|
||
|
int i2 = 2;
|
||
|
int i3 = 2 % 2;
|
||
|
C4403bZM c4403bZM = new C4403bZM();
|
||
|
char[] cArr = new char[4];
|
||
|
char[] cArr2 = new char[iArr.length * 2];
|
||
|
int[] iArr4 = b;
|
||
|
int i4 = 729798706;
|
||
|
int i5 = 1;
|
||
|
int i6 = 0;
|
||
|
if (iArr4 != null) {
|
||
|
int length2 = iArr4.length;
|
||
|
int[] iArr5 = new int[length2];
|
||
|
int i7 = 0;
|
||
|
while (i7 < length2) {
|
||
|
int i8 = $10 + 33;
|
||
|
$11 = i8 % 128;
|
||
|
if (i8 % i2 == 0) {
|
||
|
try {
|
||
|
Object[] objArr2 = new Object[i5];
|
||
|
objArr2[0] = Integer.valueOf(iArr4[i7]);
|
||
|
Object obj = xzZ.y.get(Integer.valueOf(i4));
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c((ViewConfiguration.getLongPressTimeout() >> 16) + 15, Gravity.getAbsoluteGravity(0, 0) + 5, (char) ((KeyEvent.getMaxKeyCode() >> 16) + 58134))).getMethod("i", Integer.TYPE);
|
||
|
xzZ.y.put(729798706, obj);
|
||
|
}
|
||
|
iArr5[i7] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
|
||
|
i7 <<= 1;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
} else {
|
||
|
Object[] objArr3 = {Integer.valueOf(iArr4[i7])};
|
||
|
Object obj2 = xzZ.y.get(729798706);
|
||
|
if (obj2 == null) {
|
||
|
obj2 = ((Class) xzZ.c(View.MeasureSpec.getMode(0) + 15, ExpandableListView.getPackedPositionChild(0L) + 6, (char) (58134 - View.MeasureSpec.makeMeasureSpec(0, 0)))).getMethod("i", Integer.TYPE);
|
||
|
xzZ.y.put(729798706, obj2);
|
||
|
}
|
||
|
iArr5[i7] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
|
||
|
i7++;
|
||
|
}
|
||
|
i2 = 2;
|
||
|
i4 = 729798706;
|
||
|
i5 = 1;
|
||
|
}
|
||
|
int i9 = $11 + 23;
|
||
|
$10 = i9 % 128;
|
||
|
int i10 = i9 % 2;
|
||
|
iArr4 = iArr5;
|
||
|
}
|
||
|
int length3 = iArr4.length;
|
||
|
int[] iArr6 = new int[length3];
|
||
|
int[] iArr7 = b;
|
||
|
if (iArr7 != null) {
|
||
|
int i11 = $11 + 77;
|
||
|
$10 = i11 % 128;
|
||
|
if (i11 % 2 != 0) {
|
||
|
length = iArr7.length;
|
||
|
iArr2 = new int[length];
|
||
|
} else {
|
||
|
length = iArr7.length;
|
||
|
iArr2 = new int[length];
|
||
|
}
|
||
|
int i12 = 0;
|
||
|
while (i12 < length) {
|
||
|
Object[] objArr4 = new Object[1];
|
||
|
objArr4[i6] = Integer.valueOf(iArr7[i12]);
|
||
|
Object obj3 = xzZ.y.get(729798706);
|
||
|
if (obj3 != null) {
|
||
|
iArr3 = iArr7;
|
||
|
} else {
|
||
|
iArr3 = iArr7;
|
||
|
obj3 = ((Class) xzZ.c(15 - Color.green(0), 4 - TextUtils.lastIndexOf("", '0', 0, 0), (char) (TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 58135))).getMethod("i", Integer.TYPE);
|
||
|
xzZ.y.put(729798706, obj3);
|
||
|
}
|
||
|
iArr2[i12] = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue();
|
||
|
i12++;
|
||
|
iArr7 = iArr3;
|
||
|
i6 = 0;
|
||
|
}
|
||
|
iArr7 = iArr2;
|
||
|
}
|
||
|
int i13 = i6;
|
||
|
System.arraycopy(iArr7, i13, iArr6, i13, length3);
|
||
|
c4403bZM.b = i13;
|
||
|
while (c4403bZM.b < iArr.length) {
|
||
|
int i14 = $10 + 7;
|
||
|
$11 = i14 % 128;
|
||
|
int i15 = i14 % 2;
|
||
|
cArr[0] = (char) (iArr[c4403bZM.b] >> 16);
|
||
|
cArr[1] = (char) iArr[c4403bZM.b];
|
||
|
cArr[2] = (char) (iArr[c4403bZM.b + 1] >> 16);
|
||
|
cArr[3] = (char) iArr[c4403bZM.b + 1];
|
||
|
c4403bZM.e = (cArr[0] << 16) + cArr[1];
|
||
|
c4403bZM.a = (cArr[2] << 16) + cArr[3];
|
||
|
C4403bZM.d(iArr6);
|
||
|
int i16 = 0;
|
||
|
for (int i17 = 16; i16 < i17; i17 = 16) {
|
||
|
c4403bZM.e ^= iArr6[i16];
|
||
|
Object[] objArr5 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM};
|
||
|
Object obj4 = xzZ.y.get(-1196964548);
|
||
|
if (obj4 == null) {
|
||
|
Class cls = (Class) xzZ.c(118 - (ViewConfiguration.getEdgeSlop() >> 16), 5 - Gravity.getAbsoluteGravity(0, 0), (char) (ViewConfiguration.getFadingEdgeLength() >> 16));
|
||
|
byte b2 = (byte) 1;
|
||
|
byte b3 = (byte) (b2 - 1);
|
||
|
Object[] objArr6 = new Object[1];
|
||
|
f(b2, b3, b3, objArr6);
|
||
|
obj4 = cls.getMethod((String) objArr6[0], Object.class, Integer.TYPE, Object.class, Object.class);
|
||
|
xzZ.y.put(-1196964548, obj4);
|
||
|
}
|
||
|
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr5)).intValue();
|
||
|
c4403bZM.e = c4403bZM.a;
|
||
|
c4403bZM.a = intValue;
|
||
|
i16++;
|
||
|
}
|
||
|
int i18 = c4403bZM.e;
|
||
|
c4403bZM.e = c4403bZM.a;
|
||
|
c4403bZM.a = i18;
|
||
|
c4403bZM.a ^= iArr6[16];
|
||
|
c4403bZM.e ^= iArr6[17];
|
||
|
int i19 = c4403bZM.e;
|
||
|
int i20 = c4403bZM.a;
|
||
|
cArr[0] = (char) (c4403bZM.e >>> 16);
|
||
|
cArr[1] = (char) c4403bZM.e;
|
||
|
cArr[2] = (char) (c4403bZM.a >>> 16);
|
||
|
cArr[3] = (char) c4403bZM.a;
|
||
|
C4403bZM.d(iArr6);
|
||
|
cArr2[c4403bZM.b * 2] = cArr[0];
|
||
|
cArr2[(c4403bZM.b * 2) + 1] = cArr[1];
|
||
|
cArr2[(c4403bZM.b * 2) + 2] = cArr[2];
|
||
|
cArr2[(c4403bZM.b * 2) + 3] = cArr[3];
|
||
|
try {
|
||
|
Object[] objArr7 = {c4403bZM, c4403bZM};
|
||
|
Object obj5 = xzZ.y.get(1914371176);
|
||
|
if (obj5 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(98 - (ViewConfiguration.getWindowTouchSlop() >> 8), 5 - ExpandableListView.getPackedPositionType(0L), (char) (1 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1))));
|
||
|
byte b4 = (byte) 0;
|
||
|
byte b5 = b4;
|
||
|
Object[] objArr8 = new Object[1];
|
||
|
f(b4, b5, b5, objArr8);
|
||
|
obj5 = cls2.getMethod((String) objArr8[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1914371176, obj5);
|
||
|
}
|
||
|
((Method) obj5).invoke(null, objArr7);
|
||
|
} catch (Throwable th2) {
|
||
|
Throwable cause2 = th2.getCause();
|
||
|
if (cause2 == null) {
|
||
|
throw th2;
|
||
|
}
|
||
|
throw cause2;
|
||
|
}
|
||
|
}
|
||
|
objArr[0] = new String(cArr2, 0, i);
|
||
|
}
|
||
|
|
||
|
static void d() {
|
||
|
b = new int[]{1285975026, 1554820398, -1884090664, 1576407960, 1520998268, -1458021465, 1650872870, -228183193, -988675410, -1615526693, 1486204292, -71739127, 2136157113, 968992637, 1846532180, 531240085, -418220571, 255465896};
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
a = 1;
|
||
|
d();
|
||
|
new C14607fwR();
|
||
|
int i = d + 125;
|
||
|
a = i % 128;
|
||
|
int i2 = i % 2;
|
||
|
}
|
||
|
}
|