static int ssi_sd_load(QEMUFile *f, void *opaque, int version_id)

{

    SSISlave *ss = SSI_SLAVE(opaque);

    ssi_sd_state *s = (ssi_sd_state *)opaque;

    int i;



    if (version_id != 1)




    s->mode = qemu_get_be32(f);

    s->cmd = qemu_get_be32(f);

    for (i = 0; i < 4; i++)

        s->cmdarg[i] = qemu_get_be32(f);

    for (i = 0; i < 5; i++)

        s->response[i] = qemu_get_be32(f);

    s->arglen = qemu_get_be32(f);





    s->response_pos = qemu_get_be32(f);

    s->stopping = qemu_get_be32(f);








    ss->cs = qemu_get_be32(f);



    return 0;

static int ssi_sd_load(QEMUFile *f, void *opaque, int version_id)

{

    SSISlave *ss = SSI_SLAVE(opaque);

    ssi_sd_state *s = (ssi_sd_state *)opaque;

    int i;



    if (version_id != 1)




    s->mode = qemu_get_be32(f);

    s->cmd = qemu_get_be32(f);

    for (i = 0; i < 4; i++)

        s->cmdarg[i] = qemu_get_be32(f);

    for (i = 0; i < 5; i++)

        s->response[i] = qemu_get_be32(f);

    s->arglen = qemu_get_be32(f);





    s->response_pos = qemu_get_be32(f);

    s->stopping = qemu_get_be32(f);








    ss->cs = qemu_get_be32(f);



    return 0;

static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)

{

    SSISlave *ss = SSI_SLAVE(VAR_1);

    ssi_sd_state *s = (ssi_sd_state *)VAR_1;

    int VAR_3;



    if (VAR_2 != 1)




    s->mode = qemu_get_be32(VAR_0);

    s->cmd = qemu_get_be32(VAR_0);

    for (VAR_3 = 0; VAR_3 < 4; VAR_3++)

        s->cmdarg[VAR_3] = qemu_get_be32(VAR_0);

    for (VAR_3 = 0; VAR_3 < 5; VAR_3++)

        s->response[VAR_3] = qemu_get_be32(VAR_0);

    s->arglen = qemu_get_be32(VAR_0);





    s->response_pos = qemu_get_be32(VAR_0);

    s->stopping = qemu_get_be32(VAR_0);








    ss->cs = qemu_get_be32(VAR_0);



    return 0;

static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)
{ SSISlave *ss = SSI_SLAVE(VAR_1); ssi_sd_state *s = (ssi_sd_state *)VAR_1; int VAR_3; if (VAR_2 != 1)
s->mode = qemu_get_be32(VAR_0); s->cmd = qemu_get_be32(VAR_0); for (VAR_3 = 0; VAR_3 < 4; VAR_3++) s->cmdarg[VAR_3] = qemu_get_be32(VAR_0); for (VAR_3 = 0; VAR_3 < 5; VAR_3++) s->response[VAR_3] = qemu_get_be32(VAR_0); s->arglen = qemu_get_be32(VAR_0); s->response_pos = qemu_get_be32(VAR_0); s->stopping = qemu_get_be32(VAR_0); ss->cs = qemu_get_be32(VAR_0); return 0;