package kotlin.jvm.internal;

import kotlin.SinceKotlin;

/* JADX INFO: loaded from: classes.dex */
public abstract class FunctionReference extends CallableReference implements e, yd.c {
    private final int arity;

    @SinceKotlin(version = "1.4")
    private final int flags;

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

    @Override // kotlin.jvm.internal.CallableReference
    public final yd.a c() {
        g.f29240a.getClass();
        return this;
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj instanceof FunctionReference) {
            FunctionReference functionReference = (FunctionReference) obj;
            return d().equals(functionReference.d()) && f().equals(functionReference.f()) && this.flags == functionReference.flags && this.arity == functionReference.arity && nb.g.c(this.receiver, functionReference.receiver) && nb.g.c(e(), functionReference.e());
        }
        if (!(obj instanceof yd.c)) {
            return false;
        }
        yd.a aVar = this.f29232a;
        if (aVar == null) {
            c();
            this.f29232a = this;
            aVar = this;
        }
        return obj.equals(aVar);
    }

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

    public final int hashCode() {
        return f().hashCode() + ((d().hashCode() + (e() == null ? 0 : e().hashCode() * 31)) * 31);
    }

    public final String toString() {
        yd.a aVar = this.f29232a;
        if (aVar == null) {
            c();
            this.f29232a = this;
            aVar = this;
        }
        if (aVar != this) {
            return aVar.toString();
        }
        if ("<init>".equals(d())) {
            return "constructor (Kotlin reflection is not available)";
        }
        return "function " + d() + " (Kotlin reflection is not available)";
    }
}
