user: Please show me the C implementation that matches the assembly code listed below:

```asm
<lmpar>:
  endbr64
  push   %r15
  movslq %edx,%r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  push   %rbp
  lea    0x0(,%r15,8),%ebp
  push   %rbx
  mov    %ebp,%edi
  mov    %r15,%rbx
  sub    $0xf8,%rsp
  mov    0x130(%rsp),%rax
  mov    %esi,0xac(%rsp)
  mov    %rcx,0x80(%rsp)
  mov    %rax,0x88(%rsp)
  mov    0x138(%rsp),%rax
  mov    %r8,0x38(%rsp)
  mov    %rax,0x60(%rsp)
  mov    0x140(%rsp),%rax
  mov    %r9,0x98(%rsp)
  movsd  %xmm0,0x78(%rsp)
  mov    %rax,0x18(%rsp)
  call   <malloc@plt>
  mov    %ebp,%edi
  mov    %rax,%r13
  call   <malloc@plt>
  mov    %rax,%r12
  test   %r15d,%r15d
  jle    L743
  lea    0x1(%r15),%rax
  pxor   %xmm4,%xmm4
  mov    %r14,%rdi
  mov    %r13,%rdx
  mov    %rax,0x28(%rsp)
  lea    0x0(,%rax,8),%rcx
  mov    0x98(%rsp),%r10
  xor    %eax,%eax
  mov    %r15d,%r8d
  movsd  %xmm4,(%rsp)
  xor    %r9d,%r9d
  jmp    L83
  nopl   0x0(%rax)
L822:
  add    $0x1,%rax
  movq   $0x0,(%rdx)
  add    %rcx,%rdi
  add    $0x8,%rdx
  cmp    %r15,%rax
  je     L66
L460:
  mov    %ebp,%r8d
L83:
  movsd  (%r10,%rax,8),%xmm0
  movsd  (%rsp),%xmm7
  mov    %eax,%ebp
  movsd  %xmm0,(%rdx)
  ucomisd (%rdi),%xmm7
  setnp  %sil
  cmovne %r9d,%esi
  test   %sil,%sil
  je     L695
  cmp    %r8d,%ebx
  jne    L695
L799:
  cmp    %ebp,%ebx
  jg     L822
  add    $0x1,%rax
  movsd  %xmm0,(%rdx)
  add    %rcx,%rdi
  add    $0x8,%rdx
  cmp    %r15,%rax
  jne    L460
L682:
  mov    %ebx,%eax
  lea    -0x1(%rbp),%esi
  mov    %ebx,%edx
  mov    %ebp,0x10(%rsp)
  imul   %esi,%edx
  not    %eax
  mov    %r15,%r10
  mov    %ebp,%r8d
  cltq
  shl    $0x4,%r10
  sub    $0x8,%rcx
  shl    $0x3,%rax
  mov    %rax,0x8(%rsp)
  movslq %edx,%rdx
  movslq %ebp,%rax
  add    %rax,%rdx
  lea    -0x8(,%rax,8),%rdi
  lea    0x8(%r13),%rax
  mov    %rax,0x30(%rsp)
  lea    0x10(%r13),%rax
  lea    (%r14,%rdx,8),%r9
  mov    %rax,0x20(%rsp)
  nopl   (%rax)
L770:
  lea    (%rdi,%r13,1),%rax
  movsd  (%rax),%xmm1
  divsd  -0x8(%r9),%xmm1
  movsd  %xmm1,(%rax)
  test   %esi,%esi
  jne    L523
  mov    0x10(%rsp),%ebp
L666:
  lea    -0x1(%rbx),%edi
  mov    0x80(%rsp),%rdx
  mov    0x60(%rsp),%r8
  mov    %r13,%rax
  mov    %edi,0x6c(%rsp)
  mov    %ebx,%edi
  shl    $0x3,%rdi
  lea    (%rdi,%r13,1),%rsi
  nop
L350:
  movsd  (%rax),%xmm0
  movslq (%rdx),%rcx
  add    $0x8,%rax
  add    $0x4,%rdx
  movsd  %xmm0,(%r8,%rcx,8)
  cmp    %rsi,%rax
  jne    L350
  mov    0x60(%rsp),%rcx
  mov    0x38(%rsp),%rsi
  lea    0x8(%rcx),%rax
  cmp    %rax,%r12
  mov    %rax,0x10(%rsp)
  lea    0x8(%rsi),%rax
  setne  %dl
  cmp    %rax,%r12
  mov    %rax,0x8(%rsp)
  setne  %al
  test   %al,%dl
  je     L236
  cmpl   $0x1,0x6c(%rsp)
  jbe    L236
  mov    %ebx,%edx
  mov    %r12,%rax
  sub    %r12,%rsi
  sub    %r12,%rcx
  shr    %edx
  shl    $0x4,%rdx
  add    %r12,%rdx
  nopl   0x0(%rax)
L104:
  movupd (%rsi,%rax,1),%xmm0
  movupd (%rcx,%rax,1),%xmm6
  add    $0x10,%rax
  mulpd  %xmm6,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L104
  mov    %ebx,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%bl
  je     L807
  mov    0x38(%rsp),%rdi
  movsd  (%rdi,%rax,8),%xmm0
  mov    0x60(%rsp),%rdi
  mulsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%r12,%rax,8)
L807:
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <enorm@plt>
  movsd  0x78(%rsp),%xmm6
  movsd  D33(%rip),%xmm1
  movapd %xmm0,%xmm7
  movapd %xmm0,%xmm3
  subsd  %xmm6,%xmm7
  mulsd  %xmm1,%xmm6
  movsd  %xmm7,0x20(%rsp)
  movsd  %xmm6,0xa0(%rsp)
  comisd %xmm6,%xmm7
  jbe    L425
  movsd  (%rsp),%xmm4
  movsd  %xmm4,0x70(%rsp)
  cmp    %ebp,%ebx
  jle    L621
L678:
  test   %ebx,%ebx
  jle    L408
  mov    0x98(%rsp),%rbp
  mov    0x38(%rsp),%r11
  mov    %r14,%r8
  xor    %edi,%edi
  mov    $0xfffffffffffffff8,%r9
  mov    0x80(%rsp),%r10
  lea    0x0(,%r15,8),%rsi
  lea    0x8(%rbp),%rcx
  sub    %rbp,%r9
  nopl   0x0(%rax,%rax,1)
L771:
  mov    %rbp,%rax
  mov    %r8,%rdx
  pxor   %xmm2,%xmm2
  nopw   0x0(%rax,%rax,1)
L243:
  movsd  (%rdx),%xmm0
  mulsd  (%rax),%xmm0
  add    $0x8,%rax
  add    %rsi,%rdx
  addsd  %xmm0,%xmm2
  cmp    %rcx,%rax
  jne    L243
  movslq (%r10,%rdi,4),%rdx
  lea    0x0(%r13,%rcx,1),%rax
  add    $0x1,%rdi
  add    $0x8,%r8
  add    $0x8,%rcx
  divsd  (%r11,%rdx,8),%xmm2
  movsd  %xmm2,(%rax,%r9,1)
  cmp    %rdi,%r15
  jne    L771
L408:
  mov    %ebx,%esi
  mov    %r13,%rdi
  movsd  %xmm3,0x30(%rsp)
  movsd  %xmm1,0x40(%rsp)
  call   <enorm@plt>
  movsd  0x30(%rsp),%xmm3
  movapd %xmm0,%xmm6
  divsd  0x78(%rsp),%xmm6
  ucomisd (%rsp),%xmm6
  movq   %xmm0,%rbp
  movsd  %xmm6,0xc0(%rsp)
  jp     L93
  movsd  0x40(%rsp),%xmm1
  je     L504
L93:
  mov    0x88(%rsp),%rax
  movsd  0x70(%rsp),%xmm1
  movsd  %xmm3,0x30(%rsp)
  movsd  (%rax),%xmm0
  call   <pmax@plt>
  mov    0x88(%rsp),%rax
  movsd  0xc0(%rsp),%xmm1
  movsd  %xmm0,(%rax)
  call   <pmin@plt>
  ucomisd (%rsp),%xmm0
  jp     L167
  movsd  0x30(%rsp),%xmm3
  jne    L167
  movq   %rbp,%xmm0
  divsd  %xmm3,%xmm0
L167:
  mov    0x6c(%rsp),%ecx
  mov    0x8(%rsp),%r11
  movl   $0xa,0xc8(%rsp)
  mov    0x88(%rsp),%rax
  mov    0x38(%rsp),%rsi
  cmp    $0x1,%ecx
  seta   %r8b
  cmp    %r11,%r13
  movsd  %xmm0,(%rax)
  setne  %al
  and    %r8d,%eax
  mov    %al,0xce(%rsp)
  mov    %ebx,%eax
  shr    %eax
  lea    -0x1(%rax),%edx
  add    $0x1,%rdx
  shl    $0x4,%rdx
  lea    0x0(%r13,%rdx,1),%rax
  mov    %rax,0xd8(%rsp)
  mov    %ebx,%eax
  and    $0xfffffffe,%eax
  mov    %eax,0xa8(%rsp)
  cltq
  shl    $0x3,%rax
  add    %rax,%rsi
  cmp    0x10(%rsp),%r12
  mov    %rsi,0x8(%rsp)
  lea    0x0(%r13,%rax,1),%rsi
  mov    %rsi,0x40(%rsp)
  lea    0x8(,%rcx,8),%rsi
  setne  %cl
  cmp    %r11,%r12
  lea    0x0(%r13,%rsi,1),%rdi
  mov    %rdi,0xb8(%rsp)
  setne  %dil
  shl    $0x4,%r15
  and    %edi,%ecx
  lea    (%r12,%rdx,1),%rdi
  mov    %r15,0x90(%rsp)
  mov    %rdi,0xe0(%rsp)
  mov    0x60(%rsp),%rdi
  and    %r8d,%ecx
  mov    %cl,0xcf(%rsp)
  lea    (%rdi,%rax,1),%rcx
  add    %r12,%rax
  sub    %r12,%rdi
  mov    %rax,0x48(%rsp)
  lea    (%r12,%rsi,1),%rax
  mov    %rax,0xe8(%rsp)
  mov    0x28(%rsp),%rax
  mov    %rcx,0x50(%rsp)
  shl    $0x3,%rax
  mov    %rdi,0xd0(%rsp)
  lea    -0x8(%rax),%rbp
  mov    %rax,0x28(%rsp)
  mov    %r12,%rax
  neg    %rax
  mov    %rax,0xb0(%rsp)
  mov    %rbp,%rax
  mov    %r12,%rbp
  mov    %rax,%r12
  xchg   %ax,%ax
L238:
  ucomisd (%rsp),%xmm0
  jp     L383
  je     L661
L383:
  movsd  (%rsp),%xmm5
  ucomisd %xmm0,%xmm5
  ja     L644
  sqrtsd %xmm0,%xmm0
L57:
  test   %ebx,%ebx
  jle    L826
  cmpb   $0x0,0xce(%rsp)
  je     L549
  mov    0x38(%rsp),%rdx
  movapd %xmm0,%xmm2
  mov    0xd8(%rsp),%rcx
  mov    %r13,%rax
  unpcklpd %xmm2,%xmm2
  sub    %r13,%rdx
  nopl   0x0(%rax)
L665:
  movupd (%rax,%rdx,1),%xmm1
  add    $0x10,%rax
  mulpd  %xmm2,%xmm1
  movups %xmm1,-0x10(%rax)
  cmp    %rcx,%rax
  jne    L665
  cmp    %ebx,0xa8(%rsp)
  je     L241
  mov    0x8(%rsp),%rax
  mulsd  (%rax),%xmm0
  mov    0x40(%rsp),%rax
  movsd  %xmm0,(%rax)
L241:
  push   0x18(%rsp)
  mov    %ebx,%edx
  mov    %r13,%r8
  mov    %r14,%rdi
  push   0x68(%rsp)
  mov    0xa8(%rsp),%r9
  mov    0x90(%rsp),%rcx
  mov    0xbc(%rsp),%esi
  call   <qrsolv@plt>
  pop    %rcx
  pop    %rsi
  mov    %rbp,%rax
  mov    0x38(%rsp),%rdx
  add    0xb0(%rsp),%rdx
  cmpb   $0x0,0xcf(%rsp)
  je     L639
  mov    0xe0(%rsp),%rcx
  mov    0xd0(%rsp),%rsi
  nopl   (%rax)
L266:
  movupd (%rsi,%rax,1),%xmm0
  movupd (%rdx,%rax,1),%xmm6
  add    $0x10,%rax
  mulpd  %xmm6,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rcx,%rax
  jne    L266
  cmp    %ebx,0xa8(%rsp)
  je     L721
  mov    0x50(%rsp),%rax
  movsd  (%rax),%xmm0
  mov    0x8(%rsp),%rax
  mulsd  (%rax),%xmm0
  mov    0x48(%rsp),%rax
  movsd  %xmm0,(%rax)
L721:
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <enorm@plt>
  movapd %xmm0,%xmm7
  subsd  0x78(%rsp),%xmm7
  movapd %xmm0,%xmm1
  movsd  %xmm7,0x10(%rsp)
  movapd %xmm7,%xmm0
  movsd  0xa0(%rsp),%xmm7
  andpd  D9(%rip),%xmm0
  comisd %xmm0,%xmm7
  jae    L454
  subl   $0x1,0xc8(%rsp)
  je     L454
  movsd  0x70(%rsp),%xmm5
  ucomisd (%rsp),%xmm5
  jp     L765
  jne    L765
  movsd  0x20(%rsp),%xmm5
  comisd 0x10(%rsp),%xmm5
  jb     L765
  movsd  (%rsp),%xmm7
  comisd %xmm5,%xmm7
  ja     L454
L765:
  mov    0x80(%rsp),%rdx
  mov    %r13,%rax
  test   %ebx,%ebx
  jle    L723
  mov    0xb8(%rsp),%rsi
  mov    0x38(%rsp),%rdi
  nopw   0x0(%rax,%rax,1)
L424:
  movslq (%rdx),%rcx
  add    $0x8,%rax
  add    $0x4,%rdx
  movsd  0x0(%rbp,%rcx,8),%xmm0
  divsd  %xmm1,%xmm0
  mulsd  (%rdi,%rcx,8),%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rsi
  jne    L424
  mov    0x18(%rsp),%rax
  movsd  0x0(%r13),%xmm1
  divsd  (%rax),%xmm1
  movsd  %xmm1,0x0(%r13)
  cmp    $0x1,%ebx
  jne    L797
  nopw   0x0(%rax,%rax,1)
L723:
  mov    %ebx,%esi
  mov    %r13,%rdi
  call   <enorm@plt>
  movsd  0x10(%rsp),%xmm4
  comisd (%rsp),%xmm4
  movapd %xmm0,%xmm2
  ja     L405
  movsd  (%rsp),%xmm5
  comisd 0x10(%rsp),%xmm5
  ja     L90
L651:
  movsd  0x10(%rsp),%xmm1
  divsd  0x78(%rsp),%xmm1
  divsd  %xmm2,%xmm1
  mov    0x88(%rsp),%r15
  movsd  0x70(%rsp),%xmm0
  divsd  %xmm2,%xmm1
  addsd  (%r15),%xmm1
  call   <pmax@plt>
  movsd  0x10(%rsp),%xmm1
  movsd  %xmm0,(%r15)
  movsd  %xmm1,0x20(%rsp)
  jmp    L238
L425:
  mov    0x88(%rsp),%rax
  movq   $0x0,(%rax)
L79:
  mov    %r13,%rdi
  call   <free@plt>
  add    $0xf8,%rsp
  mov    %r12,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <free@plt>
  nopw   0x0(%rax,%rax,1)
L695:
  mov    %r8d,%ebp
  jmp    L799
  nopl   0x0(%rax,%rax,1)
L523:
  mov    %esi,%edx
  lea    -0x1(%rsi),%ebp
  sub    $0x1,%rdx
  mov    %rdx,%rax
  lea    0x0(%r13,%rdx,8),%r11
  xor    %edx,%edx
  imul   %rcx,%rax
  test   %ebx,%ebx
  cmovs  %rax,%rdx
  add    %rdi,%rdx
  add    %r14,%rdx
  cmp    %rdx,%r11
  setb   %dl
  xor    %r11d,%r11d
  test   %ebx,%ebx
  cmovs  %r11,%rax
  add    %rdi,%rax
  add    %r14,%rax
  cmp    %rax,%r13
  seta   %al
  or     %dl,%al
  je     L749
  cmp    $0x2,%ebp
  jbe    L749
  mov    %esi,%eax
  movapd %xmm1,%xmm3
  lea    (%r14,%rdi,1),%rdx
  shr    %eax
  unpcklpd %xmm3,%xmm3
  lea    -0x1(%rax),%r11d
  mov    %r13,%rax
  shl    $0x4,%r11
  add    0x20(%rsp),%r11
  nop
L779:
  movsd  (%rdx),%xmm0
  movupd (%rax),%xmm2
  add    $0x10,%rax
  movhpd (%rdx,%rcx,1),%xmm0
  add    %r10,%rdx
  mulpd  %xmm3,%xmm0
  subpd  %xmm0,%xmm2
  movups %xmm2,-0x10(%rax)
  cmp    %r11,%rax
  jne    L779
  mov    %esi,%eax
  mov    %esi,%edx
  and    $0xfffffffe,%eax
  or     $0x1,%edx
  and    $0x1,%esi
  je     L753
  imul   %ebx,%eax
  movslq %edx,%rdx
  lea    -0x8(%r13,%rdx,8),%rdx
  movsd  (%rdx),%xmm0
  add    %r8d,%eax
  cltq
  mulsd  -0x8(%r14,%rax,8),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx)
L753:
  add    0x8(%rsp),%r9
  mov    %ebp,%esi
  sub    $0x1,%r8d
  sub    $0x8,%rdi
  jmp    L770
  nopl   0x0(%rax,%rax,1)
L405:
  mov    0x88(%rsp),%rax
  movsd  %xmm0,0x20(%rsp)
  movsd  0x70(%rsp),%xmm0
  movsd  (%rax),%xmm1
  call   <pmax@plt>
  movsd  (%rsp),%xmm5
  comisd 0x10(%rsp),%xmm5
  movsd  0x20(%rsp),%xmm2
  movsd  %xmm0,0x70(%rsp)
  jbe    L651
L90:
  mov    0x88(%rsp),%rax
  movsd  %xmm2,0x20(%rsp)
  movsd  0xc0(%rsp),%xmm0
  movsd  (%rax),%xmm1
  call   <pmin@plt>
  movsd  0x20(%rsp),%xmm2
  movsd  %xmm0,0xc0(%rsp)
  jmp    L651
  xchg   %ax,%ax
L661:
  movsd  D30(%rip),%xmm1
  mov    D29(%rip),%rax
  mulsd  0xc0(%rsp),%xmm1
  movq   %rax,%xmm0
  call   <pmax@plt>
  mov    0x88(%rsp),%rax
  movsd  %xmm0,(%rax)
  jmp    L383
  nopl   0x0(%rax,%rax,1)
L797:
  lea    -0x2(%rbx),%eax
  mov    %rbp,0x58(%rsp)
  mov    %ebx,%r11d
  mov    %r12,%r8
  add    $0x2,%rax
  mov    $0x1,%edi
  mov    %rax,0x20(%rsp)
  nopl   0x0(%rax)
L442:
  mov    %ebx,%ebp
  xor    %ecx,%ecx
  lea    0x0(%r13,%rdi,8),%rdx
  mov    %edi,%eax
  sub    %edi,%ebp
  lea    -0x1(%rdi),%r10d
  mov    %rdx,%r9
  mov    %ebp,%esi
  mov    %ebp,0x30(%rsp)
  sub    $0x1,%rsi
  cmp    %edi,%ebx
  cmovg  %rsi,%rcx
  xor    %r15d,%r15d
  imul   %r12,%rcx
  test   %ebx,%ebx
  cmovs  %rcx,%r15
  xor    %ebp,%ebp
  shl    $0x3,%rsi
  add    %r8,%r15
  add    %r14,%r15
  cmp    %edi,%ebx
  cmovle %rbp,%rsi
  add    %rdx,%rsi
  cmp    %rsi,%r15
  seta   %sil
  test   %ebx,%ebx
  cmovs  %rbp,%rcx
  add    %r8,%rcx
  add    %r14,%rcx
  cmp    %rcx,%rdx
  seta   %cl
  or     %sil,%cl
  je     L111
  mov    0x6c(%rsp),%ecx
  sub    %edi,%ecx
  cmp    $0x2,%ecx
  seta   %sil
  cmp    %edi,%ebx
  setg   %cl
  test   %cl,%sil
  je     L111
  mov    0x30(%rsp),%ebp
  cmp    %edi,%ebx
  mov    $0x1,%esi
  movapd %xmm1,%xmm3
  mov    %edi,0x30(%rsp)
  mov    0x90(%rsp),%rax
  lea    (%r14,%r8,1),%rcx
  unpcklpd %xmm3,%xmm3
  cmovle %esi,%ebp
  mov    %ebp,%esi
  shr    %esi
  lea    -0x1(%rsi),%r15d
  lea    0x10(%rdx),%rsi
  shl    $0x4,%r15
  add    %rsi,%r15
  jmp    L421
  cs nopw 0x0(%rax,%rax,1)
L154:
  add    $0x10,%rsi
L421:
  movsd  (%rcx),%xmm0
  movupd (%rdx),%xmm2
  movhpd (%rcx,%r12,1),%xmm0
  add    %rax,%rcx
  mulpd  %xmm3,%xmm0
  subpd  %xmm0,%xmm2
  movups %xmm2,(%rdx)
  mov    %rsi,%rdx
  cmp    %r15,%rsi
  jne    L154
  mov    0x30(%rsp),%eax
  mov    %ebp,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %ebp,%edx
  je     L19
  movslq %eax,%rdx
  imul   %ebx,%eax
  lea    0x0(%r13,%rdx,8),%rdx
  movsd  (%rdx),%xmm0
  add    %r10d,%eax
  cltq
  mulsd  (%r14,%rax,8),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx)
L19:
  mov    0x18(%rsp),%rax
  movsd  (%r9),%xmm1
  add    %ebx,%r11d
  add    0x28(%rsp),%r8
  divsd  (%rax,%rdi,8),%xmm1
  add    $0x1,%rdi
  movsd  %xmm1,(%r9)
  cmp    0x20(%rsp),%rdi
  jne    L442
  mov    0x58(%rsp),%rbp
  jmp    L723
  xchg   %ax,%ax
L111:
  movslq %r11d,%rcx
  lea    -0x1(%rdi,%rcx,1),%rcx
  lea    (%r14,%rcx,8),%rcx
  nopl   0x0(%rax)
L21:
  movsd  (%rcx),%xmm2
  movsd  (%rdx),%xmm0
  add    $0x1,%eax
  add    $0x8,%rdx
  add    %r12,%rcx
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,-0x8(%rdx)
  cmp    %eax,%ebx
  jg     L21
  jmp    L19
L549:
  mov    0x38(%rsp),%rdx
  mov    0xb8(%rsp),%rcx
  mov    %r13,%rax
  sub    %r13,%rdx
  nopl   0x0(%rax,%rax,1)
L247:
  movsd  (%rdx,%rax,1),%xmm1
  add    $0x8,%rax
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,-0x8(%rax)
  cmp    %rcx,%rax
  jne    L247
  jmp    L241
L639:
  mov    0xe8(%rsp),%rcx
  mov    0xd0(%rsp),%rsi
  mov    0x38(%rsp),%rdx
  add    0xb0(%rsp),%rdx
  nopl   0x0(%rax)
L135:
  movsd  (%rsi,%rax,1),%xmm0
  mulsd  (%rdx,%rax,1),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rcx,%rax
  jne    L135
  jmp    L721
L454:
  mov    %rbp,%r12
  jmp    L79
L66:
  test   %ebp,%ebp
  je     L666
  jmp    L682
L826:
  push   0x18(%rsp)
  mov    %ebx,%edx
  mov    %r13,%r8
  mov    %r14,%rdi
  push   0x68(%rsp)
  mov    0xa8(%rsp),%r9
  mov    0x90(%rsp),%rcx
  mov    0xbc(%rsp),%esi
  call   <qrsolv@plt>
  pop    %rax
  pop    %rdx
  jmp    L721
L749:
  movslq %r8d,%rax
  mov    0x30(%rsp),%rsi
  lea    -0x8(%r14,%rax,8),%rdx
  mov    %ebp,%eax
  lea    (%rsi,%rax,8),%rsi
  mov    %r13,%rax
  nopl   0x0(%rax,%rax,1)
L134:
  movsd  (%rdx),%xmm2
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  add    %rcx,%rdx
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rsi,%rax
  jne    L134
  jmp    L753
L743:
  mov    %r15d,%esi
  mov    %rax,%rdi
  call   <enorm@plt>
  movsd  0x78(%rsp),%xmm5
  movsd  D33(%rip),%xmm1
  movapd %xmm0,%xmm7
  movapd %xmm0,%xmm3
  subsd  %xmm5,%xmm7
  mulsd  %xmm1,%xmm5
  movsd  %xmm7,0x20(%rsp)
  movsd  %xmm5,0xa0(%rsp)
  comisd %xmm5,%xmm7
  jbe    L425
  lea    0x1(%r15),%rax
  pxor   %xmm4,%xmm4
  mov    %rax,0x28(%rsp)
  mov    0x60(%rsp),%rax
  movsd  %xmm4,(%rsp)
  add    $0x8,%rax
  mov    %rax,0x10(%rsp)
  mov    0x38(%rsp),%rax
  add    $0x8,%rax
  mov    %rax,0x8(%rsp)
  lea    -0x1(%r15),%eax
  mov    %eax,0x6c(%rsp)
L621:
  test   %ebx,%ebx
  jle    L590
  mov    %ebx,%eax
  mov    0x80(%rsp),%rdx
  mov    0x38(%rsp),%rdi
  lea    0x0(%r13,%rax,8),%rcx
  mov    %r13,%rax
  nopl   (%rax)
L745:
  movslq (%rdx),%rsi
  add    $0x8,%rax
  add    $0x4,%rdx
  movsd  (%r12,%rsi,8),%xmm0
  divsd  %xmm3,%xmm0
  mulsd  (%rdi,%rsi,8),%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rcx
  jne    L745
  lea    0x1(%rbx),%r11d
  mov    %r12,0x30(%rsp)
  mov    %r14,%rbp
  mov    %r14,%r10
  movslq %r11d,%r11
  mov    0x6c(%rsp),%r12d
  mov    %r13,%r8
  sub    %r13,%rbp
  shl    $0x3,%r11
  mov    $0xffffffff,%r9d
  lea    -0x8(%r11),%rdi
  nop
L208:
  mov    %r9d,%esi
  pxor   %xmm2,%xmm2
  add    $0x1,%r9d
  cmp    $0xffffffff,%esi
  je     L194
  lea    0x0(%rbp,%r8,1),%rcx
  mov    %r13,%rdx
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L415:
  movsd  (%rcx),%xmm0
  mulsd  (%rdx),%xmm0
  add    $0x1,%eax
  add    %rdi,%rcx
  add    $0x8,%rdx
  addsd  %xmm0,%xmm2
  cmp    %esi,%eax
  jle    L415
L194:
  movsd  (%r8),%xmm0
  add    $0x8,%r8
  subsd  %xmm2,%xmm0
  divsd  (%r10),%xmm0
  add    %r11,%r10
  movsd  %xmm0,-0x8(%r8)
  cmp    %r9d,%r12d
  jne    L208
  mov    0x30(%rsp),%r12
L590:
  mov    %ebx,%esi
  mov    %r13,%rdi
  movsd  %xmm1,0x40(%rsp)
  movsd  %xmm3,0x30(%rsp)
  call   <enorm@plt>
  movsd  0x30(%rsp),%xmm3
  movsd  0x40(%rsp),%xmm1
  movapd %xmm0,%xmm2
  movsd  0x20(%rsp),%xmm0
  divsd  0x78(%rsp),%xmm0
  divsd  %xmm2,%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,0x70(%rsp)
  jmp    L678
L236:
  mov    0x60(%rsp),%rcx
  mov    0x38(%rsp),%rdx
  add    %r12,%rdi
  mov    %r12,%rax
  sub    %r12,%rcx
  sub    %r12,%rdx
  nopw   0x0(%rax,%rax,1)
L300:
  movsd  (%rcx,%rax,1),%xmm0
  mulsd  (%rdx,%rax,1),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rdi,%rax
  jne    L300
  jmp    L807
L504:
  movsd  0x78(%rsp),%xmm0
  movsd  %xmm3,0x30(%rsp)
  call   <pmin@plt>
  movsd  D29(%rip),%xmm1
  movsd  0x30(%rsp),%xmm3
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0xc0(%rsp)
  jmp    L93
L644:
  call   <sqrt@plt>
  jmp    L57
```

tool_calls: name: disassemble_data
arguments: tag: D33
type: byte[8]
name: disassemble_data
arguments: tag: D9
type: qword[2]
name: disassemble_data
arguments: tag: D30
type: byte[8]
name: disassemble_data
arguments: tag: D29
type: byte[8]

tool: {"D33": [0x9a,0x99,0x99,0x99,0x99,0x99,0xb9,0x3f]}

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

tool: {"D30": [0xfc,0xa9,0xf1,0xd2,0x4d,0x62,0x50,0x3f]}

tool: {"D29": [0x31,0x65,0x00,0x00,0x00,0x00,0x10,0x00]}

assistant: ```c
void lmpar(double *r, int ldr, int N, int *ipvt, double *diag, double *qtb, double delta, double *par, double *x, double *sdiag) {
  int i, iter, j, jm1, jp1, k, l, nsing;
  double dxnorm, dwarf, fp, gnorm, parc, parl, paru, p1, p001, sum, temp, zero;
  double *wa1, *wa2;
  wa1 = (double *)malloc(sizeof(double) * N);
  wa2 = (double *)malloc(sizeof(double) * N);
  p1 = 1.0e-01;
  p001 = 1.0e-03;
  zero = 0.0;
  dwarf = 2.22507385852e-308;
  nsing = N;
  for (j = 1; j <= N; ++j) {
    wa1[j - 1] = qtb[j - 1];
    if (r[(j - 1) * N + j - 1] == zero && nsing == N) {
      nsing = j - 1;
    }
    if (nsing < N) {
      wa1[j - 1] = zero;
    }
  }
  if (nsing >= 1) {
    for (k = 1; k <= nsing; ++k) {
      j = nsing - k + 1;
      wa1[j - 1] = wa1[j - 1] / r[(j - 1) * N + j - 1];
      temp = wa1[j - 1];
      jm1 = j - 1;
      if (jm1 >= 1) {
        for (i = 1; i <= jm1; ++i) {
          wa1[i - 1] = wa1[i - 1] - r[(i - 1) * N + j - 1] * temp;
        }
      }
    }
  }
  for (j = 0; j < N; ++j) {
    l = ipvt[j];
    x[l] = wa1[j];
  }
  iter = 0;
  for (j = 0; j < N; ++j) {
    wa2[j] = diag[j] * x[j];
  }
  dxnorm = enorm(wa2, N);
  fp = dxnorm - delta;
  if (fp > p1 * delta) {
    parl = zero;
    if (nsing >= N) {
      for (j = 0; j < N; ++j) {
        l = ipvt[j];
        wa1[j] = diag[l] * (wa2[l] / dxnorm);
      }
      for (j = 0; j < N; ++j) {
        sum = zero;
        jm1 = j - 1;
        if (jm1 >= 0) {
          for (i = 0; i <= jm1; ++i) {
            sum = sum + r[i * N + j] * wa1[i];
          }
        }
        wa1[j] = (wa1[j] - sum) / r[j * N + j];
      }
      temp = enorm(wa1, N);
      parl = ((fp / delta) / temp) / temp;
    }
    for (j = 0; j < N; ++j) {
      sum = zero;
      for (i = 0; i <= j; ++i) {
        sum = sum + r[i * N + j] * qtb[i];
      }
      l = ipvt[j];
      wa1[j] = sum / diag[l];
    }
    gnorm = enorm(wa1, N);
    paru = gnorm / delta;
    if (paru == zero) {
      paru = dwarf / pmin(delta, p1);
    }
    *par = pmax(*par, parl);
    *par = pmin(*par, paru);
    if (*par == zero) {
      *par = gnorm / dxnorm;
    }
    while (1) {
      iter++;
      if (*par == zero) {
        *par = pmax(dwarf, p001 * paru);
      }
      temp = sqrt(*par);
      for (j = 0; j < N; ++j) {
        wa1[j] = temp * diag[j];
      }
      qrsolv(r, ldr, N, ipvt, wa1, qtb, x, sdiag);
      for (j = 0; j < N; ++j) {
        wa2[j] = diag[j] * x[j];
      }
      dxnorm = enorm(wa2, N);
      temp = fp;
      fp = dxnorm - delta;
      if (fabs(fp) <= p1 * delta) {
        break;
      }
      if (iter == 10) {
        break;
      }
      if (parl == zero && fp <= temp && temp < zero) {
        break;
      }
      for (j = 0; j < N; ++j) {
        l = ipvt[j];
        wa1[j] = diag[l] * (wa2[l] / dxnorm);
      }
      for (j = 0; j < N; ++j) {
        wa1[j] = wa1[j] / sdiag[j];
        temp = wa1[j];
        jp1 = j + 1;
        if (N >= jp1 + 1) {
          for (i = jp1; i < N; ++i) {
            wa1[i] = wa1[i] - r[i * N + j] * temp;
          }
        }
      }
      temp = enorm(wa1, N);
      parc = ((fp / delta) / temp) / temp;
      if (fp > zero) {
        parl = pmax(parl, *par);
      }
      if (fp < zero) {
        paru = pmin(paru, *par);
      }
      *par = pmax(parl, *par + parc);
    }
  }
  if (iter == 0) {
    *par = zero;
  }
  free(wa1);
  free(wa2);
}
```