package o; import android.graphics.Color; import android.graphics.ImageFormat; import android.media.AudioTrack; import android.os.SystemClock; import android.text.AndroidCharacter; import android.text.TextUtils; import android.view.View; import android.view.ViewConfiguration; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; /* loaded from: classes3.dex */ public final class FcY extends ZTC { private static final byte[] $$d = {67, 119, -105, 2}; private static final int $$e = 112; private static int $10 = 0; private static int $11 = 1; private static int a = 0; private static int h = 1; private static char[] b = {16349}; private static int d = 1934311309; private static boolean e = true; private static boolean c = true; private static void g(int i, short s, byte b2, Object[] objArr) { int i2 = (s * 2) + 4; int i3 = i * 3; byte[] bArr = $$d; int i4 = 122 - (b2 * 57); byte[] bArr2 = new byte[1 - i3]; int i5 = 0 - i3; int i6 = -1; if (bArr == null) { i2++; i4 = i2 + (-i4); } while (true) { int i7 = i4; int i8 = i2; i6++; bArr2[i6] = (byte) i7; if (i6 == i5) { objArr[0] = new String(bArr2, 0); return; } else { i2 = i8 + 1; i4 = i7 + (-bArr[i8]); } } } @InterfaceC13391fZD public FcY() { } /* JADX WARN: Code restructure failed: missing block: B:21:0x0030, code lost: r12 = r14; r11 = r4; r6 = r1.c; */ /* JADX WARN: Code restructure failed: missing block: B:23:0x002e, code lost: if (r1 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0020, code lost: if (r1 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x0036, code lost: r12 = r14; r6 = null; r11 = r4; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final o.WnJ c(o.IwZ r14) { /* r13 = this; r0 = 2 int r1 = r0 % r0 int r1 = o.FcY.a int r1 = r1 + 15 int r2 = r1 % 128 o.FcY.h = r2 int r1 = r1 % r0 java.lang.String r2 = "" r3 = 0 if (r1 != 0) goto L23 o.C14957gcv.e(r14, r2) o.OUu r1 = r14.e o.hYc r2 = r14.b java.lang.String r4 = r14.c java.lang.String r14 = r14.a r5 = 35 int r5 = r5 / 0 if (r1 == 0) goto L36 goto L30 L23: o.C14957gcv.e(r14, r2) o.OUu r1 = r14.e o.hYc r2 = r14.b java.lang.String r4 = r14.c java.lang.String r14 = r14.a if (r1 == 0) goto L36 L30: java.lang.String r5 = r1.c r12 = r14 r11 = r4 r6 = r5 goto L39 L36: r12 = r14 r6 = r3 r11 = r4 L39: if (r1 == 0) goto L48 java.lang.String r14 = r1.e int r4 = o.FcY.h int r4 = r4 + 65 int r5 = r4 % 128 o.FcY.a = r5 int r4 = r4 % r0 r7 = r14 goto L49 L48: r7 = r3 L49: if (r1 == 0) goto L4f java.lang.String r14 = r1.d r8 = r14 goto L50 L4f: r8 = r3 L50: if (r1 == 0) goto L66 int r14 = o.FcY.a int r14 = r14 + 83 int r4 = r14 % 128 o.FcY.h = r4 int r14 = r14 % r0 if (r14 == 0) goto L60 java.lang.String r3 = r1.a goto L66 L60: java.lang.String r14 = r1.a r3.hashCode() throw r3 L66: r9 = r3 o.SeR r10 = d(r2) o.WnJ r14 = new o.WnJ r5 = r14 r5.(r6, r7, r8, r9, r10, r11, r12) return r14 */ throw new UnsupportedOperationException("Method not decompiled: o.FcY.c(o.IwZ):o.WnJ"); } private static SeR d(hYc hyc) { String str; String str2; String str3; List list; int i = 2 % 2; List list2 = null; if (hyc != null) { str = hyc.b; } else { int i2 = h + 117; a = i2 % 128; int i3 = i2 % 2; str = null; } boolean isEmpty = TextUtils.isEmpty(hyc != null ? hyc.d : null); String str4 = hyc != null ? hyc.d : null; String str5 = (String) d(new Object[]{str4}); if (hyc != null) { int i4 = h + 5; a = i4 % 128; int i5 = i4 % 2; str2 = hyc.a; } else { str2 = null; } boolean isEmpty2 = TextUtils.isEmpty(str2); String str6 = hyc != null ? hyc.a : null; String str7 = (String) d(new Object[]{str6}); if (hyc != null) { int i6 = a + 107; h = i6 % 128; int i7 = i6 % 2; str3 = hyc.e; } else { str3 = null; } if (hyc != null) { int i8 = h + 79; a = i8 % 128; if (i8 % 2 != 0) { List list3 = hyc.c; list2.hashCode(); throw null; } list = hyc.c; } else { list = null; } List e2 = e(list); if (hyc != null) { int i9 = a + 93; h = i9 % 128; int i10 = i9 % 2; list2 = hyc.g; } return new SeR(str, !isEmpty, str5, !isEmpty2, str7, str3, e2, c(list2)); } /* JADX INFO: Access modifiers changed from: private */ /* JADX WARN: Code restructure failed: missing block: B:10:0x0038, code lost: r4 = 93 / 0; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x003b, code lost: return com.google.firebase.crashlytics.internal.common.IdManager.DEFAULT_VERSION_NAME; */ /* JADX WARN: Code restructure failed: missing block: B:13:0x0029, code lost: if ((!android.text.TextUtils.isEmpty(r4)) != true) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x001d, code lost: if (android.text.TextUtils.isEmpty(r4) != false) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x003c, code lost: o.C14957gcv.e(r4); */ /* JADX WARN: Code restructure failed: missing block: B:6:0x003f, code lost: return r4; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x002b, code lost: r4 = o.FcY.h + 63; o.FcY.a = r4 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x0036, code lost: if ((r4 % 2) == 0) goto L12; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static /* synthetic */ java.lang.Object d(java.lang.Object[] r4) { /* r0 = 0 r4 = r4[r0] java.lang.String r4 = (java.lang.String) r4 r1 = 2 int r2 = r1 % r1 int r2 = o.FcY.a int r2 = r2 + 91 int r3 = r2 % 128 o.FcY.h = r3 int r2 = r2 % r1 if (r2 != 0) goto L20 r2 = r4 java.lang.CharSequence r2 = (java.lang.CharSequence) r2 boolean r2 = android.text.TextUtils.isEmpty(r2) r3 = 43 int r3 = r3 / r0 if (r2 == 0) goto L3c goto L2b L20: r2 = r4 java.lang.CharSequence r2 = (java.lang.CharSequence) r2 boolean r2 = android.text.TextUtils.isEmpty(r2) r3 = 1 r2 = r2 ^ r3 if (r2 == r3) goto L3c L2b: int r4 = o.FcY.h int r4 = r4 + 63 int r2 = r4 % 128 o.FcY.a = r2 int r4 = r4 % r1 java.lang.String r1 = "0.0" if (r4 == 0) goto L3b r4 = 93 int r4 = r4 / r0 L3b: return r1 L3c: o.C14957gcv.e(r4) return r4 */ throw new UnsupportedOperationException("Method not decompiled: o.FcY.d(java.lang.Object[]):java.lang.Object"); } /* JADX WARN: Code restructure failed: missing block: B:12:0x0018, code lost: r2 = r2 + 53; o.FcY.a = r2 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:13:0x001f, code lost: if ((r2 % 2) != 0) goto L11; */ /* JADX WARN: Code restructure failed: missing block: B:14:0x0021, code lost: r3 = r4.d; */ /* JADX WARN: Code restructure failed: missing block: B:15:0x0024, code lost: r4 = r4.d; r3.hashCode(); */ /* JADX WARN: Code restructure failed: missing block: B:16:0x0029, code lost: throw null; */ /* JADX WARN: Code restructure failed: missing block: B:17:0x0016, code lost: if (r4 != null) goto L8; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0013, code lost: if (r4 != null) goto L8; */ /* JADX WARN: Code restructure failed: missing block: B:7:0x0037, code lost: if (r4 == null) goto L16; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static o.aRO a(o.sPw r4) { /* r0 = 2 int r1 = r0 % r0 int r1 = o.FcY.a int r1 = r1 + 97 int r2 = r1 % 128 o.FcY.h = r2 int r1 = r1 % r0 r3 = 0 if (r1 != 0) goto L16 r1 = 10 int r1 = r1 / 0 if (r4 == 0) goto L2a goto L18 L16: if (r4 == 0) goto L2a L18: int r2 = r2 + 53 int r1 = r2 % 128 o.FcY.a = r1 int r2 = r2 % r0 if (r2 != 0) goto L24 java.lang.String r3 = r4.d goto L2a L24: java.lang.String r4 = r4.d r3.hashCode() throw r3 L2a: if (r4 == 0) goto L39 int r1 = o.FcY.a int r1 = r1 + 61 int r2 = r1 % 128 o.FcY.h = r2 int r1 = r1 % r0 java.lang.String r4 = r4.b if (r4 != 0) goto L3b L39: java.lang.String r4 = "" L3b: o.aRO r1 = new o.aRO r1.(r3, r4) int r4 = o.FcY.a int r4 = r4 + 21 int r2 = r4 % 128 o.FcY.h = r2 int r4 = r4 % r0 return r1 */ throw new UnsupportedOperationException("Method not decompiled: o.FcY.a(o.sPw):o.aRO"); } private static DAG a(C17568xqx c17568xqx) { int i = 2 % 2; int i2 = a + 105; h = i2 % 128; int i3 = i2 % 2; DAG dag = new DAG(c17568xqx != null ? c17568xqx.d : null, c17568xqx != null ? c17568xqx.e : null); int i4 = a + 13; h = i4 % 128; int i5 = i4 % 2; return dag; } private static List c(List list) { String str; String str2; String str3; sPw spw; C17568xqx c17568xqx; int i = 2 % 2; Object obj = null; if (list == null) { return null; } List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (!(!it.hasNext())) { int i2 = h + 99; a = i2 % 128; int i3 = i2 % 2; bGC bgc = (bGC) it.next(); if (bgc != null) { int i4 = h + 35; a = i4 % 128; if (i4 % 2 != 0) { String str4 = bgc.c; throw null; } str = bgc.c; } else { str = null; } if (bgc != null) { int i5 = a + 19; h = i5 % 128; int i6 = i5 % 2; str2 = bgc.b; } else { str2 = null; } String str5 = bgc != null ? bgc.a : null; if (bgc != null) { int i7 = h + 65; a = i7 % 128; if (i7 % 2 != 0) { String str6 = bgc.f; obj.hashCode(); throw null; } str3 = bgc.f; } else { str3 = null; } String str7 = bgc != null ? bgc.j : null; String str8 = bgc != null ? bgc.d : null; if (bgc != null) { int i8 = a + 125; h = i8 % 128; int i9 = i8 % 2; spw = bgc.g; } else { spw = null; } aRO a2 = a(spw); if (bgc != null) { int i10 = a + 29; h = i10 % 128; int i11 = i10 % 2; c17568xqx = bgc.h; } else { c17568xqx = null; } arrayList.add(new hHE(str, str2, str5, str3, str7, str8, a2, a(c17568xqx), d(bgc != null ? bgc.e : null))); } return arrayList; } private static List e(List list) { String str; String str2; String str3; int i = 2 % 2; if (list == null) { return null; } List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (Yzz yzz : list2) { if (yzz == null) { int i2 = h + 111; a = i2 % 128; int i3 = i2 % 2; str = null; } else { str = yzz.d; } if (yzz == null) { int i4 = a + 103; h = i4 % 128; int i5 = i4 % 2; str2 = null; } else { str2 = yzz.a; } String str4 = yzz != null ? yzz.e : null; if (yzz != null) { int i6 = h + 83; a = i6 % 128; if (i6 % 2 != 0) { str3 = yzz.c; int i7 = 62 / 0; } else { str3 = yzz.c; } } else { str3 = null; } arrayList.add(new Dzx(str, str2, str4, str3)); } return arrayList; } /* JADX WARN: Code restructure failed: missing block: B:12:0x0041, code lost: if (r3 != null) goto L18; */ /* JADX WARN: Code restructure failed: missing block: B:13:0x0058, code lost: r5 = null; */ /* JADX WARN: Code restructure failed: missing block: B:39:0x004c, code lost: r5 = o.FcY.a + 5; o.FcY.h = r5 % 128; r5 = r5 % 2; r5 = r3.a; */ /* JADX WARN: Code restructure failed: missing block: B:41:0x004a, code lost: if (r3 != null) goto L18; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static java.util.List d(java.util.List r9) { /* Method dump skipped, instructions count: 207 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.FcY.d(java.util.List):java.util.List"); } private static void f(char[] cArr, byte[] bArr, int[] iArr, int i, Object[] objArr) { int i2 = 2 % 2; C3614bBe c3614bBe = new C3614bBe(); char[] cArr2 = b; float f = BitmapDescriptorFactory.HUE_RED; long j = 0; if (cArr2 != null) { int i3 = $11 + 9; $10 = i3 % 128; int i4 = i3 % 2; int length = cArr2.length; char[] cArr3 = new char[length]; int i5 = 0; while (i5 < length) { try { Object[] objArr2 = {Integer.valueOf(cArr2[i5])}; Object obj = xzZ.y.get(-950481649); if (obj == null) { Class cls = (Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > j ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == j ? 0 : -1)) + 336, 5 - (AudioTrack.getMinVolume() > f ? 1 : (AudioTrack.getMinVolume() == f ? 0 : -1)), (char) (AndroidCharacter.getMirror('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); xzZ.y.put(-950481649, obj); } cArr3[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); i5++; f = BitmapDescriptorFactory.HUE_RED; j = 0; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr2 = cArr3; } try { Object[] objArr4 = {Integer.valueOf(d)}; Object obj2 = xzZ.y.get(-1521625011); if (obj2 == null) { Class cls2 = (Class) xzZ.c(TextUtils.getCapsMode("", 0, 0) + 283, View.combineMeasuredStates(0, 0) + 5, (char) (Color.red(0) + 39813)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; g(b4, b5, b5, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE); xzZ.y.put(-1521625011, obj2); } int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue(); if (c) { int i6 = $10 + 57; $11 = i6 % 128; int i7 = i6 % 2; c3614bBe.c = bArr.length; char[] cArr4 = new char[c3614bBe.c]; c3614bBe.a = 0; while (c3614bBe.a < c3614bBe.c) { cArr4[c3614bBe.a] = (char) (cArr2[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue); Object[] objArr6 = {c3614bBe, c3614bBe}; Object obj3 = xzZ.y.get(1779759091); if (obj3 == null) { obj3 = ((Class) xzZ.c(41 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (ViewConfiguration.getScrollBarSize() >> 8) + 5, (char) (1 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1))))).getMethod("D", Object.class, Object.class); xzZ.y.put(1779759091, obj3); } ((Method) obj3).invoke(null, objArr6); } objArr[0] = new String(cArr4); return; } if (e) { c3614bBe.c = cArr.length; char[] cArr5 = new char[c3614bBe.c]; c3614bBe.a = 0; while (c3614bBe.a < c3614bBe.c) { int i8 = $11 + 75; $10 = i8 % 128; int i9 = i8 % 2; cArr5[c3614bBe.a] = (char) (cArr2[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue); Object[] objArr7 = {c3614bBe, c3614bBe}; Object obj4 = xzZ.y.get(1779759091); if (obj4 == null) { obj4 = ((Class) xzZ.c((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 39, ImageFormat.getBitsPerPixel(0) + 6, (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod("D", Object.class, Object.class); xzZ.y.put(1779759091, obj4); } ((Method) obj4).invoke(null, objArr7); } objArr[0] = new String(cArr5); return; } c3614bBe.c = iArr.length; char[] cArr6 = new char[c3614bBe.c]; c3614bBe.a = 0; while (c3614bBe.a < c3614bBe.c) { int i10 = $10 + 103; $11 = i10 % 128; int i11 = i10 % 2; cArr6[c3614bBe.a] = (char) (cArr2[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue); c3614bBe.a++; } String str = new String(cArr6); int i12 = $11 + 111; $10 = i12 % 128; if (i12 % 2 == 0) { objArr[0] = str; } else { Object obj5 = null; obj5.hashCode(); throw null; } } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } private static String i(String str) { return (String) d(new Object[]{str}); } }