package y6;

/* JADX INFO: renamed from: y6.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1766a implements InterfaceC1768c {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final Object f19034c = new Object();

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public volatile InterfaceC1768c f19035a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public volatile Object f19036b;

    public static InterfaceC1768c a(InterfaceC1768c interfaceC1768c) {
        if (interfaceC1768c instanceof C1766a) {
            return interfaceC1768c;
        }
        C1766a c1766a = new C1766a();
        c1766a.f19036b = f19034c;
        c1766a.f19035a = interfaceC1768c;
        return c1766a;
    }

    @Override // z6.InterfaceC1796a
    public final Object get() {
        Object obj;
        Object obj2 = this.f19036b;
        Object obj3 = f19034c;
        if (obj2 != obj3) {
            return obj2;
        }
        synchronized (this) {
            obj = this.f19036b;
            if (obj == obj3) {
                obj = this.f19035a.get();
                Object obj4 = this.f19036b;
                if (obj4 != obj3 && obj4 != obj) {
                    throw new IllegalStateException("Scoped provider was invoked recursively returning different results: " + obj4 + " & " + obj + ". This is likely due to a circular dependency.");
                }
                this.f19036b = obj;
                this.f19035a = null;
            }
        }
        return obj;
    }
}
