package o; import com.bumptech.glide.Registry; import java.io.File; import java.util.List; import o.InterfaceC12232euN; import o.SCe; import o.XGP; /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.jdR, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C15921jdR implements XGP, InterfaceC12232euN.IeS { private final List a; private final XGP.IeS b; private final LTe c; private volatile SCe.IeS d; private File e; private int g; private int h; private List> i; private InterfaceC2545agd j; /* JADX INFO: Access modifiers changed from: package-private */ public C15921jdR(LTe lTe, XGP.IeS ieS) { this(lTe.d(), lTe, ieS); } /* JADX INFO: Access modifiers changed from: package-private */ public C15921jdR(List list, LTe lTe, XGP.IeS ieS) { this.h = -1; this.a = list; this.c = lTe; this.b = ieS; } @Override // o.XGP public final boolean c() { while (true) { List> list = this.i; boolean z = false; if (list != null && this.g < list.size()) { this.d = null; while (!z && this.g < this.i.size()) { List> list2 = this.i; int i = this.g; this.g = i + 1; this.d = list2.get(i).e(this.e, this.c.l, this.c.d, this.c.h); if (this.d != null) { LTe lTe = this.c; if (lTe.a.j.c().b(this.d.d.c(), lTe.g, lTe.m) != null) { this.d.d.c(this.c.j, this); z = true; } } } return z; } int i2 = this.h + 1; this.h = i2; if (i2 >= this.a.size()) { return false; } InterfaceC2545agd interfaceC2545agd = this.a.get(this.h); File a = this.c.e.e().a(new VwL(interfaceC2545agd, this.c.n)); this.e = a; if (a != null) { this.j = interfaceC2545agd; this.i = this.c.a.j.c().b((Registry) a); this.g = 0; } } } @Override // o.XGP public final void e() { SCe.IeS ieS = this.d; if (ieS != null) { ieS.d.a(); } } @Override // o.InterfaceC12232euN.IeS public final void a(Object obj) { this.b.e(this.j, obj, this.d.d, pNW.DATA_DISK_CACHE, this.j); } @Override // o.InterfaceC12232euN.IeS public final void a(Exception exc) { this.b.b(this.j, exc, this.d.d, pNW.DATA_DISK_CACHE); } }