Function at 0x1401412a0
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 r14d, edx
mov qword [rbp + 0x28], rcx
mov rax, qword [rcx]
lea rbx, [rbp - 0x36]
xor r15d, r15d
lea r12, [0x140154210]
lea r13, [0x140047c20]
jmp 0x140141310
test r14b, r14b
je 0x1401417a9
mov rax, rsi
mov rcx, qword [rbp + 0x28]
mov edx, 2
lock cmpxchg qword [rcx], rdx
je 0x14014166c
mov rsi, rax
test rax, rax
je 0x1401412f9
cmp rsi, 1
je 0x1401412f0
cmp rsi, 3
je 0x140141698
mov eax, esi
and eax, 3
cmp eax, 2
je 0x14014134e
jmp 0x14014178f
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x140141660
mov eax, dword [0x14017dae8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x60]
cmp eax, 1
je 0x14014139e
test eax, eax
jne 0x140141708
mov eax, dword [0x14017dae8]
mov rcx, qword gs:[0x58]
mov rdi, qword [rcx + rax*8]
lea rcx, [rdi + 0x50]
mov rdx, r13
call fcn.140047c50
mov byte [rdi + 0x60], 1
mov eax, dword [0x14017dae8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x50], 0
jne 0x1401416b1
mov eax, dword [0x14017dae8]
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 0x14014140a
xor ecx, ecx
call fcn.140047680
mov ecx, dword [0x14017dae8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 0x58], rax
lock inc qword [rax]
jle 0x1401416ad
mov ecx, dword [0x14017dae8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
inc qword [rcx + 0x50]
mov rcx, rsi
add rcx, 0xfffffffffffffffe
mov qword [rbp - 0x38], rax
mov byte [rbp - 0x28], 0
mov qword [rbp - 0x30], rcx
mov rax, rsi
mov rcx, qword [rbp + 0x28]
lock cmpxchg qword [rcx], rbx
je 0x14014163f
mov rsi, rax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140141340
lock dec qword [rcx]
jne 0x140141340
call fcn.140047d10
jmp 0x140141340
mov eax, dword [0x14017dae8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x60]
cmp eax, 1
je 0x1401414e3
test eax, eax
jne 0x140141722
mov eax, dword [0x14017dae8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x50]
mov rdx, r13
call fcn.140047c50
mov eax, dword [0x14017dae8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x60], 1
mov eax, dword [0x14017dae8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x50], 0
jne 0x1401416db
mov eax, dword [0x14017dae8]
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 0x14014154f
xor ecx, ecx
call fcn.140047680
mov edx, dword [0x14017dae8]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
mov qword [rcx + 0x58], rax
lock inc qword [rax]
jle 0x1401416ad
mov edx, dword [0x14017dae8]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
inc qword [rcx + 0x50]
mov qword [rbp + 0x20], rax
lock dec byte [rax + 0x28]
je 0x140141630
mov rax, qword [rbp + 0x20]
lea rsi, [rax + 0x28]
mov rdi, qword [0x14017d568]
test rdi, rdi
je 0x1401415bf
nop word cs:[rax + rax]
mov r8d, 1
mov rcx, rsi
mov rdx, r12
mov r9d, 0xffffffff
call rdi
mov al, 1
lock cmpxchg byte [rsi], r15b
jne 0x1401415a0
jmp 0x140141630
mov rcx, qword [0x140178038]
cmp rcx, 0xffffffffffffffff
jne 0x140141616
mov qword [rbp + 0x10], 0xffffffffffffffff
mov rax, qword [0x140178050]
lea rcx, [rbp + 0x10]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x14014173c
mov rcx, qword [rbp + 0x10]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x140178038], rcx
je 0x140141616
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov rax, qword [0x140178060]
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rsi], al
nop dword [rax]
mov rcx, qword [rbp + 0x20]
lock dec qword [rcx]
jne 0x14014163f
call fcn.140047d10
movzx eax, byte [rbp - 0x28]
test al, al
je 0x140141480
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140141660
lock dec qword [rcx]
jne 0x140141660
call fcn.140047d10
nop
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
jmp 0x140141310
cmp rsi, 1
mov qword [rbp - 0x20], 3
sete byte [rbp - 0x18]
lea rdx, [rbp - 0x20]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x48]
call qword [rax + 0x20]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp + 0x28]
call fcn.140047de0
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
ud2
lea rax, [0x140152e20]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedalready_mutably_borrowed_rustc_eb26296b556cef10fb713a38f3d16b9886080f26librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_a_release_load
lea r9, [0x1401515e8]
lea r8, [rbp - 0x20]
mov edx, 0x10
call fcn.14013fba0
ud2
lea rax, [0x140152e20]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedalready_mutably_borrowed_rustc_eb26296b556cef10fb713a38f3d16b9886080f26librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_a_release_load
lea r9, [0x1401515e8]
lea r8, [rbp - 0x20]
mov edx, 0x10
call fcn.14013fba0
jmp 0x14014178d
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x140151fe8]
mov edx, 0x5e
call fcn.14013fc40
ud2
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x140151fe8]
mov edx, 0x5e
call fcn.14013fc40
jmp 0x14014178d
mov dword [rbp + 0x1c], eax
lea rax, [rbp + 0x1c]
mov qword [rbp - 0x58], rax
lea rax, [0x1400281a0]
mov qword [rbp - 0x50], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
mov qword [rbp], 0
lea rax, [rbp - 0x58]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
lea rdx, str.library_std_src_syswindows_thread_parking.rs
lea rcx, [rbp - 0x20]
call fcn.14013f6e0
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.14013f8a0
ud2
lea rax, [0x140154618]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
lea rax, [0x1401550a0]
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rcx, [rbp - 0x20]
mov rdx, qword [rbp + 0xa0]
call fcn.14013f6e0
ud2