package kotlin.jvm.internal;

import java.io.Serializable;
import java.lang.annotation.Annotation;
import java.util.List;
import java.util.Map;

/* JADX INFO: loaded from: classes.dex */
public abstract class c implements C1.b, Serializable {
    public static final Object NO_RECEIVER = a.f5089b;
    private final boolean isTopLevel;
    private final String name;
    private final Class owner;
    protected final Object receiver;
    private transient C1.b reflected;
    private final String signature;

    private static class a implements Serializable {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        private static final a f5089b = new a();

        private a() {
        }
    }

    protected c(Object obj, Class cls, String str, String str2, boolean z2) {
        this.receiver = obj;
        this.owner = cls;
        this.name = str;
        this.signature = str2;
        this.isTopLevel = z2;
    }

    @Override // C1.b
    public Object call(Object... objArr) {
        return getReflected().call(objArr);
    }

    @Override // C1.b
    public Object callBy(Map map) {
        return getReflected().callBy(map);
    }

    public C1.b compute() {
        C1.b bVar = this.reflected;
        if (bVar != null) {
            return bVar;
        }
        C1.b bVarComputeReflected = computeReflected();
        this.reflected = bVarComputeReflected;
        return bVarComputeReflected;
    }

    protected abstract C1.b computeReflected();

    @Override // C1.a
    public List<Annotation> getAnnotations() {
        return getReflected().getAnnotations();
    }

    public Object getBoundReceiver() {
        return this.receiver;
    }

    public String getName() {
        return this.name;
    }

    public C1.d getOwner() {
        Class cls = this.owner;
        if (cls == null) {
            return null;
        }
        return this.isTopLevel ? w.c(cls) : w.b(cls);
    }

    @Override // C1.b
    public List<C1.h> getParameters() {
        return getReflected().getParameters();
    }

    protected C1.b getReflected() {
        C1.b bVarCompute = compute();
        if (bVarCompute != this) {
            return bVarCompute;
        }
        throw new x1.b();
    }

    @Override // C1.b
    public C1.k getReturnType() {
        getReflected().getReturnType();
        return null;
    }

    public String getSignature() {
        return this.signature;
    }

    @Override // C1.b
    public List<Object> getTypeParameters() {
        return getReflected().getTypeParameters();
    }

    @Override // C1.b
    public C1.l getVisibility() {
        return getReflected().getVisibility();
    }

    @Override // C1.b
    public boolean isAbstract() {
        return getReflected().isAbstract();
    }

    @Override // C1.b
    public boolean isFinal() {
        return getReflected().isFinal();
    }

    @Override // C1.b
    public boolean isOpen() {
        return getReflected().isOpen();
    }

    @Override // C1.b
    public boolean isSuspend() {
        return getReflected().isSuspend();
    }
}
