package o; import android.graphics.Color; import android.os.SystemClock; import android.text.AndroidCharacter; import android.text.TextUtils; import android.view.KeyEvent; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.text.DateFormat; import java.text.FieldPosition; import java.text.ParseException; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; import net.sf.scuba.smartcards.ISO7816; import org.bouncycastle.pqc.math.linearalgebra.Matrix; /* renamed from: o.xrC, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C17571xrC extends DateFormat { private static DateFormat a; private static DateFormat b; private static DateFormat c; private static String[] d; public static final C17571xrC e; private static DateFormat i; private static int m; /* renamed from: o, reason: collision with root package name */ private static int[] f9316o; private transient DateFormat f; private transient DateFormat g; private transient DateFormat h; private transient DateFormat j; private transient TimeZone k; private static final byte[] $$a = {54, 41, ISO7816.INS_GET_RESPONSE, 43}; private static final int $$b = 119; private static int $10 = 0; private static int $11 = 1; private static int l = 0; public static /* synthetic */ Object e(Object[] objArr, int i2, int i3, int i4) { int i5 = (i2 * 569) + (i3 * 569); int i6 = ~i2; int i7 = ~i3; int i8 = i6 | i7; int i9 = ~i8; int i10 = ~i4; int i11 = i2 | i10; return ((i5 + (((i9 | (~(i6 | i10))) | (~(i7 | i10))) * (-1136))) + ((((~(i6 | i4)) | (~(i7 | i4))) | (~(i11 | i3))) * (-568))) + ((((~i11) | (~(i3 | i10))) | (~(i8 | i4))) * 568) != 1 ? c(objArr) : a(objArr); } /* 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:0x002b). 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 p(short r7, short r8, short r9, java.lang.Object[] r10) { /* int r8 = r8 * 4 int r8 = 4 - r8 byte[] r0 = o.C17571xrC.$$a int r9 = r9 * 4 int r9 = r9 + 1 int r7 = r7 * 2 int r7 = r7 + 102 byte[] r1 = new byte[r9] r2 = 0 if (r0 != 0) goto L16 r3 = r8 r4 = r2 goto L2b L16: r3 = r2 L17: int r4 = r3 + 1 byte r5 = (byte) r7 r1[r3] = r5 if (r4 != r9) goto L26 java.lang.String r7 = new java.lang.String r7.(r1, r2) r10[r2] = r7 return L26: r3 = r0[r8] r6 = r3 r3 = r8 r8 = r6 L2b: int r8 = -r8 int r7 = r7 + r8 int r8 = r3 + 1 r3 = r4 goto L17 */ throw new UnsupportedOperationException("Method not decompiled: o.C17571xrC.p(short, short, short, java.lang.Object[]):void"); } private static /* synthetic */ Object c(Object[] objArr) { int i2 = 2 % 2; int i3 = l + 43; m = i3 % 128; if (i3 % 2 != 0) { return e(); } e(); throw null; } static { m = 1; d(); d = new String[]{"yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"}; TimeZone timeZone = TimeZone.getTimeZone("GMT"); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US); i = simpleDateFormat; simpleDateFormat.setTimeZone(timeZone); SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); c = simpleDateFormat2; simpleDateFormat2.setTimeZone(timeZone); SimpleDateFormat simpleDateFormat3 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); b = simpleDateFormat3; simpleDateFormat3.setTimeZone(timeZone); SimpleDateFormat simpleDateFormat4 = new SimpleDateFormat("yyyy-MM-dd"); a = simpleDateFormat4; simpleDateFormat4.setTimeZone(timeZone); e = new C17571xrC(); int i2 = l + 25; m = i2 % 128; if (i2 % 2 == 0) { int i3 = 30 / 0; } } private static C17571xrC e() { int i2 = 2 % 2; C17571xrC c17571xrC = new C17571xrC(); int i3 = l + 109; m = i3 % 128; if (i3 % 2 == 0) { int i4 = 16 / 0; } return c17571xrC; } private static void n(int[] iArr, int i2, Object[] objArr) { int i3; int i4; int i5 = 2 % 2; C4403bZM c4403bZM = new C4403bZM(); int i6 = 4; char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length * 2]; int[] iArr2 = f9316o; int i7 = 729798706; int i8 = 1; char c2 = 0; if (iArr2 != null) { int length = iArr2.length; int[] iArr3 = new int[length]; int i9 = 0; while (i9 < length) { try { Object[] objArr2 = new Object[i8]; objArr2[c2] = Integer.valueOf(iArr2[i9]); Object obj = xzZ.y.get(729798706); if (obj == null) { obj = ((Class) xzZ.c('?' - AndroidCharacter.getMirror('0'), (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + i6, (char) (KeyEvent.keyCodeFromString("") + 58134))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj); } iArr3[i9] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); i9++; i6 = 4; i8 = 1; c2 = 0; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } iArr2 = iArr3; } int length2 = iArr2.length; int[] iArr4 = new int[length2]; int[] iArr5 = f9316o; if (iArr5 != null) { int i10 = $10 + 49; $11 = i10 % 128; int i11 = 2; int i12 = i10 % 2; int length3 = iArr5.length; int[] iArr6 = new int[length3]; int i13 = 0; while (i13 < length3) { int i14 = $10 + 3; $11 = i14 % 128; if (i14 % i11 == 0) { Object[] objArr3 = {Integer.valueOf(iArr5[i13])}; Object obj2 = xzZ.y.get(Integer.valueOf(i7)); if (obj2 != null) { i3 = length3; } else { obj2 = ((Class) xzZ.c(KeyEvent.normalizeMetaState(0) + 15, (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, (char) (ExpandableListView.getPackedPositionGroup(0L) + 58134))).getMethod("i", Integer.TYPE); i3 = length3; xzZ.y.put(729798706, obj2); } iArr6[i13] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); i13 >>= 1; i4 = 729798706; } else { i3 = length3; Object[] objArr4 = {Integer.valueOf(iArr5[i13])}; Object obj3 = xzZ.y.get(729798706); if (obj3 != null) { i4 = 729798706; } else { obj3 = ((Class) xzZ.c((ViewConfiguration.getScrollBarSize() >> 8) + 15, KeyEvent.keyCodeFromString("") + 5, (char) (58134 - TextUtils.indexOf("", "", 0, 0)))).getMethod("i", Integer.TYPE); i4 = 729798706; xzZ.y.put(729798706, obj3); } iArr6[i13] = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue(); i13++; } i7 = i4; length3 = i3; i11 = 2; } iArr5 = iArr6; } System.arraycopy(iArr5, 0, iArr4, 0, length2); c4403bZM.b = 0; while (c4403bZM.b < iArr.length) { int i15 = $10 + 23; $11 = i15 % 128; int i16 = i15 % 2; cArr[0] = (char) (iArr[c4403bZM.b] >> 16); cArr[1] = (char) iArr[c4403bZM.b]; cArr[2] = (char) (iArr[c4403bZM.b + 1] >> 16); cArr[3] = (char) iArr[c4403bZM.b + 1]; c4403bZM.e = (cArr[0] << 16) + cArr[1]; c4403bZM.a = (cArr[2] << 16) + cArr[3]; C4403bZM.d(iArr4); for (int i17 = 0; i17 < 16; i17++) { c4403bZM.e ^= iArr4[i17]; Object[] objArr5 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM}; Object obj4 = xzZ.y.get(-1196964548); if (obj4 == null) { Class cls = (Class) xzZ.c(118 - Color.green(0), Color.red(0) + 5, (char) (ViewConfiguration.getDoubleTapTimeout() >> 16)); byte b2 = (byte) ($$b & 1); byte b3 = (byte) (b2 - 1); Object[] objArr6 = new Object[1]; p(b2, b3, b3, objArr6); obj4 = cls.getMethod((String) objArr6[0], Object.class, Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1196964548, obj4); } int intValue = ((Integer) ((Method) obj4).invoke(null, objArr5)).intValue(); c4403bZM.e = c4403bZM.a; c4403bZM.a = intValue; } int i18 = c4403bZM.e; c4403bZM.e = c4403bZM.a; c4403bZM.a = i18; c4403bZM.a ^= iArr4[16]; c4403bZM.e ^= iArr4[17]; int i19 = c4403bZM.e; int i20 = c4403bZM.a; cArr[0] = (char) (c4403bZM.e >>> 16); cArr[1] = (char) c4403bZM.e; cArr[2] = (char) (c4403bZM.a >>> 16); cArr[3] = (char) c4403bZM.a; C4403bZM.d(iArr4); cArr2[c4403bZM.b * 2] = cArr[0]; cArr2[(c4403bZM.b * 2) + 1] = cArr[1]; cArr2[(c4403bZM.b * 2) + 2] = cArr[2]; cArr2[(c4403bZM.b * 2) + 3] = cArr[3]; Object[] objArr7 = {c4403bZM, c4403bZM}; Object obj5 = xzZ.y.get(1914371176); if (obj5 == null) { Class cls2 = (Class) xzZ.c((KeyEvent.getMaxKeyCode() >> 16) + 98, (ViewConfiguration.getWindowTouchSlop() >> 8) + 5, (char) (ViewConfiguration.getKeyRepeatDelay() >> 16)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr8 = new Object[1]; p(b4, b5, b5, objArr8); obj5 = cls2.getMethod((String) objArr8[0], Object.class, Object.class); xzZ.y.put(1914371176, obj5); } ((Method) obj5).invoke(null, objArr7); int i21 = $10 + 107; $11 = i21 % 128; int i22 = i21 % 2; } objArr[0] = new String(cArr2, 0, i2); } private static /* synthetic */ Object a(Object[] objArr) { C17571xrC c17571xrC = (C17571xrC) objArr[0]; int i2 = 2 % 2; String trim = ((String) objArr[1]).trim(); ParsePosition parsePosition = new ParsePosition(0); Date parse = c17571xrC.parse(trim, parsePosition); Object obj = null; if (parse != null) { int i3 = m + 101; l = i3 % 128; if (i3 % 2 == 0) { return parse; } throw null; } StringBuilder sb = new StringBuilder(); for (String str : d) { int i4 = l + 53; m = i4 % 128; int i5 = i4 % 2; if (sb.length() > 0) { int i6 = m + 67; l = i6 % 128; if (i6 % 2 != 0) { sb.append("\", \""); obj.hashCode(); throw null; } sb.append("\", \""); } else { sb.append('\"'); } sb.append(str); } sb.append('\"'); throw new ParseException(String.format("Can not parse date \"%s\": not compatible with any of standard forms (%s)", trim, sb.toString()), parsePosition.getErrorIndex()); } @Override // java.text.DateFormat public final Date parse(String str, ParsePosition parsePosition) { int i2 = 2 % 2; int i3 = m + 49; l = i3 % 128; int i4 = i3 % 2; if (!(!e(str))) { Date a2 = a(str, parsePosition); int i5 = m + 3; l = i5 % 128; int i6 = i5 % 2; return a2; } int length = str.length(); while (true) { length--; if (length < 0) { break; } int i7 = l + 41; m = i7 % 128; int i8 = i7 % 2; char charAt = str.charAt(length); if (charAt < '0' || charAt > '9') { if (length > 0) { break; } int i9 = l + 59; m = i9 % 128; if (i9 % 2 == 0) { if (charAt != 'Q') { break; } } else if (charAt != '-') { break; } } } return (length >= 0 || !(str.charAt(0) == '-' || C17203ulM.c(str))) ? c(str, parsePosition) : new Date(Long.parseLong(str)); } @Override // java.text.DateFormat public final StringBuffer format(Date date, StringBuffer stringBuffer, FieldPosition fieldPosition) { int i2 = 2 % 2; int i3 = l + 125; m = i3 % 128; int i4 = i3 % 2; if (this.h == null) { this.h = c(c); int i5 = l + 101; m = i5 % 128; if (i5 % 2 == 0) { int i6 = 5 % 5; } } StringBuffer format = this.h.format(date, stringBuffer, fieldPosition); int i7 = m + 91; l = i7 % 128; if (i7 % 2 != 0) { int i8 = 35 / 0; } return format; } public final String toString() { int i2 = 2 % 2; StringBuilder sb = new StringBuilder("DateFormat "); sb.append(getClass().getName()); String obj = sb.toString(); TimeZone timeZone = this.k; if (timeZone != null) { StringBuilder sb2 = new StringBuilder(); sb2.append(obj); sb2.append(" (timezone: "); sb2.append(timeZone); sb2.append(")"); obj = sb2.toString(); } int i3 = m + 15; l = i3 % 128; if (i3 % 2 == 0) { return obj; } throw null; } private static boolean e(String str) { int i2 = 2 % 2; if (str.length() >= 5) { int i3 = l + 93; m = i3 % 128; if (i3 % 2 != 0 ? Character.isDigit(str.charAt(0)) : Character.isDigit(str.charAt(0))) { if (Character.isDigit(str.charAt(3))) { int i4 = l + 3; m = i4 % 128; int i5 = i4 % 2; if (str.charAt(4) == '-') { return true; } } } } int i6 = l + 39; m = i6 % 128; if (i6 % 2 == 0) { int i7 = 7 / 0; } return false; } private Date a(String str, ParsePosition parsePosition) { DateFormat dateFormat; int i2 = 2 % 2; int length = str.length(); int i3 = length - 1; char charAt = str.charAt(i3); if (length <= 10 && Character.isDigit(charAt)) { int i4 = l + 51; m = i4 % 128; if (i4 % 2 == 0) { Object obj = null; obj.hashCode(); throw null; } dateFormat = this.f; if (dateFormat == null) { dateFormat = c(a); this.f = dateFormat; } } else if (charAt == 'Z') { DateFormat dateFormat2 = this.j; if (dateFormat2 == null) { int i5 = l + 81; m = i5 % 128; int i6 = i5 % 2; dateFormat = c(b); this.j = dateFormat; } else { dateFormat = dateFormat2; } if (str.charAt(length - 4) == ':') { StringBuilder sb = new StringBuilder(str); sb.insert(i3, ".000"); str = sb.toString(); } } else if (d(str)) { int i7 = m + 27; l = i7 % 128; int i8 = i7 % 2; int i9 = length - 3; char charAt2 = str.charAt(i9); if (charAt2 == ':') { StringBuilder sb2 = new StringBuilder(str); sb2.delete(i9, length - 2); str = sb2.toString(); } else { if (charAt2 != '+') { int i10 = m + 19; l = i10 % 128; if (i10 % 2 == 0) { } } StringBuilder sb3 = new StringBuilder(); sb3.append(str); Object[] objArr = new Object[1]; n(new int[]{-459167639, 1592933512}, Color.rgb(0, 0, 0) + 16777218, objArr); sb3.append(((String) objArr[0]).intern()); str = sb3.toString(); } int length2 = str.length(); if (Character.isDigit(str.charAt(length2 - 9))) { StringBuilder sb4 = new StringBuilder(str); sb4.insert(length2 - 5, ".000"); str = sb4.toString(); } dateFormat = this.h; if (dateFormat == null) { dateFormat = c(c); this.h = dateFormat; } } else { StringBuilder sb5 = new StringBuilder(str); if ((length - str.lastIndexOf(84)) - 1 <= 8) { sb5.append(".000"); } sb5.append(Matrix.MATRIX_TYPE_ZERO); str = sb5.toString(); dateFormat = this.j; if (dateFormat == null) { dateFormat = c(b); this.j = dateFormat; } } return dateFormat.parse(str, parsePosition); } private Date c(String str, ParsePosition parsePosition) { int i2 = 2 % 2; int i3 = m + 39; int i4 = i3 % 128; l = i4; int i5 = i3 % 2; if (this.g == null) { int i6 = i4 + 3; m = i6 % 128; if (i6 % 2 == 0) { this.g = c(i); int i7 = 18 / 0; } else { this.g = c(i); } } return this.g.parse(str, parsePosition); } private static final boolean d(String str) { int length; char charAt; char charAt2; int i2 = 2 % 2; int i3 = m + 23; l = i3 % 128; if (i3 % 2 == 0 ? (length = str.length()) >= 6 : (length = str.length()) >= 4) { int i4 = l + 85; m = i4 % 128; int i5 = i4 % 2; char charAt3 = str.charAt(length - 6); if (charAt3 == '+' || charAt3 == '-' || (charAt = str.charAt(length - 5)) == '+' || charAt == '-') { return true; } int i6 = l + 81; m = i6 % 128; if (i6 % 2 == 0) { charAt2 = str.charAt(length * 3); if (charAt2 == 'K') { return true; } } else { charAt2 = str.charAt(length - 3); if (charAt2 == '+') { return true; } } if (charAt2 == '-') { return true; } } int i7 = m + 23; l = i7 % 128; if (i7 % 2 != 0) { int i8 = 30 / 0; } return false; } private final DateFormat c(DateFormat dateFormat) { int i2 = 2 % 2; int i3 = m + 87; l = i3 % 128; int i4 = i3 % 2; DateFormat e2 = e(dateFormat, this.k); int i5 = l + 85; m = i5 % 128; int i6 = i5 % 2; return e2; } private static final DateFormat e(DateFormat dateFormat, TimeZone timeZone) { int i2 = 2 % 2; int i3 = l + 87; m = i3 % 128; if (i3 % 2 != 0) { DateFormat dateFormat2 = (DateFormat) dateFormat.clone(); if (timeZone != null) { int i4 = m + 85; l = i4 % 128; int i5 = i4 % 2; dateFormat2.setTimeZone(timeZone); int i6 = l + 47; m = i6 % 128; int i7 = i6 % 2; } return dateFormat2; } throw null; } static void d() { f9316o = new int[]{1119803440, -2115328246, 1909835281, 425937550, -392713272, 1464465681, 1693468656, -280834260, -1944713734, -265766158, 490337660, 1750814129, 1709517519, -368006122, -1011241398, 1173077455, 1742044383, 1814948127}; } @Override // java.text.DateFormat public final void setTimeZone(TimeZone timeZone) { int i2 = 2 % 2; int i3 = m + 13; int i4 = i3 % 128; l = i4; if (i3 % 2 != 0) { int i5 = 28 / 0; if (timeZone == this.k) { return; } } else if (timeZone == this.k) { return; } int i6 = i4 + 29; m = i6 % 128; int i7 = i6 % 2; Object obj = null; this.g = null; this.h = null; if (i7 == 0) { this.j = null; this.f = null; this.k = timeZone; obj.hashCode(); throw null; } this.j = null; this.f = null; this.k = timeZone; int i8 = i4 + 7; m = i8 % 128; int i9 = i8 % 2; } @Override // java.text.DateFormat public final Date parse(String str) throws ParseException { return (Date) e(new Object[]{this, str}, -1387574260, 1387574261, System.identityHashCode(this)); } @Override // java.text.DateFormat, java.text.Format public final /* synthetic */ Object clone() { return e(new Object[]{this}, -769655460, 769655460, System.identityHashCode(this)); } }