package o; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Color; import android.graphics.drawable.Drawable; 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.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.text.NumberFormat; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.bouncycastle.crypto.tls.CipherSuite; /* renamed from: o.nk, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16365nk extends AbstractC16173lt { private static int a; private static long b; private static char[] d; private static final byte[] $$d = {60, -87, -31, 8}; private static final int $$e = CipherSuite.TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256; private static int $10 = 0; private static int $11 = 1; private static int g = 1; private static void q(short s, short s2, byte b2, Object[] objArr) { int i = 4 - (s2 * 2); int i2 = b2 + 98; int i3 = s * 4; byte[] bArr = $$d; byte[] bArr2 = new byte[i3 + 1]; int i4 = -1; if (bArr == null) { i++; i2 += -i3; } while (true) { i4++; bArr2[i4] = (byte) i2; if (i4 == i3) { objArr[0] = new String(bArr2, 0); return; } else { i++; i2 += -bArr[i]; } } } @Override // o.AbstractC16173lt public final /* synthetic */ C0433Gl d(C0444Gs c0444Gs) { int i = 2 % 2; int i2 = a + 19; g = i2 % 128; int i3 = i2 % 2; C0433Gl c = c(c0444Gs); int i4 = g + 53; a = i4 % 128; if (i4 % 2 == 0) { return c; } throw null; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C16365nk(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); } private static C0433Gl c(C0444Gs c0444Gs) { int i = 2 % 2; C14957gcv.e(c0444Gs, ""); String h = h(Double.valueOf(c0444Gs.a)); double d2 = c0444Gs.a; String h2 = h(Double.valueOf(c0444Gs.j)); double d3 = c0444Gs.j; String h3 = h(Double.valueOf(c0444Gs.i)); String h4 = h(Double.valueOf(c0444Gs.f)); String str = c0444Gs.d; String str2 = c0444Gs.n; String str3 = c0444Gs.n; StringBuilder sb = new StringBuilder(); sb.append(str3); sb.append("%"); String obj = sb.toString(); String str4 = c0444Gs.c; String str5 = c0444Gs.c; StringBuilder sb2 = new StringBuilder(); sb2.append(str5); sb2.append("%"); String obj2 = sb2.toString(); C0456Gz c0456Gz = c0444Gs.e; String str6 = c0444Gs.h; String str7 = c0444Gs.h; Object[] objArr = new Object[1]; n((char) ((Process.getThreadPriority(0) + 20) >> 6), Drawable.resolveOpacity(0, 0), 1 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), objArr); C0433Gl c0433Gl = new C0433Gl(gjJ.e(str7, ((String) objArr[0]).intern()), str6, h2, Double.valueOf(d3), h3, h4, h, Double.valueOf(d2), obj2, str4, obj, str2, str, null, null, null, null, null, null, null, null, c0456Gz, c0444Gs.g, c0444Gs.b, null, null, 52420608); int i2 = g + 101; a = i2 % 128; if (i2 % 2 != 0) { int i3 = 43 / 0; } return c0433Gl; } private static String h(Double d2) { int i = 2 % 2; int i2 = g + 109; a = i2 % 128; int i3 = i2 % 2; String format = ((NumberFormat) C6583cXR.c(new Object[]{2}, -1969602709, 1969602717, 2)).format(d2); C14957gcv.c((Object) format, ""); int i4 = a + 111; g = i4 % 128; if (i4 % 2 != 0) { return format; } Object obj = null; obj.hashCode(); throw null; } /* renamed from: o.nk$HBt */ /* loaded from: classes3.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } @Override // o.AbstractC16173lt public final List d(List list) { int i = 2 % 2; C14957gcv.e(list, ""); 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 = a + 61; g = i2 % 128; int i3 = i2 % 2; arrayList.add(c((C0444Gs) it.next())); } ArrayList arrayList2 = arrayList; int i4 = g + 121; a = i4 % 128; if (i4 % 2 != 0) { int i5 = 73 / 0; } return arrayList2; } private static void n(char c, int i, int i2, Object[] objArr) { int i3; int i4 = 2; int i5 = 2 % 2; dQY dqy = new dQY(); long[] jArr = new long[i2]; dqy.a = 0; while (dqy.a < i2) { int i6 = $11 + 7; $10 = i6 % 128; int i7 = i6 % i4; int i8 = dqy.a; try { Object[] objArr2 = {Integer.valueOf(d[i + dqy.a])}; Object obj = xzZ.y.get(1095064095); if (obj == null) { Class cls = (Class) xzZ.c((ViewConfiguration.getDoubleTapTimeout() >> 16) + 308, Color.red(0) + 5, (char) ((ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 32797)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr3 = new Object[1]; q(b2, b3, b3, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(1095064095, obj); } Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(b), Integer.valueOf(c)}; Object obj2 = xzZ.y.get(-548438098); if (obj2 == null) { Class cls2 = (Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(0, 0) + 412, 5 - View.getDefaultSize(0, 0), (char) View.MeasureSpec.makeMeasureSpec(0, 0)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; q(b4, b5, (byte) (b5 + 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE); xzZ.y.put(-548438098, obj2); } jArr[i8] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue(); Object[] objArr6 = {dqy, dqy}; Object obj3 = xzZ.y.get(1071125919); if (obj3 == null) { Class cls3 = (Class) xzZ.c(View.getDefaultSize(0, 0) + 407, 6 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (char) (((Process.getThreadPriority(0) + 20) >> 6) + 29234)); byte b6 = (byte) 0; Object[] objArr7 = new Object[1]; q(b6, b6, $$d[3], objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1071125919, obj3); } ((Method) obj3).invoke(null, objArr6); i4 = 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } char[] cArr = new char[i2]; dqy.a = 0; int i9 = $10 + 15; $11 = i9 % 128; int i10 = 2; int i11 = i9 % 2; while (dqy.a < i2) { int i12 = $10 + 99; $11 = i12 % 128; if (i12 % i10 == 0) { cArr[dqy.a] = (char) jArr[dqy.a]; Object[] objArr8 = {dqy, dqy}; Object obj4 = xzZ.y.get(1071125919); if (obj4 == null) { Class cls4 = (Class) xzZ.c(TextUtils.indexOf("", "") + 407, 5 - (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)), (char) ((KeyEvent.getMaxKeyCode() >> 16) + 29234)); byte b7 = (byte) 0; Object[] objArr9 = new Object[1]; q(b7, b7, $$d[3], objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(1071125919, obj4); } ((Method) obj4).invoke(null, objArr8); int i13 = 40 / 0; i10 = 2; } else { cArr[dqy.a] = (char) jArr[dqy.a]; Object[] objArr10 = {dqy, dqy}; Object obj5 = xzZ.y.get(1071125919); if (obj5 != null) { i3 = 2; } else { Class cls5 = (Class) xzZ.c((ViewConfiguration.getEdgeSlop() >> 16) + 407, 5 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (char) (29235 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)))); byte b8 = (byte) 0; Object[] objArr11 = new Object[1]; q(b8, b8, $$d[3], objArr11); i3 = 2; obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class); xzZ.y.put(1071125919, obj5); } ((Method) obj5).invoke(null, objArr10); i10 = i3; } } objArr[0] = new String(cArr); } static void f() { d = new char[]{36834}; b = -7088352985932961014L; } static { a = 0; f(); new HBt((byte) 0); int i = g + 41; a = i % 128; if (i % 2 == 0) { return; } Object obj = null; obj.hashCode(); throw null; } }