static void flush_queued_work(CPUState *cpu)

{

    struct qemu_work_item *wi;



    if (cpu->queued_work_first == NULL) {

        return;

    }



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

        cpu->queued_work_first = wi->next;

        wi->func(wi->data);

        wi->done = true;

        if (wi->free) {

            g_free(wi);

        }

    }

    cpu->queued_work_last = NULL;

    qemu_cond_broadcast(&qemu_work_cond);

}

static void flush_queued_work(CPUState *cpu)

{

    struct qemu_work_item *wi;



    if (cpu->queued_work_first == NULL) {

        return;

    }



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

        cpu->queued_work_first = wi->next;

        wi->func(wi->data);

        wi->done = true;

        if (wi->free) {

            g_free(wi);

        }

    }

    cpu->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 == NULL) {

        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;

        if (VAR_1->free) {

            g_free(VAR_1);

        }

    }

    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 == NULL) { 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; if (VAR_1->free) { g_free(VAR_1); } } VAR_0->queued_work_last = NULL; qemu_cond_broadcast(&qemu_work_cond); }