Function at 0x41d960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x5e3958]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x40]
cmp eax, dword [ecx + 8]
jbe 0x41e0c8
sub esp, 0xc0
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
call sym.runtime._gcControllerState_.heapGoalInternal
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x5e4124], eax
mov dword [0x5e4120], ecx
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 0xe0]
mov edx, dword [eax + 0xe4]
mov ebx, dword [esp + 0xc8]
sub ebx, ecx
mov dword [esp + 0x68], ebx
mov ecx, dword [esp + 0xcc]
sbb ecx, edx
mov dword [esp + 0x6c], ecx
test ecx, ecx
sete dl
xchg ebp, ebx
setg bl
xchg ebp, ebx
test ebx, ebx
xchg esi, ebx
seta bl
xchg esi, ebx
and edx, esi
or ebp, edx
xchg ebp, eax
mov byte [esp + 0x17], al
xchg ebp, eax
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x41da00
movsd xmm1, qword [0x527f98]
jmp 0x41da8b
mov edx, eax
mov eax, ebx
mov ebp, dword [esp + 0xd0]
mov esi, edx
mul ebp
mov dword [esp + 0x7c], eax
imul ecx, ebp
add ecx, edx
sar ebp, 0x1f
imul ebp, ebx
add ecx, ebp
mov dword [esp + 0x78], ecx
lea ebp, [esi + 0xc0]
mov dword [esp], ebp
call sym.runtime_internal_atomic.Loadint64
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym.runtime.int64tofloat64
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0xa0], xmm0
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
call sym.runtime.int64tofloat64
movsd xmm0, qword [esp + 0xa0]
divsd xmm0, qword [esp + 8]
movsd xmm1, qword [0x527f98]
addsd xmm1, xmm0
mov eax, dword [esp + 0xc4]
movsd qword [esp + 0x80], xmm1
lea ecx, [eax + 0x68]
mov dword [esp + 0xbc], ecx
mov dword [esp], ecx
call sym.runtime_internal_atomic.Load64
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc4]
mov ebx, dword [edx + 0x5c]
cmp dword [edx + 0x58], eax
setae al
cmp ecx, ebx
sete cl
setb bl
and ecx, eax
or ebx, ecx
test bl, bl
jne 0x41dcca
movzx ecx, byte [esp + 0x17]
test cl, cl
jne 0x41dae3
xorps xmm0, xmm0
jmp 0x41db69
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0xd0]
mov ebx, edx
mov ebp, eax
mul ecx
mov dword [esp + 0x7c], eax
mov esi, dword [esp + 0x6c]
imul esi, ecx
add edx, esi
sar ecx, 0x1f
imul ebp, ecx
lea ecx, [edx + ebp]
mov dword [esp + 0x78], ecx
lea edx, [ebx + 0xd8]
mov dword [esp], edx
call sym.runtime_internal_atomic.Loadint64
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym.runtime.int64tofloat64
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0xa0], xmm0
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
call sym.runtime.int64tofloat64
movsd xmm0, qword [esp + 0xa0]
divsd xmm0, qword [esp + 8]
mov edx, dword [esp + 0xc4]
movsd xmm1, qword [esp + 0x80]
addsd xmm0, xmm1
movsd qword [esp + 0xa0], xmm0
movsd xmm2, qword [0x527fb8]
subsd xmm2, xmm1
movsd qword [esp + 0x98], xmm2
lea eax, [edx + 0xa0]
mov dword [esp + 0xb8], eax
lea ecx, [edx + 0xa8]
mov dword [esp + 0xb4], ecx
lea ebx, [edx + 0xb0]
mov dword [esp + 0xb0], ebx
mov dword [esp], eax
call sym.runtime_internal_atomic.Loadint64
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0xb4]
mov dword [esp], edx
call sym.runtime_internal_atomic.Loadint64
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0xb0]
mov dword [esp], edx
call sym.runtime_internal_atomic.Loadint64
mov eax, dword [esp + 4]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0xbc]
mov dword [esp], edx
call sym.runtime_internal_atomic.Load64
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc4]
mov ebx, dword [edx + 0x58]
mov ebp, dword [edx + 0x5c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
add esi, edi
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
adc edi, edx
mov edx, dword [esp + 0x30]
add edx, esi
mov dword [esp + 0x60], edx
mov esi, dword [esp + 0x3c]
adc edi, esi
mov dword [esp + 0x64], edi
sub eax, ebx
sbb ecx, ebp
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.runtime.uint64tofloat64
movsd xmm0, qword [esp + 0xa0]
mulsd xmm0, qword [esp + 8]
movsd qword [esp + 0xa0], xmm0
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sym.runtime.int64tofloat64
movsd xmm0, qword [esp + 0x98]
mulsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0xa0]
divsd xmm1, xmm0
mov eax, dword [esp + 0xc4]
movsd xmm0, qword [eax + 0x20]
movsd qword [eax + 0x20], xmm1
xor ecx, ecx
jmp 0x41dcd2
add esp, 0xc0
ret
inc ecx
cmp ecx, 4
jge 0x41dcef
movsd xmm2, qword [eax + ecx*8 + 0x28]
movsd xmm3, qword [eax + 0x20]
ucomisd xmm2, xmm3
jbe 0x41dcd1
movsd qword [eax + 0x20], xmm2
jmp 0x41dcd1
movsd qword [esp + 0x90], xmm1
movsd qword [esp + 0x88], xmm0
lea ecx, [eax + 0x28]
mov dword [esp], ecx
lea ecx, [eax + 0x30]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x18
call sym.runtime.memmove
movsd xmm0, qword [esp + 0x90]
mov eax, dword [esp + 0xc4]
movsd qword [eax + 0x40], xmm0
mov ecx, dword [0x5e3cd4]
test ecx, ecx
jle 0x41e0c1
call sym.runtime.printlock
call sym.runtime.printlock
lea eax, [0x4fcb9e]
mov dword [esp], eax
mov dword [esp + 4], 7
call sym.runtime.printstring
movsd xmm0, qword [esp + 0x80]
movsd xmm1, qword [0x527ff8]
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym.runtime.printint
lea eax, [0x4fcba5]
mov dword [esp], eax
mov dword [esp + 4], 7
call sym.runtime.printstring
mov dword [esp + 4], 0
mov dword [esp], 0x19
call sym.runtime.printint
lea eax, [0x4fda7b]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call sym.runtime.printstring
call sym.runtime.printunlock
mov eax, dword [esp + 0xc4]
lea ecx, [eax + 0x80]
mov dword [esp + 0xac], ecx
lea edx, [eax + 0x90]
mov dword [esp + 0xa8], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp], ebx
call sym.runtime_internal_atomic.Loadint64
mov eax, dword [esp + 8]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0xb4]
mov dword [esp], edx
call sym.runtime_internal_atomic.Loadint64
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0xb0]
mov dword [esp], edx
call sym.runtime_internal_atomic.Loadint64
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0xac]
mov dword [esp], edx
call sym.runtime_internal_atomic.Load64
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0xa8]
mov dword [esp], edx
call sym.runtime_internal_atomic.Load64
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 0x78]
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 0x7c]
mov dword [esp + 0x78], edx
mov ebx, dword [esp + 4]
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 8]
mov dword [esp + 0x4c], ebp
call sym.runtime.printlock
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.runtime.printint
lea eax, [0x4fc3f7]
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.runtime.printstring
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sym.runtime.printint
lea eax, [0x4fc3f7]
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.runtime.printstring
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym.runtime.printint
lea eax, [0x4fd279]
mov dword [esp], eax
mov dword [esp + 4], 9
call sym.runtime.printstring
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x50]
adc ecx, edx
mov edx, dword [esp + 0x1c]
add eax, edx
mov edx, dword [esp + 0x4c]
adc ecx, edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.runtime.printuint
lea eax, [0x4fd282]
mov dword [esp], eax
mov dword [esp + 4], 9
call sym.runtime.printstring
call sym.runtime.printunlock
nop
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
call sym.runtime_internal_atomic.Load64
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0xc4]
mov ebx, dword [edx + 0x58]
mov dword [esp + 0x7c], ebx
mov ebp, dword [edx + 0x5c]
mov dword [esp + 0x78], ebp
mov esi, dword [edx + 0x60]
mov dword [esp + 0x74], esi
mov edx, dword [edx + 0x64]
mov dword [esp + 0x70], edx
call sym.runtime.printlock
lea eax, [0x4fc489]
mov dword [esp], eax
mov dword [esp + 4], 3
call sym.runtime.printstring
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call sym.runtime.printuint
lea eax, [0x4fc903]
mov dword [esp], eax
mov dword [esp + 4], 6
call sym.runtime.printstring
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x18]
mov dword [esp], ecx
call sym.runtime.printuint
lea eax, [0x4fdf72]
mov dword [esp], eax
mov dword [esp + 4], 0xc
call sym.runtime.printstring
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
sub eax, ecx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x70]
sbb ecx, edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.runtime.printint
lea eax, [0x4fdf7e]
mov dword [esp], eax
mov dword [esp + 4], 0xc
call sym.runtime.printstring
movsd xmm0, qword [esp + 0x88]
movsd qword [esp], xmm0
call sym.runtime.printfloat
lea eax, [0x4fc3fa]
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.runtime.printstring
call sym.runtime.printunlock
call sym.runtime.printlock
call sym.runtime.printnl
call sym.runtime.printunlock
mov eax, dword [0x5e3958]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
movzx ecx, byte [eax + 0x8b]
lea edx, [ecx - 1]
nop
mov byte [eax + 0x8b], dl
cmp cl, 1
jne 0x41e0c1
nop
nop
lea eax, [0x5e38d8]
mov dword [esp], eax
call sym.runtime.unlock2
add esp, 0xc0
ret
call sym.runtime.morestack_noctxt
jmp sym.runtime._gcControllerState_.endCycle