Function at 0x4058c0
Capabilities:
Get number of processors

Disassembly:
lea r12, [rsp - 0x40]
cmp r12, qword [r14 + 0x10]
jbe 0x405bae
push rbp
mov rbp, rsp
sub rsp, 0xb8
movups xmmword [rsp + 0xa0], xmm15
movups xmmword [rsp + 0xa8], xmm15
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0x70], rbx
mov byte [rsp + 0x47], 0
mov qword [rsp + 0x60], r14
lea rdx, sym.runtime.unlockOSThread
mov qword [rsp + 0xb0], rdx
mov byte [rsp + 0x47], 1
mov rdx, qword [r14 + 0x30]
cmp byte [rdx + 0xf8], 0
jne 0x40593c
lea rax, [0x0081ba40]
call sym.runtime_internal_atomic._Uint32_.Load
test eax, eax
jbe 0x40596e
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x30]
mov byte [rcx + 0xf8], 0
lea rcx, sym.runtime.newextram
mov qword [rsp], rcx
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x0081bc20]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x405a67
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x150]
mov rbx, qword [rax + 0x148]
inc rbx
mov r8, qword [rax + 0x140]
nop dword [rax]
cmp rcx, rbx
jae 0x4059c9
mov rax, r8
mov edi, 1
lea rsi, [0x005dd1c0]
call sym.runtime.growslice
mov rdx, qword [rsp + 0xd8]
mov r8, rax
mov rax, qword [rsp + 0x60]
mov qword [r8 + rbx*8 - 8], rdx
test rbx, rbx
jbe 0x405b90
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rcx
lea rcx, [rax + 0x140]
mov rbx, r8
mov rax, rcx
call sym.runtime.atomicstorep
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov qword [rdx + 0x150], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rdx + 0x148], rcx
movups xmmword [rsp + 0x88], xmm15
mov qword [rsp + 0x98], 0
lea rcx, [sym.runtime.cgocallbackg1.func2]
mov qword [rsp + 0x88], rcx
lea rcx, sym.runtime.cgocallbackg1.func1
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rdx
lea rcx, [rsp + 0x88]
mov qword [rsp + 0xa8], rcx
mov byte [rsp + 0x47], 3
mov eax, 3
jmp 0x405a71
mov rdx, qword [rsp + 0x60]
mov eax, 1
mov byte [rsp + 0x46], al
mov rcx, qword [rdx + 0x30]
cmp dword [rcx + 0x108], 0
jne 0x405a9a
mov rax, qword [0x007c4560]
xor ebx, ebx
call sym.runtime.chanrecv1
movzx eax, byte [rsp + 0x46]
mov rdx, qword [rsp + 0x60]
mov ecx, dword [0x007c6560]
mov rdx, qword [rdx + 0x30]
cmp dword [rdx + 0xe0], ecx
je 0x405ab8
mov eax, ecx
call sym.runtime.setThreadCPUProfiler
movzx eax, byte [rsp + 0x46]
mov byte [rsp + 0x45], 1
or eax, 4
mov byte [rsp + 0x46], al
movups xmmword [rsp + 0x78], xmm15
lea rcx, [sym.runtime.cgocallbackg1.func3]
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x45]
mov qword [rsp + 0x80], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0xa0], rcx
mov byte [rsp + 0x47], al
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x58], rcx
lea rax, [rsp + 0x58]
call sym.runtime.noescape
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0x70]
call rcx
mov byte [rsp + 0x45], 0
movzx ecx, byte [rsp + 0x46]
test cl, 4
je 0x405b54
and ecx, 0xfffffffb
mov byte [rsp + 0x46], cl
mov byte [rsp + 0x47], cl
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rdx]
call rax
movzx ecx, byte [rsp + 0x46]
test cl, 2
je 0x405b76
and ecx, 0xfffffffd
mov byte [rsp + 0x46], cl
mov byte [rsp + 0x47], cl
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rdx]
call rax
movzx ecx, byte [rsp + 0x46]
test cl, 1
je 0x405b87
and ecx, 0xfffffffe
mov byte [rsp + 0x47], cl
call sym.runtime.unlockOSThread
add rsp, 0xb8
pop rbp
ret
xor eax, eax
mov rcx, rax
call sym.runtime.panicIndex
nop
nop dword [rax + rax]
call sym.runtime.deferreturn
add rsp, 0xb8
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
nop dword [rax]
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.runtime.cgocallbackg1