user: Converte this assembly snippet into its equivalent C code:

```asm
<chol_eps>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %rsi,-0x40(%rbp)
  movsd  %xmm0,-0x48(%rbp)
  mov    %rdx,-0x50(%rbp)
  movl   $0x0,-0x28(%rbp)
  jmp    L45
L41:
  movl   $0x0,-0x24(%rbp)
  jmp    L35
L5:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L10
L19:
  mov    -0x28(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x24(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  addl   $0x1,-0x20(%rbp)
L10:
  mov    -0x20(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L19
  mov    -0x24(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  jge    L1
  mov    -0x28(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  subsd  -0x18(%rbp),%xmm0
  mov    -0x24(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x28(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L18
L1:
  mov    -0x28(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  -0x48(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x28(%rbp),%edx
  mov    %edx,%ecx
  imul   -0x34(%rbp),%ecx
  mov    -0x24(%rbp),%edx
  add    %ecx,%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x50(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
L18:
  addl   $0x1,-0x24(%rbp)
L35:
  mov    -0x28(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jge    L5
  mov    -0x28(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L50
L48:
  mov    -0x28(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x1c(%rbp)
L50:
  mov    -0x1c(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L48
  addl   $0x1,-0x28(%rbp)
L45:
  mov    -0x28(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L41
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void chol_eps(int n, const double A[], double eps, double L[]) {
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < i + 1; ++j) {
      double s = 0;
      for (int k = 0; k < j; ++k)
        s += L[i * n + k] * L[j * n + k];
      if (j < i)
        L[i * n + j] = (A[i * n + j] - s) / L[j * n + j];
      else
        L[i * n + j] = sqrt(A[i * n + i] + eps - s);
    }
    for (int j = i + 1; j < n; ++j)
      L[i * n + j] = 0;
  }
}
```