int qemu_put_qemu_file(QEMUFile *f_des, QEMUFile *f_src)

{

    int len = 0;



    if (f_src->buf_index > 0) {

        len = f_src->buf_index;

        qemu_put_buffer(f_des, f_src->buf, f_src->buf_index);

        f_src->buf_index = 0;


    }

    return len;

}
int qemu_put_qemu_file(QEMUFile *f_des, QEMUFile *f_src)

{

    int len = 0;



    if (f_src->buf_index > 0) {

        len = f_src->buf_index;

        qemu_put_buffer(f_des, f_src->buf, f_src->buf_index);

        f_src->buf_index = 0;


    }

    return len;

}
int FUNC_0(QEMUFile *VAR_0, QEMUFile *VAR_1)

{

    int VAR_2 = 0;



    if (VAR_1->buf_index > 0) {

        VAR_2 = VAR_1->buf_index;

        qemu_put_buffer(VAR_0, VAR_1->buf, VAR_1->buf_index);

        VAR_1->buf_index = 0;


    }

    return VAR_2;

}
int FUNC_0(QEMUFile *VAR_0, QEMUFile *VAR_1)
{ int VAR_2 = 0; if (VAR_1->buf_index > 0) { VAR_2 = VAR_1->buf_index; qemu_put_buffer(VAR_0, VAR_1->buf, VAR_1->buf_index); VAR_1->buf_index = 0; } return VAR_2; }