package o; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.Process; import android.os.SystemClock; import android.telephony.cdma.CdmaCellLocation; import android.text.TextUtils; import android.util.TypedValue; 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 java.lang.reflect.Method; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import net.sf.scuba.smartcards.ISO7816; /* loaded from: classes3.dex */ public final class mdS { private static final byte[] $$a = {63, 15, ISO7816.INS_GET_DATA, 59}; private static final int $$b = 31; private static int $10 = 0; private static int $11 = 1; private static int b = 0; private static int c = 1; private static int[] a = {1316131184, 1077008868, 1221244183, -110356406, -2045038326, -1111971022, -1487737319, 655292894, -1301381849, -1688733062, 836578038, 999452882, -338598996, 1974282192, 586424862, -774628192, 1296625638, -308108387}; /* 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 f(int r6, short r7, short r8, java.lang.Object[] r9) { /* byte[] r0 = o.mdS.$$a int r7 = r7 * 2 int r7 = 104 - r7 int r8 = r8 * 4 int r8 = r8 + 4 int r6 = r6 * 4 int r6 = 1 - r6 byte[] r1 = new byte[r6] r2 = 0 if (r0 != 0) goto L17 r7 = r6 r3 = r8 r4 = r2 goto L29 L17: r3 = r2 L18: int r4 = r3 + 1 byte r5 = (byte) r7 r1[r3] = r5 if (r4 != r6) goto L27 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L27: r3 = r0[r8] L29: int r8 = r8 + 1 int r3 = -r3 int r7 = r7 + r3 r3 = r4 goto L18 */ throw new UnsupportedOperationException("Method not decompiled: o.mdS.f(int, short, short, java.lang.Object[]):void"); } @InterfaceC13391fZD public mdS() { } public static msZ a(MiS miS) { Qve qve; int i = 2 % 2; int i2 = b + 81; c = i2 % 128; int i3 = i2 % 2; C14957gcv.e(miS, ""); xEz b2 = b(miS.f); fEQ d = d(miS.d); String str = miS.b; C13529fbz d2 = d(miS.j); C3785bGn a2 = a(miS.a); Integer num = miS.e; ovD ovd = miS.g; Object obj = null; if (ovd != null) { qve = new Qve(ovd.b, ovd.a); int i4 = c + 59; b = i4 % 128; int i5 = i4 % 2; } else { qve = null; } C14851gaI c14851gaI = miS.h; if (c14851gaI == null) { int i6 = c + 25; b = i6 % 128; if (i6 % 2 != 0) { C14851gaI c14851gaI2 = C14851gaI.c; obj.hashCode(); throw null; } c14851gaI = C14851gaI.c; } Object[] objArr = {c14851gaI}; return new msZ(b2, d, str, d2, a2, num, qve, (List) c(objArr), miS.c); } private static xEz b(yuk yukVar) { int i = 2 % 2; C14957gcv.e(yukVar, ""); xEz xez = new xEz(new NYy(yukVar.a.e, yukVar.a.d)); int i2 = c + 21; b = i2 % 128; int i3 = i2 % 2; return xez; } private static fEQ d(FYM fym) { String str; int i = 2 % 2; int i2 = b + 19; int i3 = i2 % 128; c = i3; int i4 = i2 % 2; String str2 = null; if (fym != null) { int i5 = i3 + 125; b = i5 % 128; int i6 = i5 % 2; str = fym.c; } else { str = null; } if (fym != null) { int i7 = c + 55; b = i7 % 128; if (i7 % 2 != 0) { str2 = fym.b; int i8 = 68 / 0; } else { str2 = fym.b; } } return new fEQ(str, str2); } private static C13529fbz d(XLd xLd) { String str; int i = 2 % 2; int i2 = b + 91; c = i2 % 128; int i3 = i2 % 2; String str2 = null; String str3 = xLd != null ? xLd.e : null; Object[] objArr = new Object[1]; e(new int[]{-284415336, 817602985}, (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 1, objArr); boolean b2 = C14957gcv.b((Object) str3, (Object) ((String) objArr[0]).intern()); if (xLd != null) { int i4 = c + 37; b = i4 % 128; int i5 = i4 % 2; str = xLd.d; } else { str = null; } Object[] objArr2 = new Object[1]; e(new int[]{-284415336, 817602985}, 1 - Drawable.resolveOpacity(0, 0), objArr2); boolean b3 = C14957gcv.b((Object) str, (Object) ((String) objArr2[0]).intern()); if (xLd != null) { str2 = xLd.a; int i6 = b + 53; c = i6 % 128; int i7 = i6 % 2; } Object[] objArr3 = new Object[1]; e(new int[]{-284415336, 817602985}, -Process.getGidForName(""), objArr3); return new C13529fbz(Boolean.valueOf(b2), Boolean.valueOf(b3), Boolean.valueOf(C14957gcv.b((Object) str2, (Object) ((String) objArr3[0]).intern()))); } private static C3785bGn a(zSy zsy) { String str; int i = 2 % 2; String str2 = null; if (zsy != null) { int i2 = c + 29; b = i2 % 128; if (i2 % 2 != 0) { String str3 = zsy.a; str2.hashCode(); throw null; } str = zsy.a; } else { str = null; } Object[] objArr = new Object[1]; e(new int[]{-284415336, 817602985}, 1 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), objArr); boolean b2 = C14957gcv.b((Object) str, (Object) ((String) objArr[0]).intern()); if (zsy != null) { int i3 = b + 55; c = i3 % 128; if (i3 % 2 == 0) { String str4 = zsy.c; throw null; } str2 = zsy.c; } Object[] objArr2 = new Object[1]; e(new int[]{-284415336, 817602985}, 1 - Color.argb(0, 0, 0, 0), objArr2); return new C3785bGn(Boolean.valueOf(b2), Boolean.valueOf(C14957gcv.b((Object) str2, (Object) ((String) objArr2[0]).intern()))); } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ Object c(Object[] objArr) { List list = (List) objArr[0]; int i = 2 % 2; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(); Iterator it = list.iterator(); while (!(!it.hasNext())) { int i2 = c + 3; b = i2 % 128; int i3 = i2 % 2; arrayList.add(c((C17713zBu) it.next())); } int i4 = c + 15; b = i4 % 128; int i5 = i4 % 2; return arrayList; } private static PbV c(C17713zBu c17713zBu) { int i = 2 % 2; C14957gcv.e(c17713zBu, ""); PbV pbV = new PbV(c17713zBu.a, c17713zBu.d, c17713zBu.b, c17713zBu.c, c17713zBu.e); int i2 = c + 49; b = i2 % 128; if (i2 % 2 == 0) { return pbV; } throw null; } private static void e(int[] iArr, int i, Object[] objArr) { int[] iArr2; char c2; int i2 = 2 % 2; C4403bZM c4403bZM = new C4403bZM(); char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length * 2]; int[] iArr3 = a; long j = 0; int i3 = 1; int i4 = 0; if (iArr3 != null) { int length = iArr3.length; int[] iArr4 = new int[length]; int i5 = 0; while (i5 < length) { try { Object[] objArr2 = new Object[i3]; objArr2[0] = Integer.valueOf(iArr3[i5]); Object obj = xzZ.y.get(729798706); if (obj == null) { obj = ((Class) xzZ.c(15 - (ViewConfiguration.getWindowTouchSlop() >> 8), (ExpandableListView.getPackedPositionForGroup(0) > j ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == j ? 0 : -1)) + 5, (char) (View.resolveSizeAndState(0, 0, 0) + 58134))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj); } iArr4[i5] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); i5++; j = 0; i3 = 1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } iArr3 = iArr4; } int length2 = iArr3.length; int[] iArr5 = new int[length2]; int[] iArr6 = a; if (iArr6 != null) { int length3 = iArr6.length; int[] iArr7 = new int[length3]; int i6 = 0; while (i6 < length3) { Object[] objArr3 = new Object[1]; objArr3[i4] = Integer.valueOf(iArr6[i6]); Object obj2 = xzZ.y.get(729798706); if (obj2 != null) { iArr2 = iArr6; c2 = 55346; } else { iArr2 = iArr6; obj2 = ((Class) xzZ.c(16 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), Process.getGidForName("") + 6, (char) (58134 - View.MeasureSpec.makeMeasureSpec(0, 0)))).getMethod("i", Integer.TYPE); c2 = 55346; xzZ.y.put(729798706, obj2); } iArr7[i6] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); i6++; iArr6 = iArr2; i4 = 0; } iArr6 = iArr7; } int i7 = i4; System.arraycopy(iArr6, i7, iArr5, i7, length2); c4403bZM.b = i7; int i8 = $10 + 7; $11 = i8 % 128; int i9 = i8 % 2; while (c4403bZM.b < iArr.length) { 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(iArr5); int i10 = 0; for (int i11 = 16; i10 < i11; i11 = 16) { int i12 = $10 + 5; $11 = i12 % 128; int i13 = i12 % 2; c4403bZM.e ^= iArr5[i10]; Object[] objArr4 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM}; Object obj3 = xzZ.y.get(-1196964548); if (obj3 == null) { Class cls = (Class) xzZ.c(117 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), 5 - TextUtils.indexOf("", ""), (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) - 1)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr5 = new Object[1]; f(b2, b3, b3, objArr5); obj3 = cls.getMethod((String) objArr5[0], Object.class, Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1196964548, obj3); } int intValue = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue(); c4403bZM.e = c4403bZM.a; c4403bZM.a = intValue; i10++; int i14 = $10 + 117; $11 = i14 % 128; int i15 = i14 % 2; } int i16 = c4403bZM.e; c4403bZM.e = c4403bZM.a; c4403bZM.a = i16; c4403bZM.a ^= iArr5[16]; c4403bZM.e ^= iArr5[17]; int i17 = c4403bZM.e; int i18 = 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(iArr5); 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]; Object[] objArr6 = {c4403bZM, c4403bZM}; Object obj4 = xzZ.y.get(1914371176); if (obj4 == null) { Class cls2 = (Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 99, View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) Color.blue(0)); byte b4 = (byte) 0; byte b5 = (byte) (b4 + 1); Object[] objArr7 = new Object[1]; f(b4, b5, (byte) (b5 - 1), objArr7); obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1914371176, obj4); } ((Method) obj4).invoke(null, objArr6); } objArr[0] = new String(cArr2, 0, i); } private static List b(List list) { return (List) c(new Object[]{list}); } }