static void fw_cfg_data_mem_write(void *opaque, hwaddr addr,

                                  uint64_t value, unsigned size)

{

    FWCfgState *s = opaque;

    uint8_t buf[8];

    unsigned i;



    switch (size) {

    case 1:

        buf[0] = value;

        break;

    case 2:

        stw_he_p(buf, value);

        break;

    case 4:

        stl_he_p(buf, value);

        break;

    case 8:

        stq_he_p(buf, value);

        break;

    default:

        abort();

    }

    for (i = 0; i < size; ++i) {

        fw_cfg_write(s, buf[i]);

    }

}

static void fw_cfg_data_mem_write(void *opaque, hwaddr addr,

                                  uint64_t value, unsigned size)

{

    FWCfgState *s = opaque;

    uint8_t buf[8];

    unsigned i;



    switch (size) {

    case 1:

        buf[0] = value;

        break;

    case 2:

        stw_he_p(buf, value);

        break;

    case 4:

        stl_he_p(buf, value);

        break;

    case 8:

        stq_he_p(buf, value);

        break;

    default:

        abort();

    }

    for (i = 0; i < size; ++i) {

        fw_cfg_write(s, buf[i]);

    }

}

    uint8_t buf[8];     switch (size) {     case 1:     case 2:     case 4:     case 8:     uint8_t buf[8];     unsigned i;     switch (size) {     case 1:         buf[0] = value;         break;     case 2:         stw_he_p(buf, value);         break;     case 4:         stl_he_p(buf, value);         break;     case 8:         stq_he_p(buf, value);         break;     default:         abort();     for (i = 0; i < size; ++i) {         fw_cfg_write(s, buf[i]);
static void FUNC_0(void *VAR_0, hwaddr VAR_1,

                                  uint64_t VAR_2, unsigned VAR_3)

{

    FWCfgState *s = VAR_0;

    uint8_t buf[8];

    unsigned VAR_4;



    switch (VAR_3) {

    case 1:

        buf[0] = VAR_2;

        break;

    case 2:

        stw_he_p(buf, VAR_2);

        break;

    case 4:

        stl_he_p(buf, VAR_2);

        break;

    case 8:

        stq_he_p(buf, VAR_2);

        break;

    default:

        abort();

    }

    for (VAR_4 = 0; VAR_4 < VAR_3; ++VAR_4) {

        fw_cfg_write(s, buf[VAR_4]);

    }

}

static void FUNC_0(void *VAR_0, hwaddr VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{ FWCfgState *s = VAR_0; uint8_t buf[8]; unsigned VAR_4; switch (VAR_3) { case 1:
buf[0] = VAR_2; break; case 2:
stw_he_p(buf, VAR_2); break; case 4:
stl_he_p(buf, VAR_2); break; case 8:
stq_he_p(buf, VAR_2); break; default:
abort(); } for (VAR_4 = 0; VAR_4 < VAR_3; ++VAR_4) { fw_cfg_write(s, buf[VAR_4]); } }