package c1;

import c4.InterfaceC0342a;

/* JADX INFO: renamed from: c1.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0335a implements InterfaceC0342a {

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

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

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

    public static InterfaceC0342a a(InterfaceC0336b interfaceC0336b) {
        if (interfaceC0336b instanceof C0335a) {
            return interfaceC0336b;
        }
        C0335a c0335a = new C0335a();
        c0335a.f4715l = f4713m;
        c0335a.f4714k = interfaceC0336b;
        return c0335a;
    }

    @Override // c4.InterfaceC0342a
    public final Object get() {
        Object obj;
        Object obj2 = this.f4715l;
        Object obj3 = f4713m;
        if (obj2 != obj3) {
            return obj2;
        }
        synchronized (this) {
            try {
                obj = this.f4715l;
                if (obj == obj3) {
                    obj = this.f4714k.get();
                    Object obj4 = this.f4715l;
                    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.f4715l = obj;
                    this.f4714k = null;
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return obj;
    }
}
