package o;

import java.io.Serializable;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class W30 implements InterfaceC3085zK, Serializable {
    public static final AtomicReferenceFieldUpdater n = AtomicReferenceFieldUpdater.newUpdater(W30.class, Object.class, "m");
    public volatile NC l;
    public volatile Object m;

    private final Object writeReplace() {
        return new C1753lH(getValue());
    }

    @Override // o.InterfaceC3085zK
    public final Object getValue() {
        Object obj = this.m;
        C0669Zu c0669Zu = C0669Zu.b0;
        if (obj != c0669Zu) {
            return obj;
        }
        NC nc = this.l;
        if (nc != null) {
            Object objA = nc.a();
            AtomicReferenceFieldUpdater atomicReferenceFieldUpdater = n;
            while (!atomicReferenceFieldUpdater.compareAndSet(this, c0669Zu, objA)) {
                if (atomicReferenceFieldUpdater.get(this) != c0669Zu) {
                }
            }
            this.l = null;
            return objA;
        }
        return this.m;
    }

    public final String toString() {
        return this.m != C0669Zu.b0 ? String.valueOf(getValue()) : "Lazy value not initialized yet.";
    }
}
