package o; import android.graphics.Color; import android.graphics.PointF; import android.os.SystemClock; import android.text.TextUtils; 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.Collection; import java.util.List; import o.PRA; import org.threeten.bp.OffsetDateTime; /* renamed from: o.NyW, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C0758NyW extends ZTC { private static final byte[] $$d = {124, -55, -59, 62}; private static final int $$e = 23; private static int $10 = 0; private static int $11 = 1; private static int b = 0; private static int d = 1; private static long a = -9106189009410911585L; /* 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:0x002c). 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(short r6, int r7, short r8, java.lang.Object[] r9) { /* int r8 = 78 - r8 byte[] r0 = o.C0758NyW.$$d int r7 = r7 + 4 int r6 = r6 * 4 int r6 = 1 - r6 byte[] r1 = new byte[r6] r2 = 0 if (r0 != 0) goto L13 r3 = r6 r8 = r7 r4 = r2 goto L2c L13: r3 = r2 L14: byte r4 = (byte) r8 r1[r3] = r4 int r3 = r3 + 1 int r7 = r7 + 1 if (r3 != r6) goto L25 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L25: r4 = r0[r7] r5 = r8 r8 = r7 r7 = r4 r4 = r3 r3 = r5 L2c: int r7 = -r7 int r7 = r7 + r3 r3 = r4 r5 = r8 r8 = r7 r7 = r5 goto L14 */ throw new UnsupportedOperationException("Method not decompiled: o.C0758NyW.g(short, int, short, java.lang.Object[]):void"); } @InterfaceC13391fZD public C0758NyW() { } public static final /* synthetic */ JGT e(Oxs oxs) { int i = 2 % 2; int i2 = d + 39; b = i2 % 128; int i3 = i2 % 2; JGT c = c(oxs); int i4 = d + 91; b = i4 % 128; if (i4 % 2 != 0) { int i5 = 42 / 0; } return c; } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ Object e(Object[] objArr) { double d2; String str; String str2; String str3; String str4; C0758NyW c0758NyW = (C0758NyW) objArr[0]; C17015tHi c17015tHi = (C17015tHi) objArr[1]; int i = 2 % 2; int i2 = d + 29; b = i2 % 128; int i3 = i2 % 2; C14957gcv.e(c17015tHi, ""); String str5 = c17015tHi.b; String str6 = str5 == null ? "" : str5; Object obj = null; OffsetDateTime b2 = ZTC.b(c17015tHi.d, (OffsetDateTime) null); Double d3 = c17015tHi.g; if (d3 != null) { int i4 = d + 17; b = i4 % 128; int i5 = i4 % 2; d2 = d3.doubleValue(); } else { d2 = 0.0d; } String str7 = c17015tHi.k; if (str7 == null) { int i6 = d + 11; b = i6 % 128; if (i6 % 2 != 0) { obj.hashCode(); throw null; } str = ""; } else { str = str7; } String str8 = c17015tHi.c; if (str8 == null) { int i7 = d + 23; b = i7 % 128; int i8 = i7 % 2; str2 = ""; } else { str2 = str8; } Jky c = c(c17015tHi.a); List b3 = c0758NyW.b(c17015tHi.j); String str9 = c17015tHi.h; if (str9 == null) { int i9 = b + 57; d = i9 % 128; if (i9 % 2 == 0) { obj.hashCode(); throw null; } str3 = ""; } else { str3 = str9; } String str10 = c17015tHi.i; if (str10 == null) { int i10 = d; int i11 = i10 + 91; b = i11 % 128; int i12 = i11 % 2; int i13 = i10 + 25; b = i13 % 128; int i14 = i13 % 2; str4 = ""; } else { str4 = str10; } String str11 = c17015tHi.f; return new pPU(str6, b2, d2, str, str2, c, b3, str3, str4, str11 == null ? "" : str11, c17015tHi.e); } private static Jky c(TIx tIx) { int i = 2 % 2; List list = null; if (tIx != null) { int i2 = d + 111; b = i2 % 128; if (i2 % 2 != 0) { List list2 = tIx.e; list.hashCode(); throw null; } list = tIx.e; } else { int i3 = b + 91; d = i3 % 128; int i4 = i3 % 2; } return new Jky(d(list)); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.NyW$HBt */ /* loaded from: classes3.dex */ public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private C0758NyW b; @Override // o.InterfaceC14894gbR public final /* synthetic */ RgS invoke(QsT qsT) { QsT qsT2 = qsT; return new RgS(qsT2.a, qsT2.e, qsT2.b != null ? C0758NyW.e(qsT2.b) : null); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ HBt(C0758NyW c0758NyW) { super(1); this.b = c0758NyW; } } private static final RgS c(InterfaceC14894gbR interfaceC14894gbR, Object obj) { int i = 2 % 2; int i2 = d + 89; b = i2 % 128; int i3 = i2 % 2; C14957gcv.e(interfaceC14894gbR, ""); RgS rgS = (RgS) interfaceC14894gbR.invoke(obj); int i4 = b + 41; d = i4 % 128; if (i4 % 2 != 0) { return rgS; } throw null; } private final List b(List list) { int i = 2 % 2; int i2 = d; int i3 = i2 + 89; b = i3 % 128; int i4 = i3 % 2; if (list == null) { int i5 = i2 + 61; b = i5 % 128; int i6 = i5 % 2; return null; } YKU yku = new YKU(list); final HBt hBt = new HBt(this); return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(hBt) { // from class: o.uid private InterfaceC14894gbR a; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return C0758NyW.a(this.a, obj); } { this.a = hBt; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } private static JGT c(Oxs oxs) { String str; int i = 2 % 2; String str2 = null; if (oxs != null) { int i2 = b + 15; d = i2 % 128; int i3 = i2 % 2; str = oxs.d; } else { str = null; } Object[] objArr = new Object[1]; f(new char[]{360}, TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 48492, objArr); boolean b2 = C14957gcv.b((Object) ((String) objArr[0]).intern(), (Object) str); String str3 = oxs != null ? oxs.a : null; if (oxs != null) { str2 = oxs.b; int i4 = d + 99; b = i4 % 128; int i5 = i4 % 2; } return new JGT(b2, str3, str2); } private static List d(List list) { String str; String str2; String str3; int i = 2 % 2; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (jwX jwx : list2) { String str4 = null; if (jwx == null) { int i2 = d + 11; b = i2 % 128; int i3 = i2 % 2; str = null; } else { str = jwx.d; } String str5 = jwx != null ? jwx.c : null; if (jwx != null) { int i4 = b + 77; d = i4 % 128; if (i4 % 2 == 0) { String str6 = jwx.b; str4.hashCode(); throw null; } str2 = jwx.b; } else { str2 = null; } if (jwx != null) { int i5 = d + 21; b = i5 % 128; int i6 = i5 % 2; str3 = jwx.g; } else { str3 = null; } String str7 = jwx != null ? jwx.h : null; if (jwx != null) { int i7 = b + 45; d = i7 % 128; if (i7 % 2 == 0) { str4 = jwx.a; int i8 = 40 / 0; } else { str4 = jwx.a; } } arrayList.add(new jSX(str, str5, str2, str3, str7, str4, 64)); } return arrayList; } return C14851gaI.c; } 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 = 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(401 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 5, (char) (Color.alpha(0) + 21608)); byte b2 = (byte) 0; byte b3 = (byte) (b2 - 1); Object[] objArr3 = new Object[1]; g(b2, b3, (byte) (-b3), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1229953068, obj); } jArr[i3] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() ^ (a ^ (-6958928035870403642L)); Object[] objArr4 = {c4593bdB, c4593bdB}; Object obj2 = xzZ.y.get(-1143917229); if (obj2 == null) { Class cls2 = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0) + 239, View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) ((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 1)); byte b4 = (byte) 0; byte b5 = (byte) (b4 - 1); Object[] objArr5 = new Object[1]; g(b4, b5, (byte) (b5 + 1), 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; } } char[] cArr2 = new char[length]; c4593bdB.e = 0; while (c4593bdB.e < cArr.length) { int i4 = $10 + 113; $11 = i4 % 128; int i5 = i4 % 2; cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e]; Object[] objArr6 = {c4593bdB, c4593bdB}; Object obj3 = xzZ.y.get(-1143917229); if (obj3 == null) { Class cls3 = (Class) xzZ.c(Color.green(0) + 238, (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 4, (char) (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))); byte b6 = (byte) 0; byte b7 = (byte) (b6 - 1); Object[] objArr7 = new Object[1]; g(b6, b7, (byte) (b7 + 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj3); } ((Method) obj3).invoke(null, objArr6); } String str = new String(cArr2); int i6 = $10 + 7; $11 = i6 % 128; int i7 = i6 % 2; objArr[0] = str; } public final pPU d(C17015tHi c17015tHi) { System.identityHashCode(this); return (pPU) e(new Object[]{this, c17015tHi}); } public static /* synthetic */ RgS a(InterfaceC14894gbR interfaceC14894gbR, Object obj) { int i = 2 % 2; int i2 = d + 15; b = i2 % 128; int i3 = i2 % 2; RgS c = c(interfaceC14894gbR, obj); int i4 = b + 43; d = i4 % 128; int i5 = i4 % 2; return c; } }