Function at 0x1401d79a0
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 r14, rcx
mov rax, qword [rcx]
lea r12, [rbp + 0x12]
mov ecx, 2
xor r15d, r15d
lea r13, [0x14023b640]
lea rsi, [0x14014cab0]
mov rdi, rax
test rax, rax
jne 0x1401d7a20
jmp 0x1401d7a0a
cmp byte [rbp + 0x2f], 0
je 0x1401d7ec6
mov rax, rdi
lock cmpxchg qword [r14], rcx
je 0x1401d7d79
mov rdi, rax
test rax, rax
je 0x1401d7a0a
cmp rdi, 1
je 0x1401d7a00
cmp rdi, 3
je 0x1401d7db5
mov eax, edi
and eax, 3
cmp eax, 2
je 0x1401d7a4e
jmp 0x1401d7eac
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x1401d7d60
mov eax, dword [0x14028dab0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x70]
cmp eax, 1
je 0x1401d7a9e
test eax, eax
jne 0x1401d7e25
mov eax, dword [0x14028dab0]
mov rcx, qword gs:[0x58]
mov rbx, qword [rcx + rax*8]
lea rcx, [rbx + 0x60]
mov rdx, rsi
call fcn.140149cf0
mov byte [rbx + 0x70], 1
mov eax, dword [0x14028dab0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x60], 0
jne 0x1401d7dce
mov eax, dword [0x14028dab0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x60], 0xffffffffffffffff
mov rax, qword [rax + 0x68]
test rax, rax
jne 0x1401d7b0a
xor ecx, ecx
call fcn.14012f230
mov ecx, dword [0x14028dab0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 0x68], rax
lock inc qword [rax]
jle 0x1401d7dca
mov ecx, dword [0x14028dab0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
inc qword [rcx + 0x60]
mov rcx, rdi
add rcx, 0xfffffffffffffffe
mov qword [rbp + 0x10], rax
mov byte [rbp + 0x20], 0
mov qword [rbp + 0x18], rcx
mov rax, rdi
lock cmpxchg qword [r14], r12
je 0x1401d7d40
mov rdi, rax
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1401d7a40
lock dec qword [rcx]
jne 0x1401d7a40
call fcn.14005d100
jmp 0x1401d7a40
mov eax, dword [0x14028dab0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x70]
cmp eax, 1
je 0x1401d7be3
test eax, eax
jne 0x1401d7e3f
mov eax, dword [0x14028dab0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x60]
mov rdx, rsi
call fcn.140149cf0
mov eax, dword [0x14028dab0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x70], 1
mov eax, dword [0x14028dab0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x60], 0
jne 0x1401d7df8
mov eax, dword [0x14028dab0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x60], 0xffffffffffffffff
mov rdi, qword [rax + 0x68]
test rdi, rdi
jne 0x1401d7c52
xor ecx, ecx
call fcn.14012f230
mov rdi, rax
mov eax, dword [0x14028dab0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x68], rdi
lock inc qword [rdi]
jle 0x1401d7dca
mov eax, dword [0x14028dab0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x60]
mov qword [rbp], rdi
lock dec byte [rdi + 0x28]
je 0x1401d7cad
add rdi, 0x28
mov rbx, qword [0x14028da30]
test rbx, rbx
je 0x1401d7cc5
mov r8d, 1
mov rcx, rdi
mov rdx, r13
mov r9d, 0xffffffff
call rbx
mov al, 1
lock cmpxchg byte [rdi], r15b
jne 0x1401d7c90
mov rcx, qword [rbp]
lock dec qword [rcx]
jne 0x1401d7d40
call fcn.14005d100
jmp 0x1401d7d40
mov rcx, qword [0x14028c7c8]
cmp rcx, 0xffffffffffffffff
jne 0x1401d7d1c
mov qword [rbp - 8], 0xffffffffffffffff
mov rax, qword [0x14028c7e0]
lea rcx, [rbp - 8]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x1401d7e59
mov rcx, qword [rbp - 8]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x14028c7c8], rcx
je 0x1401d7d1c
mov rbx, rax
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbx
mov rax, qword [0x14028c7f0]
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rdi], al
mov rcx, qword [rbp]
lock dec qword [rcx]
je 0x1401d7cbb
movzx eax, byte [rbp + 0x20]
test al, al
je 0x1401d7b80
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1401d7d60
lock dec qword [rcx]
jne 0x1401d7d60
call fcn.14005d100
mov rax, qword [r14]
mov ecx, 2
mov rdi, rax
test rax, rax
jne 0x1401d7a20
jmp 0x1401d7a0a
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], 1
cmp rdi, 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 + 0x18], rax
lea rcx, [rbp + 0x10]
call fcn.14014ba50
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
ud2
lea rax, [0x14023a058]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedlibrary_std_srcio_stdio.rs
lea r9, [0x140238488]
lea r8, [rbp - 0x38]
mov edx, 0x10
call fcn.1401d8b80
ud2
lea rax, [0x14023a058]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedlibrary_std_srcio_stdio.rs
lea r9, [0x140238488]
lea r8, [rbp - 0x38]
mov edx, 0x10
call fcn.1401d8b80
jmp 0x1401d7eaa
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x140238ee8]
mov edx, 0x5e
call fcn.1401d86d0
ud2
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x140238ee8]
mov edx, 0x5e
call fcn.1401d86d0
jmp 0x1401d7eaa
mov dword [rbp + 0xc], eax
lea rax, [rbp + 0xc]
mov qword [rbp - 0x58], rax
lea rax, [0x140162a90]
mov qword [rbp - 0x50], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x18], 0
lea rax, [rbp - 0x58]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 1
lea rdx, str.library_std_src_syswindows_thread_parking.rs
lea rcx, [rbp - 0x38]
call fcn.1401d8740
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.1401d87e0
ud2
lea rax, [0x14023ba68]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, str._rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225librarycore_src_sliceiter.rs
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x38]
mov rdx, qword [rbp + 0xa0]
call fcn.1401d8740
ud2