package o; import android.graphics.Color; import android.media.AudioTrack; import android.net.Uri; import android.os.Process; import android.os.SystemClock; 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 com.google.common.base.Ascii; import java.lang.reflect.Method; import o.C0690Mh; import o.C6201cLr; import o.ZI; import o.wRi; /* renamed from: o.cLr, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C6201cLr extends ZI { private static short[] m; private String a; private C17600yE b; private C1013Ts c; private String d; private pbf e; private static final byte[] $$a = {Ascii.CAN, -103, 8, 6}; private static final int $$b = 99; private static int $10 = 0; private static int $11 = 1; /* renamed from: o, reason: collision with root package name */ private static int f8610o = 0; private static int n = 1; private static int g = -1341668458; private static int i = 1406017120; private static int h = 701522664; private static byte[] l = {-103}; public static /* synthetic */ Object c(Object[] objArr, int i2, int i3, int i4) { int i5 = ~i4; int i6 = (i2 * 522) + (i3 * (-520)) + (((~(i5 | i3)) | i2) * (-1042)) + ((i3 | i4) * 521); int i7 = ~i2; int i8 = i6 + (((~(i2 | i5 | i3)) | (~(i4 | i7)) | (~((~i3) | i7))) * 521); if (i8 != 1) { return i8 != 2 ? i8 != 3 ? c(objArr) : d(objArr) : a(objArr); } String str = (String) objArr[0]; InterfaceC6634cYl interfaceC6634cYl = (InterfaceC6634cYl) objArr[1]; int i9 = 2 % 2; int i10 = f8610o + 91; n = i10 % 128; int i11 = i10 % 2; interfaceC6634cYl.e(str); int i12 = n + 15; f8610o = i12 % 128; int i13 = i12 % 2; return null; } private static void p(short s, short s2, int i2, Object[] objArr) { int i3 = 110 - (i2 * 2); byte[] bArr = $$a; int i4 = s + 4; int i5 = s2 * 2; byte[] bArr2 = new byte[1 - i5]; int i6 = 0 - i5; int i7 = -1; if (bArr == null) { i3 += -i6; } while (true) { i7++; i4++; bArr2[i7] = (byte) i3; if (i7 == i6) { objArr[0] = new String(bArr2, 0); return; } i3 += -bArr[i4]; } } static /* synthetic */ void b(C6201cLr c6201cLr, Throwable th, C0690Mh.IeS ieS) { int i2 = 2 % 2; int i3 = f8610o + 59; n = i3 % 128; if (i3 % 2 == 0) { c6201cLr.b(th); Object obj = null; obj.hashCode(); throw null; } if (c6201cLr.b(th)) { c6201cLr.d(c6201cLr.j.d(th, ieS)); int i4 = f8610o + 47; n = i4 % 128; int i5 = i4 % 2; } } private static /* synthetic */ Object c(Object[] objArr) { C6201cLr c6201cLr = (C6201cLr) objArr[0]; int i2 = 2 % 2; int i3 = n + 121; f8610o = i3 % 128; Object obj = null; if (i3 % 2 == 0) { if (c6201cLr.f != 0) { int i4 = f8610o + 17; n = i4 % 128; int i5 = i4 % 2; c6201cLr.f.ar_(); } return null; } T t = c6201cLr.f; obj.hashCode(); throw null; } static /* synthetic */ void c(C6201cLr c6201cLr, Throwable th, C0690Mh.IeS ieS) { int i2 = 2 % 2; int i3 = f8610o + 103; n = i3 % 128; int i4 = i3 % 2; if (!c6201cLr.b(th)) { return; } int i5 = n + 43; f8610o = i5 % 128; if (i5 % 2 != 0) { c6201cLr.d(c6201cLr.j.d(th, ieS)); int i6 = 68 / 0; } else { c6201cLr.d(c6201cLr.j.d(th, ieS)); } } static /* synthetic */ void d(C6201cLr c6201cLr, Throwable th, Runnable runnable) { int i2 = 2 % 2; int i3 = n + 25; f8610o = i3 % 128; int i4 = i3 % 2; if (c6201cLr.b(th)) { int i5 = f8610o + 95; n = i5 % 128; if (i5 % 2 != 0) { c6201cLr.d(c6201cLr.j.c(th, runnable)); return; } c6201cLr.d(c6201cLr.j.c(th, runnable)); Object obj = null; obj.hashCode(); throw null; } } static /* synthetic */ void f(C6201cLr c6201cLr) { int i2 = 2 % 2; int i3 = f8610o + 65; n = i3 % 128; int i4 = i3 % 2; if (c6201cLr.f != 0) { int i5 = n + 31; f8610o = i5 % 128; int i6 = i5 % 2; c6201cLr.f.ar_(); int i7 = f8610o + 93; n = i7 % 128; int i8 = i7 % 2; } } static /* synthetic */ void i(C6201cLr c6201cLr) { int i2 = 2 % 2; int i3 = f8610o + 55; n = i3 % 128; int i4 = i3 % 2; if (c6201cLr.f != 0) { int i5 = n + 15; int i6 = i5 % 128; f8610o = i6; int i7 = i5 % 2; int i8 = i6 + 35; n = i8 % 128; int i9 = i8 % 2; c6201cLr.f.ar_(); } } static /* synthetic */ void j(C6201cLr c6201cLr) { int i2 = 2 % 2; int i3 = f8610o + 83; n = i3 % 128; if (i3 % 2 == 0) { T t = c6201cLr.f; throw null; } if (c6201cLr.f != 0) { int i4 = f8610o + 71; n = i4 % 128; int i5 = i4 % 2; c6201cLr.f.ar_(); return; } int i6 = f8610o + 33; n = i6 % 128; int i7 = i6 % 2; } /* JADX INFO: Access modifiers changed from: package-private */ @InterfaceC13391fZD public C6201cLr(C16903sI c16903sI, pbf pbfVar, C17600yE c17600yE) { super(c16903sI); Object[] objArr = new Object[1]; k((short) ((Process.myPid() >> 22) + 28), (byte) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0)), (-118) - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 456532605 - Color.rgb(0, 0, 0), (-2048818381) - TextUtils.getOffsetBefore("", 0), objArr); this.a = ((String) objArr[0]).intern(); this.e = pbfVar; this.b = c17600yE; } public final void e(String str, String str2) { int i2 = 2 % 2; int i3 = f8610o + 21; n = i3 % 128; if (i3 % 2 == 0) { this.d = str2; a(str); throw null; } this.d = str2; a(str); int i4 = f8610o + 7; n = i4 % 128; int i5 = i4 % 2; } private void a(String str) { int i2 = 2 % 2; if (this.f != 0) { int i3 = n; int i4 = i3 + 25; f8610o = i4 % 128; if (!(i4 % 2 != 0)) { int i5 = i3 + 71; f8610o = i5 % 128; if (i5 % 2 != 0) { this.f.y(); Object obj = null; obj.hashCode(); throw null; } this.f.y(); } } this.e.a(str); pbf pbfVar = this.e; pbfVar.d(pbfVar.i, new Sts(this)); } /* JADX INFO: Access modifiers changed from: protected */ /* renamed from: o.cLr$Sts */ /* loaded from: classes4.dex */ public class Sts extends wRi.LWm { private C6201cLr a; protected Sts(C6201cLr c6201cLr) { this.a = c6201cLr; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final Sxo sxo = (Sxo) obj; if (sxo.e != null) { C6201cLr.d(this.a, sxo.e.a); C6201cLr c6201cLr = this.a; C6201cLr.e(c6201cLr, C6201cLr.a(c6201cLr).b(sxo)); if ("1000".equals(C6201cLr.c(this.a)) || C6201cLr.d(this.a).i == null) { C6201cLr.c(new Object[]{this.a}, -1299486883, 1299486883, (int) System.currentTimeMillis()); C6201cLr c6201cLr2 = this.a; C6201cLr.d(c6201cLr2, C6201cLr.d(c6201cLr2).c, C6201cLr.d(this.a).j); } else { if (sxo.b == null || sxo.b.isEmpty()) { C6201cLr c6201cLr3 = this.a; ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cLz private C6201cLr.Sts e; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6634cYl) obj2).e(C6201cLr.d(this.e.a)); } { this.e = this; } }; if (c6201cLr3.f != 0) { ieS.e(c6201cLr3.f); return; } return; } C6201cLr c6201cLr4 = this.a; ZI.IeS ieS2 = new ZI.IeS(sxo) { // from class: o.cLx private Sxo b; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6634cYl) obj2).d(this.b.b); } { this.b = sxo; } }; if (c6201cLr4.f != 0) { ieS2.e(c6201cLr4.f); } } } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C6201cLr.d(this.a, th, new Runnable(this) { // from class: o.cLw private C6201cLr.Sts a; @Override // java.lang.Runnable public final void run() { C6201cLr.Sts.c(this.a); } { this.a = this; } }); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { C6201cLr.j(this.a); } public static /* synthetic */ void c(Sts sts) { C6201cLr c6201cLr = sts.a; C6205cLv c6205cLv = new C6205cLv(); if (c6201cLr.f != 0) { c6205cLv.e(c6201cLr.f); } } } /* JADX INFO: Access modifiers changed from: protected */ /* renamed from: o.cLr$RVV */ /* loaded from: classes4.dex */ public class RVV extends wRi.LWm { private C6201cLr a; protected RVV(C6201cLr c6201cLr) { this.a = c6201cLr; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C6201cLr.d(this.a, ((Sxo) obj).a, C6201cLr.d(this.a).j); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C6201cLr.c(this.a, th, C0690Mh.IeS.JUST_DISMISS); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { C6201cLr.i(this.a); } } /* JADX INFO: Access modifiers changed from: protected */ /* renamed from: o.cLr$IeS */ /* loaded from: classes4.dex */ public class IeS extends wRi.LWm { private C6201cLr e; protected IeS(C6201cLr c6201cLr) { this.e = c6201cLr; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { if (gjJ.b((CharSequence) C6201cLr.b(this.e)) || "facebook.payment".equals(C6201cLr.b(this.e))) { C6201cLr c6201cLr = this.e; C6205cLv c6205cLv = new C6205cLv(); if (c6201cLr.f != 0) { c6205cLv.e(c6201cLr.f); return; } return; } C6201cLr c6201cLr2 = this.e; C6201cLr.c(new Object[]{c6201cLr2, C6201cLr.b(c6201cLr2), C6201cLr.d(this.e).j}, -1061487501, 1061487503, (int) System.currentTimeMillis()); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C6201cLr.b(this.e, th, C0690Mh.IeS.JUST_DISMISS); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { C6201cLr.f(this.e); } } private void a(String str, String str2) { int i2 = 2 % 2; int i3 = n + 87; f8610o = i3 % 128; int i4 = i3 % 2; if (!gjJ.a(this.d)) { if (!gjJ.a(str)) { return; } int i5 = n + 67; f8610o = i5 % 128; int i6 = i5 % 2; c(str, str2); return; } int i7 = n + 121; f8610o = i7 % 128; if (i7 % 2 != 0) { c(Uri.parse(str).buildUpon().appendQueryParameter("callback_url", this.d).build().toString(), str2); int i8 = 27 / 0; } else { c(Uri.parse(str).buildUpon().appendQueryParameter("callback_url", this.d).build().toString(), str2); } } private static /* synthetic */ Object d(Object[] objArr) { String str = (String) objArr[0]; String str2 = (String) objArr[1]; InterfaceC6634cYl interfaceC6634cYl = (InterfaceC6634cYl) objArr[2]; int i2 = 2 % 2; int i3 = n + 89; f8610o = i3 % 128; int i4 = i3 % 2; interfaceC6634cYl.a(str, str2); int i5 = n + 37; f8610o = i5 % 128; Object obj = null; if (i5 % 2 == 0) { return null; } obj.hashCode(); throw null; } private void c(final String str, final String str2) { int i2 = 2 % 2; if (!str.startsWith("http")) { ZI.IeS ieS = new ZI.IeS(str, str2) { // from class: o.cLy private String a; private String e; @Override // o.ZI.IeS public final void e(Object obj) { C6201cLr.c(new Object[]{this.a, (InterfaceC6634cYl) obj}, 1516919169, -1516919168, (int) System.currentTimeMillis()); } { this.a = str; this.e = str2; } }; if (this.f != 0) { int i3 = f8610o + 61; n = i3 % 128; int i4 = i3 % 2; ieS.e(this.f); return; } return; } ZI.IeS ieS2 = new ZI.IeS(str, str2) { // from class: o.cLp private String b; private String e; @Override // o.ZI.IeS public final void e(Object obj) { C6201cLr.c(new Object[]{this.b, this.e, (InterfaceC6634cYl) obj}, -1143304714, 1143304717, (int) System.currentTimeMillis()); } { this.b = str; this.e = str2; } }; if (this.f == 0) { int i5 = n + 7; f8610o = i5 % 128; int i6 = i5 % 2; return; } int i7 = n + 63; int i8 = i7 % 128; f8610o = i8; int i9 = i7 % 2; int i10 = i8 + 69; n = i10 % 128; int i11 = i10 % 2; ieS2.e(this.f); } public final void d(String str, hwW hww) { AbstractC13403fZf ieS; int i2 = 2 % 2; int i3 = n + 105; f8610o = i3 % 128; if (i3 % 2 == 0) { if (this.f != 0) { int i4 = n + 33; f8610o = i4 % 128; int i5 = i4 % 2; this.f.y(); } if (hww == hwW.ALLOW_ACTION) { ieS = new RVV(this); int i6 = f8610o + 109; n = i6 % 128; int i7 = i6 % 2; } else { ieS = new IeS(this); } this.e.b(new C6052cH(str, Integer.valueOf(hww.action)), this.a); pbf pbfVar = this.e; pbfVar.d(pbfVar.i, ieS); return; } T t = this.f; Object obj = null; obj.hashCode(); throw null; } private static void k(short s, byte b, int i2, int i3, int i4, Object[] objArr) { int i5; boolean z; int i6 = 2 % 2; DFY dfy = new DFY(); StringBuilder sb = new StringBuilder(); try { Object[] objArr2 = {Integer.valueOf(i2), Integer.valueOf(i)}; Object obj = xzZ.y.get(-2092856797); char c = '0'; int i7 = -1; if (obj == null) { Class cls = (Class) xzZ.c(336 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), View.resolveSize(0, 0) + 5, (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16)); byte b2 = (byte) (-1); byte b3 = (byte) (b2 + 1); Object[] objArr3 = new Object[1]; p(b2, b3, b3, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(-2092856797, obj); } int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); int i8 = intValue == -1 ? 1 : 0; if ((i8 ^ 1) == 0) { int i9 = $11 + 11; $10 = i9 % 128; int i10 = i9 % 2; byte[] bArr = l; if (bArr != null) { int length = bArr.length; byte[] bArr2 = new byte[length]; int i11 = 0; while (i11 < length) { Object[] objArr4 = {Integer.valueOf(bArr[i11])}; Object obj2 = xzZ.y.get(-1648115392); if (obj2 == null) { Class cls2 = (Class) xzZ.c(61 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (KeyEvent.getMaxKeyCode() >> 16) + 5, (char) ((-1) - TextUtils.indexOf("", c, 0))); byte b4 = (byte) i7; byte b5 = (byte) (b4 + 1); Object[] objArr5 = new Object[1]; p(b4, b5, (byte) (b5 + 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE); xzZ.y.put(-1648115392, obj2); } bArr2[i11] = ((Byte) ((Method) obj2).invoke(null, objArr4)).byteValue(); i11++; c = '0'; i7 = -1; } bArr = bArr2; } if (bArr != null) { int i12 = $11 + 9; $10 = i12 % 128; int i13 = i12 % 2; byte[] bArr3 = l; Object[] objArr6 = {Integer.valueOf(i3), Integer.valueOf(g)}; Object obj3 = xzZ.y.get(-2092856797); if (obj3 == null) { Class cls3 = (Class) xzZ.c((ViewConfiguration.getWindowTouchSlop() >> 8) + 337, 5 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (char) View.resolveSizeAndState(0, 0, 0)); byte b6 = (byte) (-1); byte b7 = (byte) (b6 + 1); Object[] objArr7 = new Object[1]; p(b6, b7, b7, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(-2092856797, obj3); } intValue = (byte) (((byte) (bArr3[((Integer) ((Method) obj3).invoke(null, objArr6)).intValue()] ^ (-7303220121662775787L))) + ((int) (i ^ (-7303220121662775787L)))); } else { intValue = (short) (((short) (m[i3 + ((int) (g ^ (-7303220121662775787L)))] ^ (-7303220121662775787L))) + ((int) (i ^ (-7303220121662775787L)))); } } if (intValue > 0) { int i14 = $11 + 71; $10 = i14 % 128; int i15 = i14 % 2; dfy.c = ((i3 + intValue) - 2) + ((int) (g ^ (-7303220121662775787L))) + i8; Object[] objArr8 = {dfy, Integer.valueOf(i4), Integer.valueOf(h), sb}; Object obj4 = xzZ.y.get(1546973421); if (obj4 == null) { obj4 = ((Class) xzZ.c(748 - Color.green(0), 5 - View.MeasureSpec.getMode(0), (char) Color.red(0))).getMethod("q", Object.class, Integer.TYPE, Integer.TYPE, Object.class); xzZ.y.put(1546973421, obj4); } ((StringBuilder) ((Method) obj4).invoke(null, objArr8)).append(dfy.a); dfy.e = dfy.a; byte[] bArr4 = l; if (bArr4 != null) { int length2 = bArr4.length; byte[] bArr5 = new byte[length2]; for (int i16 = 0; i16 < length2; i16++) { bArr5[i16] = (byte) (bArr4[i16] ^ (-7303220121662775787L)); } int i17 = $10 + 73; $11 = i17 % 128; i5 = 2; int i18 = i17 % 2; bArr4 = bArr5; } else { i5 = 2; } if (bArr4 != null) { int i19 = $11 + 81; $10 = i19 % 128; int i20 = i19 % i5; z = true; } else { z = false; } dfy.d = 1; while (dfy.d < intValue) { int i21 = $10 + 67; $11 = i21 % 128; if (i21 % 2 == 0) { Object obj5 = null; obj5.hashCode(); throw null; } if (z) { byte[] bArr6 = l; dfy.c = dfy.c - 1; dfy.a = (char) (dfy.e + (((byte) (((byte) (bArr6[r8] ^ (-7303220121662775787L))) + s)) ^ b)); } else { short[] sArr = m; dfy.c = dfy.c - 1; dfy.a = (char) (dfy.e + (((short) (((short) (sArr[r8] ^ (-7303220121662775787L))) + s)) ^ b)); } sb.append(dfy.a); dfy.e = dfy.a; dfy.d++; } } objArr[0] = sb.toString(); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } private static /* synthetic */ Object a(Object[] objArr) { C6201cLr c6201cLr = (C6201cLr) objArr[0]; String str = (String) objArr[1]; String str2 = (String) objArr[2]; int i2 = 2 % 2; int i3 = n + 49; f8610o = i3 % 128; int i4 = i3 % 2; c6201cLr.c(str, str2); int i5 = f8610o + 51; n = i5 % 128; if (i5 % 2 == 0) { int i6 = 36 / 0; } return null; } public final String a() { String str; int i2 = 2 % 2; int i3 = f8610o; int i4 = i3 + 93; n = i4 % 128; if (i4 % 2 == 0) { str = this.d; int i5 = 72 / 0; } else { str = this.d; } int i6 = i3 + 95; n = i6 % 128; if (i6 % 2 != 0) { return str; } throw null; } static /* synthetic */ void d(C6201cLr c6201cLr, String str, String str2) { int i2 = 2 % 2; int i3 = f8610o + 51; n = i3 % 128; int i4 = i3 % 2; c6201cLr.a(str, str2); int i5 = n + 101; f8610o = i5 % 128; int i6 = i5 % 2; } static /* bridge */ /* synthetic */ void d(C6201cLr c6201cLr, String str) { int i2 = 2 % 2; int i3 = n + 111; int i4 = i3 % 128; f8610o = i4; int i5 = i3 % 2; c6201cLr.a = str; int i6 = i4 + 67; n = i6 % 128; int i7 = i6 % 2; } static /* bridge */ /* synthetic */ void e(C6201cLr c6201cLr, C1013Ts c1013Ts) { int i2 = 2 % 2; int i3 = n + 23; int i4 = i3 % 128; f8610o = i4; int i5 = i3 % 2; c6201cLr.c = c1013Ts; int i6 = i4 + 111; n = i6 % 128; if (i6 % 2 == 0) { int i7 = 43 / 0; } } static /* synthetic */ String c(C6201cLr c6201cLr) { int i2 = 2 % 2; int i3 = f8610o; int i4 = i3 + 83; n = i4 % 128; int i5 = i4 % 2; String str = c6201cLr.a; if (i5 == 0) { int i6 = 86 / 0; } int i7 = i3 + 91; n = i7 % 128; if (i7 % 2 != 0) { return str; } Object obj = null; obj.hashCode(); throw null; } static /* bridge */ /* synthetic */ C17600yE a(C6201cLr c6201cLr) { int i2 = 2 % 2; int i3 = f8610o + 13; int i4 = i3 % 128; n = i4; int i5 = i3 % 2; C17600yE c17600yE = c6201cLr.b; int i6 = i4 + 75; f8610o = i6 % 128; if (i6 % 2 == 0) { return c17600yE; } throw null; } static /* bridge */ /* synthetic */ C1013Ts d(C6201cLr c6201cLr) { int i2 = 2 % 2; int i3 = f8610o + 123; int i4 = i3 % 128; n = i4; int i5 = i3 % 2; C1013Ts c1013Ts = c6201cLr.c; int i6 = i4 + 29; f8610o = i6 % 128; if (i6 % 2 != 0) { int i7 = 19 / 0; } return c1013Ts; } static /* bridge */ /* synthetic */ String b(C6201cLr c6201cLr) { int i2 = 2 % 2; int i3 = f8610o; int i4 = i3 + 27; n = i4 % 128; int i5 = i4 % 2; String str = c6201cLr.d; if (i5 == 0) { throw null; } int i6 = i3 + 35; n = i6 % 128; if (i6 % 2 != 0) { return str; } throw null; } }