int virtqueue_avail_bytes(VirtQueue *vq, unsigned int in_bytes,

                          unsigned int out_bytes)

{

    unsigned int in_total, out_total;



    virtqueue_get_avail_bytes(vq, &in_total, &out_total);

    if ((in_bytes && in_bytes < in_total)

        || (out_bytes && out_bytes < out_total)) {

        return 1;

    }

    return 0;

}

int virtqueue_avail_bytes(VirtQueue *vq, unsigned int in_bytes,

                          unsigned int out_bytes)

{

    unsigned int in_total, out_total;



    virtqueue_get_avail_bytes(vq, &in_total, &out_total);

    if ((in_bytes && in_bytes < in_total)

        || (out_bytes && out_bytes < out_total)) {

        return 1;

    }

    return 0;

}

int FUNC_0(VirtQueue *VAR_0, unsigned int VAR_1,

                          unsigned int VAR_2)

{

    unsigned int VAR_3, VAR_4;



    virtqueue_get_avail_bytes(VAR_0, &VAR_3, &VAR_4);

    if ((VAR_1 && VAR_1 < VAR_3)

        || (VAR_2 && VAR_2 < VAR_4)) {

        return 1;

    }

    return 0;

}

int FUNC_0(VirtQueue *VAR_0, unsigned int VAR_1,
unsigned int VAR_2)
{ unsigned int VAR_3, VAR_4; virtqueue_get_avail_bytes(VAR_0, &VAR_3, &VAR_4); if ((VAR_1 && VAR_1 < VAR_3)
|| (VAR_2 && VAR_2 < VAR_4)) { return 1; } return 0; }