package o; import android.os.Process; import android.os.SystemClock; import android.text.TextUtils; import android.util.TypedValue; import android.view.Gravity; import android.view.View; import android.view.ViewConfiguration; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.util.List; import o.C0690Mh; import o.C6941ces; import o.PRA; import o.ZI; import o.wRi; /* renamed from: o.ces */ /* loaded from: classes4.dex */ public class C6941ces extends ZI { private final C15681hiM a; private final C17530xYX b; private final zMZ c; private List d; private final Lud e; private final fAZ g; private final C17702yz h; private static final byte[] $$a = {101, 120, 60, 69}; private static final int $$b = 23; private static int $10 = 0; private static int $11 = 1; private static int n = 0; private static int l = 1; private static int i = 2015661707; public static /* synthetic */ Object d(Object[] objArr, int i2, int i3, int i4) { int i5 = (i2 * 217) + (i3 * (-215)) + ((~(i2 | i4)) * 216); int i6 = (~i3) | i2; int i7 = ~i4; if (i5 + ((i6 | i7) * (-216)) + (((~(i2 | i7)) | i3) * 216) != 1) { C0987Tb c0987Tb = (C0987Tb) objArr[0]; int i8 = 2 % 2; int i9 = l + 75; n = i9 % 128; int i10 = i9 % 2; Object[] objArr2 = new Object[1]; m(TextUtils.indexOf("", "", 0, 0) + 1, -Process.getGidForName(""), 221 - Gravity.getAbsoluteGravity(0, 0), new char[]{0}, true, objArr2); boolean equals = ((String) objArr2[0]).intern().equals(c0987Tb.h); int i11 = n + 41; l = i11 % 128; int i12 = i11 % 2; return Boolean.valueOf(equals); } return c(objArr); } /* JADX WARN: Removed duplicated region for block: B:10:0x0027 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001f */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002f). 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 k(int r6, byte r7, int r8, java.lang.Object[] r9) { /* int r6 = r6 * 3 int r0 = r6 + 1 byte[] r1 = o.C6941ces.$$a int r7 = r7 + 4 int r8 = r8 * 7 int r8 = 76 - r8 byte[] r0 = new byte[r0] r2 = 0 if (r1 != 0) goto L14 r3 = r7 r4 = r2 goto L2f L14: r3 = r2 r5 = r8 r8 = r7 r7 = r5 L18: byte r4 = (byte) r7 r0[r3] = r4 int r8 = r8 + 1 if (r3 != r6) goto L27 java.lang.String r6 = new java.lang.String r6.(r0, r2) r9[r2] = r6 return L27: r4 = r1[r8] int r3 = r3 + 1 r5 = r3 r3 = r8 r8 = r4 r4 = r5 L2f: int r7 = r7 + r8 r8 = r3 r3 = r4 goto L18 */ throw new UnsupportedOperationException("Method not decompiled: o.C6941ces.k(int, byte, int, java.lang.Object[]):void"); } static /* synthetic */ void c(C6941ces c6941ces) { int i2; int i3 = 2 % 2; int i4 = l + 107; n = i4 % 128; int i5 = i4 % 2; if (c6941ces.f != 0) { c6941ces.f.ar_(); i2 = l + 65; n = i2 % 128; } else { i2 = n + 39; l = i2 % 128; } int i6 = i2 % 2; } static /* synthetic */ void d(C6941ces c6941ces) { boolean z; int i2 = 2 % 2; if (c6941ces.f != 0) { int i3 = n + 1; l = i3 % 128; int i4 = i3 % 2; z = true; } else { z = false; } if (!(!z)) { int i5 = n + 87; l = i5 % 128; if (i5 % 2 == 0) { c6941ces.f.ar_(); throw null; } c6941ces.f.ar_(); } int i6 = n + 49; l = i6 % 128; int i7 = i6 % 2; } static /* synthetic */ void d(C6941ces c6941ces, Throwable th, C0690Mh.IeS ieS) { int i2 = 2 % 2; int i3 = l + 23; n = i3 % 128; int i4 = i3 % 2; if (c6941ces.b(th)) { int i5 = n + 9; l = i5 % 128; if (i5 % 2 == 0) { c6941ces.d(c6941ces.j.d(th, ieS)); int i6 = 52 / 0; } else { c6941ces.d(c6941ces.j.d(th, ieS)); } } int i7 = l + 37; n = i7 % 128; if (i7 % 2 != 0) { throw null; } } static /* synthetic */ void e(C6941ces c6941ces, Throwable th, C0690Mh.IeS ieS) { int i2 = 2 % 2; if (c6941ces.b(th)) { int i3 = l + 25; n = i3 % 128; int i4 = i3 % 2; c6941ces.d(c6941ces.j.d(th, ieS)); } int i5 = n + 13; l = i5 % 128; if (i5 % 2 == 0) { throw null; } } @InterfaceC13391fZD public C6941ces(C16903sI c16903sI, fAZ faz, Lud lud, C17530xYX c17530xYX, C15681hiM c15681hiM, C17702yz c17702yz, zMZ zmz) { super(c16903sI); this.g = faz; this.e = lud; this.b = c17530xYX; this.a = c15681hiM; this.h = c17702yz; this.c = zmz; } public final String a() { int i2 = 2 % 2; int i3 = l + 23; n = i3 % 128; if (i3 % 2 != 0) { this.c.d.e(); Object obj = null; obj.hashCode(); throw null; } String e = this.c.d.e(); int i4 = l + 5; n = i4 % 128; int i5 = i4 % 2; return e; } /* renamed from: o.ces$5 */ /* loaded from: classes4.dex */ public static /* synthetic */ class AnonymousClass5 { static final int[] c; static { int[] iArr = new int[cXP.values().length]; c = iArr; try { iArr[cXP.DEFAULT.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { c[cXP.AUTO_TOP_UP.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { c[cXP.ONBOARDING.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { c[cXP.BUSINESS.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } try { c[cXP.INDUSTRY.ordinal()] = 5; } catch (NoSuchFieldError unused5) { } } } private static /* synthetic */ Object c(Object[] objArr) { C6941ces c6941ces = (C6941ces) objArr[0]; cXP cxp = (cXP) objArr[1]; String str = (String) objArr[2]; int i2 = 2 % 2; String str2 = !((Boolean) objArr[3]).booleanValue() ? "N" : "Y"; if (c6941ces.f != 0) { int i3 = l + 47; n = i3 % 128; int i4 = i3 % 2; c6941ces.f.y(); } int i5 = AnonymousClass5.c[cxp.ordinal()]; if (i5 == 1 || i5 == 2) { c6941ces.g.a(null, str, str2); fAZ faz = c6941ces.g; faz.d(faz.i, new Sts(c6941ces)); } else { if (i5 == 3) { c6941ces.e.d(); Lud lud = c6941ces.e; lud.d(lud.i, new Sts(c6941ces)); return null; } if (i5 == 4) { c6941ces.c(); return null; } int i6 = l + 9; n = i6 % 128; int i7 = i6 % 2; if (i5 == 5) { c6941ces.a.b(); C15681hiM c15681hiM = c6941ces.a; c15681hiM.d(c15681hiM.i, new IeS(c6941ces)); return null; } } return null; } private void c() { int i2 = 2 % 2; if (!(!(this.f != 0))) { this.f.ar_(); } List e = this.b.b.e(); this.d = this.h.c(e); ZI.IeS ieS = new ZI.IeS(this, e) { // from class: o.cey private List a; private C6941ces b; @Override // o.ZI.IeS public final void e(Object obj) { C6941ces.a(this.b, this.a, (InterfaceC9224dfg) obj); } { this.b = this; this.a = e; } }; if (this.f != 0) { int i3 = n + 97; int i4 = i3 % 128; l = i4; int i5 = i3 % 2; int i6 = i4 + 109; n = i6 % 128; int i7 = i6 % 2; ieS.e(this.f); } } private /* synthetic */ void e(List list, InterfaceC9224dfg interfaceC9224dfg) { int i2 = 2 % 2; int i3 = n + 103; l = i3 % 128; if (i3 % 2 == 0) { interfaceC9224dfg.c(this.h.d((List) list)); throw null; } interfaceC9224dfg.c(this.h.d((List) list)); int i4 = n + 81; l = i4 % 128; int i5 = i4 % 2; } public static /* synthetic */ boolean a(String str, C0987Tb c0987Tb) { int i2 = 2 % 2; int i3 = n + 35; l = i3 % 128; if (i3 % 2 == 0) { boolean contains = c0987Tb.i.toLowerCase().contains(str.toLowerCase()); int i4 = 67 / 0; return contains; } return c0987Tb.i.toLowerCase().contains(str.toLowerCase()); } public final List b(String str) { int i2 = 2 % 2; int i3 = n; int i4 = i3 + 47; l = i4 % 128; int i5 = i4 % 2; if (this.d != null) { if (TextUtils.isEmpty(str)) { YKU yku = new YKU(this.d); return (List) new YKU(yku.a, new GEP(yku.b, new Jel() { // from class: o.ceA @Override // o.Jel public final boolean e(Object obj) { return ((Boolean) C6941ces.d(new Object[]{(C0987Tb) obj}, -2028237306, 2028237306, (int) System.currentTimeMillis())).booleanValue(); } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } YKU yku2 = new YKU(this.d); List list = (List) new YKU(yku2.a, new GEP(yku2.b, new Jel(str) { // from class: o.cex private String d; @Override // o.Jel public final boolean e(Object obj) { return C6941ces.a(this.d, (C0987Tb) obj); } { this.d = str; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); int i6 = n + 23; l = i6 % 128; if (i6 % 2 == 0) { int i7 = 90 / 0; } return list; } int i8 = i3 + 33; l = i8 % 128; if (i8 % 2 != 0) { return null; } throw null; } /* renamed from: o.ces$Sts */ /* loaded from: classes4.dex */ public class Sts extends wRi.LWm> { private C6941ces d; Sts(C6941ces c6941ces) { this.d = c6941ces; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { List list = (List) obj; C6941ces.d(this.d); C6941ces c6941ces = this.d; C6941ces.a(c6941ces, C6941ces.b(c6941ces).c(list)); C6941ces c6941ces2 = this.d; ZI.IeS ieS = new ZI.IeS(this, list) { // from class: o.cew private List a; private C6941ces.Sts c; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9224dfg) obj2).c(C6941ces.b(this.c.d).d((List) this.a)); } { this.c = this; this.a = list; } }; if (c6941ces2.f != 0) { ieS.e(c6941ces2.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C6941ces.d(this.d, th, C0690Mh.IeS.JUST_DISMISS); } } /* renamed from: o.ces$IeS */ /* loaded from: classes4.dex */ public class IeS extends wRi.LWm> { private C6941ces a; IeS(C6941ces c6941ces) { this.a = c6941ces; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { List list = (List) obj; C6941ces.c(this.a); C6941ces c6941ces = this.a; C6941ces.a(c6941ces, C6941ces.b(c6941ces).c(list)); C6941ces c6941ces2 = this.a; ZI.IeS ieS = new ZI.IeS(this, list) { // from class: o.cez private C6941ces.IeS a; private List b; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9224dfg) obj2).c(C6941ces.b(this.a.a).d((List) this.b)); } { this.a = this; this.b = list; } }; if (c6941ces2.f != 0) { ieS.e(c6941ces2.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C6941ces.e(this.a, th, C0690Mh.IeS.JUST_DISMISS); } } private static void m(int i2, int i3, int i4, char[] cArr, boolean z, Object[] objArr) { Object method; int i5 = 2 % 2; zUI zui = new zUI(); char[] cArr2 = new char[i2]; zui.d = 0; while (zui.d < i2) { zui.c = cArr[zui.d]; cArr2[zui.d] = (char) (i4 + zui.c); int i6 = zui.d; try { Object[] objArr2 = {Integer.valueOf(cArr2[i6]), Integer.valueOf(i)}; Object obj = xzZ.y.get(880493502); if (obj == null) { Class cls = (Class) xzZ.c(143 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 7, (char) ((-1) - Process.getGidForName(""))); byte b = (byte) 0; byte b2 = (byte) (b - 1); Object[] objArr3 = new Object[1]; k(b, b2, (byte) (-b2), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(880493502, obj); } cArr2[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); try { Object[] objArr4 = {zui, zui}; Object obj2 = xzZ.y.get(1294990079); if (obj2 == null) { Class cls2 = (Class) xzZ.c(342 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), 4 - TextUtils.lastIndexOf("", '0'), (char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1)); byte b3 = (byte) 0; byte b4 = (byte) (b3 - 1); Object[] objArr5 = new Object[1]; k(b3, b4, (byte) (b4 + 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(1294990079, obj2); } ((Method) obj2).invoke(null, objArr4); int i7 = $10 + 79; $11 = i7 % 128; int i8 = i7 % 2; } 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; } } if (i3 > 0) { int i9 = $10 + 33; $11 = i9 % 128; int i10 = i9 % 2; zui.a = i3; char[] cArr3 = new char[i2]; System.arraycopy(cArr2, 0, cArr3, 0, i2); System.arraycopy(cArr3, 0, cArr2, i2 - zui.a, zui.a); System.arraycopy(cArr3, zui.a, cArr2, 0, i2 - zui.a); } if (z) { int i11 = $11 + 1; $10 = i11 % 128; int i12 = i11 % 2; char[] cArr4 = new char[i2]; zui.d = 0; while (zui.d < i2) { int i13 = $10 + 107; $11 = i13 % 128; if (i13 % 2 == 0) { cArr4[zui.d] = cArr2[zui.d * i2]; try { Object[] objArr6 = {zui, zui}; Object obj3 = xzZ.y.get(1294990079); if (obj3 != null) { method = obj3; } else { Class cls3 = (Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0) + 343, 5 - (ViewConfiguration.getPressedStateDuration() >> 16), (char) View.MeasureSpec.getSize(0)); byte b5 = (byte) 0; byte b6 = (byte) (b5 - 1); Object[] objArr7 = new Object[1]; k(b5, b6, (byte) (b6 + 1), objArr7); method = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1294990079, method); } ((Method) method).invoke(null, objArr6); } catch (Throwable th3) { Throwable cause3 = th3.getCause(); if (cause3 == null) { throw th3; } throw cause3; } } else { cArr4[zui.d] = cArr2[(i2 - zui.d) - 1]; try { Object[] objArr8 = {zui, zui}; Object obj4 = xzZ.y.get(1294990079); if (obj4 == null) { Class cls4 = (Class) xzZ.c(343 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 4, (char) (ViewConfiguration.getTouchSlop() >> 8)); byte b7 = (byte) 0; byte b8 = (byte) (b7 - 1); Object[] objArr9 = new Object[1]; k(b7, b8, (byte) (b8 + 1), objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(1294990079, obj4); } ((Method) obj4).invoke(null, objArr8); } catch (Throwable th4) { Throwable cause4 = th4.getCause(); if (cause4 == null) { throw th4; } throw cause4; } } } cArr2 = cArr4; } objArr[0] = new String(cArr2); } public final void d(cXP cxp, String str, boolean z) { d(new Object[]{this, cxp, str, Boolean.valueOf(z)}, -1580376149, 1580376150, System.identityHashCode(this)); } static /* bridge */ /* synthetic */ void a(C6941ces c6941ces, List list) { int i2 = 2 % 2; int i3 = l; int i4 = i3 + 53; n = i4 % 128; int i5 = i4 % 2; c6941ces.d = list; int i6 = i3 + 31; n = i6 % 128; if (i6 % 2 != 0) { int i7 = 48 / 0; } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* bridge */ /* synthetic */ C17702yz b(C6941ces c6941ces) { int i2 = 2 % 2; int i3 = l + 25; n = i3 % 128; int i4 = i3 % 2; C17702yz c17702yz = c6941ces.h; if (i4 != 0) { int i5 = 39 / 0; } return c17702yz; } public static /* synthetic */ void a(C6941ces c6941ces, List list, InterfaceC9224dfg interfaceC9224dfg) { int i2 = 2 % 2; int i3 = n + 35; l = i3 % 128; int i4 = i3 % 2; c6941ces.e(list, interfaceC9224dfg); if (i4 != 0) { return; } Object obj = null; obj.hashCode(); throw null; } }