Function at 0x140176d60
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 0x140176ff7
mov rdx, qword [rdx]
lock inc qword [rdx]
jle 0x1401770bc
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 [0x140328dc8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x98]
test eax, eax
je 0x140176de8
cmp eax, 1
je 0x140176e32
jmp 0x140176f5c
mov rsi, rdx
mov byte [rbp + 0x2f], 1
mov eax, dword [0x140328dc8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x58]
lea rdx, [0x140172930]
call fcn.1401c4340
mov eax, dword [0x140328dc8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x98], 1
mov rdx, rsi
mov eax, dword [0x140328dc8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movabs rcx, 0x7fffffffffffffff
cmp qword [rax + 0x60], rcx
jae 0x140177044
mov eax, dword [0x140328dc8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x68], 0
je 0x140176f51
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 0x140177072
mov rsi, qword [rbp - 0x50]
mov qword [rbp - 0x50], 0
test rsi, rsi
je 0x140177080
mov qword [rbp - 0x58], 0
mov eax, dword [0x140328dc8]
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.140177280
mov eax, dword [0x140328dc8]
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 0x14017709a
mov qword [rbp - 0x58], 0xffffffffffffffff
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140176fd5
mov qword [rbp + 0x20], rsi
call fcn.140176430
mov rax, qword [rbp - 0x58]
inc rax
mov rsi, qword [rbp + 0x20]
jmp 0x140176fd7
cmp qword [rbp - 0x18], 0
jne 0x1401770ac
mov qword [rbp - 0x18], 0xffffffffffffffff
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x10], 0
test rcx, rcx
je 0x140177056
mov qword [rbp - 0x18], 0
add rdx, 0x10
mov byte [rbp + 0x2f], 1
mov qword [rbp + 0x20], rcx
call fcn.140177280
cmp qword [rbp - 0x18], 0
jne 0x140177064
mov qword [rbp - 0x18], 0xffffffffffffffff
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140176fbc
call fcn.140176430
mov rax, qword [rbp - 0x18]
inc rax
jmp 0x140176fbe
xor eax, eax
mov rcx, qword [rbp + 0x20]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x20]
call fcn.140176360
jmp 0x140176fec
xor eax, eax
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x58], rax
mov byte [rbp + 0x2f], 0
lea rcx, [rbp - 0x60]
call fcn.140176360
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
mov rax, qword [0x140328b18]
mov rax, qword [rax]
shl rax, 1
test rax, rax
je 0x140177012
call fcn.1401e9a40
test al, al
je 0x140176fec
lea rax, str.Oh_no__We_never_placed_the_Core_back__this_is_a_bug_
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, str.C:Usersjorki.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.40.0_src_runtime_schedulercurrent_threadmod.rs
lea rcx, [rbp - 0x60]
call fcn.1401eb290
mov byte [rbp + 0x2f], 1
lea rcx, str.C:Usersjorki.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.40.0_src_runtimecontextcurrent.rs
call fcn.1401eb1b0
jmp 0x1401770bc
lea rcx, str.C:Usersjorki.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.40.0_src_runtime_schedulercurrent_threadmod.rs
call fcn.1401eb210
jmp 0x1401770bc
lea rcx, str.C:Usersjorki.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.40.0_src_runtime_schedulercurrent_threadmod.rs
call fcn.1401eb150
jmp 0x1401770bc
lea rcx, str.C:Usersjorki.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.40.0_src_runtime_schedulercurrent_threadmod.rs
call fcn.1401eb150
jmp 0x1401770bc
lea rcx, str.core_missing
lea r8, str.C:Usersjorki.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.40.0_src_runtime_schedulercurrent_threadmod.rs
mov edx, 0xc
call fcn.1401eb230
jmp 0x1401770bc
mov qword [rbp + 0x20], rsi
lea rcx, str.C:Usersjorki.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.40.0_src_runtime_schedulercurrent_threadmod.rs
call fcn.1401eb150
jmp 0x1401770bc
mov byte [rbp + 0x2f], 1
lea rcx, str.C:Usersjorki.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.40.0_src_runtime_schedulercurrent_threadmod.rs
call fcn.1401eb150
ud2