package o; import android.graphics.Color; import android.graphics.PointF; import android.os.Process; import android.os.SystemClock; import android.telephony.cdma.CdmaCellLocation; 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 android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import o.AbstractC15351go; import o.aZF; /* loaded from: classes3.dex */ public final class aZF extends C13353fY { private final tQD b; private final InterfaceC0773Ogw c; /* renamed from: o.aZF$1, reason: invalid class name */ /* loaded from: classes3.dex */ static final class AnonymousClass1 extends AbstractC14961gcz implements InterfaceC14894gbR { private tQD b; private InterfaceC0773Ogw d; /* renamed from: o.aZF$1$4, reason: invalid class name */ /* loaded from: classes3.dex */ static final class AnonymousClass4 extends AbstractC14961gcz implements InterfaceC14894gbR { private tQD c; private IeS e; @Override // o.InterfaceC14894gbR public final /* synthetic */ fRZ invoke(String str) { String str2 = str; tQD tqd = this.c; IeS ieS = this.e; C14957gcv.c((Object) str2, ""); return tqd.c(ieS.c(str2)); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ AnonymousClass4(tQD tqd, IeS ieS) { super(1); this.c = tqd; this.e = ieS; } } @Override // o.InterfaceC14894gbR public final /* synthetic */ fRY invoke(IeS ieS) { IeS ieS2 = ieS; C14957gcv.e(ieS2, ""); AbstractC13175fSw n = this.d.n(); final AnonymousClass4 anonymousClass4 = new AnonymousClass4(this.b, ieS2); C13363fYb c13363fYb = new C13363fYb(n, new fSS(anonymousClass4) { // from class: o.KBP private InterfaceC14894gbR a; @Override // o.fSS public final Object a(Object obj) { return aZF.AnonymousClass1.c(this.a, obj); } { this.a = anonymousClass4; } }); C14957gcv.c(c13363fYb, ""); return c13363fYb; } public static /* synthetic */ fRZ c(InterfaceC14894gbR interfaceC14894gbR, Object obj) { C14957gcv.e(interfaceC14894gbR, ""); return (fRZ) interfaceC14894gbR.invoke(obj); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ AnonymousClass1(InterfaceC0773Ogw interfaceC0773Ogw, tQD tqd) { super(1); this.d = interfaceC0773Ogw; this.b = tqd; } } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public aZF(yRw yrw, yRw yrw2, InterfaceC0773Ogw interfaceC0773Ogw, tQD tqd) { super(yrw, yrw2, new AnonymousClass1(interfaceC0773Ogw, tqd)); C14957gcv.e(yrw, ""); C14957gcv.e(yrw2, ""); C14957gcv.e(interfaceC0773Ogw, ""); C14957gcv.e(tqd, ""); this.c = interfaceC0773Ogw; this.b = tqd; } /* loaded from: classes3.dex */ public static final class IeS implements AbstractC15351go.HBt { private final String a; private final String b; private final boolean c; private final String d; private final boolean e; private final boolean f; private final boolean g; private final Qve h; private final boolean i; private static final byte[] $$a = {54, -108, 123, 45}; private static final int $$b = 72; private static int $10 = 0; private static int $11 = 1; private static int k = 0; private static int n = 1; private static long j = 9021185184687694060L; private static void m(short s, int i, byte b, Object[] objArr) { int i2 = 78 - b; int i3 = (s * 2) + 4; byte[] bArr = $$a; int i4 = i * 4; byte[] bArr2 = new byte[i4 + 1]; int i5 = -1; if (bArr == null) { i2 = i3 + (-i2); i3++; } while (true) { i5++; bArr2[i5] = (byte) i2; if (i5 == i4) { objArr[0] = new String(bArr2, 0); return; } int i6 = i2; int i7 = i3 + 1; i2 = i6 + (-bArr[i3]); i3 = i7; } } public IeS(String str, String str2, boolean z, boolean z2, boolean z3, boolean z4, boolean z5, String str3, Qve qve) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); C14957gcv.e(str3, ""); C14957gcv.e(qve, ""); this.d = str; this.a = str2; this.e = z; this.g = z2; this.f = z3; this.c = z4; this.i = z5; this.b = str3; this.h = qve; } public final C16407o c(String str) { String str2; String str3; int i = 2 % 2; Object[] objArr = new Object[1]; l(new char[]{45851}, KeyEvent.keyCodeFromString("") + 977, objArr); String intern = ((String) objArr[0]).intern(); Object[] objArr2 = new Object[1]; l(new char[]{45850}, 8951 - (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)), objArr2); String intern2 = ((String) objArr2[0]).intern(); C14957gcv.e(str, ""); String str4 = this.d; String str5 = this.a; String str6 = this.e ? intern : intern2; if (this.g) { int i2 = n + 1; k = i2 % 128; if (i2 % 2 != 0) { throw null; } str2 = intern; } else { str2 = intern2; } if (this.f) { int i3 = n; int i4 = i3 + 45; k = i4 % 128; if (i4 % 2 != 0) { int i5 = 13 / 0; } int i6 = i3 + 9; k = i6 % 128; int i7 = i6 % 2; str3 = intern; } else { str3 = intern2; } D d = new D(str6, str2, str3); String str7 = !this.c ? intern2 : intern; if (this.i) { int i8 = k + 25; n = i8 % 128; int i9 = i8 % 2; } else { intern = intern2; } C17354w c17354w = new C17354w(str7, intern); String str8 = this.b; C7742cu d2 = C7742cu.d(); d2.b = this.h.d; C14957gcv.c(d2, ""); C16407o c16407o = new C16407o(str, str4, str5, d, c17354w, str8, d2); int i10 = k + 9; n = i10 % 128; int i11 = i10 % 2; return c16407o; } private static void l(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; int i3 = $11 + 125; $10 = i3 % 128; int i4 = i3 % 2; while (c4593bdB.e < cArr.length) { int i5 = $10 + 65; $11 = i5 % 128; if (i5 % 2 == 0) { int i6 = 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(Color.green(0) + 402, 5 - ExpandableListView.getPackedPositionGroup(0L), (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)) + 21608)); byte b = (byte) 0; byte b2 = b; Object[] objArr3 = new Object[1]; m(b, b2, (byte) (b2 + 1), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1229953068, obj); } jArr[i6] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() | (j * (-6958928035870403642L)); try { Object[] objArr4 = {c4593bdB, c4593bdB}; Object obj2 = xzZ.y.get(-1143917229); if (obj2 == null) { Class cls2 = (Class) xzZ.c((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 237, (Process.myPid() >> 22) + 5, (char) TextUtils.getTrimmedLength("")); byte b3 = (byte) 0; byte b4 = b3; Object[] objArr5 = new Object[1]; m(b3, b4, b4, 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 i7 = 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(401 - TextUtils.indexOf((CharSequence) "", '0', 0), 6 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), (char) (21608 - TextUtils.indexOf("", ""))); byte b5 = (byte) 0; byte b6 = b5; Object[] objArr7 = new Object[1]; m(b5, b6, (byte) (b6 + 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1229953068, obj3); } jArr[i7] = ((Long) ((Method) obj3).invoke(null, objArr6)).longValue() ^ (j ^ (-6958928035870403642L)); Object[] objArr8 = {c4593bdB, c4593bdB}; Object obj4 = xzZ.y.get(-1143917229); if (obj4 == null) { Class cls4 = (Class) xzZ.c(View.getDefaultSize(0, 0) + 238, Color.blue(0) + 5, (char) (MotionEvent.axisFromString("") + 1)); byte b7 = (byte) 0; byte b8 = b7; Object[] objArr9 = new Object[1]; m(b7, b8, b8, 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; int i8 = $11 + 55; $10 = i8 % 128; int i9 = i8 % 2; while (c4593bdB.e < cArr.length) { int i10 = $11 + 45; $10 = i10 % 128; int i11 = i10 % 2; cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e]; Object[] objArr10 = {c4593bdB, c4593bdB}; Object obj5 = xzZ.y.get(-1143917229); if (obj5 == null) { Class cls5 = (Class) xzZ.c(238 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), TextUtils.lastIndexOf("", '0', 0, 0) + 6, (char) (ViewConfiguration.getWindowTouchSlop() >> 8)); byte b9 = (byte) 0; byte b10 = b9; Object[] objArr11 = new Object[1]; m(b9, b10, b10, objArr11); obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj5); } ((Method) obj5).invoke(null, objArr10); } objArr[0] = new String(cArr2); } } }