package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.As, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0018As implements BZ {
    public static final Object n = new Object();
    public volatile InterfaceC2956xx l;
    public volatile Object m;

    public static BZ a(InterfaceC2956xx interfaceC2956xx) {
        if (interfaceC2956xx instanceof C0018As) {
            return interfaceC2956xx;
        }
        C0018As c0018As = new C0018As();
        c0018As.m = n;
        c0018As.l = interfaceC2956xx;
        return c0018As;
    }

    @Override // o.CZ
    public final Object get() {
        Object obj;
        Object obj2 = this.m;
        Object obj3 = n;
        if (obj2 != obj3) {
            return obj2;
        }
        synchronized (this) {
            try {
                obj = this.m;
                if (obj == obj3) {
                    obj = this.l.get();
                    Object obj4 = this.m;
                    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.m = obj;
                    this.l = null;
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return obj;
    }
}
