user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<modelhess>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,%rbp
  mov    %esi,%ebx
  mov    %rdx,%r13
  movsd  %xmm0,0x60(%rsp)
  mov    %rcx,0x68(%rsp)
  pxor   %xmm0,%xmm0
  movsd  0x60(%rsp),%xmm3
  ucomisd %xmm3,%xmm0
  ja     L420
  sqrtsd %xmm3,%xmm3
  movsd  %xmm3,0x58(%rsp)
L163:
  movslq %ebx,%r14
  mov    %r14,0x70(%rsp)
  mov    %ebx,%edi
  imul   %ebx,%edi
  shl    $0x3,%edi
  call   <malloc@plt>
  mov    %rax,%r15
  test   %ebx,%ebx
  jle    L376
  lea    0x0(,%r14,8),%r8
  mov    %rbp,%rdi
  mov    %r13,%rcx
  lea    -0x1(%rbx),%r9d
  shl    $0x3,%r9
  lea    0x8(%r13,%r9,1),%r10
  mov    %rbp,%rdx
  mov    %ebx,%esi
L67:
  mov    $0x0,%eax
L24:
  movsd  (%rcx),%xmm1
  mulsd  0x0(%r13,%rax,8),%xmm1
  movsd  (%rdx,%rax,8),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %rsi,%rax
  jne    L24
  add    %r8,%rdx
  add    $0x8,%rcx
  cmp    %r10,%rcx
  jne    L67
  add    $0x8,%r8
  mov    %r15,%rax
  lea    0x8(%r15,%r9,1),%rdx
L349:
  movsd  (%rdi),%xmm0
  movsd  %xmm0,(%rax)
  add    %r8,%rdi
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L349
  mov    %ebx,%esi
  mov    %r15,%rdi
  call   <array_max@plt>
  movq   %xmm0,%r14
  mov    %ebx,%esi
  mov    %r15,%rdi
  call   <array_min@plt>
  movq   %r14,%xmm1
  comisd D24(%rip),%xmm1
  jbe    L254
L519:
  mov    %r15,%rdx
  mov    $0x0,%eax
L385:
  movq   $0x0,(%rdx)
  add    $0x1,%eax
  add    $0x8,%rdx
  cmp    %eax,%ebx
  jg     L385
  movsd  0x58(%rsp),%xmm2
  mulsd  %xmm1,%xmm2
  mov    D24(%rip),%r12
  comisd %xmm0,%xmm2
  jb     L541
  subsd  %xmm0,%xmm1
  addsd  %xmm1,%xmm1
  mulsd  0x58(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  movq   %xmm1,%r12
  movq   %r14,%xmm7
  addsd  %xmm1,%xmm7
  movq   %xmm7,%r14
  test   %ebx,%ebx
  jle    L309
L541:
  mov    $0x0,%edi
  mov    $0x0,%esi
  mov    $0x0,%ecx
  jmp    L318
L420:
  movsd  0x60(%rsp),%xmm0
  call   <sqrt@plt>
  movsd  %xmm0,0x58(%rsp)
  jmp    L163
L309:
  mov    $0x0,%esi
  jmp    L465
L215:
  add    $0x1,%eax
  cmp    %eax,%ebx
  jle    L37
L282:
  cmp    %eax,%ecx
  jge    L215
  lea    (%rax,%rdi,1),%edx
  movslq %edx,%rdx
  movsd  0x0(%rbp,%rdx,8),%xmm0
  movslq %esi,%rdx
  movsd  %xmm0,(%r15,%rdx,8)
  add    $0x1,%esi
  jmp    L215
L37:
  add    $0x1,%ecx
  add    %ebx,%edi
  cmp    %ecx,%ebx
  jle    L465
L318:
  mov    $0x0,%eax
  jmp    L282
L455:
  movq   %r12,%xmm2
  comisd D24(%rip),%xmm2
  jbe    L51
  jmp    L84
L531:
  movq   %r14,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  jmp    L288
L351:
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L520
  movapd %xmm0,%xmm1
  sqrtsd %xmm1,%xmm1
  jmp    L288
L520:
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  jmp    L288
L348:
  test   %r13d,%r13d
  jle    L553
  mov    0x28(%rsp),%rbp
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
L70:
  movsd  0x0(%rbp),%xmm0
  call   <fabs@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  add    $0x8,%rbp
  cmp    %r14,%rbp
  jne    L70
L133:
  mov    0x40(%rsp),%rdi
  add    %rdi,%r15
  mov    0x38(%rsp),%rsi
  add    %rsi,0x20(%rsp)
  mov    0x48(%rsp),%rsi
  add    %rsi,0x28(%rsp)
  add    %rdi,%r14
L91:
  add    $0x1,%r13d
  cmp    %r13d,%ebx
  jle    L63
  mov    0x54(%rsp),%eax
  sub    %r13d,%eax
  add    0x20(%rsp),%rax
  mov    0x30(%rsp),%rdi
  lea    0x10(%rdi,%rax,8),%r12
  mov    %r15,%rbp
L358:
  movsd  0x0(%rbp),%xmm0
  call   <fabs@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  add    $0x8,%rbp
  cmp    %r12,%rbp
  jne    L358
L63:
  movsd  -0x8(%r15),%xmm0
  movsd  0x8(%rsp),%xmm6
  movapd %xmm6,%xmm1
  addsd  %xmm0,%xmm1
  maxsd  0x10(%rsp),%xmm1
  movsd  %xmm1,0x10(%rsp)
  subsd  %xmm6,%xmm0
  minsd  0x18(%rsp),%xmm0
  movsd  %xmm0,0x18(%rsp)
  cmp    %r13d,%ebx
  jne    L348
  mov    0x80(%rsp),%r15
  mov    0x30(%rsp),%rbp
  mov    0x88(%rsp),%r13
  movapd %xmm1,%xmm0
  movsd  0x18(%rsp),%xmm2
  subsd  %xmm2,%xmm0
  mulsd  0x58(%rsp),%xmm0
  subsd  %xmm2,%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  ja     L98
L555:
  minsd  0x78(%rsp),%xmm0
  movsd  %xmm0,0x78(%rsp)
L232:
  test   %ebx,%ebx
  jle    L93
  mov    0x70(%rsp),%rax
  lea    0x8(,%rax,8),%rdx
  mov    %rbp,%rax
  mov    $0x0,%esi
  movsd  0x78(%rsp),%xmm1
L363:
  movapd %xmm1,%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%esi
  add    %rdx,%rax
  cmp    %esi,%ebx
  jne    L363
  pxor   %xmm1,%xmm1
  movsd  0x60(%rsp),%xmm0
  mov    0x68(%rsp),%rdx
  mov    %rbp,%rdi
  call   <cholmod@plt>
  movq   %xmm0,%r12
L20:
  mov    0x70(%rsp),%rsi
  shl    $0x3,%rsi
  mov    %r13,%rcx
  mov    %r13,%rdx
  mov    $0x0,%edi
L29:
  mov    $0x0,%eax
L300:
  movsd  (%rdx),%xmm0
  mulsd  0x0(%r13,%rax,8),%xmm0
  mulsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L300
  add    $0x1,%edi
  add    %rsi,%rbp
  add    $0x8,%rdx
  cmp    %edi,%ebx
  jg     L29
  mov    0x68(%rsp),%rdx
  mov    %rdx,%r8
  lea    0x8(%rsi),%r9
  add    $0x8,%rdx
  mov    $0x0,%edi
L366:
  test   %edi,%edi
  js     L82
  mov    %r8,%rax
L221:
  movsd  (%rax),%xmm0
  mulsd  (%rcx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L221
L82:
  add    $0x1,%edi
  add    %rsi,%r8
  add    $0x8,%rcx
  add    %r9,%rdx
  cmp    %edi,%ebx
  jg     L366
L235:
  mov    %r15,%rdi
  call   <free@plt>
  movq   %r12,%xmm0
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L553:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x8(%rsp)
  jmp    L133
L98:
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x78(%rsp)
  jmp    L232
L202:
  pxor   %xmm1,%xmm1
  movsd  0x60(%rsp),%xmm0
  mov    0x68(%rsp),%rdx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <cholmod@plt>
  movq   %xmm0,%r12
  test   %ebx,%ebx
  jg     L20
  jmp    L235
L254:
  pxor   %xmm1,%xmm1
  jmp    L519
L376:
  mov    %ebx,%esi
  mov    %rax,%rdi
  call   <array_max@plt>
  movq   %xmm0,%r14
  mov    %ebx,%esi
  mov    %r15,%rdi
  call   <array_min@plt>
  movapd %xmm0,%xmm1
  movq   %r14,%xmm0
  comisd D24(%rip),%xmm0
  jbe    L159
L342:
  movsd  0x58(%rsp),%xmm2
  mulsd  %xmm0,%xmm2
  comisd %xmm1,%xmm2
  jae    L30
  mov    D24(%rip),%r12
  mov    $0x0,%esi
L465:
  mov    %r15,%rdi
  call   <array_max_abs@plt>
  movsd  0x58(%rsp),%xmm7
  movapd %xmm7,%xmm2
  addsd  %xmm7,%xmm2
  movapd %xmm2,%xmm1
  addsd  D26(%rip),%xmm1
  mulsd  %xmm0,%xmm1
  movq   %r14,%xmm3
  comisd %xmm3,%xmm1
  jbe    L147
  movapd %xmm0,%xmm3
  movq   %r14,%xmm7
  subsd  %xmm7,%xmm3
  mulsd  %xmm0,%xmm2
  addsd  %xmm3,%xmm2
  movq   %r12,%xmm6
  addsd  %xmm2,%xmm6
  movq   %xmm6,%r12
  movq   %xmm1,%r14
L147:
  movq   %r14,%xmm2
  ucomisd D24(%rip),%xmm2
  jp     L455
  jne    L455
  mov    D26(%rip),%r12
  mov    %r12,%r14
L84:
  test   %ebx,%ebx
  jle    L51
  mov    0x70(%rsp),%rax
  lea    0x8(,%rax,8),%rcx
  mov    %rbp,%rax
  mov    $0x0,%edx
  movq   %r12,%xmm2
L397:
  movapd %xmm2,%xmm1
  addsd  (%rax),%xmm1
  movsd  %xmm1,(%rax)
  add    $0x1,%edx
  add    %rcx,%rax
  cmp    %edx,%ebx
  jne    L397
L51:
  pxor   %xmm1,%xmm1
  cvtsi2sd %ebx,%xmm1
  divsd  %xmm1,%xmm0
  movq   %r14,%xmm3
  comisd %xmm0,%xmm3
  jbe    L351
  pxor   %xmm0,%xmm0
  ucomisd %xmm3,%xmm0
  ja     L531
  movq   %r14,%xmm1
  sqrtsd %xmm1,%xmm1
L288:
  movsd  0x60(%rsp),%xmm0
  mov    0x68(%rsp),%rdx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <cholmod@plt>
  movsd  %xmm0,0x78(%rsp)
  comisd D24(%rip),%xmm0
  jbe    L202
  movsd  0x0(%rbp),%xmm7
  movsd  %xmm7,0x10(%rsp)
  test   %ebx,%ebx
  jle    L108
  mov    0x70(%rsp),%rax
  add    $0x1,%rax
  mov    %rax,0x38(%rsp)
  lea    0x0(,%rax,8),%rdi
  mov    %rdi,0x40(%rsp)
  lea    0x8(%rbp),%rax
  sub    $0x8,%rdi
  mov    %rdi,0x48(%rsp)
  lea    0x0(%rbp,%rdi,1),%rsi
  mov    %rsi,0x28(%rsp)
  mov    %rax,%r14
  add    %rdi,%r14
  movsd  0x10(%rsp),%xmm6
  movsd  %xmm6,0x18(%rsp)
  movq   $0x0,0x20(%rsp)
  mov    $0x0,%esi
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
  lea    -0x1(%rbx),%edi
  mov    %edi,0x54(%rsp)
  mov    %r15,0x80(%rsp)
  mov    %rax,%r15
  mov    %rbp,0x30(%rsp)
  mov    %r13,0x88(%rsp)
  mov    %esi,%r13d
  jmp    L91
L159:
  pxor   %xmm0,%xmm0
  jmp    L342
L108:
  movsd  0x10(%rsp),%xmm2
  movapd %xmm2,%xmm0
  subsd  %xmm2,%xmm0
  mulsd  0x58(%rsp),%xmm0
  subsd  %xmm2,%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  jbe    L555
L93:
  pxor   %xmm1,%xmm1
  movsd  0x60(%rsp),%xmm0
  mov    0x68(%rsp),%rdx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <cholmod@plt>
  movq   %xmm0,%r12
  jmp    L235
L30:
  subsd  %xmm1,%xmm0
  addsd  %xmm0,%xmm0
  mulsd  0x58(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  movq   %xmm0,%r12
  movq   %r14,%xmm7
  addsd  %xmm0,%xmm7
  movq   %xmm7,%r14
  mov    $0x0,%esi
  jmp    L465
```

tool_calls: name: retrieve_data
arguments: data_label: D24
type_infered: f64[2]
name: retrieve_data
arguments: data_label: D26
type_infered: byte[8]

tool: {"D24": [0.0,1.0]}

tool: {"D26": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
double modelhess(double *A, int N, double *dx, double eps, double *L) {
  double *U22;
  double sqrteps, maxdiag, mindiag, maxposdiag, u;
  double maxoffdiag, maxinp, maxadd;
  double maxev, minev, offrow, sdd;
  int step, i, j, k;
  sqrteps = sqrt(eps);
  U22 = (double *)malloc(sizeof(double) * N * N);
  for (i = 0; i < N; ++i) {
    step = i * N;
    for (j = 0; j < N; ++j) {
      A[step + j] /= (dx[i] * dx[j]);
    }
  }
  for (i = 0; i < N; ++i) {
    U22[i] = A[i + i * N];
  }
  maxdiag = array_max(U22, N);
  mindiag = array_min(U22, N);
  maxposdiag = 0.0;
  if (maxdiag > maxposdiag) {
    maxposdiag = maxdiag;
  }
  for (i = 0; i < N; ++i) {
    U22[i] = 0.0;
  }
  u = 0.0;
  if (mindiag <= sqrteps * maxposdiag) {
    u = 2 * (maxposdiag - mindiag) * sqrteps - mindiag;
    maxdiag += u;
  }
  k = 0;
  for (i = 0; i < N; ++i) {
    for (j = 0; j < N; ++j) {
      if (j > i) {
        U22[k] = A[i * N + j];
        k++;
      }
    }
  }
  maxoffdiag = array_max_abs(U22, k);
  if (maxoffdiag * (1 + 2 * sqrteps) > maxdiag) {
    u += (maxoffdiag - maxdiag) + 2 * sqrteps * maxoffdiag;
    maxdiag = maxoffdiag * (1 + 2 * sqrteps);
  }
  if (maxdiag == 0) {
    u = 1;
    maxdiag = 1;
  }
  if (u > 0) {
    for (i = 0; i < N; ++i) {
      A[i * N + i] += u;
    }
  }
  if (maxdiag > maxoffdiag / N) {
    maxinp = sqrt(maxdiag);
  } else {
    maxinp = sqrt(maxoffdiag / N);
  }
  maxadd = cholmod(A, N, L, eps, maxinp);
  if (maxadd > 0) {
    maxev = minev = A[0];
    for (i = 0; i < N; ++i) {
      offrow = 0.0;
      step = i * N;
      for (j = 0; j < i; ++j) {
        offrow += fabs(A[step + j]);
      }
      for (j = i + 1; j < N; ++j) {
        offrow += fabs(A[step + j]);
      }
      if (maxev < A[step + i] + offrow) {
        maxev = A[step + i] + offrow;
      }
      if (minev > A[step + i] - offrow) {
        minev = A[step + i] - offrow;
      }
    }
    sdd = (maxev - minev) * sqrteps - minev;
    if (sdd < 0) {
      sdd = 0;
    }
    if (maxadd > sdd) {
      u = sdd;
    } else {
      u = maxadd;
    }
    for (i = 0; i < N; ++i) {
      A[i * N + i] += u;
    }
  }
  maxadd = cholmod(A, N, L, eps, 0.0);
  for (i = 0; i < N; ++i) {
    step = i * N;
    for (j = 0; j < N; ++j) {
      A[step + j] *= (dx[i] * dx[j]);
    }
  }
  for (i = 0; i < N; ++i) {
    step = i * N;
    for (j = 0; j < i + 1; ++j) {
      L[step + j] *= dx[i];
    }
  }
  free(U22);
  return maxadd;
}
```