package o; import android.graphics.PointF; import android.media.AudioTrack; import android.text.TextUtils; import android.util.TypedValue; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.util.Collections; import java.util.List; import o.PRA; /* loaded from: classes3.dex */ public final class ApD { private static final byte[] $$a = {63, -72, 116, -100}; private static final int $$b = 230; private static int $10 = 0; private static int $11 = 1; private static int b = 0; private static int c = 1; private static long e = 475529248001031894L; private TeC a; /* 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:0x002d). 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, byte r8, byte r9, java.lang.Object[] r10) { /* int r9 = 78 - r9 int r7 = r7 * 3 int r7 = 3 - r7 int r8 = r8 * 2 int r8 = 1 - r8 byte[] r0 = o.ApD.$$a byte[] r1 = new byte[r8] r2 = 0 if (r0 != 0) goto L15 r3 = r9 r4 = r2 r9 = r7 goto L2d L15: r3 = r2 L16: int r4 = r3 + 1 byte r5 = (byte) r9 r1[r3] = r5 int r7 = r7 + 1 if (r4 != r8) goto L27 java.lang.String r7 = new java.lang.String r7.(r1, r2) r10[r2] = r7 return L27: r3 = r0[r7] r6 = r9 r9 = r7 r7 = r3 r3 = r6 L2d: int r7 = r7 + r3 r3 = r4 r6 = r9 r9 = r7 r7 = r6 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: o.ApD.g(int, byte, byte, java.lang.Object[]):void"); } @InterfaceC13391fZD public ApD(TeC teC) { this.a = teC; } /* JADX WARN: Code restructure failed: missing block: B:10:0x0023, code lost: return null; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x0024, code lost: r0.hashCode(); */ /* JADX WARN: Code restructure failed: missing block: B:12:0x0027, code lost: throw null; */ /* JADX WARN: Code restructure failed: missing block: B:13:0x0017, code lost: if (r18 == null) goto L8; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost: if (r18 == null) goto L8; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x0028, code lost: r6 = c(r18.j); r7 = r18.g; r8 = r18.h; r9 = r18.m; r10 = r18.i; r11 = r18.c; r3 = new o.YKU(r18.a); r12 = (java.util.List) new o.YKU(r3.a, new o.wxK(r3.b, new o.HWP())).a(new o.PRA.Sts(new o.PRA.AnonymousClass4(), new o.PRA.AnonymousClass8())); r1 = new java.lang.Object[1]; f(new char[]{60705}, 5167 - (android.graphics.PointF.length(com.google.android.gms.maps.model.BitmapDescriptorFactory.HUE_RED, com.google.android.gms.maps.model.BitmapDescriptorFactory.HUE_RED) > com.google.android.gms.maps.model.BitmapDescriptorFactory.HUE_RED ? 1 : (android.graphics.PointF.length(com.google.android.gms.maps.model.BitmapDescriptorFactory.HUE_RED, com.google.android.gms.maps.model.BitmapDescriptorFactory.HUE_RED) == com.google.android.gms.maps.model.BitmapDescriptorFactory.HUE_RED ? 0 : -1)), r1); */ /* JADX WARN: Code restructure failed: missing block: B:6:0x00a0, code lost: return new o.SPo(r6, r7, r8, r9, r10, r11, r12, ((java.lang.String) r1[0]).intern().equals(r18.f), a(r18.e), r18.b, r18.d); */ /* JADX WARN: Code restructure failed: missing block: B:8:0x0019, code lost: r2 = r2 + 63; o.ApD.c = r2 % 128; r0 = null; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x0021, code lost: if ((r2 % 2) == 0) goto L11; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final o.SPo c(o.RFl r18) { /* r17 = this; r0 = r18 r1 = 2 int r2 = r1 % r1 int r2 = o.ApD.b int r3 = r2 + 125 int r4 = r3 % 128 o.ApD.c = r4 int r3 = r3 % r1 r4 = 0 if (r3 != 0) goto L17 r3 = 14 int r3 = r3 / r4 if (r0 != 0) goto L28 goto L19 L17: if (r0 != 0) goto L28 L19: int r2 = r2 + 63 int r0 = r2 % 128 o.ApD.c = r0 int r2 = r2 % r1 r0 = 0 if (r2 == 0) goto L24 return r0 L24: r0.hashCode() throw r0 L28: java.util.List r1 = r0.j r2 = r17 java.util.List r6 = r2.c(r1) java.lang.String r7 = r0.g java.lang.String r8 = r0.h java.lang.String r9 = r0.m java.lang.String r10 = r0.i java.lang.String r11 = r0.c java.util.List r1 = r0.a o.YKU r3 = new o.YKU r3.(r1) o.HWP r1 = new o.HWP r1.() o.YKU r5 = new o.YKU o.jVT r12 = r3.a o.wxK r13 = new o.wxK java.util.Iterator r3 = r3.b r13.(r3, r1) r5.(r12, r13) o.PRA$Sts r1 = new o.PRA$Sts o.PRA$4 r3 = new o.PRA$4 r3.() o.PRA$8 r12 = new o.PRA$8 r12.() r1.(r3, r12) java.lang.Object r1 = r5.a(r1) r12 = r1 java.util.List r12 = (java.util.List) r12 r1 = 1 char[] r3 = new char[r1] r5 = 60705(0xed21, float:8.5066E-41) r3[r4] = r5 r5 = 0 float r13 = android.graphics.PointF.length(r5, r5) int r5 = (r13 > r5 ? 1 : (r13 == r5 ? 0 : -1)) int r5 = 5167 - r5 java.lang.Object[] r1 = new java.lang.Object[r1] f(r3, r5, r1) r1 = r1[r4] java.lang.String r1 = (java.lang.String) r1 java.lang.String r1 = r1.intern() java.lang.String r3 = r0.f boolean r13 = r1.equals(r3) java.lang.Boolean r1 = r0.e boolean r14 = a(r1) java.lang.String r15 = r0.b o.SPo r1 = new o.SPo java.lang.String r0 = r0.d r5 = r1 r16 = r0 r5.(r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16) return r1 */ throw new UnsupportedOperationException("Method not decompiled: o.ApD.c(o.RFl):o.SPo"); } private List c(List list) { int i = 2 % 2; int i2 = b + 99; c = i2 % 128; if (i2 % 2 == 0) { throw null; } if (list == null) { List emptyList = Collections.emptyList(); int i3 = b + 57; c = i3 % 128; if (i3 % 2 == 0) { int i4 = 95 / 0; } return emptyList; } YKU yku = new YKU(list); return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this) { // from class: o.dSp private ApD b; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return ApD.a((zDJ) obj); } { this.b = this; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } public static XeW a(zDJ zdj) { int i = 2 % 2; int i2 = c + 69; int i3 = i2 % 128; b = i3; Object obj = null; if (i2 % 2 != 0) { throw null; } if (zdj != null) { return new XeW(zdj.e, zdj.a); } int i4 = i3 + 97; c = i4 % 128; if (i4 % 2 != 0) { return null; } obj.hashCode(); throw null; } private static boolean a(Boolean bool) { int i = 2 % 2; int i2 = c; int i3 = i2 + 91; b = i3 % 128; int i4 = i3 % 2; if (bool != null) { return bool.booleanValue(); } int i5 = i2 + 121; b = i5 % 128; int i6 = i5 % 2; return false; } private static void f(char[] cArr, int i, Object[] objArr) { int i2 = 2 % 2; C4593bdB c4593bdB = new C4593bdB(); c4593bdB.a = i; int length = cArr.length; long[] jArr = new long[length]; c4593bdB.e = 0; while (c4593bdB.e < cArr.length) { int i3 = $10 + 25; $11 = i3 % 128; if (i3 % 2 == 0) { int i4 = c4593bdB.e; try { Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB}; Object obj = xzZ.y.get(-1229953068); if (obj == null) { Class cls = (Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 402, 5 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (char) (21608 - View.MeasureSpec.makeMeasureSpec(0, 0))); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr3 = new Object[1]; g(b2, b3, (byte) (b3 + 1), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1229953068, obj); } jArr[i4] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() & (e | (-6958928035870403642L)); try { Object[] objArr4 = {c4593bdB, c4593bdB}; Object obj2 = xzZ.y.get(-1143917229); if (obj2 == null) { Class cls2 = (Class) xzZ.c(238 - View.resolveSizeAndState(0, 0, 0), 4 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))); 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(-1143917229, obj2); } ((Method) obj2).invoke(null, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } else { int i5 = c4593bdB.e; try { Object[] objArr6 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB}; Object obj3 = xzZ.y.get(-1229953068); if (obj3 == null) { Class cls3 = (Class) xzZ.c(402 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), 5 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (char) (KeyEvent.normalizeMetaState(0) + 21608)); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr7 = new Object[1]; g(b6, b7, (byte) (b7 + 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1229953068, obj3); } jArr[i5] = ((Long) ((Method) obj3).invoke(null, objArr6)).longValue() ^ (e ^ (-6958928035870403642L)); Object[] objArr8 = {c4593bdB, c4593bdB}; Object obj4 = xzZ.y.get(-1143917229); if (obj4 == null) { Class cls4 = (Class) xzZ.c(238 - (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)), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 5, (char) View.MeasureSpec.getSize(0)); byte b8 = (byte) 0; byte b9 = b8; Object[] objArr9 = new Object[1]; g(b8, b9, b9, objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj4); } ((Method) obj4).invoke(null, objArr8); } catch (Throwable th3) { Throwable cause3 = th3.getCause(); if (cause3 == null) { throw th3; } throw cause3; } } } char[] cArr2 = new char[length]; c4593bdB.e = 0; while (c4593bdB.e < cArr.length) { int i6 = $11 + 65; $10 = i6 % 128; int i7 = i6 % 2; cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e]; try { Object[] objArr10 = {c4593bdB, c4593bdB}; Object obj5 = xzZ.y.get(-1143917229); if (obj5 == null) { Class cls5 = (Class) xzZ.c(238 - TextUtils.getOffsetBefore("", 0), 5 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((-1) - MotionEvent.axisFromString(""))); byte b10 = (byte) 0; byte b11 = b10; Object[] objArr11 = new Object[1]; g(b10, b11, b11, objArr11); obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj5); } ((Method) obj5).invoke(null, objArr10); } catch (Throwable th4) { Throwable cause4 = th4.getCause(); if (cause4 == null) { throw th4; } throw cause4; } } objArr[0] = new String(cArr2); } }