package o; import android.graphics.Color; import android.os.Process; import android.os.SystemClock; import android.text.AndroidCharacter; import android.text.TextUtils; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.android.material.timepicker.ClockHandView; import com.google.android.material.timepicker.TimePickerView; import com.google.common.base.Ascii; import java.util.Locale; import o.C17052tZT; /* renamed from: o.Wwv, reason: case insensitive filesystem */ /* loaded from: classes2.dex */ public final class C1156Wwv implements ClockHandView.Sts, TimePickerView.HBt, TimePickerView.RVV, ClockHandView.RVV, kxR { private static final String[] b; private static final String[] c; private static final String[] d; private static int f; private static int h; private static int k; private static short[] m; private static int n; /* renamed from: o, reason: collision with root package name */ private static byte[] f8437o; private boolean a = false; private float e; private final TimePickerView g; private final VPp i; private float j; private static final byte[] $$a = {13, 13, 103, -97}; private static final int $$b = 103; private static int $10 = 0; private static int $11 = 1; private static int l = 1; public static /* synthetic */ Object e(Object[] objArr, int i, int i2, int i3) { String[] d2; int i4; int i5 = (i * 980) + (i2 * (-978)); int i6 = ~i2; int i7 = ~i3; int i8 = i5 + ((~(i6 | i7)) * 979) + ((i | i3) * (-979)) + (((~(i | i7)) | (~(i6 | i3))) * 979); if (i8 != 1) { if (i8 != 2) { return a(objArr); } C1156Wwv c1156Wwv = (C1156Wwv) objArr[0]; int i9 = 2 % 2; int i10 = l + 55; n = i10 % 128; int i11 = i10 % 2; c1156Wwv.g.setVisibility(0); int i12 = n + 7; l = i12 % 128; int i13 = i12 % 2; return null; } C1156Wwv c1156Wwv2 = (C1156Wwv) objArr[0]; int intValue = ((Number) objArr[1]).intValue(); boolean booleanValue = ((Boolean) objArr[2]).booleanValue(); int i14 = 2 % 2; boolean z = intValue == 12; c1156Wwv2.g.setAnimateOnTouchUp(z); c1156Wwv2.i.f = intValue; TimePickerView timePickerView = c1156Wwv2.g; if (z) { int i15 = n + 117; l = i15 % 128; int i16 = i15 % 2; d2 = c; } else { d2 = c1156Wwv2.d(); } if (z) { i4 = C17052tZT.ojQ.material_minute_suffix; } else if (c1156Wwv2.i.e == 1) { int i17 = n + 91; l = i17 % 128; int i18 = i17 % 2; i4 = C17052tZT.ojQ.material_hour_24h_suffix; } else { i4 = C17052tZT.ojQ.material_hour_suffix; int i19 = n + 97; l = i19 % 128; int i20 = i19 % 2; } timePickerView.setValues(d2, i4); c1156Wwv2.i(); c1156Wwv2.g.setHandRotation(z ? c1156Wwv2.j : c1156Wwv2.e, booleanValue); c1156Wwv2.g.setActiveSelection(intValue); TimePickerView timePickerView2 = c1156Wwv2.g; timePickerView2.setMinuteHourDelegate(new uVC(c1156Wwv2, timePickerView2.getContext(), C17052tZT.ojQ.material_hour_selection) { // from class: o.Wwv.1 private C1156Wwv c; { this.c = c1156Wwv2; } @Override // o.uVC, o.yZt public final void onInitializeAccessibilityNodeInfo(View view, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) { super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat); accessibilityNodeInfoCompat.d((CharSequence) view.getResources().getString(C1156Wwv.d(this.c).e == 1 ? C17052tZT.ojQ.material_hour_24h_suffix : C17052tZT.ojQ.material_hour_suffix, String.valueOf(C1156Wwv.d(this.c).e()))); } }); TimePickerView timePickerView3 = c1156Wwv2.g; timePickerView3.setHourClickDelegate(new uVC(c1156Wwv2, timePickerView3.getContext(), C17052tZT.ojQ.material_minute_selection) { // from class: o.Wwv.2 private C1156Wwv a; { this.a = c1156Wwv2; } @Override // o.uVC, o.yZt public final void onInitializeAccessibilityNodeInfo(View view, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) { super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat); accessibilityNodeInfoCompat.d((CharSequence) view.getResources().getString(C17052tZT.ojQ.material_minute_suffix, String.valueOf(C1156Wwv.d(this.a).b))); } }); return null; } private static void q(byte b2, short s, short s2, Object[] objArr) { byte[] bArr = $$a; int i = s + 4; int i2 = 110 - (s2 * 2); int i3 = b2 * 3; byte[] bArr2 = new byte[i3 + 1]; int i4 = -1; if (bArr == null) { i2 = (-i2) + i3; i4 = -1; } while (true) { int i5 = i4 + 1; bArr2[i5] = (byte) i2; i++; if (i5 == i3) { objArr[0] = new String(bArr2, 0); return; } else { i2 = (-bArr[i]) + i2; i4 = i5; } } } static /* synthetic */ VPp d(C1156Wwv c1156Wwv) { int i = 2 % 2; int i2 = l + 25; n = i2 % 128; int i3 = i2 % 2; VPp vPp = c1156Wwv.i; if (i3 == 0) { return vPp; } Object obj = null; obj.hashCode(); throw null; } static { n = 0; a(); Object[] objArr = new Object[1]; p((short) ((-81) - Color.alpha(0)), (byte) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), TextUtils.indexOf((CharSequence) "", '0') - 60, (-1822955640) - (ViewConfiguration.getWindowTouchSlop() >> 8), 5894 - AndroidCharacter.getMirror('0'), objArr); String intern = ((String) objArr[0]).intern(); Object[] objArr2 = new Object[1]; p((short) ((-63) - Color.argb(0, 0, 0, 0)), (byte) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 1), View.MeasureSpec.makeMeasureSpec(0, 0) - 61, (-1822955640) - (ViewConfiguration.getMaximumFlingVelocity() >> 16), 69539543 - TextUtils.getOffsetAfter("", 0), objArr2); b = new String[]{"12", intern, ((String) objArr2[0]).intern(), "3", "4", "5", "6", "7", "8", "9", "10", "11"}; Object[] objArr3 = new Object[1]; p((short) ((-105) - TextUtils.indexOf("", "")), (byte) (ViewConfiguration.getTapTimeout() >> 16), (-60) - (ViewConfiguration.getKeyRepeatTimeout() >> 16), (-1822955640) - (ViewConfiguration.getMinimumFlingVelocity() >> 16), 69539540 - Process.getGidForName(""), objArr3); String intern2 = ((String) objArr3[0]).intern(); Object[] objArr4 = new Object[1]; p((short) ((Process.myPid() >> 22) - 81), (byte) ((-1) - ((byte) KeyEvent.getModifierMetaStateMask())), (-62) - TextUtils.indexOf((CharSequence) "", '0', 0, 0), Color.alpha(0) - 1822955640, 69539543 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), objArr4); String intern3 = ((String) objArr4[0]).intern(); Object[] objArr5 = new Object[1]; p((short) ((-63) - TextUtils.indexOf("", "", 0, 0)), (byte) KeyEvent.normalizeMetaState(0), (-60) - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (-1822955639) + ((byte) KeyEvent.getModifierMetaStateMask()), 69539543 - (ViewConfiguration.getLongPressTimeout() >> 16), objArr5); d = new String[]{intern2, intern3, ((String) objArr5[0]).intern(), "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"}; Object[] objArr6 = new Object[1]; p((short) ((ViewConfiguration.getLongPressTimeout() >> 16) - 105), (byte) (TextUtils.indexOf((CharSequence) "", '0', 0) + 1), (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 61, (-1822955640) - ((Process.getThreadPriority(0) + 20) >> 6), 69539541 + (ViewConfiguration.getEdgeSlop() >> 16), objArr6); c = new String[]{((String) objArr6[0]).intern(), "5", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55"}; int i = l + 75; n = i % 128; if (i % 2 != 0) { throw null; } } public C1156Wwv(TimePickerView timePickerView, VPp vPp) { this.g = timePickerView; this.i = vPp; e(new Object[]{this}, -1476084677, 1476084677, System.identityHashCode(this)); } private static /* synthetic */ Object a(Object[] objArr) { C1156Wwv c1156Wwv = (C1156Wwv) objArr[0]; int i = 2 % 2; if (c1156Wwv.i.e == 0) { int i2 = l + 13; n = i2 % 128; if (i2 % 2 != 0) { c1156Wwv.g.g.setVisibility(1); } else { c1156Wwv.g.g.setVisibility(0); } } c1156Wwv.g.d.e.add(c1156Wwv); c1156Wwv.g.j = c1156Wwv; c1156Wwv.g.f = c1156Wwv; c1156Wwv.g.setOnActionUpListener(c1156Wwv); c1156Wwv.h(); c1156Wwv.c(); int i3 = n + 105; l = i3 % 128; Object obj = null; if (i3 % 2 != 0) { return null; } obj.hashCode(); throw null; } @Override // o.kxR public final void c() { int i = 2 % 2; int i2 = n + 115; l = i2 % 128; int i3 = i2 % 2; this.e = g(); this.j = this.i.b * 6; int i4 = this.i.f; e(new Object[]{this, Integer.valueOf(i4), false}, 264070894, -264070893, i4); f(); int i5 = l + 69; n = i5 % 128; if (i5 % 2 == 0) { return; } Object obj = null; obj.hashCode(); throw null; } @Override // o.kxR public final void b() { TimePickerView timePickerView; int i; int i2 = 2 % 2; int i3 = n + 15; l = i3 % 128; if (i3 % 2 == 0) { timePickerView = this.g; i = 44; } else { timePickerView = this.g; i = 8; } timePickerView.setVisibility(i); } private String[] d() { int i = 2 % 2; int i2 = l + 77; n = i2 % 128; if (i2 % 2 == 0 ? this.i.e == 1 : this.i.e == 0) { return d; } String[] strArr = b; int i3 = l + 125; n = i3 % 128; int i4 = i3 % 2; return strArr; } /* JADX WARN: Code restructure failed: missing block: B:22:0x0072, code lost: if (r7.g.a.e.a == 3) goto L22; */ /* JADX WARN: Code restructure failed: missing block: B:23:0x0081, code lost: r8 = r8 + 12; */ /* JADX WARN: Code restructure failed: missing block: B:25:0x007f, code lost: if (r7.g.a.e.a == 2) goto L22; */ @Override // com.google.android.material.timepicker.ClockHandView.Sts /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final void c(float r8, boolean r9) { /* r7 = this; r0 = 2 int r1 = r0 % r0 int r1 = o.C1156Wwv.n int r1 = r1 + 11 int r2 = r1 % 128 o.C1156Wwv.l = r2 int r1 = r1 % r0 if (r1 != 0) goto L17 boolean r1 = r7.a r2 = 35 int r2 = r2 / 0 if (r1 == 0) goto L1c goto L1b L17: boolean r1 = r7.a if (r1 == 0) goto L1c L1b: return L1c: o.VPp r1 = r7.i int r1 = r1.a o.VPp r2 = r7.i int r2 = r2.b int r8 = java.lang.Math.round(r8) o.VPp r3 = r7.i int r3 = r3.f r4 = 3 r5 = 12 if (r3 != r5) goto L52 int r3 = o.C1156Wwv.l int r3 = r3 + 11 int r5 = r3 % 128 o.C1156Wwv.n = r5 int r3 = r3 % r0 o.VPp r3 = r7.i int r8 = r8 + r4 int r8 = r8 / 6 int r8 = r8 % 60 r3.b = r8 o.VPp r8 = r7.i int r8 = r8.b int r8 = r8 * 6 double r3 = (double) r8 double r3 = java.lang.Math.floor(r3) float r8 = (float) r3 r7.j = r8 goto L8e L52: int r8 = r8 + 15 int r8 = r8 / 30 o.VPp r3 = r7.i int r3 = r3.e r6 = 1 if (r3 != r6) goto L82 int r3 = o.C1156Wwv.l int r3 = r3 + 59 int r6 = r3 % 128 o.C1156Wwv.n = r6 int r3 = r3 % r0 if (r3 == 0) goto L75 int r8 = r8 % 110 com.google.android.material.timepicker.TimePickerView r3 = r7.g com.google.android.material.timepicker.ClockFaceView r3 = r3.a com.google.android.material.timepicker.ClockHandView r3 = r3.e int r3 = r3.a if (r3 != r4) goto L82 goto L81 L75: int r8 = r8 % 12 com.google.android.material.timepicker.TimePickerView r3 = r7.g com.google.android.material.timepicker.ClockFaceView r3 = r3.a com.google.android.material.timepicker.ClockHandView r3 = r3.e int r3 = r3.a if (r3 != r0) goto L82 L81: int r8 = r8 + r5 L82: o.VPp r3 = r7.i r3.e(r8) int r8 = r7.g() float r8 = (float) r8 r7.e = r8 L8e: if (r9 != 0) goto Laa int r8 = o.C1156Wwv.l int r8 = r8 + 43 int r9 = r8 % 128 o.C1156Wwv.n = r9 int r8 = r8 % r0 if (r8 != 0) goto La2 r7.f() r7.e(r1, r2) goto Laa La2: r7.f() r7.e(r1, r2) r8 = 0 throw r8 Laa: return */ throw new UnsupportedOperationException("Method not decompiled: o.C1156Wwv.c(float, boolean):void"); } private void e(int i, int i2) { int i3 = 2 % 2; int i4 = l + 99; n = i4 % 128; int i5 = i4 % 2; if (this.i.b == i2) { int i6 = n + 115; l = i6 % 128; if (i6 % 2 == 0) { int i7 = 7 / 0; if (this.i.a == i) { return; } } else if (this.i.a == i) { return; } } this.g.performHapticFeedback(4); } @Override // com.google.android.material.timepicker.TimePickerView.HBt public final void c(int i) { int i2 = 2 % 2; int i3 = n + 37; l = i3 % 128; int i4 = i3 % 2; e(new Object[]{this, Integer.valueOf(i), true}, 264070894, -264070893, i); int i5 = n + 21; l = i5 % 128; if (i5 % 2 == 0) { int i6 = 93 / 0; } } @Override // com.google.android.material.timepicker.TimePickerView.RVV public final void b(int i) { int i2 = 2 % 2; int i3 = n + 71; l = i3 % 128; int i4 = i3 % 2; this.i.b(i); int i5 = l + 65; n = i5 % 128; if (i5 % 2 != 0) { throw null; } } private void i() { int i = 2; int i2 = 2 % 2; int i3 = l + 17; n = i3 % 128; if (i3 % 2 == 0 ? this.i.f == 10 : this.i.f == 13) { if (this.i.e == 1) { int i4 = l + 29; n = i4 % 128; int i5 = i4 % 2; if (this.i.a >= 12) { int i6 = n + 45; l = i6 % 128; int i7 = i6 % 2; ClockHandView clockHandView = this.g.a.e; clockHandView.a = i; clockHandView.invalidate(); } } } i = 1; ClockHandView clockHandView2 = this.g.a.e; clockHandView2.a = i; clockHandView2.invalidate(); } /* JADX WARN: Code restructure failed: missing block: B:55:0x0282, code lost: if (r0 != false) goto L60; */ /* JADX WARN: Code restructure failed: missing block: B:56:0x02b5, code lost: r4 = o.C1156Wwv.m; r1.c = r1.c - 1; r1.a = (char) (r1.e + (((short) (((short) (r4[r8] ^ (-7303220121662775787L))) + r20)) ^ r21)); */ /* JADX WARN: Code restructure failed: missing block: B:59:0x0287, code lost: r4 = o.C1156Wwv.f8437o; r1.c = r1.c - 1; r1.a = (char) (r1.e + (((byte) (((byte) (r4[r7] ^ (-7303220121662775787L))) + r20)) ^ r21)); r4 = o.C1156Wwv.$10 + 85; o.C1156Wwv.$11 = r4 % 128; r4 = r4 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:61:0x0285, code lost: if (r0 != false) goto L60; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void p(short r20, byte r21, int r22, int r23, int r24, java.lang.Object[] r25) { /* Method dump skipped, instructions count: 755 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C1156Wwv.p(short, byte, int, int, int, java.lang.Object[]):void"); } /* JADX WARN: Code restructure failed: missing block: B:11:0x004e, code lost: if (((java.lang.Boolean) java.lang.Class.forName("android.view.accessibility.AccessibilityManager").getMethod("isTouchExplorationEnabled", null).invoke(r8, null)).booleanValue() == false) goto L14; */ @Override // com.google.android.material.timepicker.ClockHandView.RVV /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final void a(float r8, boolean r9) { /* r7 = this; r0 = 2 int r1 = r0 % r0 int r1 = o.C1156Wwv.l int r1 = r1 + 85 int r2 = r1 % 128 o.C1156Wwv.n = r2 int r1 = r1 % r0 r1 = 1 r7.a = r1 o.VPp r2 = r7.i int r2 = r2.b o.VPp r3 = r7.i int r3 = r3.a o.VPp r4 = r7.i int r4 = r4.f r5 = 10 r6 = 0 if (r4 != r5) goto L72 com.google.android.material.timepicker.TimePickerView r8 = r7.g float r9 = r7.e r8.setHandRotation(r9, r6) com.google.android.material.timepicker.TimePickerView r8 = r7.g android.content.Context r8 = r8.getContext() java.lang.String r9 = "android.view.accessibility.AccessibilityManager" java.lang.Class r0 = java.lang.Class.forName(r9) java.lang.Object r8 = o.nMh.getSystemService(r8, r0) if (r8 == 0) goto L5a java.lang.Class r9 = java.lang.Class.forName(r9) // Catch: java.lang.Throwable -> L51 java.lang.String r0 = "isTouchExplorationEnabled" r4 = 0 java.lang.reflect.Method r9 = r9.getMethod(r0, r4) // Catch: java.lang.Throwable -> L51 java.lang.Object r8 = r9.invoke(r8, r4) // Catch: java.lang.Throwable -> L51 java.lang.Boolean r8 = (java.lang.Boolean) r8 // Catch: java.lang.Throwable -> L51 boolean r8 = r8.booleanValue() // Catch: java.lang.Throwable -> L51 if (r8 != 0) goto Lb1 goto L5a L51: r8 = move-exception java.lang.Throwable r9 = r8.getCause() if (r9 == 0) goto L59 throw r9 L59: throw r8 L5a: r8 = 12 java.lang.Integer r9 = java.lang.Integer.valueOf(r8) java.lang.Boolean r0 = java.lang.Boolean.valueOf(r1) java.lang.Object[] r9 = new java.lang.Object[]{r7, r9, r0} r0 = 264070894(0xfbd66ee, float:1.8676486E-29) r1 = -264070893(0xfffffffff0429913, float:-2.4090059E29) e(r9, r0, r1, r8) goto Lb1 L72: int r8 = java.lang.Math.round(r8) if (r9 != 0) goto Laa int r1 = o.C1156Wwv.l int r1 = r1 + 39 int r4 = r1 % 128 o.C1156Wwv.n = r4 int r1 = r1 % r0 if (r1 == 0) goto L95 r0 = 197(0xc5, float:2.76E-43) int r8 = r8 >>> r0 o.VPp r0 = r7.i int r8 = r8 * 3 int r8 = r8 + 43 r0.b = r8 o.VPp r8 = r7.i int r8 = r8.b int r8 = r8 << 127 goto La7 L95: int r8 = r8 + 15 int r8 = r8 / 30 o.VPp r0 = r7.i int r8 = r8 * 5 int r8 = r8 % 60 r0.b = r8 o.VPp r8 = r7.i int r8 = r8.b int r8 = r8 * 6 La7: float r8 = (float) r8 r7.j = r8 Laa: com.google.android.material.timepicker.TimePickerView r8 = r7.g float r0 = r7.j r8.setHandRotation(r0, r9) Lb1: r7.a = r6 r7.f() r7.e(r3, r2) return */ throw new UnsupportedOperationException("Method not decompiled: o.C1156Wwv.a(float, boolean):void"); } private void f() { int i; int i2 = 2 % 2; TimePickerView timePickerView = this.g; int i3 = this.i.i; int e = this.i.e(); int i4 = this.i.b; if (i3 == 1) { int i5 = l + 119; n = i5 % 128; if (i5 % 2 != 0) { int i6 = C17052tZT.ZqN.material_clock_period_pm_button; Object obj = null; obj.hashCode(); throw null; } i = C17052tZT.ZqN.material_clock_period_pm_button; } else { i = C17052tZT.ZqN.material_clock_period_am_button; } timePickerView.g.b(i, true); Locale locale = timePickerView.getResources().getConfiguration().locale; String format = String.format(locale, "%02d", Integer.valueOf(i4)); String format2 = String.format(locale, "%02d", Integer.valueOf(e)); if (!TextUtils.equals(timePickerView.c.getText(), format)) { int i7 = l + 73; n = i7 % 128; int i8 = i7 % 2; timePickerView.c.setText(format); } if (TextUtils.equals(timePickerView.b.getText(), format2)) { return; } int i9 = l + 17; n = i9 % 128; if (i9 % 2 == 0) { timePickerView.b.setText(format2); } else { timePickerView.b.setText(format2); int i10 = 0 / 0; } } private void h() { int i = 2 % 2; int i2 = n + 115; l = i2 % 128; int i3 = i2 % 2; e(b, "%d"); e(c, "%02d"); int i4 = l + 21; n = i4 % 128; if (i4 % 2 != 0) { int i5 = 28 / 0; } } private void e(String[] strArr, String str) { int i = 2 % 2; int i2 = n + 35; l = i2 % 128; int i3 = i2 % 2; int i4 = 0; while (i4 < strArr.length) { int i5 = n + 45; l = i5 % 128; if (i5 % 2 == 0) { strArr[i4] = VPp.MS_(this.g.getResources(), strArr[i4], str); i4 += 34; } else { strArr[i4] = VPp.MS_(this.g.getResources(), strArr[i4], str); i4++; } } } private int g() { int i = 2 % 2; int i2 = l + 75; n = i2 % 128; return i2 % 2 != 0 ? (this.i.e() >> 62) / 14695 : (this.i.e() * 30) % 360; } static void a() { f = 1063650925; h = 1406017067; k = -1475020978; f8437o = new byte[]{124, Ascii.NAK, Ascii.NAK, Ascii.NAK}; } @Override // o.kxR public final void e() { e(new Object[]{this}, 855351917, -855351915, System.identityHashCode(this)); } private void d(int i, boolean z) { e(new Object[]{this, Integer.valueOf(i), Boolean.valueOf(z)}, 264070894, -264070893, i); } private void j() { e(new Object[]{this}, -1476084677, 1476084677, System.identityHashCode(this)); } }