static int ipmi_register_netfn(IPMIBmcSim *s, unsigned int netfn,

                               const IPMINetfn *netfnd)

{

    if ((netfn & 1) || (netfn > MAX_NETFNS) || (s->netfns[netfn / 2])) {

        return -1;

    }

    s->netfns[netfn / 2] = netfnd;

    return 0;

}

static int ipmi_register_netfn(IPMIBmcSim *s, unsigned int netfn,

                               const IPMINetfn *netfnd)

{

    if ((netfn & 1) || (netfn > MAX_NETFNS) || (s->netfns[netfn / 2])) {

        return -1;

    }

    s->netfns[netfn / 2] = netfnd;

    return 0;

}

    if ((netfn & 1) || (netfn > MAX_NETFNS) || (s->netfns[netfn / 2])) {
static int FUNC_0(IPMIBmcSim *VAR_0, unsigned int VAR_1,

                               const IPMINetfn *VAR_2)

{

    if ((VAR_1 & 1) || (VAR_1 > MAX_NETFNS) || (VAR_0->netfns[VAR_1 / 2])) {

        return -1;

    }

    VAR_0->netfns[VAR_1 / 2] = VAR_2;

    return 0;

}

static int FUNC_0(IPMIBmcSim *VAR_0, unsigned int VAR_1,
const IPMINetfn *VAR_2)
{ if ((VAR_1 & 1) || (VAR_1 > MAX_NETFNS) || (VAR_0->netfns[VAR_1 / 2])) { return -1; } VAR_0->netfns[VAR_1 / 2] = VAR_2; return 0; }