package defpackage;

import com.bumptech.glide.load.engine.GlideException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/* renamed from: ᵴʾˈ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4627 {

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final String f17113;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final InterfaceC3956 f17114;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final List f17115;

    public C4627(Class cls, Class cls2, Class cls3, List list, InterfaceC3956 interfaceC3956) {
        this.f17114 = interfaceC3956;
        if (list.isEmpty()) {
            ᵹˉᵞ.ˌᵜᵹᵩ("Must not be empty.");
            throw null;
        }
        this.f17115 = list;
        this.f17113 = "Failed LoadPath{" + cls.getSimpleName() + "->" + cls2.getSimpleName() + "->" + cls3.getSimpleName() + "}";
    }

    public final String toString() {
        return "LoadPath{decodePaths=" + Arrays.toString(this.f17115.toArray()) + '}';
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final InterfaceC1725 m9813(int i, int i2, InterfaceC2986 interfaceC2986, C0210 c0210, C2124 c2124) {
        InterfaceC3956 interfaceC3956 = this.f17114;
        List list = (List) interfaceC3956.mo8275();
        ᵼᵙᵖᵱ.ˏˋٴ(list, "Argument must not be null");
        try {
            List list2 = this.f17115;
            int size = list2.size();
            InterfaceC1725 interfaceC1725M1494 = null;
            for (int i3 = 0; i3 < size; i3++) {
                try {
                    interfaceC1725M1494 = ((C0215) list2.get(i3)).m1494(i, i2, interfaceC2986, c0210, c2124);
                } catch (GlideException e) {
                    list.add(e);
                }
                if (interfaceC1725M1494 != null) {
                    break;
                }
            }
            if (interfaceC1725M1494 != null) {
                return interfaceC1725M1494;
            }
            throw new GlideException(this.f17113, new ArrayList(list));
        } finally {
            interfaceC3956.mo8276(list);
        }
    }
}
