Function at 0x14002e7e0
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 + 0x20], rcx
mov rax, qword [rcx]
lea rbx, [rbp - 0x2e]
xor r15d, r15d
lea r12, [0x140035ef8]
lea r13, [0x1400141b0]
jmp 0x14002e850
test r14b, r14b
je 0x14002ebb0
mov rax, rsi
mov rcx, qword [rbp + 0x20]
mov edx, 2
lock cmpxchg qword [rcx], rdx
je 0x14002eaac
mov rsi, rax
test rax, rax
je 0x14002e839
cmp rsi, 1
je 0x14002e830
cmp rsi, 3
je 0x14002ead8
mov eax, esi
and eax, 3
cmp eax, 2
je 0x14002e88e
jmp 0x14002ebe5
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x14002eaa0
mov eax, dword [0x14003e294]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x68]
cmp eax, 1
je 0x14002e8de
test eax, eax
jne 0x14002eb0a
mov eax, dword [0x14003e294]
mov rcx, qword gs:[0x58]
mov rdi, qword [rcx + rax*8]
lea rcx, [rdi + 0x60]
mov rdx, r13
call fcn.1400141f0
mov byte [rdi + 0x68], 1
mov eax, dword [0x14003e294]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x60]
test rax, rax
jne 0x14002e93f
xor ecx, ecx
call fcn.140013b00
mov edx, dword [0x14003e294]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
cmp qword [rcx + 0x60], 0
jne 0x14002eb22
mov edx, dword [0x14003e294]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
mov qword [rcx + 0x60], rax
lock inc qword [rax]
jle 0x14002ebae
mov rcx, rsi
add rcx, 0xfffffffffffffffe
mov qword [rbp - 0x30], rax
mov byte [rbp - 0x20], 0
mov qword [rbp - 0x28], rcx
mov rax, rsi
mov rcx, qword [rbp + 0x20]
lock cmpxchg qword [rcx], rbx
je 0x14002ea6f
mov rsi, rax
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14002e880
lock dec qword [rax]
jne 0x14002e880
mov rcx, qword [rbp - 0x30]
call fcn.140014360
jmp 0x14002e880
call fcn.1400143b0
test rax, rax
je 0x14002eaed
mov qword [rbp + 0x28], rax
lock dec byte [rax + 0x28]
je 0x14002ea60
mov rsi, qword [rbp + 0x28]
add rsi, 0x28
mov rdi, qword [0x14003e228]
test rdi, rdi
je 0x14002e9ef
mov r8d, 1
mov rcx, rsi
mov rdx, r12
mov r9d, 0xffffffff
call rdi
mov al, 1
lock cmpxchg byte [rsi], r15b
jne 0x14002e9d0
jmp 0x14002ea60
mov rcx, qword [0x14003e030]
cmp rcx, 0xffffffffffffffff
jne 0x14002ea46
mov qword [rbp - 0x38], 0xffffffffffffffff
mov rax, qword [0x14003e048]
lea rcx, [rbp - 0x38]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x14002eb5d
mov rcx, qword [rbp - 0x38]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x14003e030], rcx
je 0x14002ea46
mov rdi, rax
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rdi
mov rax, qword [0x14003e058]
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 + 0x28]
lock dec qword [rcx]
jne 0x14002ea6f
call fcn.140014360
movzx eax, byte [rbp - 0x20]
test al, al
je 0x14002e9a0
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14002eaa0
lock dec qword [rax]
jne 0x14002eaa0
mov rcx, qword [rbp - 0x30]
call fcn.140014360
nop word cs:[rax + rax]
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
jmp 0x14002e850
cmp rsi, 1
mov qword [rbp - 0x18], 3
sete byte [rbp - 0x10]
lea rdx, [rbp - 0x18]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x48]
call qword [rax + 0x20]
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x20]
call fcn.140013fc0
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x140033f90]
mov edx, 0x5e
call fcn.14002e550
jmp 0x14002ebae
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x140033f90]
mov edx, 0x5e
call fcn.14002e550
mov qword [rbp + 0x28], rax
lea rax, str.reentrant_init
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
lea rax, str._rustc_7cf61ebde7b22796c69757901dd346d0fe70bd97librarycore_srccharmethods.rs_bi
mov qword [rbp - 8], rax
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
lea rdx, str._rustc_7cf61ebde7b22796c69757901dd346d0fe70bd97librarycore_srccellonce.rs
lea rcx, [rbp - 0x18]
call fcn.14002dff0
jmp 0x14002ebae
mov dword [rbp + 0x1c], eax
lea rax, [rbp + 0x1c]
mov qword [rbp - 0x58], rax
lea rax, [0x140009460]
mov qword [rbp - 0x50], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
mov qword [rbp + 8], 0
lea rax, [rbp - 0x58]
mov qword [rbp - 8], rax
mov qword [rbp], 1
lea rdx, str.library_std_src_syspalwindows_thread_parking.rs
lea rcx, [rbp - 0x18]
call fcn.14002dff0
ud2
lea rax, str.Once_instance_has_previously_been_poisoned
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
lea rax, str._rustc_7cf61ebde7b22796c69757901dd346d0fe70bd97librarycore_srccharmethods.rs_bi
mov qword [rbp - 8], rax
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
lea rcx, [rbp - 0x18]
mov rdx, qword [rbp + 0xa0]
call fcn.14002dff0
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibrary_std_src_sys_commononcequeue.rsXc
mov edx, 0x40
mov r8, qword [rbp + 0xa0]
call fcn.14002e1b0
int3