Function at 0x1400701a0
Capabilities:
Get number of processors

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x40], r8
mov r14d, edx
mov qword [rbp + 0x28], rcx
mov rax, qword [rcx]
lea rbx, [rbp - 0x36]
xor r15d, r15d
lea r12, [0x1404ad630]
lea r13, [0x140039230]
jmp 0x140070210
test r14b, r14b
je 0x1400706a9
mov rax, rsi
mov rcx, qword [rbp + 0x28]
mov edx, 2
lock cmpxchg qword [rcx], rdx
je 0x14007056c
mov rsi, rax
test rax, rax
je 0x1400701f9
cmp rsi, 1
je 0x1400701f0
cmp rsi, 3
je 0x140070598
mov eax, esi
and eax, 3
cmp eax, 2
je 0x14007024e
jmp 0x14007068f
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x140070560
mov eax, dword [0x14053b314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x60]
cmp eax, 1
je 0x14007029e
test eax, eax
jne 0x140070608
mov eax, dword [0x14053b314]
mov rcx, qword gs:[0x58]
mov rdi, qword [rcx + rax*8]
lea rcx, [rdi + 0x50]
mov rdx, r13
call fcn.140039260
mov byte [rdi + 0x60], 1
mov eax, dword [0x14053b314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x50], 0
jne 0x1400705b1
mov eax, dword [0x14053b314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x50], 0xffffffffffffffff
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x14007030a
xor ecx, ecx
call fcn.140038c90
mov ecx, dword [0x14053b314]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 0x58], rax
lock inc qword [rax]
jle 0x1400705ad
mov ecx, dword [0x14053b314]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
inc qword [rcx + 0x50]
mov rcx, rsi
add rcx, 0xfffffffffffffffe
mov qword [rbp - 0x38], rax
mov byte [rbp - 0x28], 0
mov qword [rbp - 0x30], rcx
mov rax, rsi
mov rcx, qword [rbp + 0x28]
lock cmpxchg qword [rcx], rbx
je 0x14007053f
mov rsi, rax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140070240
lock dec qword [rcx]
jne 0x140070240
call fcn.140039320
jmp 0x140070240
mov eax, dword [0x14053b314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x60]
cmp eax, 1
je 0x1400703e3
test eax, eax
jne 0x140070622
mov eax, dword [0x14053b314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x50]
mov rdx, r13
call fcn.140039260
mov eax, dword [0x14053b314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x60], 1
mov eax, dword [0x14053b314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x50], 0
jne 0x1400705db
mov eax, dword [0x14053b314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x50], 0xffffffffffffffff
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x14007044f
xor ecx, ecx
call fcn.140038c90
mov edx, dword [0x14053b314]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
mov qword [rcx + 0x58], rax
lock inc qword [rax]
jle 0x1400705ad
mov edx, dword [0x14053b314]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
inc qword [rcx + 0x50]
mov qword [rbp + 0x20], rax
lock dec byte [rax + 0x28]
je 0x140070530
mov rax, qword [rbp + 0x20]
lea rsi, [rax + 0x28]
mov rdi, qword [0x1404bb1b8]
test rdi, rdi
je 0x1400704bf
nop word cs:[rax + rax]
mov r8d, 1
mov rcx, rsi
mov rdx, r12
mov r9d, 0xffffffff
call rdi
mov al, 1
lock cmpxchg byte [rsi], r15b
jne 0x1400704a0
jmp 0x140070530
mov rcx, qword [0x1404bb050]
cmp rcx, 0xffffffffffffffff
jne 0x140070516
mov qword [rbp + 0x10], 0xffffffffffffffff
mov rax, qword [0x1404bb060]
lea rcx, [rbp + 0x10]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x14007063c
mov rcx, qword [rbp + 0x10]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x1404bb050], rcx
je 0x140070516
mov rdi, rax
call qword [0x140072318]
mov rcx, rdi
mov rax, qword [0x1404bb070]
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rsi], al
nop dword [rax]
mov rcx, qword [rbp + 0x20]
lock dec qword [rcx]
jne 0x14007053f
call fcn.140039320
movzx eax, byte [rbp - 0x28]
test al, al
je 0x140070380
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140070560
lock dec qword [rcx]
jne 0x140070560
call fcn.140039320
nop
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
jmp 0x140070210
cmp rsi, 1
mov qword [rbp - 0x20], 3
sete byte [rbp - 0x18]
lea rdx, [rbp - 0x20]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x48]
call qword [rax + 0x20]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp + 0x28]
call fcn.1400393f0
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
ud2
lea rax, [0x1404ac730]
mov qword [rsp + 0x20], rax
lea rcx, [0x1404ac050]
lea r9, [0x1404ab708]
lea r8, [rbp - 0x20]
mov edx, 0x10
call fcn.14006f0a0
ud2
lea rax, [0x1404ac730]
mov qword [rsp + 0x20], rax
lea rcx, [0x1404ac050]
lea r9, [0x1404ab708]
lea r8, [rbp - 0x20]
mov edx, 0x10
call fcn.14006f0a0
jmp 0x14007068d
lea rcx, [0x1404abac0]
lea r8, [0x1404abb20]
mov edx, 0x5e
call fcn.14006f140
ud2
lea rcx, [0x1404abac0]
lea r8, [0x1404abb20]
mov edx, 0x5e
call fcn.14006f140
jmp 0x14007068d
mov dword [rbp + 0x1c], eax
lea rax, [rbp + 0x1c]
mov qword [rbp - 0x58], rax
lea rax, [0x140012310]
mov qword [rbp - 0x50], rax
lea rax, [0x1404ad660]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
mov qword [rbp], 0
lea rax, [rbp - 0x58]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
lea rdx, [0x1404ad6a0]
lea rcx, [rbp - 0x20]
call fcn.14006ebe0
ud2
lea rcx, [0x1404ad9a8]
mov edx, 0x40
mov r8, qword [rbp + 0xa0]
call fcn.14006eda0
ud2
lea rax, [0x1404ada18]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
lea rax, [0x1404b6020]
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rcx, [rbp - 0x20]
mov rdx, qword [rbp + 0xa0]
call fcn.14006ebe0
ud2