package p2;

/* JADX INFO: renamed from: p2.f, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0949f implements InterfaceC0951h {

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public volatile InterfaceC0950g f9517k;

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

    /* JADX WARN: Multi-variable type inference failed */
    public static C0949f b(InterfaceC0950g interfaceC0950g) {
        if (interfaceC0950g instanceof C0949f) {
            return (C0949f) interfaceC0950g;
        }
        C0949f c0949f = new C0949f();
        c0949f.f9518l = f9516m;
        c0949f.f9517k = interfaceC0950g;
        return c0949f;
    }

    @Override // p2.InterfaceC0951h
    public final Object a() {
        Object objA;
        Object obj = this.f9518l;
        Object obj2 = f9516m;
        if (obj != obj2) {
            return obj;
        }
        synchronized (this) {
            try {
                objA = this.f9518l;
                if (objA == obj2) {
                    objA = this.f9517k.a();
                    Object obj3 = this.f9518l;
                    if (obj3 != obj2 && obj3 != objA) {
                        throw new IllegalStateException("Scoped provider was invoked recursively returning different results: " + obj3 + " & " + objA + ". This is likely due to a circular dependency.");
                    }
                    this.f9518l = objA;
                    this.f9517k = null;
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return objA;
    }
}
