package o; import java.util.Iterator; import java.util.List; import o.ZI; /* renamed from: o.aHy, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C1572aHy extends ZI { public String c; private final C16184ly d; public final xNu e; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C1572aHy(C16903sI c16903sI, xNu xnu, C16184ly c16184ly) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(xnu, ""); C14957gcv.e(c16184ly, ""); this.e = xnu; this.d = c16184ly; } public static /* synthetic */ void c(C1572aHy c1572aHy, final Throwable th) { C14957gcv.e(c1572aHy, ""); C14957gcv.c((Object) th, ""); if (c1572aHy.f != 0) { c1572aHy.f.ar_(); } ZI.IeS ieS = new ZI.IeS(th) { // from class: o.aHC private Throwable c; @Override // o.ZI.IeS public final void e(Object obj) { C1572aHy.e(this.c, (InterfaceC9179deo) obj); } { this.c = th; } }; if (c1572aHy.f != 0) { ieS.e(c1572aHy.f); } } public static /* synthetic */ void e(Throwable th, InterfaceC9179deo interfaceC9179deo) { C14957gcv.e(th, ""); interfaceC9179deo.d(th); } public static /* synthetic */ void a(final C1572aHy c1572aHy, final hMS hms) { C14957gcv.e(c1572aHy, ""); C14957gcv.c(hms, ""); if (c1572aHy.f != 0) { c1572aHy.f.ar_(); } ZI.IeS ieS = new ZI.IeS(c1572aHy, hms) { // from class: o.aHB private hMS a; private C1572aHy d; @Override // o.ZI.IeS public final void e(Object obj) { C1572aHy.b(this.d, this.a, (InterfaceC9179deo) obj); } { this.d = c1572aHy; this.a = hms; } }; if (c1572aHy.f != 0) { ieS.e(c1572aHy.f); } } public static /* synthetic */ void b(C1572aHy c1572aHy, hMS hms, InterfaceC9179deo interfaceC9179deo) { C14957gcv.e(c1572aHy, ""); C14957gcv.e(hms, ""); List e = c1572aHy.d.e(hms.c, hms.a, false, hms.g); C16184ly c16184ly = c1572aHy.d; List d = C16184ly.d(hms.j); String str = c1572aHy.c; if (str == null) { str = 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) str)) { break; } else { i++; } } Integer num = i < 0 ? 0 : null; if (num != null) { i = num.intValue(); } interfaceC9179deo.c(e, i, d, hms.i); } @Override // o.ZI public final void w_() { xNu xnu = this.e; if (!xnu.h.isDisposed()) { xnu.h.dispose(); } super.w_(); } }