Function at 0x14013f390
Capabilities:
Get number of processors

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
xor eax, eax
xchg qword [rcx + 0x20], rax
test rax, rax
je 0x14013f627
mov rdx, qword [rdx]
lock inc qword [rdx]
jle 0x14013f6ec
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], rax
mov qword [rbp + 8], 8
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], rcx
mov eax, dword [0x1402e8568]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x98]
test eax, eax
je 0x14013f418
cmp eax, 1
je 0x14013f462
jmp 0x14013f58c
mov rsi, rdx
mov byte [rbp + 0x2f], 1
mov eax, dword [0x1402e8568]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x58]
lea rdx, [0x140147cf0]
call fcn.1401d5170
mov eax, dword [0x1402e8568]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x98], 1
mov rdx, rsi
mov eax, dword [0x1402e8568]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movabs rcx, 0x7fffffffffffffff
cmp qword [rax + 0x60], rcx
jae 0x14013f674
mov eax, dword [0x1402e8568]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x68], 0
je 0x14013f581
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmm2, xmmword [rbp]
movups xmm3, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x30], xmm3
movaps xmmword [rbp - 0x40], xmm2
movaps xmmword [rbp - 0x50], xmm1
cmp qword [rbp - 0x58], 0
jne 0x14013f6a2
mov rsi, qword [rbp - 0x50]
mov qword [rbp - 0x50], 0
test rsi, rsi
je 0x14013f6b0
mov qword [rbp - 0x58], 0
mov eax, dword [0x1402e8568]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rax + 0x78]
mov qword [rbp + 0x20], rcx
lea rcx, [rbp - 0x60]
mov qword [rax + 0x78], rcx
add rdx, 0x10
mov rcx, rsi
call fcn.14013f8b0
mov eax, dword [0x1402e8568]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rbp + 0x20]
mov qword [rax + 0x78], rcx
cmp qword [rbp - 0x58], 0
jne 0x14013f6ca
mov qword [rbp - 0x58], 0xffffffffffffffff
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14013f605
mov qword [rbp + 0x20], rsi
call fcn.14013e920
mov rax, qword [rbp - 0x58]
inc rax
mov rsi, qword [rbp + 0x20]
jmp 0x14013f607
cmp qword [rbp - 0x18], 0
jne 0x14013f6dc
mov qword [rbp - 0x18], 0xffffffffffffffff
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x10], 0
test rcx, rcx
je 0x14013f686
mov qword [rbp - 0x18], 0
add rdx, 0x10
mov byte [rbp + 0x2f], 1
mov qword [rbp + 0x20], rcx
call fcn.14013f8b0
cmp qword [rbp - 0x18], 0
jne 0x14013f694
mov qword [rbp - 0x18], 0xffffffffffffffff
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14013f5ec
call fcn.14013e920
mov rax, qword [rbp - 0x18]
inc rax
jmp 0x14013f5ee
xor eax, eax
mov rcx, qword [rbp + 0x20]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x20]
call fcn.14013e850
jmp 0x14013f61c
xor eax, eax
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x58], rax
mov byte [rbp + 0x2f], 0
lea rcx, [rbp - 0x60]
call fcn.14013e850
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
mov rax, qword [0x1402e8248]
mov rax, qword [rax]
shl rax, 1
test rax, rax
je 0x14013f642
call fcn.1401fc6e0
test al, al
je 0x14013f61c
lea rax, str._n__
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x50], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
lea rdx, [0x140246ee8]
lea rcx, [rbp - 0x60]
call fcn.1401fd750
mov byte [rbp + 0x2f], 1
lea rcx, str.C:UsersLenovo.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.41.1_src_runtimecontextcurrent.rs0l__
call fcn.1401fd670
jmp 0x14013f6ec
lea rcx, [0x140246f00]
call fcn.1401fd6d0
jmp 0x14013f6ec
lea rcx, [0x140246f18]
call fcn.1401fd610
jmp 0x14013f6ec
lea rcx, [0x140247090]
call fcn.1401fd610
jmp 0x14013f6ec
lea rcx, str.core_missing
lea r8, [0x140247060]
mov edx, 0xc
call fcn.1401fd6f0
jmp 0x14013f6ec
mov qword [rbp + 0x20], rsi
lea rcx, [0x140247078]
call fcn.1401fd610
jmp 0x14013f6ec
mov byte [rbp + 0x2f], 1
lea rcx, [0x140246f30]
call fcn.1401fd610
ud2