package defpackage;

import java.io.Serializable;
import kotlin.reflect.KDeclarationContainer;

/* JADX INFO: loaded from: classes3.dex */
@cu8
public class gc implements tr3, Serializable {
    private final int arity;
    private final int flags;
    private final boolean isTopLevel;
    private final String name;
    private final Class owner;
    protected final Object receiver;
    private final String signature;

    public gc(Class cls, String str) {
        this(0, pr0.NO_RECEIVER, cls, "<init>", str, 0);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof gc)) {
            return false;
        }
        gc gcVar = (gc) obj;
        return this.isTopLevel == gcVar.isTopLevel && this.arity == gcVar.arity && this.flags == gcVar.flags && cr4.b(this.receiver, gcVar.receiver) && cr4.b(this.owner, gcVar.owner) && this.name.equals(gcVar.name) && this.signature.equals(gcVar.signature);
    }

    @Override // defpackage.tr3
    public int getArity() {
        return this.arity;
    }

    public KDeclarationContainer getOwner() {
        Class cls = this.owner;
        if (cls == null) {
            return null;
        }
        return this.isTopLevel ? iw7.a.getOrCreateKotlinPackage(cls, "") : iw7.a.getOrCreateKotlinClass(cls);
    }

    public int hashCode() {
        Object obj = this.receiver;
        int iHashCode = (obj != null ? obj.hashCode() : 0) * 31;
        Class cls = this.owner;
        return ((((vw2.b(vw2.b((iHashCode + (cls != null ? cls.hashCode() : 0)) * 31, 31, this.name), 31, this.signature) + (this.isTopLevel ? 1231 : 1237)) * 31) + this.arity) * 31) + this.flags;
    }

    public String toString() {
        return iw7.a.renderLambdaToString(this);
    }

    public gc(int i, Object obj, Class cls, String str, String str2, int i2) {
        this.receiver = obj;
        this.owner = cls;
        this.name = str;
        this.signature = str2;
        this.isTopLevel = false;
        this.arity = i;
        this.flags = i2 >> 1;
    }
}
