package d;

import java.io.Serializable;

/* JADX INFO: compiled from: LazyJVM.kt */
/* JADX INFO: loaded from: classes.dex */
@n
final class t<T> implements i<T>, Serializable {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private d.n0.b.a<? extends T> f2724c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private volatile Object f2725d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private final Object f2726e;

    public t(d.n0.b.a<? extends T> aVar, Object obj) {
        d.n0.c.s.e(aVar, "initializer");
        this.f2724c = aVar;
        this.f2725d = c0.f2568a;
        this.f2726e = obj == null ? this : obj;
    }

    public boolean a() {
        return this.f2725d != c0.f2568a;
    }

    @Override // d.i
    public T getValue() {
        T tA;
        T t = (T) this.f2725d;
        c0 c0Var = c0.f2568a;
        if (t != c0Var) {
            return t;
        }
        synchronized (this.f2726e) {
            tA = (T) this.f2725d;
            if (tA == c0Var) {
                d.n0.b.a<? extends T> aVar = this.f2724c;
                d.n0.c.s.b(aVar);
                tA = aVar.a();
                this.f2725d = tA;
                this.f2724c = null;
            }
        }
        return tA;
    }

    public String toString() {
        return a() ? String.valueOf(getValue()) : "Lazy value not initialized yet.";
    }

    public /* synthetic */ t(d.n0.b.a aVar, Object obj, int i, d.n0.c.l lVar) {
        this(aVar, (i & 2) != 0 ? null : obj);
    }
}
