package r3; /* loaded from: classes2.dex */ public final class o implements q { /* renamed from: c, reason: collision with root package name */ private static final Object f13674c = new Object(); /* renamed from: a, reason: collision with root package name */ private volatile q f13675a; /* renamed from: b, reason: collision with root package name */ private volatile Object f13676b = f13674c; private o(q qVar) { this.f13675a = qVar; } public static q b(q qVar) { return qVar instanceof o ? qVar : new o(qVar); } public static o c(q qVar) { return new o(qVar); } @Override // r3.t public final Object a() { Object obj = this.f13676b; Object obj2 = f13674c; if (obj == obj2) { synchronized (this) { obj = this.f13676b; if (obj == obj2) { obj = this.f13675a.a(); Object obj3 = this.f13676b; if (obj3 != obj2 && obj3 != obj) { throw new IllegalStateException("Scoped provider was invoked recursively returning different results: " + obj3 + " & " + obj + ". This is likely due to a circular dependency."); } this.f13676b = obj; this.f13675a = null; } } } return obj; } }