package o; import java.util.Iterator; import java.util.List; import o.ZI; /* loaded from: classes4.dex */ public final class aHF extends ZI { private final C16184ly a; public final xNu b; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public aHF(C16903sI c16903sI, xNu xnu, C16184ly c16184ly) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(xnu, ""); C14957gcv.e(c16184ly, ""); this.b = xnu; this.a = c16184ly; } public static /* synthetic */ void c(final aHF ahf, final hMS hms) { C14957gcv.e(ahf, ""); C14957gcv.c(hms, ""); if (ahf.f != 0) { ahf.f.ar_(); } ZI.IeS ieS = new ZI.IeS(ahf, hms) { // from class: o.aHE private hMS a; private aHF b; @Override // o.ZI.IeS public final void e(Object obj) { aHF.b(this.b, this.a, (InterfaceC9183des) obj); } { this.b = ahf; this.a = hms; } }; if (ahf.f != 0) { ieS.e(ahf.f); } } public static /* synthetic */ void c(aHF ahf, final Throwable th) { C14957gcv.e(ahf, ""); C14957gcv.c((Object) th, ""); if (ahf.f != 0) { ahf.f.ar_(); } ZI.IeS ieS = new ZI.IeS(th) { // from class: o.aHI private Throwable b; @Override // o.ZI.IeS public final void e(Object obj) { aHF.a(this.b, (InterfaceC9183des) obj); } { this.b = th; } }; if (ahf.f != 0) { ieS.e(ahf.f); } } public static /* synthetic */ void a(Throwable th, InterfaceC9183des interfaceC9183des) { C14957gcv.e(th, ""); interfaceC9183des.a_(th); } public static /* synthetic */ void b(aHF ahf, hMS hms, InterfaceC9183des interfaceC9183des) { C14957gcv.e(ahf, ""); C14957gcv.e(hms, ""); List e = ahf.a.e(hms.c, hms.a, false, hms.g); C16184ly c16184ly = ahf.a; List d = C16184ly.d(hms.j); String str = hms.e; String str2 = hms.e; Iterator it = e.iterator(); int i = 0; while (true) { if (!it.hasNext()) { i = -1; break; } else if (C14957gcv.b((Object) it.next().g, (Object) str2)) { break; } else { i++; } } interfaceC9183des.e(e, i >= 0 ? i : 0, d, hms.i); } }