package o; import android.graphics.Color; import android.graphics.ImageFormat; import android.graphics.PointF; import android.graphics.drawable.Drawable; import android.os.Process; import android.os.SystemClock; import android.text.AndroidCharacter; import android.text.TextUtils; import android.view.KeyEvent; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.util.List; import o.PRA; /* loaded from: classes3.dex */ public final class kdd extends ZTC { private static final byte[] $$d = {53, 8, 9, -66}; private static final int $$e = 221; private static int $10 = 0; private static int $11 = 1; private static int c = 0; private static int b = 1; private static char[] e = {49026}; private static char d = 35368; /* JADX WARN: Removed duplicated region for block: B:10:0x0025 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001d */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> 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 g(int r7, short r8, byte r9, java.lang.Object[] r10) { /* int r8 = r8 + 4 int r9 = r9 + 117 int r7 = r7 * 2 int r7 = r7 + 1 byte[] r0 = o.kdd.$$d byte[] r1 = new byte[r7] r2 = 0 if (r0 != 0) goto L13 r3 = r9 r4 = r2 r9 = r8 goto L2b L13: r3 = r2 L14: int r4 = r3 + 1 byte r5 = (byte) r9 r1[r3] = r5 int r8 = r8 + 1 if (r4 != r7) goto L25 java.lang.String r7 = new java.lang.String r7.(r1, r2) r10[r2] = r7 return L25: r3 = r0[r8] r6 = r9 r9 = r8 r8 = r3 r3 = r6 L2b: int r8 = r8 + r3 r3 = r4 r6 = r9 r9 = r8 r8 = r6 goto L14 */ throw new UnsupportedOperationException("Method not decompiled: o.kdd.g(int, short, byte, java.lang.Object[]):void"); } @InterfaceC13391fZD public kdd() { } public final yCP d(ilm ilmVar) { int i = 2 % 2; int i2 = b + 39; c = i2 % 128; int i3 = i2 % 2; yCP d2 = yCP.d(); d2.c = ilmVar.c; Object[] objArr = new Object[1]; f(-ImageFormat.getBitsPerPixel(0), new char[]{13789}, (byte) (51 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1))), objArr); d2.d = ((String) objArr[0]).intern().equals(ilmVar.d); d2.a = d(ilmVar.a); int i4 = c + 9; b = i4 % 128; int i5 = i4 % 2; return d2; } private List d(List list) { int i = 2 % 2; YKU yku = new YKU(list); List list2 = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this) { // from class: o.lnb private kdd b; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return kdd.a((kpH) obj); } { this.b = this; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); int i2 = c + 119; b = i2 % 128; int i3 = i2 % 2; return list2; } private static C16829rdw e(kpH kph) { int i = 2 % 2; C16829rdw c16829rdw = new C16829rdw(); c16829rdw.e = kph.d; c16829rdw.c = kph.c; c16829rdw.a = kph.e; c16829rdw.d = kph.a; c16829rdw.b = kph.b; int i2 = c + 75; b = i2 % 128; int i3 = i2 % 2; return c16829rdw; } private static void f(int i, char[] cArr, byte b2, Object[] objArr) { int i2; Object obj; int i3 = 2 % 2; IRS irs = new IRS(); char[] cArr2 = e; char c2 = '0'; Object obj2 = null; if (cArr2 != null) { int length = cArr2.length; char[] cArr3 = new char[length]; int i4 = 0; while (i4 < length) { try { Object[] objArr2 = {Integer.valueOf(cArr2[i4])}; Object obj3 = xzZ.y.get(-1987398494); if (obj3 == null) { Class cls = (Class) xzZ.c((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)) + 298, 5 - (KeyEvent.getMaxKeyCode() >> 16), (char) ('0' - AndroidCharacter.getMirror(c2))); byte b3 = (byte) 0; byte b4 = (byte) (b3 - 1); Object[] objArr3 = new Object[1]; g(b3, b4, (byte) (b4 + 1), objArr3); obj3 = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(-1987398494, obj3); } cArr3[i4] = ((Character) ((Method) obj3).invoke(null, objArr2)).charValue(); i4++; c2 = '0'; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } int i5 = $11 + 85; $10 = i5 % 128; int i6 = i5 % 2; cArr2 = cArr3; } try { Object[] objArr4 = {Integer.valueOf(d)}; Object obj4 = xzZ.y.get(-1987398494); if (obj4 == null) { Class cls2 = (Class) xzZ.c((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 299, TextUtils.lastIndexOf("", '0', 0) + 6, (char) Drawable.resolveOpacity(0, 0)); byte b5 = (byte) 0; byte b6 = (byte) (b5 - 1); Object[] objArr5 = new Object[1]; g(b5, b6, (byte) (b6 + 1), objArr5); obj4 = cls2.getMethod((String) objArr5[0], Integer.TYPE); xzZ.y.put(-1987398494, obj4); } char charValue = ((Character) ((Method) obj4).invoke(null, objArr4)).charValue(); char[] cArr4 = new char[i]; if (i % 2 != 0) { int i7 = $10 + 119; $11 = i7 % 128; int i8 = i7 % 2; i2 = i - 1; cArr4[i2] = (char) (cArr[i2] - b2); } else { i2 = i; } if (i2 > 1) { irs.e = 0; while (irs.e < i2) { irs.b = cArr[irs.e]; irs.c = cArr[irs.e + 1]; if (irs.b == irs.c) { int i9 = $11 + 57; $10 = i9 % 128; int i10 = i9 % 2; cArr4[irs.e] = (char) (irs.b - b2); cArr4[irs.e + 1] = (char) (irs.c - b2); obj = obj2; } else { try { Object[] objArr6 = {irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs}; Object obj5 = xzZ.y.get(822107368); if (obj5 == null) { Class cls3 = (Class) xzZ.c(Color.red(0) + 233, (ViewConfiguration.getTouchSlop() >> 8) + 5, (char) (22024 - KeyEvent.normalizeMetaState(0))); byte b7 = (byte) 0; byte b8 = (byte) (b7 - 1); Object[] objArr7 = new Object[1]; g(b7, b8, (byte) (b8 + 4), objArr7); obj5 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class); xzZ.y.put(822107368, obj5); } if (((Integer) ((Method) obj5).invoke(null, objArr6)).intValue() == irs.j) { try { Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs}; Object obj6 = xzZ.y.get(-1152873385); if (obj6 == null) { Class cls4 = (Class) xzZ.c((Process.myPid() >> 22) + 327, 5 - (ViewConfiguration.getPressedStateDuration() >> 16), (char) ((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) - 1)); byte b9 = (byte) 0; byte b10 = (byte) (b9 - 1); Object[] objArr9 = new Object[1]; g(b9, b10, (byte) (-b10), objArr9); obj6 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class); xzZ.y.put(-1152873385, obj6); } obj = null; int intValue = ((Integer) ((Method) obj6).invoke(null, objArr8)).intValue(); int i11 = (irs.d * charValue) + irs.j; cArr4[irs.e] = cArr2[intValue]; cArr4[irs.e + 1] = cArr2[i11]; } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } else { obj = null; if (irs.a == irs.d) { int i12 = $10 + 89; $11 = i12 % 128; int i13 = i12 % 2; irs.f = ((irs.f + charValue) - 1) % charValue; irs.j = ((irs.j + charValue) - 1) % charValue; int i14 = (irs.a * charValue) + irs.f; int i15 = (irs.d * charValue) + irs.j; cArr4[irs.e] = cArr2[i14]; cArr4[irs.e + 1] = cArr2[i15]; } else { int i16 = (irs.a * charValue) + irs.j; int i17 = (irs.d * charValue) + irs.f; cArr4[irs.e] = cArr2[i16]; cArr4[irs.e + 1] = cArr2[i17]; } } } catch (Throwable th3) { Throwable cause3 = th3.getCause(); if (cause3 == null) { throw th3; } throw cause3; } } irs.e += 2; obj2 = obj; } } int i18 = $11 + 55; $10 = i18 % 128; int i19 = i18 % 2; for (int i20 = 0; i20 < i; i20++) { cArr4[i20] = (char) (cArr4[i20] ^ 13722); } objArr[0] = new String(cArr4); } catch (Throwable th4) { Throwable cause4 = th4.getCause(); if (cause4 == null) { throw th4; } throw cause4; } } public static /* synthetic */ C16829rdw a(kpH kph) { int i = 2 % 2; int i2 = b + 59; c = i2 % 128; int i3 = i2 % 2; C16829rdw e2 = e(kph); int i4 = c + 3; b = i4 % 128; if (i4 % 2 != 0) { return e2; } Object obj = null; obj.hashCode(); throw null; } }