static void fw_cfg_write(FWCfgState *s, uint8_t value)

{

    int arch = !!(s->cur_entry & FW_CFG_ARCH_LOCAL);

    FWCfgEntry *e = &s->entries[arch][s->cur_entry & FW_CFG_ENTRY_MASK];



    FW_CFG_DPRINTF("write %d\n", value);



    if (s->cur_entry & FW_CFG_WRITE_CHANNEL && s->cur_offset < e->len) {

        e->data[s->cur_offset++] = value;

        if (s->cur_offset == e->len) {

            e->callback(e->callback_opaque, e->data);

            s->cur_offset = 0;

        }

    }

}

static void fw_cfg_write(FWCfgState *s, uint8_t value)

{

    int arch = !!(s->cur_entry & FW_CFG_ARCH_LOCAL);

    FWCfgEntry *e = &s->entries[arch][s->cur_entry & FW_CFG_ENTRY_MASK];



    FW_CFG_DPRINTF("write %d\n", value);



    if (s->cur_entry & FW_CFG_WRITE_CHANNEL && s->cur_offset < e->len) {

        e->data[s->cur_offset++] = value;

        if (s->cur_offset == e->len) {

            e->callback(e->callback_opaque, e->data);

            s->cur_offset = 0;

        }

    }

}

    if (s->cur_entry & FW_CFG_WRITE_CHANNEL && s->cur_offset < e->len) {
static void FUNC_0(FWCfgState *VAR_0, uint8_t VAR_1)

{

    int VAR_2 = !!(VAR_0->cur_entry & FW_CFG_ARCH_LOCAL);

    FWCfgEntry *e = &VAR_0->entries[VAR_2][VAR_0->cur_entry & FW_CFG_ENTRY_MASK];



    FW_CFG_DPRINTF("write %d\n", VAR_1);



    if (VAR_0->cur_entry & FW_CFG_WRITE_CHANNEL && VAR_0->cur_offset < e->len) {

        e->data[VAR_0->cur_offset++] = VAR_1;

        if (VAR_0->cur_offset == e->len) {

            e->callback(e->callback_opaque, e->data);

            VAR_0->cur_offset = 0;

        }

    }

}

static void FUNC_0(FWCfgState *VAR_0, uint8_t VAR_1)
{ int VAR_2 = !!(VAR_0->cur_entry & FW_CFG_ARCH_LOCAL); FWCfgEntry *e = &VAR_0->entries[VAR_2][VAR_0->cur_entry & FW_CFG_ENTRY_MASK]; FW_CFG_DPRINTF("write %d\n", VAR_1); if (VAR_0->cur_entry & FW_CFG_WRITE_CHANNEL && VAR_0->cur_offset < e->len) { e->data[VAR_0->cur_offset++] = VAR_1; if (VAR_0->cur_offset == e->len) { e->callback(e->callback_opaque, e->data); VAR_0->cur_offset = 0; } } }