package o; import java.util.Collection; import java.util.Iterator; import java.util.List; import o.C0690Mh; import o.ZI; /* renamed from: o.cqj */ /* loaded from: classes4.dex */ public final class C7566cqj extends ZI { private final tLY b; private final C0334Ei c; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C7566cqj(C16903sI c16903sI, tLY tly, C0334Ei c0334Ei) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(tly, ""); C14957gcv.e(c0334Ei, ""); this.b = tly; this.c = c0334Ei; } /* renamed from: o.cqj$RVV */ /* loaded from: classes4.dex */ public static final class RVV { private RVV() { } public /* synthetic */ RVV(byte b) { this(); } } public final void b(String str, String str2, String str3, UE ue) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); C14957gcv.e(str3, ""); tLY tly = this.b; tly.d(tly.c(), new fSQ(this, ue, str, str2, str3) { // from class: o.cqn private String a; private UE b; private C7566cqj c; private String d; private String e; @Override // o.fSQ public final void c(Object obj) { C7566cqj.c(this.c, this.b, this.e, this.d, this.a, (List) obj); } { this.c = this; this.b = ue; this.e = str; this.d = str2; this.a = str3; } }, new fSQ(this, ue) { // from class: o.cqq private UE c; private C7566cqj e; @Override // o.fSQ public final void c(Object obj) { C7566cqj.c(this.e, this.c, (Throwable) obj); } { this.e = this; this.c = ue; } }); } public static /* synthetic */ void c(C7566cqj c7566cqj, UE ue, Throwable th) { C14957gcv.e(c7566cqj, ""); C14957gcv.c((Object) th, ""); C7572cqp c7572cqp = new C7572cqp(ue, c7566cqj, th); if (c7566cqj.f != 0) { c7572cqp.e(c7566cqj.f); } } public static /* synthetic */ void d(UE ue, C7566cqj c7566cqj, Throwable th, InterfaceC9555dlu interfaceC9555dlu) { C14957gcv.e(c7566cqj, ""); C14957gcv.e(th, ""); if (ue == null) { interfaceC9555dlu.e(c7566cqj.j.d(th, C0690Mh.IeS.NAVIGATE_BACK)); } else { interfaceC9555dlu.e(c7566cqj.j.c(th, new Runnable(interfaceC9555dlu, ue) { // from class: o.cqo private UE b; private InterfaceC9555dlu c; @Override // java.lang.Runnable public final void run() { this.c.c(this.b); } { this.c = interfaceC9555dlu; this.b = ue; } })); } } public static /* synthetic */ void c(C7566cqj c7566cqj, UE ue, String str, String str2, String str3, List list) { C14957gcv.e(c7566cqj, ""); C14957gcv.e(str, ""); C14957gcv.e(str2, ""); C14957gcv.e(str3, ""); List list2 = (List) C16157lj.c(new Object[]{list, new C0338Ek(c7566cqj.c)}, -1846295624, 1846295631, (int) System.currentTimeMillis()); C14957gcv.c(list2, ""); for (C1226Yl c1226Yl : list2) { if (gdZ.a(str, String.valueOf(c1226Yl.m), true)) { c1226Yl.a = true; C0910Ri a = C0910Ri.a(); a.g = str2; a.i = str3; ZI.IeS ieS = new ZI.IeS(c1226Yl, a) { // from class: o.cqm private C1226Yl a; private C0910Ri e; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9555dlu) obj).c(this.a, this.e); } { this.a = c1226Yl; this.e = a; } }; if (c7566cqj.f != 0) { ieS.e(c7566cqj.f); } } } C14957gcv.c(list, ""); List list3 = list; if (!(list3 instanceof Collection) || !list3.isEmpty()) { Iterator it = list3.iterator(); int i = 0; while (it.hasNext()) { if (C14957gcv.b((Object) str, (Object) String.valueOf(((BOc) it.next()).c)) && (i = i + 1) < 0) { throw new ArithmeticException("Count overflow has happened."); } } if (i != 0) { return; } } C7572cqp c7572cqp = new C7572cqp(ue, c7566cqj, new Throwable()); if (c7566cqj.f != 0) { c7572cqp.e(c7566cqj.f); } } static { new RVV((byte) 0); } }