package o; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Color; import android.graphics.PointF; import android.os.Process; import android.os.SystemClock; import android.text.TextUtils; import android.util.TypedValue; 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.List; import o.C0813Pa; import o.C15715hv; /* renamed from: o.vF, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C17245vF extends C16157lj { private static final byte[] $$d = {38, -57, 91, -63}; private static final int $$e = 86; private static int $10 = 0; private static int $11 = 1; private static int a = 0; private static int b; private static int d; /* JADX WARN: Removed duplicated region for block: B:10:0x0026 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001e */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> B:4:0x002a). 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 q(short r5, byte r6, byte r7, java.lang.Object[] r8) { /* int r5 = r5 * 3 int r0 = r5 + 1 byte[] r1 = o.C17245vF.$$d int r7 = r7 * 3 int r7 = 3 - r7 int r6 = r6 * 7 int r6 = 76 - r6 byte[] r0 = new byte[r0] r2 = 0 if (r1 != 0) goto L16 r4 = r5 r3 = r2 goto L2a L16: r3 = r2 L17: int r7 = r7 + 1 byte r4 = (byte) r6 r0[r3] = r4 if (r3 != r5) goto L26 java.lang.String r5 = new java.lang.String r5.(r0, r2) r8[r2] = r5 return L26: int r3 = r3 + 1 r4 = r1[r7] L2a: int r4 = -r4 int r6 = r6 + r4 goto L17 */ throw new UnsupportedOperationException("Method not decompiled: o.C17245vF.q(short, byte, byte, java.lang.Object[]):void"); } @InterfaceC13391fZD public C17245vF(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); } /* renamed from: o.vF$Sts */ /* loaded from: classes3.dex */ public static final class Sts { private Sts() { } public /* synthetic */ Sts(byte b) { this(); } } /* JADX WARN: Code restructure failed: missing block: B:4:0x0019, code lost: if (r21 != null) goto L8; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x0021, code lost: r4 = null; */ /* JADX WARN: Code restructure failed: missing block: B:88:0x001e, code lost: r4 = r21.i; */ /* JADX WARN: Code restructure failed: missing block: B:89:0x001c, code lost: if (r21 != null) goto L8; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final o.OT d(java.lang.String r18, java.lang.String r19, o.aKU r20, o.WnJ r21) { /* Method dump skipped, instructions count: 340 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C17245vF.d(java.lang.String, java.lang.String, o.aKU, o.WnJ):o.OT"); } /* JADX WARN: Removed duplicated region for block: B:16:0x007b A[RETURN] */ /* JADX WARN: Removed duplicated region for block: B:18:0x007c */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private final java.lang.String c(o.WnJ r6, o.SeR r7) { /* r5 = this; r0 = 2 int r1 = r0 % r0 int r1 = o.C17245vF.b int r1 = r1 + 85 int r2 = r1 % 128 o.C17245vF.a = r2 int r1 = r1 % r0 r1 = 0 if (r6 == 0) goto L1b java.lang.String r2 = r6.c int r3 = o.C17245vF.a int r3 = r3 + 121 int r4 = r3 % 128 o.C17245vF.b = r4 int r3 = r3 % r0 goto L1c L1b: r2 = r1 L1c: if (r2 == 0) goto L6e if (r7 == 0) goto L31 int r2 = o.C17245vF.a int r2 = r2 + 101 int r3 = r2 % 128 o.C17245vF.b = r3 int r2 = r2 % r0 if (r2 == 0) goto L2e java.lang.String r2 = r7.b goto L32 L2e: java.lang.String r6 = r7.b throw r1 L31: r2 = r1 L32: if (r2 == 0) goto L6e java.lang.String r6 = r6.c if (r6 == 0) goto L43 java.lang.CharSequence r6 = (java.lang.CharSequence) r6 java.lang.CharSequence r6 = o.gdZ.b(r6) java.lang.String r6 = r6.toString() goto L44 L43: r6 = r1 L44: java.lang.String r7 = r7.b java.lang.String r2 = "yyyy-MM-dd'T'HH:mm:ss" org.threeten.bp.OffsetDateTime r7 = o.cXG.d(r2, r7) java.lang.String r7 = r5.a(r7) java.lang.StringBuilder r2 = new java.lang.StringBuilder r2.() r2.append(r6) java.lang.String r6 = " " r2.append(r6) r2.append(r7) java.lang.String r6 = r2.toString() int r7 = o.C17245vF.b int r7 = r7 + 101 int r2 = r7 % 128 o.C17245vF.a = r2 int r7 = r7 % r0 goto L70 L6e: java.lang.String r6 = "" L70: int r7 = o.C17245vF.a int r7 = r7 + 19 int r2 = r7 % 128 o.C17245vF.b = r2 int r7 = r7 % r0 if (r7 == 0) goto L7c return r6 L7c: throw r1 */ throw new UnsupportedOperationException("Method not decompiled: o.C17245vF.c(o.WnJ, o.SeR):java.lang.String"); } private final String d(WnJ wnJ, SeR seR) { int i = 2 % 2; String str = null; if ((wnJ != null ? wnJ.e : null) != null) { int i2 = b + 85; a = i2 % 128; if (i2 % 2 != 0) { str.hashCode(); throw null; } if ((seR != null ? seR.b : null) != null) { String str2 = wnJ.e; if (str2 != null) { int i3 = b + 73; a = i3 % 128; int i4 = i3 % 2; str = gdZ.b((CharSequence) str2).toString(); } String a2 = a(cXG.d("yyyy-MM-dd'T'HH:mm:ss", seR.b)); StringBuilder sb = new StringBuilder(); sb.append(str); sb.append(" "); sb.append(a2); return sb.toString(); } } return ""; } private static void n(int i, int i2, int i3, char[] cArr, boolean z, Object[] objArr) { char[] cArr2; int i4 = 2 % 2; zUI zui = new zUI(); char[] cArr3 = new char[i]; zui.d = 0; while (zui.d < i) { zui.c = cArr[zui.d]; cArr3[zui.d] = (char) (i3 + zui.c); int i5 = zui.d; try { Object[] objArr2 = {Integer.valueOf(cArr3[i5]), Integer.valueOf(d)}; Object obj = xzZ.y.get(880493502); if (obj == null) { Class cls = (Class) xzZ.c(142 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (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)) + 7, (char) (ViewConfiguration.getJumpTapTimeout() >> 16)); byte b2 = (byte) 0; byte b3 = (byte) (b2 + 1); Object[] objArr3 = new Object[1]; q(b2, b3, (byte) (b3 - 1), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(880493502, obj); } cArr3[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); Object[] objArr4 = {zui, zui}; Object obj2 = xzZ.y.get(1294990079); if (obj2 == null) { Class cls2 = (Class) xzZ.c((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)) + 342, 6 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; q(b4, b5, b5, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(1294990079, obj2); } ((Method) obj2).invoke(null, objArr4); int i6 = $10 + 105; $11 = i6 % 128; int i7 = i6 % 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } if (i2 > 0) { zui.a = i2; char[] cArr4 = new char[i]; System.arraycopy(cArr3, 0, cArr4, 0, i); System.arraycopy(cArr4, 0, cArr3, i - zui.a, zui.a); System.arraycopy(cArr4, zui.a, cArr3, 0, i - zui.a); int i8 = $11 + 9; $10 = i8 % 128; int i9 = i8 % 2; } if (!(!z)) { int i10 = $11 + 23; $10 = i10 % 128; if (i10 % 2 != 0) { cArr2 = new char[i]; zui.d = 1; } else { cArr2 = new char[i]; zui.d = 0; } while (zui.d < i) { cArr2[zui.d] = cArr3[(i - zui.d) - 1]; Object[] objArr6 = {zui, zui}; Object obj3 = xzZ.y.get(1294990079); if (obj3 == null) { Class cls3 = (Class) xzZ.c(Color.blue(0) + 342, Color.rgb(0, 0, 0) + 16777221, (char) (1 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)))); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr7 = new Object[1]; q(b6, b7, b7, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1294990079, obj3); } ((Method) obj3).invoke(null, objArr6); } cArr3 = cArr2; } objArr[0] = new String(cArr3); } private static int h(Double d2) { double d3; int i = 2 % 2; if ((d2 != null ? d2.doubleValue() : 0.0d) < 0.0d) { int i2 = b + 83; a = i2 % 128; int i3 = i2 % 2; return C15715hv.IeS.ic_arrow_down; } if (d2 != null) { int i4 = a + 55; b = i4 % 128; if (i4 % 2 == 0) { d3 = d2.doubleValue(); int i5 = 49 / 0; } else { d3 = d2.doubleValue(); } } else { d3 = 0.0d; } if (d3 > 0.0d) { return C15715hv.IeS.ic_arrow_up; } return 0; } private static String c(hHE hhe) { String i; int i2; int i3; int i4 = 2 % 2; int i5 = a + 59; b = i5 % 128; Object obj = null; if (i5 % 2 == 0) { String str = hhe.c; obj.hashCode(); throw null; } if (hhe.c != null) { String str2 = hhe.e; String i6 = C6583cXR.i(str2 != null ? str2 : ""); String str3 = hhe.c; StringBuilder sb = new StringBuilder(); sb.append(i6); sb.append(" "); sb.append(str3); i = sb.toString(); i2 = b + 99; i3 = i2 % 128; } else { String str4 = hhe.e; if (str4 == null) { int i7 = b + 89; a = i7 % 128; if (i7 % 2 != 0) { obj.hashCode(); throw null; } str4 = ""; } i = C6583cXR.i(str4); C14957gcv.c((Object) i, ""); i2 = b + 111; i3 = i2 % 128; } a = i3; int i8 = i2 % 2; return i; } private static int g(Double d2) { double d3; int i = 2 % 2; if ((d2 != null ? d2.doubleValue() : 0.0d) < 0.0d) { return -1; } if (d2 != null) { int i2 = a + 5; b = i2 % 128; if (i2 % 2 == 0) { d2.doubleValue(); throw null; } d3 = d2.doubleValue(); } else { d3 = 0.0d; } if (d3 <= 0.0d) { return 0; } int i3 = b + 45; a = i3 % 128; int i4 = i3 % 2; return 1; } private List c(List list) { double d2; Double d3; String str; int i = 2 % 2; int i2 = b + 65; a = i2 % 128; int i3 = i2 % 2; if (list == null) { return null; } List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (hHE hhe : list2) { int i4 = b + 123; a = i4 % 128; int i5 = i4 % 2; C0813Pa.LWm b2 = C0813Pa.b(); b2.d = hhe.d; String str2 = (String) C6583cXR.c(new Object[]{hhe.i}, 2106777167, -2106777155, (int) System.currentTimeMillis()); String str3 = hhe.h; if (str3 == null) { str3 = ""; } String l = l((String) C6583cXR.c(new Object[]{str3}, 2106777167, -2106777155, (int) System.currentTimeMillis())); StringBuilder sb = new StringBuilder(); sb.append(str2); sb.append(" ("); sb.append(l); sb.append(")"); b2.g = sb.toString(); String str4 = hhe.i; if (str4 != null) { int i6 = a + 11; b = i6 % 128; if (i6 % 2 == 0) { d2 = Double.parseDouble(str4); int i7 = 60 / 0; } else { d2 = Double.parseDouble(str4); } } else { d2 = 0.0d; } b2.l = b(d2); String str5 = hhe.i; if (str5 != null) { int i8 = b + 71; a = i8 % 128; if (i8 % 2 != 0) { d3 = Double.valueOf(Double.parseDouble(str5)); int i9 = 15 / 0; } else { d3 = Double.valueOf(Double.parseDouble(str5)); } } else { int i10 = b + 13; a = i10 % 128; int i11 = i10 % 2; d3 = null; } b2.j = h(d3); b2.f = c(hhe); String str6 = hhe.i; b2.a = g(str6 != null ? Double.valueOf(Double.parseDouble(str6)) : null); b2.h = hhe.a; aRO aro = hhe.j; String str7 = aro != null ? aro.b : null; aRO aro2 = hhe.j; String str8 = aro2 != null ? aro2.d : null; StringBuilder sb2 = new StringBuilder(); sb2.append(str7); sb2.append(" "); sb2.append(str8); b2.i = sb2.toString(); DAG dag = hhe.g; b2.b = dag != null ? dag.e : null; DAG dag2 = hhe.g; if (dag2 != null) { int i12 = b + 39; a = i12 % 128; int i13 = i12 % 2; str = dag2.d; } else { str = null; } b2.c = str; Object[] objArr = {hhe.b}; b2.e = (List) a(objArr); arrayList.add(new C0813Pa(b2, (byte) 0)); } return arrayList; } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ Object a(Object[] objArr) { String str; List list = (List) objArr[0]; int i = 2 % 2; ArrayList arrayList = null; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (Kvg kvg : list2) { String str2 = kvg != null ? kvg.a : null; if (str2 == null) { int i2 = b + 63; a = i2 % 128; if (i2 % 2 != 0) { throw null; } str2 = ""; } if (kvg != null) { int i3 = b + 7; a = i3 % 128; if (i3 % 2 != 0) { str = kvg.e; int i4 = 52 / 0; } else { str = kvg.e; } } else { str = null; } if (str == null) { int i5 = a + 71; b = i5 % 128; int i6 = i5 % 2; str = ""; } String str3 = kvg != null ? kvg.b : null; if (str3 == null) { str3 = ""; } arrayList2.add(new C0868Qi(str2, str, str3)); } arrayList = arrayList2; } int i7 = b + 113; a = i7 % 128; int i8 = i7 % 2; return arrayList; } private static List e(List list) { int i; String str; String str2; int i2 = 2 % 2; int i3 = b + 67; a = i3 % 128; Object obj = null; if (i3 % 2 != 0) { int i4 = 59 / 0; if (list == null) { return null; } } else if (list == null) { return null; } List list2 = list; C14957gcv.e(list2, ""); if (list2 instanceof Collection) { i = list2.size(); int i5 = a + 25; b = i5 % 128; int i6 = i5 % 2; } else { i = 10; } ArrayList arrayList = new ArrayList(i); for (Dzx dzx : list2) { if (dzx != null) { int i7 = a + 71; b = i7 % 128; int i8 = i7 % 2; str = dzx.e; } else { str = null; } if (str == null) { int i9 = a + 41; b = i9 % 128; if (i9 % 2 == 0) { int i10 = 3 % 2; } str = ""; } if (dzx != null) { int i11 = a + 45; b = i11 % 128; if (i11 % 2 == 0) { String str3 = dzx.d; obj.hashCode(); throw null; } str2 = dzx.d; } else { str2 = null; } String i12 = C6583cXR.i(str2); C14957gcv.c((Object) i12, ""); String i13 = C6583cXR.i(dzx != null ? dzx.c : null); StringBuilder sb = new StringBuilder(); sb.append(i13); sb.append(" THB"); arrayList.add(new C0864Qf(str, i12, sb.toString())); } return arrayList; } static void f() { d = 2015661733; } private static List a(List list) { return (List) a(new Object[]{list}); } static { b = 1; f(); new Sts((byte) 0); int i = a + 1; b = i % 128; int i2 = i % 2; } }