user: What is the c source code of the assembly code below?

```asm
<cholesky>:
  endbr64
  push   %r15
  push   %r14
  mov    %esi,%r14d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %esi,%edi
  imul   %esi,%edi
  sub    $0x28,%rsp
  mov    %esi,0xc(%rsp)
  movslq %edi,%rdi
  mov    $0x8,%esi
  call   <calloc@plt>
  mov    %rax,%r12
  test   %r14d,%r14d
  jle    L95
  movsd  (%rbx),%xmm0
  pxor   %xmm2,%xmm2
  ucomisd %xmm0,%xmm2
  movsd  %xmm0,(%rax)
  ja     L39
  sqrtsd %xmm0,%xmm0
  movsd  %xmm0,(%r12)
L60:
  cmpl   $0x1,0xc(%rsp)
  je     L95
  movslq 0xc(%rsp),%rax
  mov    $0x1,%r14d
  mov    %rax,%rdi
  shl    $0x3,%rax
  mov    %rax,0x18(%rsp)
  lea    (%rbx,%rax,1),%rbp
  add    $0x8,%rax
  mov    %rax,0x10(%rsp)
  lea    0x1(%rdi),%eax
  cltq
  lea    (%rbx,%rax,8),%rax
  mov    %rax,(%rsp)
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L52:
  lea    0x1(%rax),%r15d
  movsd  0x0(%rbp),%xmm0
  mov    %r14d,%r13d
  mov    %r15d,%r10d
  imul   %eax,%r10d
  sar    %r10d
  lea    (%r10,%rax,1),%edx
  movslq %r10d,%r10
  movslq %edx,%rdx
  lea    (%r12,%rdx,8),%rbx
  lea    0x0(,%r10,8),%rdx
  lea    (%r12,%rdx,1),%r9
  movsd  %xmm0,(%r9)
  divsd  (%r12),%xmm0
  movsd  %xmm0,(%r9)
  cmp    $0x1,%r14
  je     L8
  lea    -0x2(%rax),%r11d
  lea    0x8(%r12,%rdx,1),%rdx
  mov    $0x2,%edi
  mov    $0x1,%esi
  add    $0x2,%r11
  nopl   (%rax)
L96:
  mov    %esi,%ecx
  movsd  0x0(%rbp,%rsi,8),%xmm1
  mov    %esi,%r8d
  mov    %r9,%rax
  imul   %edi,%ecx
  movsd  %xmm1,(%rdx)
  sar    %ecx
  movslq %ecx,%rcx
  sub    %r10,%rcx
  nopl   (%rax)
L77:
  movsd  (%rax,%rcx,8),%xmm0
  mulsd  (%rax),%xmm0
  add    $0x8,%rax
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rdx)
  cmp    %rax,%rdx
  jne    L77
  mov    %r8d,%eax
  add    $0x1,%rsi
  add    $0x8,%rdx
  imul   %edi,%eax
  add    $0x1,%rdi
  sar    %eax
  add    %r8d,%eax
  cltq
  divsd  (%r12,%rax,8),%xmm1
  movsd  %xmm1,-0x8(%rdx)
  cmp    %rsi,%r11
  jne    L96
L8:
  mov    (%rsp),%rax
  movsd  (%rax),%xmm1
  xor    %eax,%eax
  movsd  %xmm1,(%rbx)
  nopl   0x0(%rax)
L57:
  movsd  (%r9,%rax,8),%xmm0
  add    $0x1,%rax
  mulsd  %xmm0,%xmm0
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rbx)
  cmp    %eax,%r13d
  jg     L57
  ucomisd %xmm1,%xmm2
  ja     L1
  sqrtsd %xmm1,%xmm1
  add    $0x1,%r14
  add    0x18(%rsp),%rbp
  movsd  %xmm1,(%rbx)
  mov    0x10(%rsp),%rbx
  add    %rbx,(%rsp)
  cmp    %r15d,0xc(%rsp)
  je     L95
L51:
  mov    %r15d,%eax
  jmp    L52
L1:
  movapd %xmm1,%xmm0
  add    $0x1,%r14
  call   <sqrt@plt>
  add    0x18(%rsp),%rbp
  pxor   %xmm2,%xmm2
  movsd  %xmm0,(%rbx)
  mov    0x10(%rsp),%rbx
  add    %rbx,(%rsp)
  cmp    %r15d,0xc(%rsp)
  jne    L51
L95:
  add    $0x28,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L39:
  call   <sqrt@plt>
  pxor   %xmm2,%xmm2
  movsd  %xmm0,(%r12)
  jmp    L60
```

assistant: ```c
double *cholesky(double *A, int n) {
  register int i, j, k;
  double *L = (double *)calloc(n * n, sizeof(double));
  for (i = 0; i < n; ++i) {
    for (j = 0; j < i; ++j) {
      L[((((i) * (i + 1)) / 2) + (j))] = A[((i * n) + j)];
      for (k = 0; k < j; ++k) {
        L[((((i) * (i + 1)) / 2) + (j))] -= L[((((i) * (i + 1)) / 2) + (k))] * L[((((j) * (j + 1)) / 2) + (k))];
      }
      L[((((i) * (i + 1)) / 2) + (j))] /= L[((((j) * (j + 1)) / 2) + (j))];
    }
    L[((((j) * (j + 1)) / 2) + (j))] = A[((j * n) + j)];
    for (k = 0; k < i; ++k) {
      L[((((i) * (i + 1)) / 2) + (i))] -= L[((((i) * (i + 1)) / 2) + (k))] * L[((((i) * (i + 1)) / 2) + (k))];
    }
    L[((((i) * (i + 1)) / 2) + (i))] = sqrt(L[((((i) * (i + 1)) / 2) + (i))]);
  }
  return L;
}
```