Function at 0x140038f30
Capabilities:
Get number of processors

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x40], r8
mov byte [rbp + 0x2f], dl
mov r13, rcx
mov rax, qword [rcx]
mov ecx, 2
xor r12d, r12d
lea rdi, [0x1400b66e8]
lea r14, [0x140029900]
mov r15, rax
test rax, rax
jne 0x140038fb1
jmp 0x140038f9a
cmp byte [rbp + 0x2f], 0
je 0x140039497
mov rax, r15
lock cmpxchg qword [r13], rcx
je 0x14003934a
mov r15, rax
test rax, rax
je 0x140038f9a
cmp r15, 1
je 0x140038f90
cmp r15, 3
je 0x140039386
mov eax, r15d
and eax, 3
cmp eax, 2
je 0x140038fef
jmp 0x14003947d
mov eax, r15d
and eax, 3
cmp eax, 2
jne 0x140039330
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x60]
cmp eax, 1
je 0x14003903f
test eax, eax
jne 0x1400393f6
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rsi, qword [rcx + rax*8]
lea rcx, [rsi + 0x50]
mov rdx, r14
call fcn.140027d40
mov byte [rsi + 0x60], 1
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x50], 0
jne 0x14003939f
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x50], 0xffffffffffffffff
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x1400390ab
xor ecx, ecx
call fcn.1400148b0
mov ecx, dword [0x1400c32b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 0x58], rax
lock inc qword [rax]
jle 0x14003939b
mov ecx, dword [0x1400c32b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
inc qword [rcx + 0x50]
mov rcx, r15
mov edx, r15d
and edx, 3
sub rcx, rdx
mov qword [rbp + 0x10], rax
mov byte [rbp + 0x20], 0
mov qword [rbp + 0x18], rcx
mov rax, r15
lea rcx, [rbp + 0x12]
lock cmpxchg qword [r13], rcx
je 0x140039300
mov r15, rax
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x140038fe0
lock dec qword [rax]
jne 0x140038fe0
mov rcx, qword [rbp + 0x10]
call fcn.140013530
jmp 0x140038fe0
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x60]
cmp eax, 1
je 0x140039193
test eax, eax
jne 0x140039410
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x50]
mov rdx, r14
call fcn.140027d40
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x60], 1
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x50], 0
jne 0x1400393c9
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x50], 0xffffffffffffffff
mov rbx, qword [rax + 0x58]
test rbx, rbx
jne 0x140039202
xor ecx, ecx
call fcn.1400148b0
mov rbx, rax
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x58], rbx
lock inc qword [rbx]
jle 0x14003939b
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x50]
mov qword [rbp + 8], rbx
lock dec byte [rbx + 0x28]
je 0x14003925d
add rbx, 0x28
mov rsi, qword [0x1400c3230]
test rsi, rsi
je 0x140039279
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
mov r9d, 0xffffffff
call rsi
mov al, 1
lock cmpxchg byte [rbx], r12b
jne 0x140039240
mov rax, qword [rbp + 8]
lock dec qword [rax]
jne 0x140039300
mov rcx, qword [rbp + 8]
call fcn.140013530
jmp 0x140039300
mov rcx, qword [0x1400c3028]
cmp rcx, 0xffffffffffffffff
jne 0x1400392d0
mov qword [rbp - 8], 0xffffffffffffffff
mov rax, qword [0x1400c3050]
lea rcx, [rbp - 8]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x14003942a
mov rcx, qword [rbp - 8]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x1400c3028], rcx
je 0x1400392d0
mov r15, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
mov rax, qword [0x1400c3060]
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rbx], al
mov rax, qword [rbp + 8]
lock dec qword [rax]
je 0x14003926b
nop word cs:[rax + rax]
movzx eax, byte [rbp + 0x20]
test al, al
je 0x140039130
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x140039330
lock dec qword [rax]
jne 0x140039330
mov rcx, qword [rbp + 0x10]
call fcn.140013530
nop word cs:[rax + rax]
mov rax, qword [r13]
mov ecx, 2
mov r15, rax
test rax, rax
jne 0x140038fb1
jmp 0x140038f9a
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x10], 1
cmp r15, 1
mov qword [rbp - 0x38], 3
sete byte [rbp - 0x30]
lea rdx, [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x48]
call qword [rax + 0x20]
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.1400296f0
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
ud2
lea rax, [0x1400b5290]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedlibrary_std_srcio_stdio.rs
lea r9, fcn.140003900
lea r8, [rbp - 0x38]
mov edx, 0x10
call fcn.140039f30
ud2
lea rax, [0x1400b5290]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedlibrary_std_srcio_stdio.rs
lea r9, fcn.140003900
lea r8, [rbp - 0x38]
mov edx, 0x10
call fcn.140039f30
jmp 0x14003947b
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, str.library_std_src_threadmod.rsfailed_to_spawn_thread
mov edx, 0x5e
call fcn.140039b40
ud2
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, str.library_std_src_threadmod.rsfailed_to_spawn_thread
mov edx, 0x5e
call fcn.140039b40
jmp 0x14003947b
mov dword [rbp + 4], eax
lea rax, [rbp + 4]
mov qword [rbp - 0x58], rax
lea rax, [0x140037410]
mov qword [rbp - 0x50], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 1
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x58]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
lea rdx, str._g_v_
lea rcx, [rbp - 0x38]
call fcn.140039b50
ud2
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGOnce_instance_has_previously_been_poisoned
mov edx, 0x40
mov r8, qword [rbp + 0xa0]
call fcn.140039bf0
ud2
lea rax, str.Xj_v_
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 1
mov qword [rbp - 0x38], 0
lea rax, str._rustc_9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0librarycore_src_sliceiter.rs
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 0
lea rcx, [rbp - 0x38]
mov rdx, qword [rbp + 0xa0]
call fcn.140039b50
ud2