int main_loop_init(void)

{

    int ret;



    qemu_mutex_lock_iothread();

    ret = qemu_signal_init();

    if (ret) {

        return ret;

    }



    /* Note eventfd must be drained before signalfd handlers run */

    ret = qemu_event_init();

    if (ret) {

        return ret;

    }



    return 0;

}

int main_loop_init(void)

{

    int ret;



    qemu_mutex_lock_iothread();

    ret = qemu_signal_init();

    if (ret) {

        return ret;

    }



    

    ret = qemu_event_init();

    if (ret) {

        return ret;

    }



    return 0;

}

int FUNC_0(void)

{

    int VAR_0;



    qemu_mutex_lock_iothread();

    VAR_0 = qemu_signal_init();

    if (VAR_0) {

        return VAR_0;

    }



    

    VAR_0 = qemu_event_init();

    if (VAR_0) {

        return VAR_0;

    }



    return 0;

}

int FUNC_0(void)
{ int VAR_0; qemu_mutex_lock_iothread(); VAR_0 = qemu_signal_init(); if (VAR_0) { return VAR_0; } VAR_0 = qemu_event_init(); if (VAR_0) { return VAR_0; } return 0; }