# sqrt_c.asm
# rdi - address of array
# rdx - address of variable for sum

section .note.GNU-stack 
section .data
section .text
global sqrt_c
sqrt_c:
push rax           
mov eax, dword[rdi]
cvtsi2sd xmm1, eax
sqrtsd xmm0, xmm1
cvtsd2si eax, xmm0
mov dword[rdx], eax
pop rax
ret

