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

{

    SSISlave *ss = SSI_SLAVE(opaque);

    ssd0323_state *s = (ssd0323_state *)opaque;

    int i;



    if (version_id != 1)




    s->cmd_len = qemu_get_be32(f);




    s->cmd = qemu_get_be32(f);

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

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

    s->row = qemu_get_be32(f);




    s->row_start = qemu_get_be32(f);




    s->row_end = qemu_get_be32(f);




    s->col = qemu_get_be32(f);




    s->col_start = qemu_get_be32(f);




    s->col_end = qemu_get_be32(f);




    s->redraw = qemu_get_be32(f);

    s->remap = qemu_get_be32(f);

    s->mode = qemu_get_be32(f);




    qemu_get_buffer(f, s->framebuffer, sizeof(s->framebuffer));



    ss->cs = qemu_get_be32(f);



    return 0;

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

{

    SSISlave *ss = SSI_SLAVE(opaque);

    ssd0323_state *s = (ssd0323_state *)opaque;

    int i;



    if (version_id != 1)




    s->cmd_len = qemu_get_be32(f);




    s->cmd = qemu_get_be32(f);

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

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

    s->row = qemu_get_be32(f);




    s->row_start = qemu_get_be32(f);




    s->row_end = qemu_get_be32(f);




    s->col = qemu_get_be32(f);




    s->col_start = qemu_get_be32(f);




    s->col_end = qemu_get_be32(f);




    s->redraw = qemu_get_be32(f);

    s->remap = qemu_get_be32(f);

    s->mode = qemu_get_be32(f);




    qemu_get_buffer(f, s->framebuffer, sizeof(s->framebuffer));



    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);

    ssd0323_state *s = (ssd0323_state *)VAR_1;

    int VAR_3;



    if (VAR_2 != 1)




    s->cmd_len = qemu_get_be32(VAR_0);




    s->cmd = qemu_get_be32(VAR_0);

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

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

    s->row = qemu_get_be32(VAR_0);




    s->row_start = qemu_get_be32(VAR_0);




    s->row_end = qemu_get_be32(VAR_0);




    s->col = qemu_get_be32(VAR_0);




    s->col_start = qemu_get_be32(VAR_0);




    s->col_end = qemu_get_be32(VAR_0);




    s->redraw = qemu_get_be32(VAR_0);

    s->remap = qemu_get_be32(VAR_0);

    s->mode = qemu_get_be32(VAR_0);




    qemu_get_buffer(VAR_0, s->framebuffer, sizeof(s->framebuffer));



    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); ssd0323_state *s = (ssd0323_state *)VAR_1; int VAR_3; if (VAR_2 != 1)
s->cmd_len = qemu_get_be32(VAR_0); s->cmd = qemu_get_be32(VAR_0); for (VAR_3 = 0; VAR_3 < 8; VAR_3++) s->cmd_data[VAR_3] = qemu_get_be32(VAR_0); s->row = qemu_get_be32(VAR_0); s->row_start = qemu_get_be32(VAR_0); s->row_end = qemu_get_be32(VAR_0); s->col = qemu_get_be32(VAR_0); s->col_start = qemu_get_be32(VAR_0); s->col_end = qemu_get_be32(VAR_0); s->redraw = qemu_get_be32(VAR_0); s->remap = qemu_get_be32(VAR_0); s->mode = qemu_get_be32(VAR_0); qemu_get_buffer(VAR_0, s->framebuffer, sizeof(s->framebuffer)); ss->cs = qemu_get_be32(VAR_0); return 0;