package w6; import b7.i; import java.util.List; import java.util.concurrent.atomic.AtomicReference; /* loaded from: classes2.dex */ public class d { /* renamed from: a, reason: collision with root package name */ private final AtomicReference f15167a = new AtomicReference(); /* renamed from: b, reason: collision with root package name */ private final androidx.collection.a f15168b = new androidx.collection.a(); public List a(Class cls, Class cls2, Class cls3) { List list; i iVar = (i) this.f15167a.getAndSet(null); if (iVar == null) { iVar = new i(cls, cls2, cls3); } else { iVar.a(cls, cls2, cls3); } synchronized (this.f15168b) { list = (List) this.f15168b.get(iVar); } this.f15167a.set(iVar); return list; } public void b(Class cls, Class cls2, Class cls3, List list) { synchronized (this.f15168b) { this.f15168b.put(new i(cls, cls2, cls3), list); } } }