package d0; import d0.z.d.m; import java.io.Serializable; import kotlin.Lazy; import kotlin.jvm.functions.Function0; /* compiled from: Lazy.kt */ public final class s implements Lazy, Serializable { private Object _value = r.a; private Function0 initializer; public s(Function0 function0) { m.checkNotNullParameter(function0, "initializer"); this.initializer = function0; } private final Object writeReplace() { return new d(getValue()); } @Override // kotlin.Lazy public T getValue() { if (this._value == r.a) { Function0 function0 = this.initializer; m.checkNotNull(function0); this._value = function0.mo1invoke(); this.initializer = null; } return (T) this._value; } @Override // kotlin.Lazy public boolean isInitialized() { return this._value != r.a; } @Override // java.lang.Object public String toString() { return isInitialized() ? String.valueOf(getValue()) : "Lazy value not initialized yet."; } }