package t3;

import v4.InterfaceC3128a;

/* JADX INFO: renamed from: t3.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2948a implements InterfaceC3128a {

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

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

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

    public static InterfaceC3128a a(InterfaceC2949b interfaceC2949b) {
        if (interfaceC2949b instanceof C2948a) {
            return interfaceC2949b;
        }
        C2948a c2948a = new C2948a();
        c2948a.f24297b = f24295c;
        c2948a.f24296a = interfaceC2949b;
        return c2948a;
    }

    @Override // v4.InterfaceC3128a
    public final Object get() {
        Object obj;
        Object obj2 = this.f24297b;
        Object obj3 = f24295c;
        if (obj2 != obj3) {
            return obj2;
        }
        synchronized (this) {
            try {
                obj = this.f24297b;
                if (obj == obj3) {
                    obj = this.f24296a.get();
                    Object obj4 = this.f24297b;
                    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.f24297b = obj;
                    this.f24296a = null;
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return obj;
    }
}
