// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_x_threads.c
// Function: x_m_thread_func
static vd_t x_m_thread_func( vd_t thread_obj )
{
    if( x_thread_defines_m_thread_func( thread_obj ) )
    {
        return ( vd_t )x_thread_a_m_thread_func( thread_obj );
    }
    else if( x_thread_defines_c_thread_func( thread_obj ) )
    {
        return ( vd_t )x_thread_a_c_thread_func( thread_obj );
    }
    else
    {
        return NULL;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
leaq 0x7adf5(%rip), %r12     # 0x197450
movl (%r12), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r12,%rax,8), %rcx
movq 0x18(%r12,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x11c6b2
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x11c6b2
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x11c6b2
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x11c6bb
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x11c6e2
movabsq $-0x669e595d90fccf30, %rdi # imm = 0x9961A6A26F0330D0
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0x7ad79(%rip), %rdi     # 0x197450
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq (%rbx), %r14
movl (%r12), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r12,%rax,8), %rcx
movq 0x18(%r12,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
cmpq $0x0, 0x10(%r15)
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
je 0x11c77f
cmpq %r14, %rdx
je 0x11c743
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x11c743
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x11c743
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x11c74c
movq (%rax,%rcx), %rax
testq %rax, %rax
jne 0x11c776
movabsq $-0x669e595d90fccf30, %rdi # imm = 0x9961A6A26F0330D0
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0x7ace8(%rip), %rdi     # 0x197450
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r15, %rax
addq $0x10, %rax
jmp 0x11c87a
cmpq %r14, %rdx
je 0x11c7ae
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x11c7ae
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x11c7ae
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x11c7b7
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x11c7de
movabsq $-0x669e595d90fccf30, %rdi # imm = 0x9961A6A26F0330D0
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0x7ac7d(%rip), %rdi     # 0x197450
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
cmpq $0x0, 0x18(%r15)
je 0x11c88a
movq (%rbx), %r14
movl (%r12), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r12,%rax,8), %rcx
movq 0x18(%r12,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x11c843
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x11c843
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x11c843
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x11c84c
movq (%rax,%rcx), %rax
testq %rax, %rax
jne 0x11c876
movabsq $-0x669e595d90fccf30, %rdi # imm = 0x9961A6A26F0330D0
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0x7abe8(%rip), %rdi     # 0x197450
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r15, %rax
addq $0x18, %rax
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *(%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq