package o; import android.graphics.Color; import android.os.Process; import android.text.TextUtils; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.common.base.Ascii; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISO7816; import o.C0690Mh; import o.ZI; import o.wRi; import org.bouncycastle.crypto.tls.CipherSuite; /* renamed from: o.buj, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C5527buj extends ZI { private final nEP a; private final zWC b; private final C17038tS c; private final CLj d; private NC e; private static final byte[] $$a = {Ascii.NAK, Ascii.DC2, ISO7816.INS_DELETE_FILE, -22}; private static final int $$b = 114; private static int $10 = 0; private static int $11 = 1; private static int h = 0; private static int i = 1; private static int g = 2015661642; public static /* synthetic */ Object d(Object[] objArr, int i2, int i3, int i4) { int i5 = (i2 * 714) + (i3 * (-712)); int i6 = ~i2; int i7 = ~i4; int i8 = (~(i6 | i3)) | (~(i6 | i7)); int i9 = ~i3; int i10 = ~(i2 | i9 | i4); int i11 = i5 + ((i8 | i10) * (-713)) + (i10 * 1426) + ((~(i9 | i7)) * 713); return i11 != 1 ? i11 != 2 ? c(objArr) : b(objArr) : d(objArr); } /* JADX WARN: Removed duplicated region for block: B:10:0x0028 */ /* JADX WARN: Removed duplicated region for block: B:7:0x0020 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002e). 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 l(byte r6, int r7, int r8, java.lang.Object[] r9) { /* byte[] r0 = o.C5527buj.$$a int r6 = r6 * 3 int r6 = r6 + 1 int r7 = r7 * 4 int r7 = 3 - r7 int r8 = r8 * 7 int r8 = 76 - r8 byte[] r1 = new byte[r6] r2 = 0 if (r0 != 0) goto L16 r3 = r6 r4 = r2 goto L2e L16: r3 = r2 L17: byte r4 = (byte) r8 int r7 = r7 + 1 r1[r3] = r4 int r3 = r3 + 1 if (r3 != r6) goto L28 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L28: r4 = r0[r7] r5 = r3 r3 = r8 r8 = r4 r4 = r5 L2e: int r8 = -r8 int r8 = r8 + r3 r3 = r4 goto L17 */ throw new UnsupportedOperationException("Method not decompiled: o.C5527buj.l(byte, int, int, java.lang.Object[]):void"); } static /* synthetic */ void b(C5527buj c5527buj) { int i2 = 2 % 2; if (c5527buj.f != 0) { int i3 = i; int i4 = i3 + 39; h = i4 % 128; r3 = i4 % 2 == 0; int i5 = i3 + 27; h = i5 % 128; int i6 = i5 % 2; } if (!r3) { return; } int i7 = h + 3; i = i7 % 128; int i8 = i7 % 2; c5527buj.f.ar_(); } static /* synthetic */ void b(C5527buj c5527buj, Throwable th, C0690Mh.IeS ieS) { int i2 = 2 % 2; int i3 = h + 33; i = i3 % 128; int i4 = i3 % 2; if (c5527buj.b(th)) { int i5 = h + 121; i = i5 % 128; int i6 = i5 % 2; c5527buj.d(c5527buj.j.d(th, ieS)); int i7 = h + 7; i = i7 % 128; int i8 = i7 % 2; } } @InterfaceC13391fZD public C5527buj(CLj cLj, C17038tS c17038tS, zWC zwc, nEP nep, C16903sI c16903sI) { super(c16903sI); this.d = cLj; this.c = c17038tS; this.b = zwc; this.a = nep; } private /* synthetic */ void d(NC nc, InterfaceC9338dhp interfaceC9338dhp) { int i2 = 2 % 2; int i3 = i + 43; h = i3 % 128; int i4 = i3 % 2; interfaceC9338dhp.e(nc.a, this.c.a(nc.e, nc.b), this.c.d(nc.e, this.b.a.f())); int i5 = h + 25; i = i5 % 128; int i6 = i5 % 2; } public final void c(final NC nc) { int i2 = 2 % 2; this.e = nc; ZI.IeS ieS = new ZI.IeS(this, nc) { // from class: o.bur private NC b; private C5527buj c; @Override // o.ZI.IeS public final void e(Object obj) { C5527buj.d(new Object[]{this.c, this.b, (InterfaceC9338dhp) obj}, -2078704799, 2078704801, (int) System.currentTimeMillis()); } { this.c = this; this.b = nc; } }; if (this.f != 0) { int i3 = i + 1; h = i3 % 128; int i4 = i3 % 2; ieS.e(this.f); int i5 = i + 39; h = i5 % 128; int i6 = i5 % 2; } } public final void d() { int i2 = 2 % 2; ZI.IeS ieS = new ZI.IeS() { // from class: o.buo @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9338dhp) obj).e(); } }; if (this.f != 0) { int i3 = i; int i4 = i3 + 73; h = i4 % 128; int i5 = i4 % 2; int i6 = i3 + 15; h = i6 % 128; if (i6 % 2 == 0) { ieS.e(this.f); return; } ieS.e(this.f); Object obj = null; obj.hashCode(); throw null; } } private static /* synthetic */ Object d(Object[] objArr) { WY wy = (WY) objArr[0]; int i2 = 2 % 2; StringBuilder sb = new StringBuilder(); sb.append(wy.c); sb.append(" "); sb.append(wy.a); String obj = sb.toString(); int i3 = i + 125; h = i3 % 128; if (i3 % 2 == 0) { return obj; } throw null; } private static /* synthetic */ Object c(Object[] objArr) { C5527buj c5527buj = (C5527buj) objArr[0]; InterfaceC9338dhp interfaceC9338dhp = (InterfaceC9338dhp) objArr[1]; int i2 = 2 % 2; int i3 = h + 105; i = i3 % 128; int i4 = i3 % 2; String str = c5527buj.e.e.a; String str2 = c5527buj.e.e.c; String c = C6583cXR.c(c5527buj.b.a.f()); c5527buj.a.d(); String str3 = c5527buj.e.e.g; interfaceC9338dhp.a(c, c5527buj.e.e.i); int i5 = i + 113; h = i5 % 128; int i6 = i5 % 2; return null; } public final void b() { boolean z; int i2 = 2 % 2; final StringBuilder sb = new StringBuilder(); if (this.e.e != null) { int i3 = h + 45; i = i3 % 128; if (i3 % 2 == 0) { WZ wz = this.e.e.j; Object obj = null; obj.hashCode(); throw null; } if (this.e.e.j != null) { WZ wz2 = this.e.e.j; if (wz2.c != null) { sb.append(C14881gav.d(wz2.c, "#####", "", "", -1, "", new InterfaceC14894gbR() { // from class: o.bup @Override // o.InterfaceC14894gbR public final Object invoke(Object obj2) { return (CharSequence) C5527buj.d(new Object[]{(WY) obj2}, -1160909384, 1160909385, (int) System.currentTimeMillis()); } })); } } } ZI.IeS ieS = new ZI.IeS(this, sb) { // from class: o.buq private C5527buj a; private StringBuilder d; @Override // o.ZI.IeS public final void e(Object obj2) { C5527buj.b(this.a, (InterfaceC9338dhp) obj2); } { this.a = this; this.d = sb; } }; if (this.f != 0) { z = true; } else { int i4 = h + 85; i = i4 % 128; if (i4 % 2 == 0) { int i5 = 5 / 5; } z = false; } if (!(!z)) { ieS.e(this.f); } Object[] objArr = new Object[1]; k(TextUtils.indexOf("", "", 0, 0) + 1, 1 - (ViewConfiguration.getPressedStateDuration() >> 16), 158 - (ViewConfiguration.getFadingEdgeLength() >> 16), new char[]{0}, false, objArr); a(((String) objArr[0]).intern()); } private void a(String str) { boolean z; String str2; int i2 = 2 % 2; int i3 = h + 31; i = i3 % 128; int i4 = i3 % 2; byte b = 0; if (this.f != 0) { int i5 = i; int i6 = i5 + 45; h = i6 % 128; int i7 = i6 % 2; int i8 = i5 + 105; h = i8 % 128; int i9 = i8 % 2; z = true; } else { z = false; } if (!(!z)) { this.f.y(); } CLj cLj = this.d; Object[] objArr = new Object[1]; k(1 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), -MotionEvent.axisFromString(""), TextUtils.indexOf((CharSequence) "", '0', 0, 0) + CipherSuite.TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, new char[]{0}, false, objArr); if (str.equals(((String) objArr[0]).intern())) { int i10 = i + 49; h = i10 % 128; int i11 = i10 % 2; str2 = this.e.e.f; } else { str2 = null; } this.d.d(cLj.a(str, str2), new LWm(this, str, b)); } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ CharSequence e(WY wy) { int i2 = 2 % 2; StringBuilder sb = new StringBuilder(); sb.append(wy.c); sb.append(" "); sb.append(wy.a); String obj = sb.toString(); int i3 = h + 103; i = i3 % 128; if (i3 % 2 == 0) { int i4 = 24 / 0; } return obj; } /* JADX WARN: Code restructure failed: missing block: B:11:0x003c, code lost: if (r1.c != null) goto L13; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x0031, code lost: if (r1.c != null) goto L13; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x003e, code lost: o.C14881gav.d(r1.c, "#####", "", "", -1, "", new o.C5531bun()); */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final void c() { /* r10 = this; r0 = 2 int r1 = r0 % r0 o.NC r1 = r10.e o.NU r1 = r1.e r2 = 0 if (r1 == 0) goto L51 int r1 = o.C5527buj.h int r1 = r1 + 101 int r3 = r1 % 128 o.C5527buj.i = r3 int r1 = r1 % r0 o.NC r1 = r10.e o.NU r1 = r1.e o.WZ r1 = r1.j if (r1 == 0) goto L51 int r1 = o.C5527buj.h int r1 = r1 + 103 int r3 = r1 % 128 o.C5527buj.i = r3 int r1 = r1 % r0 if (r1 != 0) goto L34 o.NC r1 = r10.e o.NU r1 = r1.e o.WZ r1 = r1.j java.util.List r3 = r1.c r4 = 29 int r4 = r4 / r2 if (r3 == 0) goto L51 goto L3e L34: o.NC r1 = r10.e o.NU r1 = r1.e o.WZ r1 = r1.j java.util.List r3 = r1.c if (r3 == 0) goto L51 L3e: java.util.List r3 = r1.c java.lang.String r4 = "#####" java.lang.String r5 = "" java.lang.String r6 = "" r7 = -1 java.lang.String r8 = "" o.bun r9 = new o.bun r9.() o.C14881gav.d(r3, r4, r5, r6, r7, r8, r9) L51: int r1 = android.view.KeyEvent.getDeadChar(r2, r2) r3 = 1 int r4 = 1 - r1 int r1 = android.view.KeyEvent.getDeadChar(r2, r2) int r5 = r1 + 1 int r1 = android.graphics.ImageFormat.getBitsPerPixel(r2) int r6 = 156 - r1 char[] r7 = new char[r3] r7[r2] = r2 r8 = 1 java.lang.Object[] r1 = new java.lang.Object[r3] r9 = r1 k(r4, r5, r6, r7, r8, r9) r1 = r1[r2] java.lang.String r1 = (java.lang.String) r1 java.lang.String r1 = r1.intern() r10.a(r1) int r1 = o.C5527buj.h int r1 = r1 + 43 int r2 = r1 % 128 o.C5527buj.i = r2 int r1 = r1 % r0 return */ throw new UnsupportedOperationException("Method not decompiled: o.C5527buj.c():void"); } public final void a() { int i2 = 2 % 2; C5528buk c5528buk = new C5528buk(); if (this.f != 0) { int i3 = h + 103; i = i3 % 128; int i4 = i3 % 2; c5528buk.e(this.f); } int i5 = h + 59; i = i5 % 128; if (i5 % 2 == 0) { int i6 = 34 / 0; } } /* renamed from: o.buj$LWm */ /* loaded from: classes4.dex */ public class LWm extends wRi.LWm { private String a; private C5527buj c; private static final byte[] $$a = {63, -72, 116, -100}; private static final int $$b = 45; private static int $10 = 0; private static int $11 = 1; private static int d = 0; private static int b = 1; private static char[] e = {40013}; /* JADX WARN: Removed duplicated region for block: B:10:0x0025 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001d */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x0030). 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 g(short r6, byte r7, short r8, java.lang.Object[] r9) { /* int r8 = r8 * 3 int r0 = 1 - r8 int r6 = r6 + 4 byte[] r1 = o.C5527buj.LWm.$$a int r7 = r7 * 2 int r7 = r7 + 71 byte[] r0 = new byte[r0] r2 = 0 int r8 = 0 - r8 if (r1 != 0) goto L17 r3 = r7 r4 = r2 r7 = r6 goto L30 L17: r3 = r2 L18: byte r4 = (byte) r7 r0[r3] = r4 if (r3 != r8) goto L25 java.lang.String r6 = new java.lang.String r6.(r0, r2) r9[r2] = r6 return L25: int r3 = r3 + 1 int r6 = r6 + 1 r4 = r1[r6] r5 = r7 r7 = r6 r6 = r4 r4 = r3 r3 = r5 L30: int r6 = r6 + r3 r3 = r4 r5 = r7 r7 = r6 r6 = r5 goto L18 */ throw new UnsupportedOperationException("Method not decompiled: o.C5527buj.LWm.g(short, byte, short, java.lang.Object[]):void"); } private LWm(C5527buj c5527buj, String str) { this.c = c5527buj; this.a = str; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { int i = 2 % 2; C5527buj.b(this.c); String str = this.a; Object[] objArr = new Object[1]; f(new byte[]{1}, new int[]{0, 1, 92, 0}, false, objArr); if (!((String) objArr[0]).intern().equals(str)) { C5527buj c5527buj = this.c; C5528buk c5528buk = new C5528buk(); if (c5527buj.f != 0) { c5528buk.e(c5527buj.f); int i2 = d + 77; b = i2 % 128; int i3 = i2 % 2; return; } return; } C5527buj c5527buj2 = this.c; ZI.IeS ieS = new ZI.IeS() { // from class: o.buu @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9338dhp) obj).c(); } }; if (true ^ (c5527buj2.f != 0)) { return; } int i4 = d + 19; b = i4 % 128; if (i4 % 2 != 0) { ieS.e(c5527buj2.f); } else { ieS.e(c5527buj2.f); int i5 = 20 / 0; } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { int i = 2 % 2; int i2 = d + 27; b = i2 % 128; int i3 = i2 % 2; C5527buj.b(this.c, th, C0690Mh.IeS.JUST_DISMISS); int i4 = d + 121; b = i4 % 128; if (i4 % 2 == 0) { int i5 = 65 / 0; } } private static void f(byte[] bArr, int[] iArr, boolean z, Object[] objArr) { int i; char[] cArr; int i2 = 2 % 2; TVH tvh = new TVH(); char c = 0; int i3 = iArr[0]; int i4 = iArr[1]; int i5 = iArr[2]; int i6 = iArr[3]; char[] cArr2 = e; int i7 = -1; if (cArr2 != null) { int length = cArr2.length; char[] cArr3 = new char[length]; int i8 = 0; while (i8 < length) { try { Object[] objArr2 = new Object[1]; objArr2[c] = Integer.valueOf(cArr2[i8]); Object obj = xzZ.y.get(1645349359); if (obj == null) { Class cls = (Class) xzZ.c(223 - (Process.myPid() >> 22), (Process.myPid() >> 22) + 5, (char) (41977 - ExpandableListView.getPackedPositionGroup(0L))); byte b2 = (byte) i7; byte b3 = (byte) (b2 + 1); Object[] objArr3 = new Object[1]; g(b2, b3, b3, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(1645349359, obj); } cArr3[i8] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); i8++; c = 0; i7 = -1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr2 = cArr3; } char[] cArr4 = new char[i4]; System.arraycopy(cArr2, i3, cArr4, 0, i4); if (bArr != null) { int i9 = $10 + 71; $11 = i9 % 128; if (i9 % 2 == 0) { cArr = new char[i4]; tvh.c = 1; } else { cArr = new char[i4]; tvh.c = 0; } char c2 = 0; while (tvh.c < i4) { int i10 = $11 + 69; $10 = i10 % 128; if (i10 % 2 == 0 ? bArr[tvh.c] != 1 : bArr[tvh.c] != 1) { int i11 = tvh.c; try { Object[] objArr4 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)}; Object obj2 = xzZ.y.get(1084521042); if (obj2 == null) { obj2 = ((Class) xzZ.c(View.resolveSizeAndState(0, 0, 0) + 15, Color.green(0) + 5, (char) ((Process.myTid() >> 22) + 58134))).getMethod("H", Integer.TYPE, Integer.TYPE); xzZ.y.put(1084521042, obj2); } cArr[i11] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } else { int i12 = tvh.c; Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)}; Object obj3 = xzZ.y.get(850398076); if (obj3 == null) { obj3 = ((Class) xzZ.c(502 - Color.blue(0), (KeyEvent.getMaxKeyCode() >> 16) + 5, (char) ((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 54))).getMethod("F", Integer.TYPE, Integer.TYPE); xzZ.y.put(850398076, obj3); } cArr[i12] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue(); } c2 = cArr[tvh.c]; Object[] objArr6 = {tvh, tvh}; Object obj4 = xzZ.y.get(1698744941); if (obj4 == null) { Class cls2 = (Class) xzZ.c((ViewConfiguration.getTouchSlop() >> 8) + 402, 5 - TextUtils.getTrimmedLength(""), (char) (21608 - Color.alpha(0))); byte b4 = (byte) (-1); byte b5 = (byte) (-b4); Object[] objArr7 = new Object[1]; g(b4, b5, (byte) (b5 - 1), objArr7); obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1698744941, obj4); } ((Method) obj4).invoke(null, objArr6); } cArr4 = cArr; } if (i6 > 0) { char[] cArr5 = new char[i4]; i = 0; System.arraycopy(cArr4, 0, cArr5, 0, i4); int i13 = i4 - i6; System.arraycopy(cArr5, 0, cArr4, i13, i6); System.arraycopy(cArr5, i6, cArr4, 0, i13); } else { i = 0; } if (z) { char[] cArr6 = new char[i4]; while (true) { tvh.c = i; if (tvh.c >= i4) { break; } int i14 = $11 + 101; $10 = i14 % 128; int i15 = i14 % 2; cArr6[tvh.c] = cArr4[(i4 - tvh.c) - 1]; i = tvh.c + 1; } cArr4 = cArr6; } if (i5 > 0) { int i16 = $10 + 117; $11 = i16 % 128; int i17 = i16 % 2; int i18 = 0; while (true) { tvh.c = i18; if (tvh.c >= i4) { break; } cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]); i18 = tvh.c + 1; } } objArr[0] = new String(cArr4); } /* synthetic */ LWm(C5527buj c5527buj, String str, byte b2) { this(c5527buj, str); } } /* JADX WARN: Removed duplicated region for block: B:22:0x01b0 */ /* JADX WARN: Removed duplicated region for block: B:24:0x01b1 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void k(int r16, int r17, int r18, char[] r19, boolean r20, java.lang.Object[] r21) { /* Method dump skipped, instructions count: 443 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C5527buj.k(int, int, int, char[], boolean, java.lang.Object[]):void"); } @Override // o.ZI public final void w_() { int i2 = 2 % 2; int i3 = h + 57; i = i3 % 128; Object obj = null; if (i3 % 2 == 0) { this.d.h.isDisposed(); obj.hashCode(); throw null; } CLj cLj = this.d; if (!cLj.h.isDisposed()) { int i4 = i + 45; h = i4 % 128; if (i4 % 2 != 0) { cLj.h.dispose(); obj.hashCode(); throw null; } cLj.h.dispose(); } super.w_(); } private static /* synthetic */ Object b(Object[] objArr) { C5527buj c5527buj = (C5527buj) objArr[0]; NC nc = (NC) objArr[1]; InterfaceC9338dhp interfaceC9338dhp = (InterfaceC9338dhp) objArr[2]; int i2 = 2 % 2; int i3 = h + 111; i = i3 % 128; int i4 = i3 % 2; c5527buj.d(nc, interfaceC9338dhp); if (i4 != 0) { return null; } int i5 = 56 / 0; return null; } private /* synthetic */ void e(InterfaceC9338dhp interfaceC9338dhp) { d(new Object[]{this, interfaceC9338dhp}, 852609148, -852609148, System.identityHashCode(this)); } static /* synthetic */ CharSequence b(WY wy) { return (CharSequence) d(new Object[]{wy}, -1160909384, 1160909385, (int) System.currentTimeMillis()); } public static /* synthetic */ void b(C5527buj c5527buj, InterfaceC9338dhp interfaceC9338dhp) { int i2 = 2 % 2; int i3 = h + 123; i = i3 % 128; int i4 = i3 % 2; d(new Object[]{c5527buj, interfaceC9338dhp}, 852609148, -852609148, System.identityHashCode(c5527buj)); int i5 = i + 3; h = i5 % 128; int i6 = i5 % 2; } }