static int buffered_rate_limit(void *opaque)

{

    QEMUFileBuffered *s = opaque;

    int ret;



    ret = qemu_file_get_error(s->file);

    if (ret) {

        return ret;

    }



    if (s->bytes_xfer > s->xfer_limit)

        return 1;



    return 0;

}

static int buffered_rate_limit(void *opaque)

{

    QEMUFileBuffered *s = opaque;

    int ret;



    ret = qemu_file_get_error(s->file);

    if (ret) {

        return ret;

    }



    if (s->bytes_xfer > s->xfer_limit)

        return 1;



    return 0;

}

static int FUNC_0(void *VAR_0)

{

    QEMUFileBuffered *s = VAR_0;

    int VAR_1;



    VAR_1 = qemu_file_get_error(s->file);

    if (VAR_1) {

        return VAR_1;

    }



    if (s->bytes_xfer > s->xfer_limit)

        return 1;



    return 0;

}

static int FUNC_0(void *VAR_0)
{ QEMUFileBuffered *s = VAR_0; int VAR_1; VAR_1 = qemu_file_get_error(s->file); if (VAR_1) { return VAR_1; } if (s->bytes_xfer > s->xfer_limit)
return 1; return 0; }