user: What would the C source look like for the assembly code provided here?

```asm
<Linefit>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9,-0x50(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L10
L26:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  -0x18(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  -0x14(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  addl   $0x1,-0x4(%rbp)
L10:
  mov    -0x4(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L26
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x34(%rbp),%xmm1
  movss  -0x18(%rbp),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x34(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x8(%rbp)
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L11
L5:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movaps %xmm0,%xmm1
  subss  -0x18(%rbp),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  subss  -0x18(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x10(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movaps %xmm0,%xmm1
  subss  -0x14(%rbp),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  subss  -0x18(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0xc(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movaps %xmm0,%xmm1
  subss  -0x18(%rbp),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  subss  -0x14(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x8(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x8(%rbp)
  addl   $0x1,-0x4(%rbp)
L11:
  mov    -0x4(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L5
  movss  -0x8(%rbp),%xmm0
  divss  -0x10(%rbp),%xmm0
  mov    -0x48(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    -0x48(%rbp),%rax
  movss  (%rax),%xmm0
  movaps %xmm0,%xmm1
  mulss  -0x18(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  subss  %xmm1,%xmm0
  mov    -0x40(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    -0x10(%rbp),%eax
  movd   %eax,%xmm0
  call   <sqrt@plt>
  movss  %xmm0,-0x38(%rbp)
  mov    -0xc(%rbp),%eax
  movd   %eax,%xmm0
  call   <sqrt@plt>
  movss  -0x38(%rbp),%xmm1
  mulss  %xmm0,%xmm1
  movss  -0x8(%rbp),%xmm0
  divss  %xmm1,%xmm0
  mov    -0x50(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    $0x1,%eax
  leave
  ret
```

assistant: ```c
int Linefit(float *x, float *y, int N, float *ret_a, float *ret_b, float *ret_r) {
  float xbar, ybar;
  float sxx, syy, sxy;
  int i;
  xbar = ybar = 0.0;
  for (i = 0; i < N; i++) {
    xbar += x[i];
    ybar += y[i];
  }
  xbar /= N;
  ybar /= N;
  sxx = syy = sxy = 0.0;
  for (i = 0; i < N; i++) {
    sxx += (x[i] - xbar) * (x[i] - xbar);
    syy += (y[i] - ybar) * (y[i] - xbar);
    sxy += (x[i] - xbar) * (y[i] - ybar);
  }
  *ret_b = sxy / sxx;
  *ret_a = ybar - xbar * (*ret_b);
  *ret_r = sxy / (sqrt(sxx) * sqrt(syy));
  return 1;
}
```