user: 请从给定的汇编指令推导出C源代码:

```asm
<modelhess>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,%rbp
  mov    %esi,%ebx
  mov    %rdx,%r13
  mov    %rcx,0x60(%rsp)
  movslq %esi,%r14
  mov    %r14,0x58(%rsp)
  mov    %esi,%edi
  imul   %esi,%edi
  shl    $0x3,%edi
  call   <malloc@plt>
  mov    %rax,%r15
  test   %ebx,%ebx
  jle    L423
  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
L212:
  mov    $0x0,%eax
L369:
  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    L369
  add    %r8,%rdx
  add    $0x8,%rcx
  cmp    %r10,%rcx
  jne    L212
  add    $0x8,%r8
  mov    %r15,%rax
  lea    0x8(%r15,%r9,1),%rdx
L446:
  movsd  (%rdi),%xmm0
  movsd  %xmm0,(%rax)
  add    %r8,%rdi
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L446
  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 D115(%rip),%xmm1
  jbe    L353
L56:
  mov    %r15,%rdx
  mov    $0x0,%eax
L398:
  movq   $0x0,(%rdx)
  add    $0x1,%eax
  add    $0x8,%rdx
  cmp    %eax,%ebx
  jg     L398
  movapd %xmm1,%xmm2
  mulsd  D110(%rip),%xmm2
  mov    D115(%rip),%r12
  comisd %xmm0,%xmm2
  jb     L162
  subsd  %xmm0,%xmm1
  addsd  %xmm1,%xmm1
  mulsd  D110(%rip),%xmm1
  subsd  %xmm0,%xmm1
  movq   %xmm1,%r12
  movq   %r14,%xmm3
  addsd  %xmm1,%xmm3
  movq   %xmm3,%r14
  test   %ebx,%ebx
  jle    L106
L162:
  mov    $0x0,%edi
  mov    $0x0,%esi
  mov    $0x0,%ecx
  jmp    L10
L106:
  mov    $0x0,%esi
  jmp    L219
L59:
  add    $0x1,%eax
  cmp    %eax,%ebx
  jle    L171
L438:
  cmp    %eax,%ecx
  jge    L59
  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    L59
L171:
  add    $0x1,%ecx
  add    %ebx,%edi
  cmp    %ecx,%ebx
  jle    L219
L10:
  mov    $0x0,%eax
  jmp    L438
L116:
  movq   %r12,%xmm2
  comisd D115(%rip),%xmm2
  jbe    L424
  jmp    L376
L432:
  movq   %r14,%xmm0
  call   <sqrt@plt>
  jmp    L368
L418:
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L444
  sqrtsd %xmm0,%xmm0
  jmp    L368
L444:
  call   <sqrt@plt>
  jmp    L368
L549:
  test   %r13d,%r13d
  jle    L199
  mov    0x28(%rsp),%rbp
  pxor   %xmm2,%xmm2
  movsd  %xmm2,0x8(%rsp)
L282:
  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    L282
L246:
  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
L265:
  add    $0x1,%r13d
  cmp    %r13d,%ebx
  jle    L356
  mov    0x54(%rsp),%eax
  sub    %r13d,%eax
  add    0x20(%rsp),%rax
  mov    0x30(%rsp),%rdi
  lea    0x10(%rdi,%rax,8),%r12
  mov    %r15,%rbp
L485:
  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    L485
L356:
  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    L549
  mov    0x70(%rsp),%r15
  mov    0x30(%rsp),%rbp
  mov    0x78(%rsp),%r13
  movapd %xmm1,%xmm0
  movsd  0x18(%rsp),%xmm7
  subsd  %xmm7,%xmm0
  mulsd  D110(%rip),%xmm0
  subsd  %xmm7,%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  ja     L227
L383:
  minsd  0x68(%rsp),%xmm0
  movsd  %xmm0,0x68(%rsp)
L22:
  test   %ebx,%ebx
  jle    L348
  mov    0x58(%rsp),%rax
  lea    0x8(,%rax,8),%rdx
  mov    %rbp,%rax
  mov    $0x0,%esi
  movsd  0x68(%rsp),%xmm1
L503:
  movapd %xmm1,%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%esi
  add    %rdx,%rax
  cmp    %esi,%ebx
  jne    L503
  pxor   %xmm0,%xmm0
  mov    0x60(%rsp),%rdx
  mov    %rbp,%rdi
  call   <cholmod@plt>
  movq   %xmm0,%r12
L255:
  mov    0x58(%rsp),%rax
  lea    0x0(,%rax,8),%rdi
  mov    %r13,%rdx
  mov    %r13,%rcx
  mov    $0x0,%esi
L230:
  mov    $0x0,%eax
L445:
  movsd  (%rcx),%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     L445
  add    $0x1,%esi
  add    %rdi,%rbp
  add    $0x8,%rcx
  cmp    %esi,%ebx
  jg     L230
  mov    $0x0,%edi
  mov    $0x0,%esi
  mov    0x60(%rsp),%r10
  lea    0x8(%r10),%r8
  mov    0x58(%rsp),%r9
L215:
  test   %esi,%esi
  jle    L375
  lea    (%r10,%rdi,8),%rax
  lea    -0x1(%rsi),%ecx
  add    %rdi,%rcx
  lea    (%r8,%rcx,8),%rcx
L493:
  movsd  (%rax),%xmm0
  mulsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rax,%rcx
  jne    L493
L375:
  add    $0x1,%esi
  add    $0x8,%rdx
  add    %r9,%rdi
  cmp    %esi,%ebx
  jg     L215
L221:
  mov    %r15,%rdi
  call   <free@plt>
  movq   %r12,%xmm0
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L199:
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
  jmp    L246
L227:
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x68(%rsp)
  jmp    L22
L482:
  pxor   %xmm0,%xmm0
  mov    0x60(%rsp),%rdx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <cholmod@plt>
  movq   %xmm0,%r12
  test   %ebx,%ebx
  jg     L255
  jmp    L221
L353:
  pxor   %xmm1,%xmm1
  jmp    L56
L423:
  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 D115(%rip),%xmm0
  jbe    L319
L122:
  movapd %xmm0,%xmm2
  mulsd  D110(%rip),%xmm2
  comisd %xmm1,%xmm2
  jae    L208
  mov    D115(%rip),%r12
  mov    $0x0,%esi
L219:
  mov    %r15,%rdi
  call   <array_max_abs@plt>
  movapd %xmm0,%xmm1
  mulsd  D129(%rip),%xmm1
  movq   %r14,%xmm7
  comisd %xmm7,%xmm1
  jbe    L44
  movapd %xmm0,%xmm2
  subsd  %xmm7,%xmm2
  movapd %xmm0,%xmm3
  mulsd  D144(%rip),%xmm3
  addsd  %xmm3,%xmm2
  movq   %r12,%xmm3
  addsd  %xmm2,%xmm3
  movq   %xmm3,%r12
  movq   %xmm1,%r14
L44:
  movq   %r14,%xmm3
  ucomisd D115(%rip),%xmm3
  jp     L116
  jne    L116
  mov    D21(%rip),%r12
  mov    %r12,%r14
L376:
  test   %ebx,%ebx
  jle    L424
  mov    0x58(%rsp),%rax
  lea    0x8(,%rax,8),%rcx
  mov    %rbp,%rax
  mov    $0x0,%edx
  movq   %r12,%xmm2
L85:
  movapd %xmm2,%xmm1
  addsd  (%rax),%xmm1
  movsd  %xmm1,(%rax)
  add    $0x1,%edx
  add    %rcx,%rax
  cmp    %edx,%ebx
  jne    L85
L424:
  pxor   %xmm1,%xmm1
  cvtsi2sd %ebx,%xmm1
  divsd  %xmm1,%xmm0
  movq   %r14,%xmm3
  comisd %xmm0,%xmm3
  jbe    L418
  pxor   %xmm0,%xmm0
  ucomisd %xmm3,%xmm0
  ja     L432
  movq   %r14,%xmm0
  sqrtsd %xmm0,%xmm0
L368:
  mov    0x60(%rsp),%rdx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <cholmod@plt>
  movsd  %xmm0,0x68(%rsp)
  comisd D115(%rip),%xmm0
  jbe    L482
  movsd  0x0(%rbp),%xmm7
  movsd  %xmm7,0x10(%rsp)
  test   %ebx,%ebx
  jle    L38
  mov    0x58(%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),%xmm3
  movsd  %xmm3,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,0x70(%rsp)
  mov    %rax,%r15
  mov    %rbp,0x30(%rsp)
  mov    %r13,0x78(%rsp)
  mov    %esi,%r13d
  jmp    L265
L319:
  pxor   %xmm0,%xmm0
  jmp    L122
L38:
  movsd  0x10(%rsp),%xmm2
  movapd %xmm2,%xmm0
  subsd  %xmm2,%xmm0
  mulsd  D110(%rip),%xmm0
  subsd  %xmm2,%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  jbe    L383
L348:
  pxor   %xmm0,%xmm0
  mov    0x60(%rsp),%rdx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <cholmod@plt>
  movq   %xmm0,%r12
  jmp    L221
L208:
  subsd  %xmm1,%xmm0
  addsd  %xmm0,%xmm0
  mulsd  D110(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movq   %xmm0,%r12
  movq   %r14,%xmm3
  addsd  %xmm0,%xmm3
  movq   %xmm3,%r14
  mov    $0x0,%esi
  jmp    L219
```

tool_calls: name: extract_symbolic_data
arguments: label: D115
type_guessed: f64[2]
name: extract_symbolic_data
arguments: label: D110
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D129
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D144
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D21
type_guessed: byte[8]

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

tool: {"D110": [0x40,0xeb,0xd6,0x89,0x33,0xfa,0x60,0x3e]}

tool: {"D129": [0x8a,0x33,0xfa,0x10,0x00,0x00,0xf0,0x3f]}

tool: {"D144": [0x40,0xeb,0xd6,0x89,0x33,0xfa,0x70,0x3e]}

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

assistant: ```c
double modelhess(double *A, int N, double *dx, 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((double)1e-15);
  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, 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, 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; ++j) {
      L[step + j] *= dx[i];
    }
  }
  free(U22);
  return maxadd;
}
```