int fw_cfg_add_bytes(FWCfgState *s, uint16_t key, uint8_t *data, uint32_t len)

{

    int arch = !!(key & FW_CFG_ARCH_LOCAL);



    key &= FW_CFG_ENTRY_MASK;



    if (key >= FW_CFG_MAX_ENTRY)

        return 0;



    s->entries[arch][key].data = data;

    s->entries[arch][key].len = len;



    return 1;

}

int fw_cfg_add_bytes(FWCfgState *s, uint16_t key, uint8_t *data, uint32_t len)

{

    int arch = !!(key & FW_CFG_ARCH_LOCAL);



    key &= FW_CFG_ENTRY_MASK;



    if (key >= FW_CFG_MAX_ENTRY)

        return 0;



    s->entries[arch][key].data = data;

    s->entries[arch][key].len = len;



    return 1;

}

int fw_cfg_add_bytes(FWCfgState *s, uint16_t key, uint8_t *data, uint32_t len)     if (key >= FW_CFG_MAX_ENTRY)         return 0;     return 1;         return 0;         return 0;     return 1;         return 0;     return 1;
int FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, uint8_t *VAR_2, uint32_t VAR_3)

{

    int VAR_4 = !!(VAR_1 & FW_CFG_ARCH_LOCAL);



    VAR_1 &= FW_CFG_ENTRY_MASK;



    if (VAR_1 >= FW_CFG_MAX_ENTRY)

        return 0;



    VAR_0->entries[VAR_4][VAR_1].VAR_2 = VAR_2;

    VAR_0->entries[VAR_4][VAR_1].VAR_3 = VAR_3;



    return 1;

}

int FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, uint8_t *VAR_2, uint32_t VAR_3)
{ int VAR_4 = !!(VAR_1 & FW_CFG_ARCH_LOCAL); VAR_1 &= FW_CFG_ENTRY_MASK; if (VAR_1 >= FW_CFG_MAX_ENTRY)
return 0; VAR_0->entries[VAR_4][VAR_1].VAR_2 = VAR_2; VAR_0->entries[VAR_4][VAR_1].VAR_3 = VAR_3; return 1; }