user: Demonstrate the C code that generates the assembly output below:

```asm
<modelhess>:
  endbr64
  push   %r15
  pxor   %xmm3,%xmm3
  mov    %rdx,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  sub    $0x98,%rsp
  ucomisd %xmm0,%xmm3
  mov    %rcx,0x70(%rsp)
  movsd  %xmm0,0x80(%rsp)
  ja     L535
  movapd %xmm0,%xmm4
  sqrtsd %xmm4,%xmm4
  movsd  %xmm4,0x60(%rsp)
L559:
  mov    %ebp,%edi
  movslq %ebp,%rbx
  imul   %ebp,%edi
  mov    %rbx,0x68(%rsp)
  shl    $0x3,%edi
  call   <malloc@plt>
  mov    %rax,0x30(%rsp)
  test   %ebp,%ebp
  jle    L49
  lea    -0x1(%rbp),%eax
  lea    0x0(,%rbx,8),%r14
  mov    %r15,%r9
  xor    %ecx,%ecx
  lea    0x0(,%rax,8),%rdi
  lea    0x8(%r15),%rax
  mov    %r14,0x18(%rsp)
  mov    %ebp,%r8d
  mov    %rax,0x10(%rsp)
  add    %rdi,%rax
  mov    %rax,0x8(%rsp)
  mov    %ebp,%eax
  shr    %eax
  mov    %rdi,0x20(%rsp)
  mov    %ebp,%edi
  lea    -0x1(%rax),%esi
  and    $0xfffffffe,%edi
  mov    %r12,0x28(%rsp)
  mov    %edi,%eax
  add    $0x1,%rsi
  lea    (%r15,%rax,8),%r10
  shl    $0x4,%rsi
  mov    %r12,%rax
  nopl   0x0(%rax)
L585:
  mov    %r9,%rdx
  add    $0x8,%r9
  cmp    0x10(%rsp),%rax
  setne  %bl
  cmp    $0x1,%ebp
  setne  %r11b
  test   %r11b,%bl
  lea    (%rax,%r14,1),%r11
  je     L4
  cmp    %r11,%rdx
  setae  %r13b
  cmp    %r9,%rax
  setae  %bl
  or     %r13b,%bl
  je     L4
  movsd  (%rdx),%xmm2
  xor    %ebx,%ebx
  unpcklpd %xmm2,%xmm2
  nopl   0x0(%rax,%rax,1)
L520:
  movupd (%r15,%rbx,1),%xmm1
  movupd (%rax,%rbx,1),%xmm0
  mulpd  %xmm2,%xmm1
  divpd  %xmm1,%xmm0
  movups %xmm0,(%rax,%rbx,1)
  add    $0x10,%rbx
  cmp    %rsi,%rbx
  jne    L520
  cmp    %ebp,%edi
  je     L87
  movsd  (%rdx),%xmm1
  lea    (%rcx,%rdi,1),%eax
  mulsd  (%r10),%xmm1
  cltq
  lea    (%r12,%rax,8),%rax
  movsd  (%rax),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L87:
  mov    %r11,%rax
  add    %ebp,%ecx
  cmp    0x8(%rsp),%r9
  jne    L585
  mov    0x30(%rsp),%rsi
  mov    0x18(%rsp),%rdx
  mov    0x20(%rsp),%rdi
  mov    0x28(%rsp),%r11
  add    $0x8,%rdx
  mov    %rsi,%rax
  lea    0x8(%rsi,%rdi,1),%rcx
  nopw   0x0(%rax,%rax,1)
L549:
  movsd  (%r11),%xmm0
  add    $0x8,%rax
  add    %rdx,%r11
  movsd  %xmm0,-0x8(%rax)
  cmp    %rcx,%rax
  jne    L549
  mov    0x30(%rsp),%rbx
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <array_max@plt>
  mov    %ebp,%esi
  mov    %rbx,%rdi
  movsd  %xmm0,0x8(%rsp)
  call   <array_min@plt>
  movsd  0x8(%rsp),%xmm4
  test   %ebp,%ebp
  mov    %rbx,%rdi
  mov    0x68(%rsp),%rax
  pxor   %xmm3,%xmm3
  movsd  %xmm0,0x18(%rsp)
  movapd %xmm4,%xmm2
  movsd  %xmm4,0x10(%rsp)
  maxsd  %xmm3,%xmm2
  lea    0x0(,%rax,8),%rdx
  mov    $0x8,%eax
  cmovle %rax,%rdx
  xor    %esi,%esi
  movsd  %xmm2,0x8(%rsp)
  call   <memset@plt>
  movsd  0x60(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm4
  mulsd  %xmm2,%xmm1
  comisd %xmm0,%xmm1
  jae    L18
  pxor   %xmm3,%xmm3
L63:
  mov    0x30(%rsp),%r8
  xor    %edi,%edi
  xor    %esi,%esi
  xor    %ecx,%ecx
  nopl   0x0(%rax,%rax,1)
L350:
  mov    $0x1,%eax
  cmp    $0x1,%ebp
  je     L174
  nopw   0x0(%rax,%rax,1)
L477:
  cmp    %eax,%ecx
  jge    L400
  lea    (%rax,%rdi,1),%edx
  movslq %edx,%rdx
  movsd  (%r12,%rdx,8),%xmm0
  movslq %esi,%rdx
  add    $0x1,%esi
  movsd  %xmm0,(%r8,%rdx,8)
L400:
  add    $0x1,%eax
  cmp    %eax,%ebp
  jne    L477
L174:
  add    $0x1,%ecx
  add    %ebp,%edi
  cmp    %ecx,%ebp
  jg     L350
L108:
  mov    0x30(%rsp),%rdi
  movsd  %xmm3,0x10(%rsp)
  movsd  %xmm4,0x8(%rsp)
  call   <array_max_abs@plt>
  movsd  0x60(%rsp),%xmm3
  movsd  D5(%rip),%xmm1
  movsd  0x8(%rsp),%xmm4
  movapd %xmm3,%xmm2
  addsd  %xmm3,%xmm2
  movsd  0x10(%rsp),%xmm3
  addsd  %xmm2,%xmm1
  mulsd  %xmm0,%xmm1
  comisd %xmm4,%xmm1
  jbe    L353
  mulsd  %xmm0,%xmm2
  movapd %xmm0,%xmm5
  subsd  %xmm4,%xmm5
  movapd %xmm1,%xmm4
  addsd  %xmm5,%xmm2
  addsd  %xmm2,%xmm3
L353:
  pxor   %xmm7,%xmm7
  ucomisd %xmm7,%xmm4
  jp     L273
  je     L216
L273:
  pxor   %xmm6,%xmm6
  comisd %xmm6,%xmm3
  ja     L238
L69:
  pxor   %xmm1,%xmm1
  cvtsi2sd %ebp,%xmm1
  divsd  %xmm1,%xmm0
  comisd %xmm0,%xmm4
  jbe    L487
L24:
  pxor   %xmm3,%xmm3
  ucomisd %xmm4,%xmm3
  ja     L236
  sqrtsd %xmm4,%xmm4
  movapd %xmm4,%xmm1
L96:
  movsd  0x80(%rsp),%xmm0
  mov    0x70(%rsp),%rdx
  mov    %ebp,%esi
  mov    %r12,%rdi
  call   <cholmod@plt>
  pxor   %xmm4,%xmm4
  comisd %xmm4,%xmm0
  movsd  %xmm0,0x78(%rsp)
  jbe    L329
  movsd  (%r12),%xmm3
  movsd  %xmm3,0x10(%rsp)
  test   %ebp,%ebp
  jle    L157
  mov    0x68(%rsp),%rax
  mov    %r12,0x40(%rsp)
  xor    %r13d,%r13d
  movq   $0x0,0x8(%rsp)
  add    $0x1,%rax
  mov    %ebp,0x20(%rsp)
  lea    0x0(,%rax,8),%rdi
  mov    %rax,0x38(%rsp)
  lea    0x8(%r12),%rax
  lea    -0x8(%rdi),%rsi
  mov    %rax,%rbx
  mov    %rdi,0x48(%rsp)
  mov    %rax,%r14
  lea    (%r12,%rsi,1),%rdi
  lea    -0x1(%rbp),%eax
  mov    %rsi,0x50(%rsp)
  add    %rsi,%rbx
  mov    %rdi,0x28(%rsp)
  xor    %esi,%esi
  mov    %eax,0x5c(%rsp)
  mov    %r15,0x88(%rsp)
  mov    %rsi,%r15
  movsd  %xmm3,0x18(%rsp)
  xchg   %ax,%ax
L646:
  add    $0x1,%r13d
  cmp    %r13d,0x20(%rsp)
  jle    L9
  mov    0x5c(%rsp),%eax
  mov    0x40(%rsp),%rdi
  mov    %r14,%rbp
  sub    %r13d,%eax
  add    %r15,%rax
  lea    0x10(%rdi,%rax,8),%r12
  nopw   0x0(%rax,%rax,1)
L287:
  movsd  0x0(%rbp),%xmm0
  add    $0x8,%rbp
  call   <fabs@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  cmp    %r12,%rbp
  jne    L287
L9:
  movsd  0x8(%rsp),%xmm3
  movsd  -0x8(%r14),%xmm0
  movapd %xmm3,%xmm1
  addsd  %xmm0,%xmm1
  subsd  %xmm3,%xmm0
  maxsd  0x10(%rsp),%xmm1
  minsd  0x18(%rsp),%xmm0
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm0,0x18(%rsp)
  cmp    %r13d,0x20(%rsp)
  je     L560
  movq   $0x0,0x8(%rsp)
  mov    0x28(%rsp),%r12
  nopl   0x0(%rax)
L543:
  movsd  (%r12),%xmm0
  add    $0x8,%r12
  call   <fabs@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  cmp    %rbx,%r12
  jne    L543
  mov    0x48(%rsp),%rdi
  mov    0x50(%rsp),%rsi
  add    0x38(%rsp),%r15
  add    %rsi,0x28(%rsp)
  add    %rdi,%r14
  add    %rdi,%rbx
  jmp    L646
  nopl   0x0(%rax,%rax,1)
L4:
  xor    %ebx,%ebx
  nopw   0x0(%rax,%rax,1)
L255:
  movsd  (%rdx),%xmm1
  mulsd  (%r15,%rbx,8),%xmm1
  movsd  (%rax,%rbx,8),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax,%rbx,8)
  add    $0x1,%rbx
  cmp    %r8,%rbx
  jne    L255
  jmp    L87
L18:
  subsd  %xmm0,%xmm2
  addsd  %xmm2,%xmm2
  mulsd  0x60(%rsp),%xmm2
  movapd %xmm2,%xmm3
  subsd  %xmm0,%xmm3
  addsd  %xmm3,%xmm4
  jmp    L63
L216:
  mov    D5(%rip),%rax
  movq   %rax,%xmm3
  movq   %rax,%xmm4
L238:
  test   %ebp,%ebp
  jle    L69
  mov    0x68(%rsp),%rax
  xor    %edx,%edx
  lea    0x8(,%rax,8),%rcx
  mov    %r12,%rax
  nopl   0x0(%rax,%rax,1)
L64:
  movsd  (%rax),%xmm1
  add    $0x1,%edx
  addsd  %xmm3,%xmm1
  movsd  %xmm1,(%rax)
  add    %rcx,%rax
  cmp    %edx,%ebp
  jne    L64
  pxor   %xmm1,%xmm1
  cvtsi2sd %ebp,%xmm1
  divsd  %xmm1,%xmm0
  comisd %xmm0,%xmm4
  ja     L24
L487:
  pxor   %xmm4,%xmm4
  ucomisd %xmm0,%xmm4
  ja     L375
  sqrtsd %xmm0,%xmm0
  movapd %xmm0,%xmm1
  jmp    L96
L560:
  movsd  0x18(%rsp),%xmm4
  movapd %xmm1,%xmm0
  mov    0x20(%rsp),%ebp
  mov    0x40(%rsp),%r12
  mov    0x88(%rsp),%r15
  subsd  %xmm4,%xmm0
  mulsd  0x60(%rsp),%xmm0
  subsd  %xmm4,%xmm0
  pxor   %xmm4,%xmm4
  comisd %xmm0,%xmm4
  ja     L447
  movsd  0x78(%rsp),%xmm4
  comisd %xmm0,%xmm4
  ja     L368
L193:
  test   %ebp,%ebp
  jle    L29
  mov    0x68(%rsp),%rax
  add    $0x1,%rax
  mov    %rax,0x38(%rsp)
L282:
  mov    0x38(%rsp),%rcx
  movsd  0x78(%rsp),%xmm1
  mov    %r12,%rax
  xor    %edx,%edx
  shl    $0x3,%rcx
  nopl   0x0(%rax,%rax,1)
L600:
  movsd  (%rax),%xmm0
  add    $0x1,%edx
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    %rcx,%rax
  cmp    %edx,%ebp
  jne    L600
  mov    0x70(%rsp),%rdx
  pxor   %xmm1,%xmm1
  mov    %ebp,%esi
  mov    %r12,%rdi
  movsd  0x80(%rsp),%xmm0
  call   <cholmod@plt>
L137:
  mov    0x68(%rsp),%rbx
  mov    %ebp,%edx
  mov    $0x8,%ecx
  mov    %r12,%rax
  shl    $0x3,%rdx
  mov    %r15,0x20(%rsp)
  mov    %r15,%r11
  shl    $0x3,%rbx
  test   %ebp,%ebp
  cmovg  %rdx,%rcx
  mov    $0x1,%edx
  cmovg  %ebp,%edx
  xor    %r13d,%r13d
  xor    %r8d,%r8d
  mov    %rcx,0x8(%rsp)
  xor    %ecx,%ecx
  mov    %edx,%edi
  mov    %edx,0x18(%rsp)
  shr    %edx
  and    $0xfffffffe,%edi
  lea    -0x1(%rdx),%esi
  movslq %edi,%rdx
  add    $0x1,%rsi
  lea    (%r15,%rdx,8),%r9
  lea    0x8(%r15),%rdx
  shl    $0x4,%rsi
  mov    %rdx,0x10(%rsp)
  nopw   0x0(%rax,%rax,1)
L300:
  mov    0x8(%rsp),%r14
  mov    %r11,%rdx
  add    $0x8,%r11
  lea    0x0(%r13,%r14,1),%r10
  add    %r12,%r10
  cmp    %r10,%rdx
  setae  %r14b
  cmp    %r11,%rax
  setae  %r10b
  or     %r14b,%r10b
  je     L553
  cmp    0x10(%rsp),%rax
  setne  %r14b
  cmp    $0x1,%ebp
  setg   %r10b
  test   %r10b,%r14b
  je     L553
  movsd  (%rdx),%xmm2
  xor    %r10d,%r10d
  unpcklpd %xmm2,%xmm2
  nopw   0x0(%rax,%rax,1)
L270:
  movupd (%r15,%r10,1),%xmm1
  movupd (%rax,%r10,1),%xmm6
  mulpd  %xmm2,%xmm1
  mulpd  %xmm6,%xmm1
  movups %xmm1,(%rax,%r10,1)
  add    $0x10,%r10
  cmp    %rsi,%r10
  jne    L270
  cmp    0x18(%rsp),%edi
  je     L26
  lea    (%rcx,%rdi,1),%r10d
  movsd  (%r9),%xmm1
  mulsd  (%rdx),%xmm1
  movslq %r10d,%r10
  lea    (%r12,%r10,8),%r10
  mulsd  (%r10),%xmm1
  movsd  %xmm1,(%r10)
L26:
  add    $0x1,%r8d
  add    %rbx,%rax
  add    %rbx,%r13
  add    %ebp,%ecx
  cmp    %r8d,%ebp
  jg     L300
  mov    0x70(%rsp),%rdx
  mov    0x20(%rsp),%r10
  lea    0x8(%rbx),%r11
  xor    %ecx,%ecx
  mov    $0x1,%r9d
  xor    %r8d,%r8d
  mov    %rdx,%rsi
  lea    0x8(%rdx),%rdi
  nopl   0x0(%rax,%rax,1)
L501:
  mov    %r10,%r12
  add    $0x8,%r10
  mov    %r9d,%r14d
  cmp    %rdi,%r12
  setae  %al
  cmp    %rsi,%r10
  setbe  %r13b
  or     %r13b,%al
  je     L608
  cmp    $0x1,%r8d
  jbe    L608
  mov    %r9d,%eax
  movsd  (%r12),%xmm2
  shr    %eax
  sub    $0x1,%eax
  unpcklpd %xmm2,%xmm2
  shl    $0x4,%rax
  lea    0x10(%rsi,%rax,1),%r13
  mov    %rsi,%rax
  nopl   0x0(%rax,%rax,1)
L419:
  movupd (%rax),%xmm1
  add    $0x10,%rax
  mulpd  %xmm2,%xmm1
  movups %xmm1,-0x10(%rax)
  cmp    %rax,%r13
  jne    L419
  mov    %r14d,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%r14d
  je     L412
  add    %ecx,%eax
  cltq
  lea    (%rdx,%rax,8),%rax
  movsd  (%rax),%xmm1
  mulsd  (%r12),%xmm1
  movsd  %xmm1,(%rax)
L412:
  add    $0x1,%r8d
  add    $0x1,%r9
  add    %rbx,%rsi
  add    %r11,%rdi
  add    %ebp,%ecx
  cmp    %r8d,%ebp
  jg     L501
L117:
  mov    0x30(%rsp),%rdi
  movsd  %xmm0,0x8(%rsp)
  call   <free@plt>
  movsd  0x8(%rsp),%xmm0
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L608:
  mov    %rsi,%rax
  nopl   0x0(%rax,%rax,1)
L8:
  movsd  (%rax),%xmm1
  mulsd  (%r12),%xmm1
  add    $0x8,%rax
  movsd  %xmm1,-0x8(%rax)
  cmp    %rdi,%rax
  jne    L8
  jmp    L412
  nopw   0x0(%rax,%rax,1)
L553:
  xor    %r10d,%r10d
  nopl   0x0(%rax,%rax,1)
L369:
  movsd  (%r15,%r10,8),%xmm1
  mulsd  (%rdx),%xmm1
  mulsd  (%rax,%r10,8),%xmm1
  movsd  %xmm1,(%rax,%r10,8)
  add    $0x1,%r10
  cmp    %r10d,%ebp
  jg     L369
  jmp    L26
L329:
  mov    0x70(%rsp),%rdx
  pxor   %xmm1,%xmm1
  mov    %ebp,%esi
  mov    %r12,%rdi
  movsd  0x80(%rsp),%xmm0
  call   <cholmod@plt>
  test   %ebp,%ebp
  jg     L137
  jmp    L117
L447:
  movq   $0x0,0x78(%rsp)
  jmp    L282
L49:
  mov    %rax,%rbx
  mov    %rax,%rdi
  mov    %ebp,%esi
  call   <array_max@plt>
  mov    %ebp,%esi
  mov    %rbx,%rdi
  movsd  %xmm0,0x8(%rsp)
  call   <array_min@plt>
  movsd  0x8(%rsp),%xmm4
  pxor   %xmm3,%xmm3
  movsd  0x60(%rsp),%xmm1
  movapd %xmm4,%xmm2
  maxsd  %xmm3,%xmm2
  mulsd  %xmm2,%xmm1
  comisd %xmm0,%xmm1
  jb     L564
  subsd  %xmm0,%xmm2
  movsd  0x60(%rsp),%xmm3
  xor    %esi,%esi
  addsd  %xmm2,%xmm2
  mulsd  %xmm2,%xmm3
  subsd  %xmm0,%xmm3
  addsd  %xmm3,%xmm4
  jmp    L108
L157:
  movapd %xmm3,%xmm0
  subsd  %xmm3,%xmm0
  mulsd  0x60(%rsp),%xmm0
  subsd  %xmm3,%xmm0
  pxor   %xmm3,%xmm3
  comisd %xmm0,%xmm3
  jbe    L33
L29:
  mov    0x70(%rsp),%rdx
  pxor   %xmm1,%xmm1
  mov    %ebp,%esi
  mov    %r12,%rdi
  movsd  0x80(%rsp),%xmm0
  call   <cholmod@plt>
  jmp    L117
L564:
  pxor   %xmm3,%xmm3
  xor    %esi,%esi
  jmp    L108
L33:
  movsd  0x78(%rsp),%xmm4
  comisd %xmm0,%xmm4
  jbe    L193
  jmp    L29
L368:
  movsd  %xmm0,0x78(%rsp)
  jmp    L282
L375:
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  jmp    L96
L535:
  movsd  0x80(%rsp),%xmm0
  call   <sqrt@plt>
  movsd  %xmm0,0x60(%rsp)
  jmp    L559
L236:
  movapd %xmm4,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  jmp    L96
```

tool_calls: name: unpack_data
arguments: data_tag: D5
type_guessed: f32[2]

tool: {"D5": [0.0,1.875]}

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