package o; import com.airbnb.deeplinkdispatch.UrlTreeKt; import com.bumptech.glide.load.engine.GlideException; import java.io.IOException; import java.util.ArrayList; import java.util.List; import o.RDy; /* renamed from: o.ahN, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C2582ahN { private final RDy.Sts> a; private final List> b; final yBU c; private final String d; private final Class e; /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.ahN$Sts */ /* loaded from: classes.dex */ public interface Sts { Ezi e(Ezi ezi); } public C2582ahN(Class cls, Class cls2, Class cls3, List> list, yBU ybu, RDy.Sts> sts) { this.e = cls; this.b = list; this.c = ybu; this.a = sts; StringBuilder sb = new StringBuilder("Failed DecodePath{"); sb.append(cls.getSimpleName()); sb.append("->"); sb.append(cls2.getSimpleName()); sb.append("->"); sb.append(cls3.getSimpleName()); sb.append(UrlTreeKt.componentParamSuffix); this.d = sb.toString(); } /* JADX INFO: Access modifiers changed from: package-private */ public final Ezi a(Box box, int i, int i2, unA una) throws GlideException { List d = this.a.d(); if (d != null) { List list = d; try { return d(box, i, i2, una, list); } finally { this.a.d(list); } } throw new NullPointerException("Argument must not be null"); } private Ezi d(Box box, int i, int i2, unA una, List list) throws GlideException { int size = this.b.size(); Ezi ezi = null; for (int i3 = 0; i3 < size; i3++) { iYP iyp = this.b.get(i3); try { if (iyp.a(box.a(), una)) { ezi = iyp.a(box.a(), i, i2, una); } } catch (IOException | OutOfMemoryError | RuntimeException e) { list.add(e); } if (ezi != null) { break; } } if (ezi != null) { return ezi; } throw new GlideException(this.d, new ArrayList(list)); } public final String toString() { StringBuilder sb = new StringBuilder("DecodePath{ dataClass="); sb.append(this.e); sb.append(", decoders="); sb.append(this.b); sb.append(", transcoder="); sb.append(this.c); sb.append(UrlTreeKt.componentParamSuffixChar); return sb.toString(); } }