package kotlin.reflect.w.internal;

import kotlin.jvm.functions.Function0;

/* JADX INFO: loaded from: classes.dex */
public class o0<T> extends p0<T> {

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final Function0<T> f6364m;

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

    public o0(Function0<T> function0) {
        if (function0 == null) {
            throw new IllegalArgumentException(String.format("Argument for @NotNull parameter '%s' of %s.%s must not be null", "initializer", "kotlin/reflect/jvm/internal/ReflectProperties$LazyVal", "<init>"));
        }
        this.f6365n = null;
        this.f6364m = function0;
    }

    public T invoke() {
        T t2 = (T) this.f6365n;
        if (t2 != null) {
            if (t2 == p0.f6375f) {
                return null;
            }
            return t2;
        }
        T tInvoke = this.f6364m.invoke();
        this.f6365n = tInvoke == null ? p0.f6375f : tInvoke;
        return tInvoke;
    }
}
