package s2; /* loaded from: classes.dex */ public final class a implements r8.a { /* renamed from: c, reason: collision with root package name */ private static final Object f13996c = new Object(); /* renamed from: a, reason: collision with root package name */ private volatile r8.a f13997a; /* renamed from: b, reason: collision with root package name */ private volatile Object f13998b = f13996c; private a(r8.a aVar) { this.f13997a = aVar; } public static r8.a a(r8.a aVar) { d.b(aVar); return aVar instanceof a ? aVar : new a(aVar); } public static Object b(Object obj, Object obj2) { if (!(obj != f13996c) || obj == obj2) { return obj2; } throw new IllegalStateException("Scoped provider was invoked recursively returning different results: " + obj + " & " + obj2 + ". This is likely due to a circular dependency."); } @Override // r8.a public Object get() { Object obj = this.f13998b; Object obj2 = f13996c; if (obj == obj2) { synchronized (this) { obj = this.f13998b; if (obj == obj2) { obj = this.f13997a.get(); this.f13998b = b(this.f13998b, obj); this.f13997a = null; } } } return obj; } }