package o; import android.graphics.Color; import android.os.Process; import android.text.TextUtils; import android.util.TypedValue; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.primitives.SignedBytes; import java.lang.reflect.Method; import java.util.List; import java.util.Locale; import o.C0690Mh; import o.InterfaceC6621cYR; import o.PRA; import o.ZI; import o.aTZ; import o.wRi; /* loaded from: classes4.dex */ public class aTZ extends ZI { private final C0423GgK a; private final C16764qz b; private ILv c; private final C16757qx d; private iwv e; private final FZQ g; private final C16837ri h; private final C16860rs i; private static final byte[] $$a = {85, SignedBytes.MAX_POWER_OF_TWO, 74, 69}; private static final int $$b = 71; private static int $10 = 0; private static int $11 = 1; private static int n = 0; private static int m = 1; /* renamed from: o */ private static int[] f8505o = {739941893, 2115951066, 1752386187, -502898980, -295384078, 898333030, -1141387575, -2027306105, -791670157, -338746548, 519164790, 65985820, 628293682, -1200180373, -313622962, 2115804028, -538213490, -950207130}; public static /* synthetic */ Object e(Object[] objArr, int i, int i2, int i3) { int i4 = ~i; int i5 = ~(i4 | i3); int i6 = ~i3; int i7 = (i * 905) + (i2 * (-903)) + ((i5 | (~(i6 | i2))) * (-1808)); int i8 = ~i2; int i9 = i | i6; int i10 = i7 + (((~(i9 | i2)) | (~(i4 | i8 | i3))) * 904) + (((~i9) | (~(i2 | i4)) | (~(i3 | i8))) * 904); return i10 != 1 ? i10 != 2 ? i10 != 3 ? d(objArr) : c(objArr) : b(objArr) : a(objArr); } /* 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: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 l(int r5, short r6, byte r7, java.lang.Object[] r8) { /* int r7 = r7 * 4 int r0 = 1 - r7 byte[] r1 = o.aTZ.$$a int r5 = r5 * 2 int r5 = r5 + 4 int r6 = r6 * 2 int r6 = 104 - r6 byte[] r0 = new byte[r0] r2 = 0 int r7 = 0 - r7 if (r1 != 0) goto L19 r4 = r5 r6 = r7 r3 = r2 goto L2b L19: r3 = r2 L1a: byte r4 = (byte) r6 r0[r3] = r4 if (r3 != r7) goto L27 java.lang.String r5 = new java.lang.String r5.(r0, r2) r8[r2] = r5 return L27: int r3 = r3 + 1 r4 = r1[r5] L2b: int r5 = r5 + 1 int r6 = r6 + r4 goto L1a */ throw new UnsupportedOperationException("Method not decompiled: o.aTZ.l(int, short, byte, java.lang.Object[]):void"); } private static /* synthetic */ Object c(Object[] objArr) { int i; aTZ atz = (aTZ) objArr[0]; int i2 = 2 % 2; if (atz.f != 0) { atz.f.ar_(); i = n + 33; } else { i = n + 71; } m = i % 128; int i3 = i % 2; int i4 = m + 47; n = i4 % 128; if (i4 % 2 != 0) { int i5 = 58 / 0; } return null; } static /* synthetic */ void e(aTZ atz, Throwable th, Runnable runnable) { int i = 2 % 2; int i2 = m + 41; n = i2 % 128; int i3 = i2 % 2; if (atz.b(th)) { atz.d(atz.j.c(th, runnable)); } int i4 = n + 123; m = i4 % 128; int i5 = i4 % 2; } static /* synthetic */ void e(aTZ atz, Throwable th, C0690Mh.IeS ieS) { int i = 2 % 2; int i2 = m + 1; n = i2 % 128; int i3 = i2 % 2; if (atz.b(th)) { int i4 = n + 17; m = i4 % 128; if (i4 % 2 == 0) { atz.d(atz.j.d(th, ieS)); int i5 = 15 / 0; } else { atz.d(atz.j.d(th, ieS)); } } } static /* synthetic */ void h(aTZ atz) { int i = 2 % 2; int i2 = m + 23; n = i2 % 128; int i3 = i2 % 2; if (atz.f != 0) { int i4 = n + 71; m = i4 % 128; int i5 = i4 % 2; atz.f.ar_(); } int i6 = n + 41; m = i6 % 128; if (i6 % 2 == 0) { int i7 = 74 / 0; } } @InterfaceC13391fZD public aTZ(C16903sI c16903sI, C0423GgK c0423GgK, C16837ri c16837ri, C16757qx c16757qx, FZQ fzq, C16860rs c16860rs, C16764qz c16764qz) { super(c16903sI); this.a = c0423GgK; this.h = c16837ri; this.d = c16757qx; this.g = fzq; this.i = c16860rs; this.b = c16764qz; } private static /* synthetic */ Object b(Object[] objArr) { KO ko = (KO) objArr[0]; InterfaceC6621cYR.Plv plv = (InterfaceC6621cYR.Plv) objArr[1]; int i = 2 % 2; int i2 = n + 81; m = i2 % 128; int i3 = i2 % 2; plv.e(ko); int i4 = n + 87; m = i4 % 128; if (i4 % 2 != 0) { return null; } throw null; } private static /* synthetic */ Object d(Object[] objArr) { aTZ atz = (aTZ) objArr[0]; String str = (String) objArr[1]; KO ko = (KO) objArr[2]; int i = 2 % 2; atz.e = atz.d.d(str, ko); atz.c = atz.b.e(ko); ZI.IeS ieS = new ZI.IeS(ko) { // from class: o.aTY private KO c; @Override // o.ZI.IeS public final void e(Object obj) { aTZ.e(new Object[]{this.c, (InterfaceC6621cYR.Plv) obj}, -1353504968, 1353504970, (int) System.currentTimeMillis()); } { this.c = ko; } }; if (atz.f == 0) { return null; } int i2 = n + 119; int i3 = i2 % 128; m = i3; int i4 = i2 % 2; int i5 = i3 + 63; n = i5 % 128; if (i5 % 2 == 0) { ieS.e(atz.f); return null; } ieS.e(atz.f); int i6 = 54 / 0; return null; } private void a(int i, double d) { int i2 = 2 % 2; int i3 = n + 107; m = i3 % 128; Object obj = null; if (i3 % 2 == 0) { throw null; } iwv iwvVar = this.e; if (iwvVar != null && iwvVar.c.size() > i) { this.e.c.get(i).a = String.format(Locale.getDefault(), "%.2f", Double.valueOf(d)); } int i4 = m + 17; n = i4 % 128; if (i4 % 2 == 0) { return; } obj.hashCode(); throw null; } public final void b(List list) { int i = 2 % 2; int i2 = n + 81; m = i2 % 128; int i3 = i2 % 2; this.d.e(this.e, list); int i4 = n + 47; m = i4 % 128; int i5 = i4 % 2; } /* JADX WARN: Code restructure failed: missing block: B:10:0x0019, code lost: if (r4.f != 0) goto L21; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost: if (r4.f != 0) goto L21; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x001b, code lost: r4.f.y(); r1 = o.aTZ.n + 95; o.aTZ.m = r1 % 128; r1 = r1 % 2; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final void b(int r5, double r6) { /* r4 = this; r0 = 2 int r1 = r0 % r0 int r1 = o.aTZ.m int r1 = r1 + 5 int r2 = r1 % 128 o.aTZ.n = r2 int r1 = r1 % r0 r2 = 0 if (r1 == 0) goto L17 T extends o.cYp r1 = r4.f r3 = 70 int r3 = r3 / r2 if (r1 == 0) goto L29 goto L1b L17: T extends o.cYp r1 = r4.f if (r1 == 0) goto L29 L1b: T extends o.cYp r1 = r4.f r1.y() int r1 = o.aTZ.n int r1 = r1 + 95 int r3 = r1 % 128 o.aTZ.m = r3 int r1 = r1 % r0 L29: r4.a(r5, r6) o.GgK r5 = r4.a o.iwv r6 = r4.e r5.c(r6) o.GgK r5 = r4.a o.aTZ$IeS r6 = new o.aTZ$IeS r6.(r4, r2) o.fSk r7 = r5.i r5.d(r7, r6) return */ throw new UnsupportedOperationException("Method not decompiled: o.aTZ.b(int, double):void"); } public final void b() { int i = 2 % 2; int i2 = n + 63; m = i2 % 128; int i3 = i2 % 2; ILv iLv = this.c; Object[] objArr = new Object[1]; k(new int[]{-1241725801, -1133469091}, 1 - (ViewConfiguration.getEdgeSlop() >> 16), objArr); if (!((String) objArr[0]).intern().equals(iLv.c)) { ZI.IeS ieS = new ZI.IeS() { // from class: o.aUi @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6621cYR.Plv) obj).d(); } }; if (this.f != 0) { int i4 = n + 47; m = i4 % 128; int i5 = i4 % 2; ieS.e(this.f); return; } return; } ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aUe @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6621cYR.Plv) obj).c(); } }; if (this.f != 0) { int i6 = m + 71; n = i6 % 128; int i7 = i6 % 2; ieS2.e(this.f); } else { int i8 = n + 111; m = i8 % 128; int i9 = i8 % 2; } int i10 = m + 51; n = i10 % 128; if (i10 % 2 == 0) { return; } Object obj = null; obj.hashCode(); throw null; } public static /* synthetic */ void e(KO ko, InterfaceC6621cYR.Plv plv) { int i = 2 % 2; int i2 = m + 51; n = i2 % 128; int i3 = i2 % 2; plv.b(ko); if (i3 != 0) { Object obj = null; obj.hashCode(); throw null; } int i4 = m + 89; n = i4 % 128; int i5 = i4 % 2; } public final void d(KO ko) { int i = 2 % 2; ZI.IeS ieS = new ZI.IeS(ko) { // from class: o.aUh private KO c; @Override // o.ZI.IeS public final void e(Object obj) { aTZ.e(this.c, (InterfaceC6621cYR.Plv) obj); } { this.c = ko; } }; if (this.f != 0) { int i2 = m + 125; n = i2 % 128; if (i2 % 2 != 0) { ieS.e(this.f); int i3 = 21 / 0; } else { ieS.e(this.f); } } else { int i4 = n + 107; m = i4 % 128; int i5 = i4 % 2; } int i6 = m + 71; n = i6 % 128; if (i6 % 2 == 0) { return; } Object obj = null; obj.hashCode(); throw null; } public final void c() { int i = 2 % 2; int i2 = n + 11; m = i2 % 128; int i3 = i2 % 2; if (!(this.f == 0)) { int i4 = m + 115; n = i4 % 128; if (i4 % 2 != 0) { this.f.y(); throw null; } this.f.y(); int i5 = m + 121; n = i5 % 128; int i6 = i5 % 2; } this.g.a(this.c); FZQ fzq = this.g; fzq.d(fzq.i, new LWm(this, (byte) 0)); } private static /* synthetic */ Object a(Object[] objArr) { aTZ atz = (aTZ) objArr[0]; int i = 2 % 2; int i2 = n + 7; m = i2 % 128; if (i2 % 2 != 0) { if (atz.c.d != null) { int i3 = m + 35; n = i3 % 128; int i4 = i3 % 2; if (!atz.c.d.isEmpty()) { YKU yku = new YKU(atz.c.d); List list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw() { // from class: o.aUa @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return aTZ.a((C15754iLo) obj); } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); int i5 = m + 21; n = i5 % 128; if (i5 % 2 == 0) { return list; } throw null; } } return null; } List list2 = atz.c.d; throw null; } /* loaded from: classes4.dex */ public class IeS extends wRi.LWm { private aTZ d; private IeS(aTZ atz) { this.d = atz; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { aTZ.h(this.d); KK a = aTZ.d(this.d).a((C16204mId) obj); aTZ.e(this.d).e(aTZ.c(this.d), a.e); aTZ.a(this.d).a(aTZ.b(this.d), a); aTZ atz = this.d; ZI.IeS ieS = new ZI.IeS(a) { // from class: o.aUf private KK c; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6621cYR.Plv) obj2).a(this.c); } { this.c = a; } }; if (atz.f != 0) { ieS.e(atz.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { aTZ.e(this.d, th, new Runnable(this) { // from class: o.aUg private aTZ.IeS e; @Override // java.lang.Runnable public final void run() { aTZ.IeS.b(this.e); } { this.e = this; } }); } public static /* synthetic */ void b(IeS ieS) { aTZ atz = ieS.d; ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aUl @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6621cYR.Plv) obj).e(); } }; if (atz.f != 0) { ieS2.e(atz.f); } } /* synthetic */ IeS(aTZ atz, byte b) { this(atz); } } /* loaded from: classes4.dex */ public class LWm extends wRi.LWm { private aTZ a; private LWm(aTZ atz) { this.a = atz; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { aTZ.e(new Object[]{this.a}, 2003461037, -2003461034, (int) System.currentTimeMillis()); aTZ atz = this.a; ZI.IeS ieS = new ZI.IeS(this, (FXT) obj) { // from class: o.aUk private FXT c; private aTZ.LWm e; @Override // o.ZI.IeS public final void e(Object obj2) { aTZ.LWm.b(this.e, this.c, (InterfaceC6621cYR.Plv) obj2); } { this.e = this; this.c = r2; } }; if (atz.f != 0) { ieS.e(atz.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { aTZ.e(this.a, th, C0690Mh.IeS.JUST_DISMISS); } public static /* synthetic */ void b(LWm lWm, FXT fxt, InterfaceC6621cYR.Plv plv) { C16860rs i = aTZ.i(lWm.a); C14957gcv.e(fxt, ""); plv.b(new KN(fxt.c, fxt.b, fxt.a, i.b.d(fxt.d))); } /* synthetic */ LWm(aTZ atz, byte b) { this(atz); } } private static void k(int[] iArr, int i, Object[] objArr) { Object method; int[] iArr2; int i2; int i3 = 2 % 2; C4403bZM c4403bZM = new C4403bZM(); char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length * 2]; int[] iArr3 = f8505o; char c = '0'; int i4 = 729798706; int i5 = 1; char c2 = 0; if (iArr3 != null) { int length = iArr3.length; int[] iArr4 = new int[length]; int i6 = 0; while (i6 < length) { try { Object[] objArr2 = new Object[i5]; objArr2[c2] = Integer.valueOf(iArr3[i6]); Object obj = xzZ.y.get(729798706); if (obj == null) { obj = ((Class) xzZ.c(14 - TextUtils.indexOf("", c), 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) ((ViewConfiguration.getEdgeSlop() >> 16) + 58134))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj); } iArr4[i6] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); i6++; c = '0'; i5 = 1; c2 = 0; } 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 = f8505o; if (iArr6 != null) { int length3 = iArr6.length; int[] iArr7 = new int[length3]; int i7 = 0; while (i7 < length3) { try { Object[] objArr3 = {Integer.valueOf(iArr6[i7])}; Object obj2 = xzZ.y.get(Integer.valueOf(i4)); if (obj2 != null) { iArr2 = iArr6; i2 = i4; } else { obj2 = ((Class) xzZ.c(ExpandableListView.getPackedPositionChild(0L) + 16, 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 58133))).getMethod("i", Integer.TYPE); iArr2 = iArr6; i2 = 729798706; xzZ.y.put(729798706, obj2); } iArr7[i7] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); i7++; int i8 = $10 + 81; $11 = i8 % 128; int i9 = i8 % 2; i4 = i2; iArr6 = iArr2; } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } iArr6 = iArr7; } System.arraycopy(iArr6, 0, iArr5, 0, length2); c4403bZM.b = 0; while (c4403bZM.b < iArr.length) { int i10 = $11 + 87; $10 = i10 % 128; int i11 = i10 % 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(iArr5); int i12 = 0; for (int i13 = 16; i12 < i13; i13 = 16) { c4403bZM.e ^= iArr5[i12]; 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(118 - (ViewConfiguration.getTouchSlop() >> 8), Color.red(0) + 5, (char) (1 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)))); byte b = (byte) 0; byte b2 = b; Object[] objArr5 = new Object[1]; l(b, b2, b2, 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; i12++; } int i14 = c4403bZM.e; c4403bZM.e = c4403bZM.a; c4403bZM.a = i14; c4403bZM.a ^= iArr5[16]; c4403bZM.e ^= iArr5[17]; int i15 = c4403bZM.e; int i16 = 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) { method = obj4; } else { Class cls2 = (Class) xzZ.c(97 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) TextUtils.indexOf("", "", 0)); byte b3 = (byte) 0; byte b4 = (byte) (b3 + 1); Object[] objArr7 = new Object[1]; l(b3, b4, (byte) (b4 - 1), objArr7); method = cls2.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1914371176, method); } ((Method) method).invoke(null, objArr6); } objArr[0] = new String(cArr2, 0, i); } public static /* synthetic */ String a(C15754iLo c15754iLo) { int i = 2 % 2; int i2 = n + 15; m = i2 % 128; if (i2 % 2 != 0) { String str = c15754iLo.d; int i3 = n + 51; m = i3 % 128; if (i3 % 2 != 0) { return str; } throw null; } String str2 = c15754iLo.d; throw null; } public final void e(String str, KO ko) { e(new Object[]{this, str, ko}, 454721343, -454721343, System.identityHashCode(this)); } public final List d() { return (List) e(new Object[]{this}, -1481765868, 1481765869, System.identityHashCode(this)); } static /* bridge */ /* synthetic */ C16860rs i(aTZ atz) { int i = 2 % 2; int i2 = m; int i3 = i2 + 19; n = i3 % 128; int i4 = i3 % 2; C16860rs c16860rs = atz.i; int i5 = i2 + 39; n = i5 % 128; if (i5 % 2 == 0) { return c16860rs; } throw null; } static /* bridge */ /* synthetic */ C16837ri d(aTZ atz) { int i = 2 % 2; int i2 = m + 53; n = i2 % 128; int i3 = i2 % 2; C16837ri c16837ri = atz.h; if (i3 != 0) { int i4 = 76 / 0; } return c16837ri; } static /* bridge */ /* synthetic */ ILv b(aTZ atz) { int i = 2 % 2; int i2 = n + 121; int i3 = i2 % 128; m = i3; int i4 = i2 % 2; ILv iLv = atz.c; int i5 = i3 + 47; n = i5 % 128; int i6 = i5 % 2; return iLv; } static /* bridge */ /* synthetic */ C16757qx e(aTZ atz) { int i = 2 % 2; int i2 = n + 63; m = i2 % 128; int i3 = i2 % 2; C16757qx c16757qx = atz.d; if (i3 != 0) { return c16757qx; } throw null; } static /* bridge */ /* synthetic */ C16764qz a(aTZ atz) { int i = 2 % 2; int i2 = n; int i3 = i2 + 123; m = i3 % 128; int i4 = i3 % 2; C16764qz c16764qz = atz.b; int i5 = i2 + 99; m = i5 % 128; int i6 = i5 % 2; return c16764qz; } static /* synthetic */ iwv c(aTZ atz) { int i = 2 % 2; int i2 = n + 59; int i3 = i2 % 128; m = i3; int i4 = i2 % 2; Object obj = null; iwv iwvVar = atz.e; if (i4 == 0) { throw null; } int i5 = i3 + 105; n = i5 % 128; if (i5 % 2 == 0) { return iwvVar; } obj.hashCode(); throw null; } }