package o; import android.graphics.Color; import android.os.SystemClock; import android.telephony.cdma.CdmaCellLocation; import android.util.TypedValue; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.base.Ascii; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISO7816; /* renamed from: o.Lcv, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C0637Lcv extends wRi { private final ZKS e; private static final byte[] $$a = {10, Ascii.SYN, ISO7816.INS_READ_RECORD2, -2}; private static final int $$b = 85; private static int $10 = 0; private static int $11 = 1; private static int d = 0; private static int a = 1; private static char[] c = {36834, 25832}; private static long b = 4753250962365543782L; /* JADX WARN: Removed duplicated region for block: B:10:0x0024 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001c */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0028). 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 j(byte r5, short r6, byte r7, java.lang.Object[] r8) { /* int r6 = r6 * 2 int r6 = r6 + 4 int r5 = r5 * 3 int r0 = 1 - r5 byte[] r1 = o.C0637Lcv.$$a int r7 = r7 + 98 byte[] r0 = new byte[r0] r2 = 0 int r5 = 0 - r5 if (r1 != 0) goto L16 r4 = r5 r3 = r2 goto L28 L16: r3 = r2 L17: byte r4 = (byte) r7 r0[r3] = r4 if (r3 != r5) goto L24 java.lang.String r5 = new java.lang.String r5.(r0, r2) r8[r2] = r5 return L24: int r3 = r3 + 1 r4 = r1[r6] L28: int r4 = -r4 int r6 = r6 + 1 int r7 = r7 + r4 goto L17 */ throw new UnsupportedOperationException("Method not decompiled: o.C0637Lcv.j(byte, short, byte, java.lang.Object[]):void"); } @InterfaceC13391fZD public C0637Lcv(yRw yrw, yRw yrw2, ZKS zks) { super(yrw, yrw2); this.e = zks; } /* JADX WARN: Code restructure failed: missing block: B:11:0x0022, code lost: if (r8 != false) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0019, code lost: if (r8 != false) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x0042, code lost: r2 = new java.lang.Object[1]; g((char) (60171 - android.widget.ExpandableListView.getPackedPositionGroup(0)), 1 - (android.view.ViewConfiguration.getMaximumDrawingCacheSize() >> 24), android.view.View.combineMeasuredStates(0, 0) + 1, r2); r8 = ((java.lang.String) r2[0]).intern(); r2 = o.C0637Lcv.a + 69; o.C0637Lcv.d = r2 % 128; r2 = r2 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x0024, code lost: r2 = new java.lang.Object[1]; g((char) android.view.View.combineMeasuredStates(0, 0), android.view.View.resolveSizeAndState(0, 0, 0), android.text.TextUtils.getOffsetAfter("", 0) + 1, r2); r8 = ((java.lang.String) r2[0]).intern(); */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final o.AbstractC13163fSk c(boolean r8) { /* r7 = this; r0 = 2 int r1 = r0 % r0 int r1 = o.C0637Lcv.a int r1 = r1 + 109 int r2 = r1 % 128 o.C0637Lcv.d = r2 int r1 = r1 % r0 r2 = 1 r3 = 0 if (r1 == 0) goto L1c o.ZKS r1 = r7.e java.lang.String r4 = r1.b() r5 = 40 int r5 = r5 / r3 if (r8 == 0) goto L42 goto L24 L1c: o.ZKS r1 = r7.e java.lang.String r4 = r1.b() if (r8 == 0) goto L42 L24: int r8 = android.view.View.combineMeasuredStates(r3, r3) char r8 = (char) r8 int r0 = android.view.View.resolveSizeAndState(r3, r3, r3) java.lang.String r5 = "" int r5 = android.text.TextUtils.getOffsetAfter(r5, r3) int r5 = r5 + r2 java.lang.Object[] r2 = new java.lang.Object[r2] g(r8, r0, r5, r2) r8 = r2[r3] java.lang.String r8 = (java.lang.String) r8 java.lang.String r8 = r8.intern() goto L70 L42: r5 = 0 int r8 = android.widget.ExpandableListView.getPackedPositionGroup(r5) r5 = 60171(0xeb0b, float:8.4318E-41) int r5 = r5 - r8 char r8 = (char) r5 int r5 = android.view.ViewConfiguration.getMaximumDrawingCacheSize() int r5 = r5 >> 24 int r5 = 1 - r5 int r6 = android.view.View.combineMeasuredStates(r3, r3) int r6 = r6 + r2 java.lang.Object[] r2 = new java.lang.Object[r2] g(r8, r5, r6, r2) r8 = r2[r3] java.lang.String r8 = (java.lang.String) r8 java.lang.String r8 = r8.intern() int r2 = o.C0637Lcv.a int r2 = r2 + 69 int r3 = r2 % 128 o.C0637Lcv.d = r3 int r2 = r2 % r0 L70: o.ar r0 = new o.ar r0.(r4, r8) o.fSk r8 = r1.d(r0) o.fSk r8 = r7.e(r8) return r8 */ throw new UnsupportedOperationException("Method not decompiled: o.C0637Lcv.c(boolean):o.fSk"); } private static void g(char c2, int i, int i2, Object[] objArr) { int i3 = 2 % 2; dQY dqy = new dQY(); long[] jArr = new long[i2]; dqy.a = 0; while (dqy.a < i2) { int i4 = $10 + 123; $11 = i4 % 128; int i5 = i4 % 2; int i6 = dqy.a; try { Object[] objArr2 = {Integer.valueOf(c[i + dqy.a])}; Object obj = xzZ.y.get(1095064095); if (obj == null) { Class cls = (Class) xzZ.c(308 - KeyEvent.getDeadChar(0, 0), (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 4, (char) ((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 32797)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr3 = new Object[1]; j(b2, b3, b3, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(1095064095, obj); } try { Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(b), Integer.valueOf(c2)}; Object obj2 = xzZ.y.get(-548438098); if (obj2 == null) { Class cls2 = (Class) xzZ.c(412 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) Color.red(0)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; j(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[i6] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue(); try { Object[] objArr6 = {dqy, dqy}; Object obj3 = xzZ.y.get(1071125919); if (obj3 == null) { Class cls3 = (Class) xzZ.c(407 - View.resolveSizeAndState(0, 0, 0), (ViewConfiguration.getFadingEdgeLength() >> 16) + 5, (char) ((ViewConfiguration.getWindowTouchSlop() >> 8) + 29234)); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr7 = new Object[1]; j(b6, b7, (byte) (b7 | 8), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1071125919, obj3); } ((Method) obj3).invoke(null, objArr6); } 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; } } catch (Throwable th3) { Throwable cause3 = th3.getCause(); if (cause3 == null) { throw th3; } throw cause3; } } char[] cArr = new char[i2]; dqy.a = 0; while (dqy.a < i2) { int i7 = $10 + 5; $11 = i7 % 128; int i8 = i7 % 2; cArr[dqy.a] = (char) jArr[dqy.a]; try { Object[] objArr8 = {dqy, dqy}; Object obj4 = xzZ.y.get(1071125919); if (obj4 == null) { Class cls4 = (Class) xzZ.c((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 406, View.resolveSize(0, 0) + 5, (char) ((ViewConfiguration.getFadingEdgeLength() >> 16) + 29234)); byte b8 = (byte) 0; byte b9 = b8; Object[] objArr9 = new Object[1]; j(b8, b9, (byte) (b9 | 8), objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(1071125919, obj4); } ((Method) obj4).invoke(null, objArr8); } catch (Throwable th4) { Throwable cause4 = th4.getCause(); if (cause4 == null) { throw th4; } throw cause4; } } objArr[0] = new String(cArr); } }