Function at 0x180161ba0
Capabilities:
Get number of processors

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
mov eax, dword [0x1802802bc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0xc0]
test eax, eax
je 0x180161c0e
cmp eax, 1
je 0x180161c3b
lea rax, [0x18022ba00]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionstd_src_threadlocal.rs
lea r9, [0x18022b2d8]
lea r8, [rbp - 0x20]
mov edx, 0x46
call fcn.180191980
mov eax, dword [0x1802802bc]
mov rcx, qword gs:[0x58]
mov rbx, qword [rcx + rax*8]
lea rcx, [rbx + 0xb8]
lea rdx, [0x18016df00]
call fcn.18016dfe0
mov byte [rbx + 0xc0], 1
mov eax, dword [0x1802802bc]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rax*8]
mov rax, qword [rcx + 0xb8]
mov qword [rbp - 8], rax
mov qword [rcx + 0xb8], 0
test rax, rax
je 0x180161c8f
lock inc qword [rax]
jle 0x180161e42
mov ecx, dword [0x1802802bc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov rcx, qword [rcx + 0xb8]
jmp 0x180161c91
xor ecx, ecx
mov qword [rbp - 0x20], rcx
mov ecx, dword [0x1802802bc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 0xb8], rax
lea rcx, [rbp - 0x20]
call fcn.180161a90
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x180161cd0
lock dec qword [rax]
jne 0x180161cd0
lea rcx, [rbp - 0x20]
call fcn.180160fd0
mov r15, qword [rbp - 8]
mov qword [rbp - 8], r15
test r15, r15
je 0x180161ddd
mov r12, qword [r15 + 0x20]
mov rcx, qword [r15 + 0x10]
mov rax, qword [r15 + 0x18]
mov rdx, rdi
call qword [rax + 0x28]
mov r13, rax
test rax, rax
je 0x180161ddd
mov rbx, rdx
movzx eax, byte [0x1802800c9]
mov ecx, 0x40
mov edx, 8
call fcn.180047b30
test rax, rax
je 0x180161e24
mov r14, rax
mov qword [rax], r13
mov qword [rax + 8], rbx
mov qword [rbp - 0x20], 4
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
test r12, r12
je 0x180161de9
mov ebx, 1
lea r15, [rbp - 0x20]
jmp 0x180161d88
mov r14, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
mov rcx, rbx
shl rcx, 4
inc rbx
mov qword [r14 + rcx], rax
mov qword [r14 + rcx + 8], rdx
mov qword [rbp - 0x10], rbx
test r12, r12
je 0x180161df5
mov rcx, qword [r12 + 0x10]
mov rax, qword [r12 + 0x18]
mov r12, qword [r12 + 0x20]
mov rdx, rdi
call qword [rax + 0x28]
mov rcx, qword [rbp - 0x20]
test rax, rax
je 0x180161df9
cmp rbx, rcx
jne 0x180161d6c
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], rdx
cmp r12, 1
mov r8d, 2
sbb r8, 0
mov qword [rsp + 0x20], 0x10
mov r9d, 8
mov rcx, r15
mov rdx, rbx
call fcn.1801901f0
jmp 0x180161d60
mov r14d, 8
xor ebx, ebx
xor ecx, ecx
jmp 0x180161e01
mov ecx, 4
mov ebx, 1
jmp 0x180161e01
mov rcx, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
mov r15, qword [rbp - 8]
mov qword [rsi + 0x18], r15
mov qword [rsi], rcx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rbx
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x30], rbx
lea r8, str._rustc_7442931d49b199ad0a1cc0f8ca54e327b5139b66librarycore_srciter_traitsiterator.rs
mov ecx, 8
mov edx, 0x40
call fcn.180191353
ud2