static void cpu_ioreq_move(ioreq_t *req)

{

    int i;



    if (!req->data_is_ptr) {

        if (req->dir == IOREQ_READ) {

            for (i = 0; i < req->count; i++) {

                read_phys_req_item(req->addr, req, i, &req->data);

            }

        } else if (req->dir == IOREQ_WRITE) {

            for (i = 0; i < req->count; i++) {

                write_phys_req_item(req->addr, req, i, &req->data);

            }

        }

    } else {

        uint64_t tmp;



        if (req->dir == IOREQ_READ) {

            for (i = 0; i < req->count; i++) {

                read_phys_req_item(req->addr, req, i, &tmp);

                write_phys_req_item(req->data, req, i, &tmp);

            }

        } else if (req->dir == IOREQ_WRITE) {

            for (i = 0; i < req->count; i++) {

                read_phys_req_item(req->data, req, i, &tmp);

                write_phys_req_item(req->addr, req, i, &tmp);

            }

        }

    }

}

static void cpu_ioreq_move(ioreq_t *req)

{

    int i;



    if (!req->data_is_ptr) {

        if (req->dir == IOREQ_READ) {

            for (i = 0; i < req->count; i++) {

                read_phys_req_item(req->addr, req, i, &req->data);

            }

        } else if (req->dir == IOREQ_WRITE) {

            for (i = 0; i < req->count; i++) {

                write_phys_req_item(req->addr, req, i, &req->data);

            }

        }

    } else {

        uint64_t tmp;



        if (req->dir == IOREQ_READ) {

            for (i = 0; i < req->count; i++) {

                read_phys_req_item(req->addr, req, i, &tmp);

                write_phys_req_item(req->data, req, i, &tmp);

            }

        } else if (req->dir == IOREQ_WRITE) {

            for (i = 0; i < req->count; i++) {

                read_phys_req_item(req->data, req, i, &tmp);

                write_phys_req_item(req->addr, req, i, &tmp);

            }

        }

    }

}

static void FUNC_0(ioreq_t *VAR_0)

{

    int VAR_1;



    if (!VAR_0->data_is_ptr) {

        if (VAR_0->dir == IOREQ_READ) {

            for (VAR_1 = 0; VAR_1 < VAR_0->count; VAR_1++) {

                read_phys_req_item(VAR_0->addr, VAR_0, VAR_1, &VAR_0->data);

            }

        } else if (VAR_0->dir == IOREQ_WRITE) {

            for (VAR_1 = 0; VAR_1 < VAR_0->count; VAR_1++) {

                write_phys_req_item(VAR_0->addr, VAR_0, VAR_1, &VAR_0->data);

            }

        }

    } else {

        uint64_t tmp;



        if (VAR_0->dir == IOREQ_READ) {

            for (VAR_1 = 0; VAR_1 < VAR_0->count; VAR_1++) {

                read_phys_req_item(VAR_0->addr, VAR_0, VAR_1, &tmp);

                write_phys_req_item(VAR_0->data, VAR_0, VAR_1, &tmp);

            }

        } else if (VAR_0->dir == IOREQ_WRITE) {

            for (VAR_1 = 0; VAR_1 < VAR_0->count; VAR_1++) {

                read_phys_req_item(VAR_0->data, VAR_0, VAR_1, &tmp);

                write_phys_req_item(VAR_0->addr, VAR_0, VAR_1, &tmp);

            }

        }

    }

}

static void FUNC_0(ioreq_t *VAR_0)
{ int VAR_1; if (!VAR_0->data_is_ptr) { if (VAR_0->dir == IOREQ_READ) { for (VAR_1 = 0; VAR_1 < VAR_0->count; VAR_1++) { read_phys_req_item(VAR_0->addr, VAR_0, VAR_1, &VAR_0->data); } } else if (VAR_0->dir == IOREQ_WRITE) { for (VAR_1 = 0; VAR_1 < VAR_0->count; VAR_1++) { write_phys_req_item(VAR_0->addr, VAR_0, VAR_1, &VAR_0->data); } } } else { uint64_t tmp; if (VAR_0->dir == IOREQ_READ) { for (VAR_1 = 0; VAR_1 < VAR_0->count; VAR_1++) { read_phys_req_item(VAR_0->addr, VAR_0, VAR_1, &tmp); write_phys_req_item(VAR_0->data, VAR_0, VAR_1, &tmp); } } else if (VAR_0->dir == IOREQ_WRITE) { for (VAR_1 = 0; VAR_1 < VAR_0->count; VAR_1++) { read_phys_req_item(VAR_0->data, VAR_0, VAR_1, &tmp); write_phys_req_item(VAR_0->addr, VAR_0, VAR_1, &tmp); } } } }