user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<cholesky>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%rbp
  mov    %esi,%r15d
  mov    %esi,0x1c(%rsp)
  mov    %esi,%edi
  imul   %esi,%edi
  movslq %edi,%rdi
  mov    $0x8,%esi
  call   <calloc@plt>
  mov    %rax,%rbx
  test   %r15d,%r15d
  jle    L51
  lea    0x1(%r15),%eax
  mov    %eax,0x18(%rsp)
  movl   $0x0,0x10(%rsp)
  movl   $0x0,0xc(%rsp)
  mov    $0x1,%r15d
  mov    $0x0,%r9d
  jmp    L73
L83:
  mov    %rdx,%rax
  movsd  (%r11),%xmm0
  movsd  %xmm0,(%rdx)
  test   %edi,%edi
  jle    L52
  lea    0x2(%rsi),%ecx
  imul   %edi,%ecx
  mov    %ecx,%esi
  shr    $0x1f,%esi
  add    %ecx,%esi
  sar    %esi
  mov    %r14,%rcx
  movslq %esi,%rsi
  sub    %r12,%rsi
L57:
  movsd  (%rcx,%rsi,8),%xmm1
  mulsd  (%rcx),%xmm1
  movsd  (%rax),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rcx
  cmp    %rdx,%rcx
  jne    L57
L52:
  add    $0x8,%rdx
  add    $0x8,%r11
  mov    %edi,%esi
L29:
  lea    0x1(%rsi),%edi
  mov    %edi,%r10d
  imul   %esi,%r10d
  mov    %r10d,%ecx
  shr    $0x1f,%ecx
  add    %r10d,%ecx
  sar    %ecx
  add    %esi,%ecx
  movslq %ecx,%rcx
  movsd  (%rax),%xmm0
  divsd  (%rbx,%rcx,8),%xmm0
  movsd  %xmm0,(%rax)
  cmp    %r9d,%edi
  jne    L83
  lea    (%r9,%r13,1),%eax
  cltq
  lea    (%rbx,%rax,8),%rax
  movslq 0xc(%rsp),%rdx
  movsd  0x0(%rbp,%rdx,8),%xmm0
  movsd  %xmm0,(%rax)
  mov    0x14(%rsp),%edi
  lea    -0x1(%rdi),%edx
  add    %r12,%rdx
  lea    0x8(%rbx,%rdx,8),%rdx
L64:
  movsd  (%r8),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  (%rax),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  add    $0x8,%r8
  cmp    %rdx,%r8
  jne    L64
L98:
  lea    0x1(%r9),%r12d
  mov    %r12d,%edx
  imul   %r9d,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  add    %r9d,%eax
  cltq
  lea    (%rbx,%rax,8),%r13
  movsd  0x0(%r13),%xmm0
  pxor   %xmm2,%xmm2
  ucomisd %xmm0,%xmm2
  ja     L88
  sqrtsd %xmm0,%xmm0
L10:
  movsd  %xmm0,0x0(%r13)
  add    $0x1,%r15d
  mov    0x18(%rsp),%edi
  add    %edi,0xc(%rsp)
  mov    0x1c(%rsp),%edi
  add    %edi,0x10(%rsp)
  cmp    %edi,%r12d
  je     L51
  mov    %r12d,%r9d
L73:
  test   %r9d,%r9d
  jle    L92
  movslq 0x10(%rsp),%rax
  mov    %r15d,%edx
  imul   %r9d,%edx
  mov    %edx,%r13d
  shr    $0x1f,%r13d
  add    %edx,%r13d
  sar    %r13d
  movslq %r13d,%r12
  lea    (%rbx,%r12,8),%r8
  movsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,(%r8)
  mov    %r9d,0x14(%rsp)
  lea    0x8(,%r12,8),%rcx
  lea    (%rbx,%rcx,1),%rdx
  lea    0x8(%rbp,%rax,8),%r11
  lea    -0x8(%rbx,%rcx,1),%r14
  mov    %r8,%rax
  mov    $0x0,%esi
  jmp    L29
L88:
  call   <sqrt@plt>
  jmp    L10
L92:
  movsd  0x0(%rbp),%xmm0
  movsd  %xmm0,(%rbx)
  jmp    L98
L51:
  mov    %rbx,%rax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

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;
}
```