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

```asm
<cholmod>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,0x38(%rsp)
  mov    %esi,%ebp
  mov    %rdx,0x40(%rsp)
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm1,0x30(%rsp)
  movslq %esi,%rax
  mov    %rax,(%rsp)
  mov    %esi,%edi
  imul   %esi,%edi
  shl    $0x3,%edi
  call   <malloc@plt>
  mov    %rax,0x78(%rsp)
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm7
  ucomisd %xmm7,%xmm0
  ja     L32
  sqrtsd %xmm7,%xmm7
  movapd %xmm7,%xmm0
L173:
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L207
  sqrtsd %xmm0,%xmm0
L147:
  mulsd  0x30(%rsp),%xmm0
  movsd  %xmm0,0x48(%rsp)
  test   %ebp,%ebp
  jle    L313
  mov    (%rsp),%rax
  lea    0x8(,%rax,8),%rsi
  mov    0x38(%rsp),%rdx
  mov    0x78(%rsp),%rdi
  mov    %rdi,%rax
  mov    %ebp,%ecx
  lea    (%rdi,%rcx,8),%rcx
L3:
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    %rsi,%rdx
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L3
  mov    %ebp,%edx
  imul   %ebp,%edx
L185:
  mov    $0x0,%eax
  mov    0x40(%rsp),%rcx
L116:
  movq   $0x0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%edx
  jg     L116
L113:
  mov    %ebp,%esi
  mov    0x78(%rsp),%rdi
  call   <array_max_abs@plt>
  movsd  0x30(%rsp),%xmm6
  ucomisd D2(%rip),%xmm6
  jp     L226
  je     L194
L226:
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm7
  ucomisd %xmm7,%xmm0
  ja     L6
  sqrtsd %xmm7,%xmm7
  movapd %xmm7,%xmm0
L78:
  mulsd  0x30(%rsp),%xmm0
  movsd  %xmm0,0x70(%rsp)
  test   %ebp,%ebp
  jle    L229
  mov    (%rsp),%rax
  lea    0x8(,%rax,8),%rdi
  mov    %rdi,0x60(%rsp)
  lea    0x0(,%rax,8),%rbx
  mov    %rbx,0x8(%rsp)
  mov    0x40(%rsp),%rax
  lea    0x8(%rax),%r13
  mov    %r13,0x58(%rsp)
  add    %rbx,%r13
  mov    %ebp,%edi
  mov    %rdi,0x50(%rsp)
  mov    %rax,%rdi
  add    %rbx,%rdi
  mov    %rdi,0x68(%rsp)
  mov    %rax,0x18(%rsp)
  mov    0x38(%rsp),%rax
  mov    %rax,0x10(%rsp)
  mov    $0x0,%r15d
  mov    $0x1,%r14d
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x28(%rsp)
  movl   $0x0,0x20(%rsp)
  movapd %xmm7,%xmm1
  jmp    L68
L32:
  movsd  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L173
L207:
  call   <sqrt@plt>
  jmp    L147
L313:
  mov    %ebp,%edx
  imul   %ebp,%edx
  test   %edx,%edx
  jle    L113
  jmp    L185
L194:
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L210
  sqrtsd %xmm0,%xmm0
  movsd  %xmm0,0x30(%rsp)
  jmp    L226
L210:
  call   <sqrt@plt>
  movsd  %xmm0,0x30(%rsp)
  jmp    L226
L6:
  movsd  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L78
L22:
  pxor   %xmm1,%xmm1
  jmp    L52
L197:
  pxor   %xmm2,%xmm2
  jmp    L200
L254:
  pxor   %xmm7,%xmm7
  ucomisd %xmm0,%xmm7
  ja     L51
  movapd %xmm0,%xmm2
  sqrtsd %xmm2,%xmm2
L255:
  movsd  %xmm2,(%r12)
  cmp    0x50(%rsp),%r14
  je     L325
  lea    -0x8(%r13),%rax
L124:
  movsd  (%rax),%xmm0
  divsd  (%r12),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%ebx
  add    0x8(%rsp),%rax
  cmp    %ebx,%ebp
  jne    L124
  add    %ebx,0x20(%rsp)
  cmpl   $0x0,0x24(%rsp)
  jle    L74
  mov    0x68(%rsp),%rax
  lea    (%rax,%r15,8),%rax
  pxor   %xmm1,%xmm1
L73:
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L73
L192:
  add    $0x1,%r14
  mov    0x60(%rsp),%rax
  add    %rax,0x10(%rsp)
  add    %rax,0x18(%rsp)
  add    (%rsp),%r15
  add    %rax,%r13
L68:
  lea    -0x1(%r14),%r8d
  mov    0x18(%rsp),%rax
  mov    %rax,%r12
  mov    0x10(%rsp),%rdi
  movsd  (%rdi),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    %r14d,%ebx
  mov    %r14d,0x24(%rsp)
  cmp    %r14d,%ebp
  jle    L197
  mov    0x20(%rsp),%eax
  lea    (%rax,%rbp,1),%edx
  movslq %edx,%rdx
  sub    %r15,%rdx
  lea    0x0(,%r15,8),%rdi
  mov    0x40(%rsp),%rax
  lea    (%rax,%rdi,1),%r9
  lea    -0x2(%r14),%eax
  add    %r15,%rax
  mov    0x58(%rsp),%rsi
  lea    (%rsi,%rax,8),%rcx
  add    0x38(%rsp),%rdi
  mov    %r14,%rsi
  pxor   %xmm2,%xmm2
L2:
  test   %r8d,%r8d
  jle    L22
  mov    %r9,%rax
  pxor   %xmm1,%xmm1
L100:
  movsd  (%rax),%xmm0
  mulsd  (%rax,%rdx,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L100
L52:
  movsd  (%rdi,%rsi,8),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%r12,%rdx,8)
  andpd  D10(%rip),%xmm0
  maxsd  %xmm2,%xmm0
  movapd %xmm0,%xmm2
  add    $0x1,%rsi
  add    (%rsp),%rdx
  cmp    %esi,%ebp
  jg     L2
L200:
  divsd  0x30(%rsp),%xmm2
  maxsd  0x48(%rsp),%xmm2
  movsd  (%r12),%xmm0
  movapd %xmm2,%xmm1
  mulsd  %xmm2,%xmm1
  comisd %xmm1,%xmm0
  ja     L254
  movsd  0x70(%rsp),%xmm3
  maxsd  %xmm2,%xmm3
  movapd %xmm3,%xmm2
  movapd %xmm3,%xmm1
  mulsd  %xmm3,%xmm1
  subsd  %xmm0,%xmm1
  maxsd  0x28(%rsp),%xmm1
  movsd  %xmm1,0x28(%rsp)
  jmp    L255
L51:
  call   <sqrt@plt>
  movapd %xmm0,%xmm2
  jmp    L255
L229:
  pxor   %xmm5,%xmm5
  movsd  %xmm5,0x28(%rsp)
L325:
  mov    0x78(%rsp),%rdi
  call   <free@plt>
  movsd  0x28(%rsp),%xmm0
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L74:
  pxor   %xmm1,%xmm1
  jmp    L192
```

tool_calls: name: unpack_data
arguments: tag: D2
type_guessed: f64
name: unpack_data
arguments: tag: D10
type_guessed: qword[2]

tool: D2: 0

tool: {"D10": [0x7fffffffffffffff,0x0000000000000000]}

assistant: ```c
double cholmod(double *A, int N, double *L, double eps, double maxinp) {
  int i, j, k, step, step2;
  double ls;
  double *U22;
  double maxadd, maxdiag, minl, minl2, minljj;
  U22 = (double *)malloc(sizeof(double) * N * N);
  minl = sqrt(sqrt(eps)) * maxinp;
  maxadd = 0.0;
  for (i = 0; i < N; ++i) {
    U22[i] = A[i + i * N];
  }
  for (i = 0; i < N * N; ++i) {
    L[i] = 0.0;
  }
  maxdiag = array_max_abs(U22, N);
  if (maxinp == 0.0) {
    maxinp = sqrt(maxdiag);
  }
  minl2 = sqrt(eps) * maxinp;
  for (j = 0; j < N; ++j) {
    step = j * N;
    ls = 0.0;
    for (i = 0; i < j; ++i) {
      ls += L[step + i] * L[step + i];
    }
    L[step + j] = A[step + j] - ls;
    minljj = 0.0;
    for (i = j + 1; i < N; ++i) {
      ls = 0.0;
      step2 = i * N;
      for (k = 0; k < j; ++k) {
        ls += L[step + k] * L[step2 + k];
      }
      L[step2 + j] = A[step + i] - ls;
      if (fabs(L[step2 + j]) > minljj) {
        minljj = fabs(L[step2 + j]);
      }
    }
    if (minljj / maxinp > minl) {
      minljj = minljj / maxinp;
    } else {
      minljj = minl;
    }
    if (L[step + j] > minljj * minljj) {
      L[step + j] = sqrt(L[step + j]);
    } else {
      if (minljj < minl2) {
        minljj = minl2;
      }
      if (maxadd < (minljj * minljj - L[step + j])) {
        maxadd = minljj * minljj - L[step + j];
      }
      L[step + j] = minljj;
    }
    for (i = j + 1; i < N; ++i) {
      L[i * N + j] /= L[step + j];
    }
  }
  free(U22);
  return maxadd;
}
```