static int qiov_is_aligned(BlockDriverState *bs, QEMUIOVector *qiov)

{

    int i;



    for (i = 0; i < qiov->niov; i++) {

        if ((uintptr_t) qiov->iov[i].iov_base % bs->buffer_alignment) {

            return 0;

        }

    }



    return 1;

}

static int qiov_is_aligned(BlockDriverState *bs, QEMUIOVector *qiov)

{

    int i;



    for (i = 0; i < qiov->niov; i++) {

        if ((uintptr_t) qiov->iov[i].iov_base % bs->buffer_alignment) {

            return 0;

        }

    }



    return 1;

}

static int FUNC_0(BlockDriverState *VAR_0, QEMUIOVector *VAR_1)

{

    int VAR_2;



    for (VAR_2 = 0; VAR_2 < VAR_1->niov; VAR_2++) {

        if ((uintptr_t) VAR_1->iov[VAR_2].iov_base % VAR_0->buffer_alignment) {

            return 0;

        }

    }



    return 1;

}

static int FUNC_0(BlockDriverState *VAR_0, QEMUIOVector *VAR_1)
{ int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_1->niov; VAR_2++) { if ((uintptr_t) VAR_1->iov[VAR_2].iov_base % VAR_0->buffer_alignment) { return 0; } } return 1; }