Function at 0x14013c6a0
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 0x14013c937
mov rdx, qword [rdx]
lock inc qword [rdx]
jle 0x14013c9fc
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 [0x1402724d0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x98]
test eax, eax
je 0x14013c728
cmp eax, 1
je 0x14013c772
jmp 0x14013c89c
mov rsi, rdx
mov byte [rbp + 0x2f], 1
mov eax, dword [0x1402724d0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x58]
lea rdx, [0x14014c620]
call fcn.140187080
mov eax, dword [0x1402724d0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x98], 1
mov rdx, rsi
mov eax, dword [0x1402724d0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movabs rcx, 0x7fffffffffffffff
cmp qword [rax + 0x60], rcx
jae 0x14013c984
mov eax, dword [0x1402724d0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x68], 0
je 0x14013c891
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 0x14013c9b2
mov rsi, qword [rbp - 0x50]
mov qword [rbp - 0x50], 0
test rsi, rsi
je 0x14013c9c0
mov qword [rbp - 0x58], 0
mov eax, dword [0x1402724d0]
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.14013cbc0
mov eax, dword [0x1402724d0]
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 0x14013c9da
mov qword [rbp - 0x58], 0xffffffffffffffff
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14013c915
mov qword [rbp + 0x20], rsi
call fcn.14013bc30
mov rax, qword [rbp - 0x58]
inc rax
mov rsi, qword [rbp + 0x20]
jmp 0x14013c917
cmp qword [rbp - 0x18], 0
jne 0x14013c9ec
mov qword [rbp - 0x18], 0xffffffffffffffff
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x10], 0
test rcx, rcx
je 0x14013c996
mov qword [rbp - 0x18], 0
add rdx, 0x10
mov byte [rbp + 0x2f], 1
mov qword [rbp + 0x20], rcx
call fcn.14013cbc0
cmp qword [rbp - 0x18], 0
jne 0x14013c9a4
mov qword [rbp - 0x18], 0xffffffffffffffff
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14013c8fc
call fcn.14013bc30
mov rax, qword [rbp - 0x18]
inc rax
jmp 0x14013c8fe
xor eax, eax
mov rcx, qword [rbp + 0x20]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x20]
call fcn.14013bb60
jmp 0x14013c92c
xor eax, eax
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x58], rax
mov byte [rbp + 0x2f], 0
lea rcx, [rbp - 0x60]
call fcn.14013bb60
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
mov rax, qword [0x140272200]
mov rax, qword [rax]
shl rax, 1
test rax, rax
je 0x14013c952
call fcn.1401a6190
test al, al
je 0x14013c92c
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, [0x1401f45a8]
lea rcx, [rbp - 0x60]
call fcn.1401a7240
mov byte [rbp + 0x2f], 1
lea rcx, [0x1401f4360]
call fcn.1401a7160
jmp 0x14013c9fc
lea rcx, [0x1401f45c0]
call fcn.1401a71c0
jmp 0x14013c9fc
lea rcx, [0x1401f45d8]
call fcn.1401a7100
jmp 0x14013c9fc
lea rcx, [0x1401f4750]
call fcn.1401a7100
jmp 0x14013c9fc
lea rcx, str.core_missing
lea r8, [0x1401f4720]
mov edx, 0xc
call fcn.1401a71e0
jmp 0x14013c9fc
mov qword [rbp + 0x20], rsi
lea rcx, [0x1401f4738]
call fcn.1401a7100
jmp 0x14013c9fc
mov byte [rbp + 0x2f], 1
lea rcx, [0x1401f45f0]
call fcn.1401a7100
ud2