package kotlin.jvm.internal;

/* loaded from: classes3.dex */
public abstract class p extends f implements o, kn.g {
    private final int arity;
    private final int flags;

    public p(int i10) {
        this(i10, f.NO_RECEIVER, null, null, null, 0);
    }

    @Override // kotlin.jvm.internal.f
    protected kn.c computeReflected() {
        return p0.a(this);
    }

    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj instanceof p) {
            p pVar = (p) obj;
            return getName().equals(pVar.getName()) && getSignature().equals(pVar.getSignature()) && this.flags == pVar.flags && this.arity == pVar.arity && t.b(getBoundReceiver(), pVar.getBoundReceiver()) && t.b(getOwner(), pVar.getOwner());
        }
        if (obj instanceof kn.g) {
            return obj.equals(compute());
        }
        return false;
    }

    @Override // kotlin.jvm.internal.o
    public int getArity() {
        return this.arity;
    }

    public int hashCode() {
        return (((getOwner() == null ? 0 : getOwner().hashCode() * 31) + getName().hashCode()) * 31) + getSignature().hashCode();
    }

    @Override // kn.g
    public boolean isExternal() {
        return getReflected().isExternal();
    }

    @Override // kn.g
    public boolean isInfix() {
        return getReflected().isInfix();
    }

    @Override // kn.g
    public boolean isInline() {
        return getReflected().isInline();
    }

    @Override // kn.g
    public boolean isOperator() {
        return getReflected().isOperator();
    }

    @Override // kotlin.jvm.internal.f, kn.c
    public boolean isSuspend() {
        return getReflected().isSuspend();
    }

    public String toString() {
        kn.c compute = compute();
        if (compute != this) {
            return compute.toString();
        }
        if ("<init>".equals(getName())) {
            return "constructor (Kotlin reflection is not available)";
        }
        return "function " + getName() + " (Kotlin reflection is not available)";
    }

    public p(int i10, Object obj) {
        this(i10, obj, null, null, null, 0);
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // kotlin.jvm.internal.f
    public kn.g getReflected() {
        return (kn.g) super.getReflected();
    }

    public p(int i10, Object obj, Class cls, String str, String str2, int i11) {
        super(obj, cls, str, str2, (i11 & 1) == 1);
        this.arity = i10;
        this.flags = i11 >> 1;
    }
}
