Function at 0x405300
Capabilities:
Get number of processors

Disassembly:
lea r12, [rsp - 0x40]
cmp r12, qword [r14 + 0x10]
jbe 0x4055ee
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 0x40537c
lea rax, [0x007c3d20]
call sym.runtime_internal_atomic._Uint32_.Load
test eax, eax
jbe 0x4053ae
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 [0x007c3ef8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x4054a7
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 0x405409
mov rax, r8
mov edi, 1
lea rsi, [0x005aa720]
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 0x4055d0
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 0x4054b1
mov rdx, qword [rsp + 0x60]
mov eax, 1
mov byte [rsp + 0x46], al
mov rcx, qword [rdx + 0x30]
cmp dword [rcx + 0x108], 0
jne 0x4054da
mov rax, qword [0x0076cc58]
xor ebx, ebx
call sym.runtime.chanrecv1
movzx eax, byte [rsp + 0x46]
mov rdx, qword [rsp + 0x60]
mov ecx, dword [0x0076e840]
mov rdx, qword [rdx + 0x30]
cmp dword [rdx + 0xe0], ecx
je 0x4054f8
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 0x405594
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 0x4055b6
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 0x4055c7
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