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

{

    VirtIOBalloon *s = opaque;



    if (version_id != 1)

        return -EINVAL;



    virtio_load(&s->vdev, f);



    s->num_pages = qemu_get_be32(f);

    s->actual = qemu_get_be32(f);

    qemu_get_buffer(f, (uint8_t *)&s->stats_vq_elem, sizeof(VirtQueueElement));

    qemu_get_buffer(f, (uint8_t *)&s->stats_vq_offset, sizeof(size_t));

    qemu_get_buffer(f, (uint8_t *)&s->stats_callback, sizeof(MonitorCompletion));

    qemu_get_buffer(f, (uint8_t *)&s->stats_opaque_callback_data, sizeof(void));



    return 0;

}

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

{

    VirtIOBalloon *s = opaque;



    if (version_id != 1)

        return -EINVAL;



    virtio_load(&s->vdev, f);



    s->num_pages = qemu_get_be32(f);

    s->actual = qemu_get_be32(f);

    qemu_get_buffer(f, (uint8_t *)&s->stats_vq_elem, sizeof(VirtQueueElement));

    qemu_get_buffer(f, (uint8_t *)&s->stats_vq_offset, sizeof(size_t));

    qemu_get_buffer(f, (uint8_t *)&s->stats_callback, sizeof(MonitorCompletion));

    qemu_get_buffer(f, (uint8_t *)&s->stats_opaque_callback_data, sizeof(void));



    return 0;

}

    qemu_get_buffer(f, (uint8_t *)&s->stats_vq_elem, sizeof(VirtQueueElement));     qemu_get_buffer(f, (uint8_t *)&s->stats_vq_offset, sizeof(size_t));     qemu_get_buffer(f, (uint8_t *)&s->stats_callback, sizeof(MonitorCompletion));     qemu_get_buffer(f, (uint8_t *)&s->stats_opaque_callback_data, sizeof(void));
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)

{

    VirtIOBalloon *s = VAR_1;



    if (VAR_2 != 1)

        return -EINVAL;



    virtio_load(&s->vdev, VAR_0);



    s->num_pages = qemu_get_be32(VAR_0);

    s->actual = qemu_get_be32(VAR_0);

    qemu_get_buffer(VAR_0, (uint8_t *)&s->stats_vq_elem, sizeof(VirtQueueElement));

    qemu_get_buffer(VAR_0, (uint8_t *)&s->stats_vq_offset, sizeof(size_t));

    qemu_get_buffer(VAR_0, (uint8_t *)&s->stats_callback, sizeof(MonitorCompletion));

    qemu_get_buffer(VAR_0, (uint8_t *)&s->stats_opaque_callback_data, sizeof(void));



    return 0;

}

static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)
{ VirtIOBalloon *s = VAR_1; if (VAR_2 != 1)
return -EINVAL; virtio_load(&s->vdev, VAR_0); s->num_pages = qemu_get_be32(VAR_0); s->actual = qemu_get_be32(VAR_0); qemu_get_buffer(VAR_0, (uint8_t *)&s->stats_vq_elem, sizeof(VirtQueueElement)); qemu_get_buffer(VAR_0, (uint8_t *)&s->stats_vq_offset, sizeof(size_t)); qemu_get_buffer(VAR_0, (uint8_t *)&s->stats_callback, sizeof(MonitorCompletion)); qemu_get_buffer(VAR_0, (uint8_t *)&s->stats_opaque_callback_data, sizeof(void)); return 0; }