static void flush_queued_work(CPUState *env)

{

    struct qemu_work_item *wi;



    if (!env->queued_work_first)

        return;



    while ((wi = env->queued_work_first)) {

        env->queued_work_first = wi->next;

        wi->func(wi->data);

        wi->done = true;

    }

    env->queued_work_last = NULL;

    qemu_cond_broadcast(&qemu_work_cond);

}

static void flush_queued_work(CPUState *env)

{

    struct qemu_work_item *wi;



    if (!env->queued_work_first)

        return;



    while ((wi = env->queued_work_first)) {

        env->queued_work_first = wi->next;

        wi->func(wi->data);

        wi->done = true;

    }

    env->queued_work_last = NULL;

    qemu_cond_broadcast(&qemu_work_cond);

}

static void FUNC_0(CPUState *VAR_0)

{

    struct qemu_work_item *VAR_1;



    if (!VAR_0->queued_work_first)

        return;



    while ((VAR_1 = VAR_0->queued_work_first)) {

        VAR_0->queued_work_first = VAR_1->next;

        VAR_1->func(VAR_1->data);

        VAR_1->done = true;

    }

    VAR_0->queued_work_last = NULL;

    qemu_cond_broadcast(&qemu_work_cond);

}

static void FUNC_0(CPUState *VAR_0)
{ struct qemu_work_item *VAR_1; if (!VAR_0->queued_work_first)
return; while ((VAR_1 = VAR_0->queued_work_first)) { VAR_0->queued_work_first = VAR_1->next; VAR_1->func(VAR_1->data); VAR_1->done = true; } VAR_0->queued_work_last = NULL; qemu_cond_broadcast(&qemu_work_cond); }