static int qemu_laio_process_requests(void *opaque)

{

    struct qemu_laio_state *s = opaque;

    struct qemu_laiocb *laiocb, *next;

    int res = 0;



    QLIST_FOREACH_SAFE (laiocb, &s->completed_reqs, node, next) {

        if (laiocb->async_context_id == get_async_context_id()) {

            qemu_laio_process_completion(s, laiocb);

            QLIST_REMOVE(laiocb, node);

            res = 1;

        }

    }



    return res;

}

static int qemu_laio_process_requests(void *opaque)

{

    struct qemu_laio_state *s = opaque;

    struct qemu_laiocb *laiocb, *next;

    int res = 0;



    QLIST_FOREACH_SAFE (laiocb, &s->completed_reqs, node, next) {

        if (laiocb->async_context_id == get_async_context_id()) {

            qemu_laio_process_completion(s, laiocb);

            QLIST_REMOVE(laiocb, node);

            res = 1;

        }

    }



    return res;

}

static int FUNC_0(void *VAR_0)

{

    struct qemu_laio_state *VAR_1 = VAR_0;

    struct qemu_laiocb *VAR_2, *VAR_3;

    int VAR_4 = 0;



    QLIST_FOREACH_SAFE (VAR_2, &VAR_1->completed_reqs, node, VAR_3) {

        if (VAR_2->async_context_id == get_async_context_id()) {

            qemu_laio_process_completion(VAR_1, VAR_2);

            QLIST_REMOVE(VAR_2, node);

            VAR_4 = 1;

        }

    }



    return VAR_4;

}

static int FUNC_0(void *VAR_0)
{ struct qemu_laio_state *VAR_1 = VAR_0; struct qemu_laiocb *VAR_2, *VAR_3; int VAR_4 = 0; QLIST_FOREACH_SAFE (VAR_2, &VAR_1->completed_reqs, node, VAR_3) { if (VAR_2->async_context_id == get_async_context_id()) { qemu_laio_process_completion(VAR_1, VAR_2); QLIST_REMOVE(VAR_2, node); VAR_4 = 1; } } return VAR_4; }