package o; import android.graphics.Color; import android.os.Process; import android.text.TextUtils; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import o.C5546bvB; import o.ZI; import o.wRi; /* renamed from: o.bvB, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C5546bvB extends ZI { private final C17038tS a; private String b; private final zWC c; private final CLj d; private NU e; private static final byte[] $$a = {105, 77, -86, 73}; private static final int $$b = 232; private static int $10 = 0; private static int $11 = 1; private static int k = 0; private static int l = 1; private static char i = 27842; private static char g = 53778; private static char h = 47141; /* renamed from: o, reason: collision with root package name */ private static char f8588o = 60614; public static /* synthetic */ Object c(Object[] objArr, int i2, int i3, int i4) { return ((((i2 * 530) + 1058) + (i3 * 530)) + (((~((~i4) | i2)) | (~(i2 | i3))) * 529)) + (((~(i2 | i4)) | (~i3)) * 529) != 1 ? b(objArr) : d(objArr); } /* 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:0x002d). 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 n(int r6, int r7, byte r8, java.lang.Object[] r9) { /* int r7 = r7 * 3 int r0 = 1 - r7 int r6 = r6 + 66 int r8 = r8 * 3 int r8 = r8 + 4 byte[] r1 = o.C5546bvB.$$a byte[] r0 = new byte[r0] r2 = 0 int r7 = 0 - r7 if (r1 != 0) goto L17 r6 = r7 r3 = r8 r4 = r2 goto L2d L17: r3 = r2 L18: byte r4 = (byte) r6 r0[r3] = r4 if (r3 != r7) goto L25 java.lang.String r6 = new java.lang.String r6.(r0, r2) r9[r2] = r6 return L25: int r3 = r3 + 1 r4 = r1[r8] r5 = r3 r3 = r8 r8 = r4 r4 = r5 L2d: int r6 = r6 + r8 int r8 = r3 + 1 r3 = r4 goto L18 */ throw new UnsupportedOperationException("Method not decompiled: o.C5546bvB.n(int, int, byte, java.lang.Object[]):void"); } private static /* synthetic */ Object b(Object[] objArr) { C5546bvB c5546bvB = (C5546bvB) objArr[0]; Throwable th = (Throwable) objArr[1]; int i2 = 2 % 2; int i3 = l + 1; k = i3 % 128; if (i3 % 2 != 0) { int i4 = 51 / 0; if (!c5546bvB.b(th)) { return null; } } else if (!c5546bvB.b(th)) { return null; } c5546bvB.d(c5546bvB.j.e(th)); int i5 = l + 59; k = i5 % 128; int i6 = i5 % 2; return null; } static /* synthetic */ void c(C5546bvB c5546bvB) { int i2 = 2 % 2; int i3 = k + 47; l = i3 % 128; if (i3 % 2 == 0) { T t = c5546bvB.f; Object obj = null; obj.hashCode(); throw null; } if (!(c5546bvB.f != 0)) { return; } int i4 = k + 83; l = i4 % 128; int i5 = i4 % 2; c5546bvB.f.ar_(); } @InterfaceC13391fZD public C5546bvB(C16903sI c16903sI, C17038tS c17038tS, CLj cLj, zWC zwc) { super(c16903sI); this.a = c17038tS; this.d = cLj; this.c = zwc; } private static /* synthetic */ Object d(Object[] objArr) { C5546bvB c5546bvB = (C5546bvB) objArr[0]; NU nu = (NU) objArr[1]; InterfaceC9345dhw interfaceC9345dhw = (InterfaceC9345dhw) objArr[2]; int i2 = 2 % 2; int i3 = l + 73; k = i3 % 128; int i4 = i3 % 2; interfaceC9345dhw.d(c5546bvB.a.a(nu, (String) null)); int i5 = k + 79; l = i5 % 128; if (i5 % 2 != 0) { return null; } throw null; } private /* synthetic */ void c(NU nu, InterfaceC9345dhw interfaceC9345dhw) { int i2 = 2 % 2; int i3 = l + 17; k = i3 % 128; int i4 = i3 % 2; interfaceC9345dhw.e(this.a.d(nu, this.c.a.f())); int i5 = l + 47; k = i5 % 128; int i6 = i5 % 2; } public final void c(final NU nu) { int i2 = 2 % 2; if (this.f != 0) { int i3 = l + 41; k = i3 % 128; if (i3 % 2 != 0) { this.f.y(); int i4 = 19 / 0; } else { this.f.y(); } } this.e = nu; this.b = nu.f; ZI.IeS ieS = new ZI.IeS(this, nu) { // from class: o.bvz private NU a; private C5546bvB b; @Override // o.ZI.IeS public final void e(Object obj) { C5546bvB.c(this.b, this.a, (InterfaceC9345dhw) obj); } { this.b = this; this.a = nu; } }; if (this.f != 0) { int i5 = k; int i6 = i5 + 13; l = i6 % 128; if (i6 % 2 != 0) { int i7 = i5 + 19; l = i7 % 128; int i8 = i7 % 2; ieS.e(this.f); } } ZI.IeS ieS2 = new ZI.IeS(this, nu) { // from class: o.bvG private C5546bvB a; private NU d; @Override // o.ZI.IeS public final void e(Object obj) { C5546bvB.e(this.a, this.d, (InterfaceC9345dhw) obj); } { this.a = this; this.d = nu; } }; if (this.f != 0) { int i9 = l + 97; k = i9 % 128; int i10 = i9 % 2; ieS2.e(this.f); } if (this.f != 0) { this.f.ar_(); int i11 = k + 85; l = i11 % 128; if (i11 % 2 == 0) { int i12 = 5 % 2; } } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ CharSequence b(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 = l + 87; k = i3 % 128; if (i3 % 2 == 0) { return obj; } throw null; } public final void c() { boolean z; int i2 = 2 % 2; int i3 = k + 75; l = i3 % 128; int i4 = i3 % 2; byte b = 0; if (this.f != 0) { int i5 = k + 13; l = i5 % 128; int i6 = i5 % 2; z = true; } else { z = false; } if (!(!z)) { this.f.y(); int i7 = l + 39; k = i7 % 128; int i8 = i7 % 2; } NU nu = this.e; if (nu != null && nu.j != null) { WZ wz = this.e.j; if (wz.c != null) { C14881gav.d(wz.c, "#####", "", "", -1, "", new InterfaceC14894gbR() { // from class: o.bvE @Override // o.InterfaceC14894gbR public final Object invoke(Object obj) { return C5546bvB.b((WY) obj); } }); } } CLj cLj = this.d; String str = this.b; Object[] objArr = new Object[1]; m(new char[]{48348, 29088}, View.resolveSizeAndState(0, 0, 0) + 1, objArr); cLj.a(((String) objArr[0]).intern(), str); CLj cLj2 = this.d; cLj2.d(cLj2.i, new LWm(this, b)); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.bvB$LWm */ /* loaded from: classes4.dex */ public class LWm extends wRi.LWm { private C5546bvB a; private LWm(C5546bvB c5546bvB) { this.a = c5546bvB; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { C5546bvB.c(this.a); C5546bvB c5546bvB = this.a; ZI.IeS ieS = new ZI.IeS(this) { // from class: o.bvH private C5546bvB.LWm c; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9345dhw) obj).b(C5546bvB.a(this.c.a).a.f()); } { this.c = this; } }; if (c5546bvB.f != 0) { ieS.e(c5546bvB.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C5546bvB.c(new Object[]{this.a, th}, -648746926, 648746926, (int) System.currentTimeMillis()); } /* synthetic */ LWm(C5546bvB c5546bvB, byte b) { this(c5546bvB); } } @Override // o.ZI public final void w_() { int i2 = 2 % 2; int i3 = l + 125; k = i3 % 128; if (i3 % 2 == 0) { CLj cLj = this.d; if (!cLj.h.isDisposed()) { cLj.h.dispose(); int i4 = k + 125; l = i4 % 128; int i5 = i4 % 2; } super.w_(); return; } this.d.h.isDisposed(); throw null; } private static void m(char[] cArr, int i2, Object[] objArr) { int i3 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; jtb.b = 0; char[] cArr3 = new char[2]; while (jtb.b < cArr.length) { cArr3[0] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; int i4 = $11 + 101; $10 = i4 % 128; int i5 = i4 % 2; int i6 = 58224; for (int i7 = 0; i7 < 16; i7++) { char c = cArr3[1]; char c2 = cArr3[0]; try { Object[] objArr2 = {Integer.valueOf(c), Integer.valueOf((c2 + i6) ^ ((c2 << 4) + ((char) (h ^ 41718355337583039L)))), Integer.valueOf(c2 >>> 5), Integer.valueOf(f8588o)}; Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 413, Color.rgb(0, 0, 0) + 16777221, (char) TextUtils.getOffsetBefore("", 0)); byte b = (byte) 0; byte b2 = b; Object[] objArr3 = new Object[1]; n(b, b2, b2, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj); } char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); cArr3[1] = charValue; Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (i ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(g)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 412, (-16777211) - Color.rgb(0, 0, 0), (char) (ViewConfiguration.getDoubleTapTimeout() >> 16)); byte b3 = (byte) 0; byte b4 = b3; Object[] objArr5 = new Object[1]; n(b3, b4, b4, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj2); } cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i6 -= 40503; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr2[jtb.b] = cArr3[0]; cArr2[jtb.b + 1] = cArr3[1]; Object[] objArr6 = {jtb, jtb}; Object obj3 = xzZ.y.get(943004485); if (obj3 == null) { Class cls3 = (Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 99, 6 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (Process.myTid() >> 22)); byte b5 = (byte) 1; byte b6 = (byte) (b5 - 1); Object[] objArr7 = new Object[1]; n(b5, b6, b6, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(943004485, obj3); } ((Method) obj3).invoke(null, objArr6); int i8 = $10 + 63; $11 = i8 % 128; int i9 = i8 % 2; } objArr[0] = new String(cArr2, 0, i2); } private /* synthetic */ void a(NU nu, InterfaceC9345dhw interfaceC9345dhw) { c(new Object[]{this, nu, interfaceC9345dhw}, -1929965039, 1929965040, System.identityHashCode(this)); } static /* bridge */ /* synthetic */ zWC a(C5546bvB c5546bvB) { int i2 = 2 % 2; int i3 = l + 43; int i4 = i3 % 128; k = i4; int i5 = i3 % 2; zWC zwc = c5546bvB.c; int i6 = i4 + 9; l = i6 % 128; if (i6 % 2 == 0) { int i7 = 85 / 0; } return zwc; } public static /* synthetic */ void c(C5546bvB c5546bvB, NU nu, InterfaceC9345dhw interfaceC9345dhw) { int i2 = 2 % 2; int i3 = k + 121; l = i3 % 128; int i4 = i3 % 2; Object obj = null; Object[] objArr = {c5546bvB, nu, interfaceC9345dhw}; int identityHashCode = System.identityHashCode(c5546bvB); if (i4 == 0) { c(objArr, -1929965039, 1929965040, identityHashCode); obj.hashCode(); throw null; } c(objArr, -1929965039, 1929965040, identityHashCode); int i5 = l + 39; k = i5 % 128; if (i5 % 2 == 0) { return; } obj.hashCode(); throw null; } public static /* synthetic */ void e(C5546bvB c5546bvB, NU nu, InterfaceC9345dhw interfaceC9345dhw) { int i2 = 2 % 2; int i3 = l + 1; k = i3 % 128; int i4 = i3 % 2; c5546bvB.c(nu, interfaceC9345dhw); int i5 = k + 103; l = i5 % 128; if (i5 % 2 == 0) { throw null; } } }