Function at 0x14007bc40
Capabilities:
Get number of processors

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
mov eax, dword [0x14010bb10]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rax*8]
mov al, 1
cmp qword [rcx + 0x60], 1
ja 0x14007bc82
call fcn.1400781d0
mov byte [rbp + 0x2c], al
mov rcx, rsi
call fcn.14008a4a0
test rax, rax
je 0x14007bf0d
mov qword [rbp - 0x10], rax
mov rcx, rsi
call fcn.14008a480
mov rdi, rax
mov rcx, rax
call qword [rdx + 0x18]
test rdi, rdi
je 0x14007bcc8
movabs rcx, 0xc1a2c89ccd1e7bc1
cmp rax, rcx
jne 0x14007bcc8
mov rsi, rdi
add rsi, 8
jmp 0x14007bd01
mov rcx, rsi
call fcn.14008a480
mov rsi, rax
mov rcx, rax
call qword [rdx + 0x18]
mov ecx, 0xc
lea rdx, [0x1400ef64c]
test rsi, rsi
je 0x14007bd07
movabs r8, 0xc493947b9bec5b9f
cmp rax, r8
jne 0x14007bd07
lea rdi, [rsi + 8]
add rsi, 0x10
mov rdx, qword [rdi]
mov rcx, qword [rsi]
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rcx
call fcn.14007b180
mov r8d, 9
lea rcx, [0x1400ef658]
test rax, rax
je 0x14007bd39
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14007bd39
mov r8, qword [rax + 0x18]
dec r8
mov rcx, rdx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], r8
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x50], rcx
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x40], rcx
lea rcx, [rbp + 0x2c]
mov qword [rbp - 0x38], rcx
movzx ecx, byte [0x14010b9b8]
test cl, cl
mov qword [rbp + 8], rax
je 0x14007be61
mov byte [0x14010b9b8], 1
mov eax, dword [0x14010bb10]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x10], 0
je 0x14007bda1
lea rax, [rax + 0x18]
jmp 0x14007bdb1
xor ecx, ecx
call fcn.14007a150
test rax, rax
je 0x14007bf27
mov rsi, qword [rax]
mov qword [rax], 0
test rsi, rsi
je 0x14007be61
lea rdi, [rsi + 0x10]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x14010ba70]
shl rax, 1
test rax, rax
mov qword [rbp - 8], rdi
jne 0x14007bee4
mov dword [rbp + 0x14], 0
movzx eax, byte [rsi + 0x18]
mov qword [rbp + 0x20], rsi
lea rdx, [rsi + 0x20]
lea r8, fcn.140071760
lea rcx, [rbp - 0x50]
call fcn.14007c110
cmp byte [rbp + 0x14], 0
jne 0x14007be26
mov rax, qword [0x14010ba70]
shl rax, 1
test rax, rax
jne 0x14007bef3
mov rcx, qword [rbp - 8]
call qword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov byte [0x14010b9b8], 1
mov eax, dword [0x14010bb10]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x10], 0
mov rsi, qword [rbp + 8]
je 0x14007beb4
lea rax, [rax + 0x18]
jmp 0x14007bec8
mov byte [rbp + 0x1c], 0
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x2f], 1
mov qword [rbp], 0
mov byte [rbp + 0x2e], 0
lea r8, [0x1400ef668]
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x18]
call fcn.14007c110
mov rsi, qword [rbp + 8]
test rsi, rsi
je 0x14007bea7
lock dec qword [rsi]
jne 0x14007bea7
mov rcx, rsi
call fcn.140072a90
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop rbp
ret
xor ecx, ecx
call fcn.14007a150
test rax, rax
mov rsi, qword [rbp + 8]
je 0x14007bf51
mov rcx, qword [rax]
mov rdx, qword [rbp + 0x20]
mov qword [rax], rdx
test rcx, rcx
je 0x14007be94
lock dec qword [rcx]
jne 0x14007be94
call fcn.140072a20
jmp 0x14007be94
call fcn.1400b0320
xor al, 1
mov dword [rbp + 0x14], eax
jmp 0x14007bdf0
call fcn.1400b0320
test al, al
jne 0x14007be26
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x18], 1
jmp 0x14007be26
lea rcx, str.called__Option::unwrap____on_a__None__valueinternal_error:_entered_unreachable_code_rustc_39c6804b92aa202369e402525cee329556bc1db0library_alloc_src_vecmod.rs
lea r8, str.library_std_srcpanicking.rsBox_dyn_Any__unnamed_
mov edx, 0x2b
call fcn.1400b0cb0
ud2
lea rax, [0x1400ee6f0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400ee68b]
lea r9, [0x1400ee308]
lea r8, [rbp + 0x18]
mov edx, 0x46
call fcn.1400b0ff0
jmp 0x14007bf90
mov rax, qword [rbp + 0x20]
lock dec qword [rax]
jne 0x14007bf64
mov rcx, qword [rbp + 0x20]
call fcn.140072a20
mov byte [rbp + 0x2d], 0
lea rax, [0x1400ee6f0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400ee68b]
lea r9, [0x1400ee308]
lea r8, [rbp + 0x18]
mov edx, 0x46
call fcn.1400b0ff0
ud2