void qemu_thread_get_self(QemuThread *thread)

{

    if (!thread->thread) {

        /* In the main thread of the process.  Initialize the QemuThread

           pointer in TLS, and use the dummy GetCurrentThread handle as

           the identifier for qemu_thread_is_self.  */

        qemu_thread_init();

        TlsSetValue(qemu_thread_tls_index, thread);

        thread->thread = GetCurrentThread();

    }

}

void qemu_thread_get_self(QemuThread *thread)

{

    if (!thread->thread) {

        





        qemu_thread_init();

        TlsSetValue(qemu_thread_tls_index, thread);

        thread->thread = GetCurrentThread();

    }

}

    if (!thread->thread) {         qemu_thread_init();         TlsSetValue(qemu_thread_tls_index, thread);         thread->thread = GetCurrentThread();
void FUNC_0(QemuThread *VAR_0)

{

    if (!VAR_0->VAR_0) {

        





        qemu_thread_init();

        TlsSetValue(qemu_thread_tls_index, VAR_0);

        VAR_0->VAR_0 = GetCurrentThread();

    }

}

void FUNC_0(QemuThread *VAR_0)
{ if (!VAR_0->VAR_0) { qemu_thread_init(); TlsSetValue(qemu_thread_tls_index, VAR_0); VAR_0->VAR_0 = GetCurrentThread(); } }