package o; import com.bumptech.glide.Registry; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; import o.RunnableC3281aua; import o.SCe; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public final class LTe { Fqf a; LHy b; boolean c; int d; RunnableC3281aua.IeS e; boolean f; Class g; unA h; Object i; EnumC3495ayd j; Map, wfh> k; int l; Class m; InterfaceC2545agd n; private boolean q; private boolean s; private final List> r = new ArrayList(); /* renamed from: o, reason: collision with root package name */ private final List f8251o = new ArrayList(); /* JADX INFO: Access modifiers changed from: package-private */ public final void c() { this.a = null; this.i = null; this.n = null; this.g = null; this.m = null; this.h = null; this.j = null; this.k = null; this.b = null; this.r.clear(); this.s = false; this.f8251o.clear(); this.q = false; } /* JADX INFO: Access modifiers changed from: package-private */ public final wfh b(Class cls) { wfh wfhVar = (wfh) this.k.get(cls); if (wfhVar == null) { Iterator, wfh>> it = this.k.entrySet().iterator(); while (true) { if (!it.hasNext()) { break; } Map.Entry, wfh> next = it.next(); if (next.getKey().isAssignableFrom(cls)) { wfhVar = (wfh) next.getValue(); break; } } } if (wfhVar != null) { return wfhVar; } if (this.k.isEmpty() && this.f) { StringBuilder sb = new StringBuilder("Missing transformation for "); sb.append(cls); sb.append(". If you wish to ignore unknown resource types, use the optional transformation methods."); throw new IllegalArgumentException(sb.toString()); } return tiJ.e(); } /* JADX INFO: Access modifiers changed from: package-private */ public final List> b() { if (!this.s) { this.s = true; this.r.clear(); List b = this.a.j.c().b((Registry) this.i); int size = b.size(); for (int i = 0; i < size; i++) { SCe.IeS e = ((SCe) b.get(i)).e(this.i, this.l, this.d, this.h); if (e != null) { this.r.add(e); } } } return this.r; } /* JADX INFO: Access modifiers changed from: package-private */ public final List d() { if (!this.q) { this.q = true; this.f8251o.clear(); List> b = b(); int size = b.size(); for (int i = 0; i < size; i++) { SCe.IeS ieS = b.get(i); if (!this.f8251o.contains(ieS.e)) { this.f8251o.add(ieS.e); } for (int i2 = 0; i2 < ieS.a.size(); i2++) { if (!this.f8251o.contains(ieS.a.get(i2))) { this.f8251o.add(ieS.a.get(i2)); } } } } return this.f8251o; } }