package kotlin.jvm.internal;

import g.a.a.a.a;
import kotlin.reflect.KCallable;
import kotlin.reflect.KFunction;

/* JADX INFO: loaded from: classes.dex */
public class l extends d implements FunctionBase, KFunction {
    private final int arity;
    private final int flags;

    public l(int i2) {
        this(i2, d.NO_RECEIVER, null, null, null, 0);
    }

    public l(int i2, Object obj) {
        this(i2, obj, null, null, null, 0);
    }

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

    @Override // kotlin.jvm.internal.d
    public KCallable computeReflected() {
        return e0.a.a(this);
    }

    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj instanceof l) {
            l lVar = (l) obj;
            return getF6282r().equals(lVar.getF6282r()) && getSignature().equals(lVar.getSignature()) && this.flags == lVar.flags && this.arity == lVar.arity && o.a(getBoundReceiver(), lVar.getBoundReceiver()) && o.a(getOwner(), lVar.getOwner());
        }
        if (obj instanceof KFunction) {
            return obj.equals(compute());
        }
        return false;
    }

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

    @Override // kotlin.jvm.internal.d
    public KFunction getReflected() {
        return (KFunction) super.getReflected();
    }

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

    @Override // kotlin.reflect.KFunction
    public boolean isExternal() {
        return getReflected().isExternal();
    }

    @Override // kotlin.reflect.KFunction
    public boolean isInfix() {
        return getReflected().isInfix();
    }

    @Override // kotlin.reflect.KFunction
    public boolean isInline() {
        return getReflected().isInline();
    }

    @Override // kotlin.reflect.KFunction
    public boolean isOperator() {
        return getReflected().isOperator();
    }

    @Override // kotlin.jvm.internal.d, kotlin.reflect.KCallable
    public boolean isSuspend() {
        return getReflected().isSuspend();
    }

    public String toString() {
        KCallable kCallableCompute = compute();
        if (kCallableCompute != this) {
            return kCallableCompute.toString();
        }
        if ("<init>".equals(getF6282r())) {
            return "constructor (Kotlin reflection is not available)";
        }
        StringBuilder sbF = a.F("function ");
        sbF.append(getF6282r());
        sbF.append(" (Kotlin reflection is not available)");
        return sbF.toString();
    }
}
