package g.h0.c;

import java.util.Objects;

/* JADX INFO: compiled from: FunctionReference.java */
/* JADX INFO: loaded from: classes.dex */
public class i extends c implements h, g.k0.e {
    private final int arity;
    private final int flags;

    public i(int i2) {
        this(i2, c.NO_RECEIVER, null, null, null, 0);
    }

    @Override // g.h0.c.c
    public g.k0.b computeReflected() {
        Objects.requireNonNull(b0.a);
        return this;
    }

    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj instanceof i) {
            i iVar = (i) obj;
            return getName().equals(iVar.getName()) && getSignature().equals(iVar.getSignature()) && this.flags == iVar.flags && this.arity == iVar.arity && l.a(getBoundReceiver(), iVar.getBoundReceiver()) && l.a(getOwner(), iVar.getOwner());
        }
        if (obj instanceof g.k0.e) {
            return obj.equals(compute());
        }
        return false;
    }

    @Override // g.h0.c.h
    public int getArity() {
        return this.arity;
    }

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

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

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

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

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

    @Override // g.h0.c.c, g.k0.b
    public boolean isSuspend() {
        return getReflected().isSuspend();
    }

    public String toString() {
        g.k0.b bVarCompute = compute();
        if (bVarCompute != this) {
            return bVarCompute.toString();
        }
        if ("<init>".equals(getName())) {
            return "constructor (Kotlin reflection is not available)";
        }
        StringBuilder sbB = d.b.a.a.a.B("function ");
        sbB.append(getName());
        sbB.append(" (Kotlin reflection is not available)");
        return sbB.toString();
    }

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

    @Override // g.h0.c.c
    public g.k0.e getReflected() {
        return (g.k0.e) super.getReflected();
    }

    public i(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;
    }
}
