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

```asm
<lm_lmpar>:
  endbr64
  push   %r15
  push   %r14
  mov    %r9,%r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %edi,%r12d
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %edx,0x44(%rsp)
  mov    0xe8(%rsp),%rbx
  mov    %rcx,0x48(%rsp)
  movsd  %xmm0,0x38(%rsp)
  test   %edi,%edi
  jle    L711
  movslq %edx,%r15
  mov    %rsi,%rcx
  movslq %edi,%rdi
  xor    %eax,%eax
  lea    0x8(,%r15,8),%r8
  pxor   %xmm2,%xmm2
  mov    %r12d,%r15d
  xor    %esi,%esi
  jmp    L52
  xchg   %ax,%ax
L360:
  add    $0x1,%rax
  add    %r8,%rcx
  cmp    %rax,%rdi
  je     L876
L52:
  movsd  (%r14,%rax,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  ucomisd (%rcx),%xmm2
  setnp  %dl
  cmovne %esi,%edx
  test   %dl,%dl
  je     L515
  cmp    %r12d,%r15d
  je     L824
L515:
  cmp    %r12d,%r15d
  jge    L360
  movq   $0x0,(%rbx,%rax,8)
L631:
  add    $0x1,%rax
  add    %r8,%rcx
  cmp    %rax,%rdi
  jne    L52
L876:
  mov    %r15d,%r9d
  sub    $0x1,%r9d
  js     L382
  mov    0x44(%rsp),%ecx
  movslq %r9d,%rsi
  mov    %r15d,(%rsp)
  mov    %r12d,0x8(%rsp)
  mov    %ecx,%edi
  mov    %ecx,%eax
  mov    %ecx,%r12d
  imul   %r9d,%edi
  not    %eax
  cltq
  lea    0x0(,%rax,8),%r10
  movslq %edi,%rdx
  lea    (%rdx,%rsi,1),%rax
  lea    0x0(%rbp,%rdx,8),%rdx
  lea    0x0(%rbp,%rax,8),%r8
  mov    %ecx,%eax
  neg    %eax
  cltq
  lea    0x0(,%rax,8),%r11
  nopw   0x0(%rax,%rax,1)
L187:
  movsd  (%rbx,%rsi,8),%xmm0
  sub    $0x1,%r9d
  divsd  (%r8),%xmm0
  movsd  %xmm0,(%rbx,%rsi,8)
  test   %esi,%esi
  jle    L445
  lea    0x8(%rdx),%rcx
  cmp    %rcx,%rbx
  je     L811
  cmp    $0x1,%esi
  je     L811
  mov    %esi,%ecx
  movapd %xmm0,%xmm3
  mov    %esi,%r15d
  xor    %eax,%eax
  shr    %ecx
  unpcklpd %xmm3,%xmm3
  shl    $0x4,%rcx
  cs nopw 0x0(%rax,%rax,1)
L243:
  movupd (%rdx,%rax,1),%xmm2
  movupd (%rbx,%rax,1),%xmm1
  mulpd  %xmm3,%xmm2
  subpd  %xmm2,%xmm1
  movups %xmm1,(%rbx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rcx
  jne    L243
  mov    %r15d,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%r15d
  je     L731
  movslq %eax,%rcx
  add    %edi,%eax
  cltq
  lea    (%rbx,%rcx,8),%rcx
  mulsd  0x0(%rbp,%rax,8),%xmm0
  movsd  (%rcx),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rcx)
L731:
  sub    $0x1,%rsi
  add    %r10,%r8
  sub    %r12d,%edi
  add    %r11,%rdx
  jmp    L187
L824:
  movq   $0x0,(%rbx,%rax,8)
  mov    %eax,%r15d
  jmp    L631
L811:
  mov    %r9d,%r15d
  xor    %eax,%eax
  nop
L728:
  movsd  (%rdx,%rax,8),%xmm2
  movsd  (%rbx,%rax,8),%xmm1
  mov    %rax,%rcx
  mulsd  %xmm0,%xmm2
  subsd  %xmm2,%xmm1
  movsd  %xmm1,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %r15,%rcx
  jne    L728
  jmp    L731
L445:
  test   %r9d,%r9d
  jns    L731
  mov    (%rsp),%r15d
  mov    0x8(%rsp),%r12d
L382:
  lea    -0x1(%r12),%esi
  mov    %r12d,%ecx
  xor    %eax,%eax
  test   %r12d,%r12d
  jle    L151
  mov    0x48(%rsp),%rdi
  mov    0xd8(%rsp),%r8
  nopl   0x0(%rax,%rax,1)
L433:
  movsd  (%rbx,%rax,8),%xmm0
  movslq (%rdi,%rax,4),%rdx
  add    $0x1,%rax
  movsd  %xmm0,(%r8,%rdx,8)
  cmp    %rax,%rcx
  jne    L433
  lea    0x8(%r13),%rax
  cmp    %rax,0xf0(%rsp)
  mov    0xd8(%rsp),%rax
  setne  %dl
  add    $0x8,%rax
  cmp    %rax,0xf0(%rsp)
  setne  %al
  test   %al,%dl
  je     L647
  cmp    $0x1,%esi
  jbe    L647
  mov    %r12d,%edx
  mov    0xd8(%rsp),%rcx
  mov    0xf0(%rsp),%rsi
  xor    %eax,%eax
  shr    %edx
  shl    $0x4,%rdx
  nopw   0x0(%rax,%rax,1)
L407:
  movupd 0x0(%r13,%rax,1),%xmm0
  movupd (%rcx,%rax,1),%xmm6
  mulpd  %xmm6,%xmm0
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L407
  mov    %r12d,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%r12b
  je     L151
  mov    0xd8(%rsp),%rdi
  movsd  0x0(%r13,%rax,8),%xmm0
  mulsd  (%rdi,%rax,8),%xmm0
  mov    0xf0(%rsp),%rdi
  movsd  %xmm0,(%rdi,%rax,8)
L151:
  mov    0xf0(%rsp),%rsi
  xor    %eax,%eax
  mov    %r12d,%edi
  call   <lm_enorm@plt>
  pxor   %xmm4,%xmm4
  movsd  0x38(%rsp),%xmm5
  movsd  D72(%rip),%xmm6
  cvtsi2sd %eax,%xmm4
  mulsd  %xmm5,%xmm6
  movapd %xmm4,%xmm7
  subsd  %xmm5,%xmm7
  movsd  %xmm6,0x68(%rsp)
  comisd %xmm7,%xmm6
  movsd  %xmm7,0x58(%rsp)
  jae    L605
  cmp    %r15d,%r12d
  jle    L297
  pxor   %xmm2,%xmm2
  movslq 0x44(%rsp),%r15
  movsd  %xmm2,0x30(%rsp)
L18:
  test   %r12d,%r12d
  jle    L735
  mov    %r12d,(%rsp)
  lea    0x1(%r12),%r10d
  mov    0x44(%rsp),%r11d
  xor    %esi,%esi
  mov    0x48(%rsp),%r12
  lea    0x0(,%r15,8),%r9
  mov    %rbp,%rdi
  mov    $0x1,%ecx
  nopw   0x0(%rax,%rax,1)
L540:
  mov    %ecx,%r8d
  cmp    $0x1,%rcx
  je     L548
  mov    %ecx,%edx
  xor    %eax,%eax
  movapd %xmm2,%xmm0
  shr    %edx
  shl    $0x4,%rdx
  nopl   0x0(%rax,%rax,1)
L83:
  movupd (%r14,%rax,1),%xmm3
  movupd (%rdi,%rax,1),%xmm6
  add    $0x10,%rax
  mulpd  %xmm6,%xmm3
  addsd  %xmm3,%xmm0
  unpckhpd %xmm3,%xmm3
  addsd  %xmm3,%xmm0
  cmp    %rax,%rdx
  jne    L83
  mov    %r8d,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%r8d
  je     L535
L715:
  lea    (%rsi,%rax,1),%edx
  cltq
  movslq %edx,%rdx
  movsd  0x0(%rbp,%rdx,8),%xmm1
  mulsd  (%r14,%rax,8),%xmm1
  addsd  %xmm1,%xmm0
L535:
  movslq -0x4(%r12,%rcx,4),%rax
  add    %r11d,%esi
  add    %r9,%rdi
  divsd  0x0(%r13,%rax,8),%xmm0
  movsd  %xmm0,-0x8(%rbx,%rcx,8)
  add    $0x1,%rcx
  cmp    %r10,%rcx
  jne    L540
  mov    (%rsp),%r12d
L735:
  xor    %eax,%eax
  mov    %rbx,%rsi
  mov    %r12d,%edi
  movsd  %xmm2,0x8(%rsp)
  movsd  %xmm4,(%rsp)
  call   <lm_enorm@plt>
  pxor   %xmm3,%xmm3
  movsd  0x8(%rsp),%xmm2
  movsd  (%rsp),%xmm4
  cvtsi2sd %eax,%xmm3
  movapd %xmm3,%xmm7
  divsd  0x38(%rsp),%xmm7
  ucomisd %xmm2,%xmm7
  movsd  %xmm7,0x78(%rsp)
  jp     L165
  jne    L165
  movsd  D72(%rip),%xmm6
  movsd  0x38(%rsp),%xmm5
  comisd %xmm5,%xmm6
  jb     L696
  movsd  D40(%rip),%xmm0
  divsd  %xmm5,%xmm0
  movsd  %xmm0,0x78(%rsp)
  movapd %xmm0,%xmm7
L165:
  mov    0xd0(%rsp),%rax
  movsd  0x30(%rsp),%xmm6
  movsd  (%rax),%xmm0
  movapd %xmm6,%xmm1
  cmplesd %xmm0,%xmm1
  andpd  %xmm1,%xmm0
  andnpd %xmm6,%xmm1
  orpd   %xmm1,%xmm0
  movapd %xmm0,%xmm1
  cmplesd %xmm7,%xmm1
  andpd  %xmm1,%xmm0
  andnpd %xmm7,%xmm1
  orpd   %xmm1,%xmm0
  ucomisd %xmm2,%xmm0
  jp     L844
  je     L722
L844:
  mov    0xd0(%rsp),%rax
  movsd  %xmm0,(%rax)
L558:
  lea    -0x1(%r12),%eax
  lea    0x8(%r13),%rcx
  movl   $0xb,0x88(%rsp)
  cmp    $0x1,%eax
  mov    %eax,0x74(%rsp)
  seta   %sil
  cmp    %rcx,%rbx
  mov    %r14,0x80(%rsp)
  mov    0xf0(%rsp),%r14
  setne  %al
  and    %esi,%eax
  mov    %al,0x8e(%rsp)
  mov    %r12d,%eax
  shr    %eax
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,0x60(%rsp)
  mov    %r12d,%eax
  and    $0xfffffffe,%eax
  mov    %eax,0x70(%rsp)
  cltq
  shl    $0x3,%rax
  lea    0x0(%r13,%rax,1),%rdi
  mov    %rdi,(%rsp)
  lea    (%rbx,%rax,1),%rdi
  mov    %rdi,0x18(%rsp)
  mov    0xd8(%rsp),%rdi
  lea    0x8(%rdi),%rdx
  mov    0xd8(%rsp),%rdi
  cmp    %rdx,0xf0(%rsp)
  setne  %dl
  cmp    %rcx,0xf0(%rsp)
  setne  %cl
  add    %rax,%rdi
  add    0xf0(%rsp),%rax
  mov    %rax,0x20(%rsp)
  and    %ecx,%edx
  lea    0x0(,%r15,8),%rax
  mov    %rax,0x8(%rsp)
  and    %esi,%edx
  add    $0x8,%rax
  mov    %dl,0x8f(%rsp)
  mov    %rdi,0x28(%rsp)
  mov    %rax,0x10(%rsp)
  nopl   0x0(%rax,%rax,1)
L652:
  ucomisd %xmm2,%xmm0
  jp     L174
  jne    L174
  movsd  D6(%rip),%xmm0
  mulsd  0x78(%rsp),%xmm0
  movsd  D40(%rip),%xmm6
  mov    0xd0(%rsp),%rax
  movapd %xmm0,%xmm3
  cmpnlesd D40(%rip),%xmm3
  andpd  %xmm3,%xmm0
  andnpd %xmm6,%xmm3
  orpd   %xmm3,%xmm0
  movsd  %xmm0,(%rax)
L174:
  ucomisd %xmm0,%xmm2
  ja     L363
  sqrtsd %xmm0,%xmm0
L17:
  test   %r12d,%r12d
  jle    L329
  cmpb   $0x0,0x8e(%rsp)
  je     L226
  movapd %xmm0,%xmm3
  mov    0x60(%rsp),%rdx
  xor    %eax,%eax
  unpcklpd %xmm3,%xmm3
  nop
L770:
  movupd 0x0(%r13,%rax,1),%xmm1
  mulpd  %xmm3,%xmm1
  movups %xmm1,(%rbx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L770
  cmp    %r12d,0x70(%rsp)
  je     L289
  mov    (%rsp),%rax
  mulsd  (%rax),%xmm0
  mov    0x18(%rsp),%rax
  movsd  %xmm0,(%rax)
L289:
  movsd  %xmm2,0x50(%rsp)
  sub    $0x8,%rsp
  xor    %eax,%eax
  mov    %rbx,%r8
  push   %r14
  mov    %rbp,%rsi
  mov    %r12d,%edi
  push   0xf0(%rsp)
  push   0xf0(%rsp)
  mov    0xa0(%rsp),%r9
  mov    0x68(%rsp),%rcx
  mov    0x64(%rsp),%edx
  call   <lm_qrsolv@plt>
  add    $0x20,%rsp
  xor    %eax,%eax
  movsd  0x50(%rsp),%xmm2
  cmpb   $0x0,0x8f(%rsp)
  je     L761
  mov    0x60(%rsp),%rdx
  mov    0xd8(%rsp),%rcx
  nopw   0x0(%rax,%rax,1)
L212:
  movupd (%rcx,%rax,1),%xmm0
  movupd 0x0(%r13,%rax,1),%xmm7
  mulpd  %xmm7,%xmm0
  movups %xmm0,(%r14,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L212
  cmp    %r12d,0x70(%rsp)
  je     L201
  mov    0x28(%rsp),%rax
  movsd  (%rax),%xmm0
  mov    (%rsp),%rax
  mulsd  (%rax),%xmm0
  mov    0x20(%rsp),%rax
  movsd  %xmm0,(%rax)
L201:
  xor    %eax,%eax
  mov    %r14,%rsi
  mov    %r12d,%edi
  movsd  %xmm2,0x50(%rsp)
  call   <lm_enorm@plt>
  pxor   %xmm1,%xmm1
  movsd  0x68(%rsp),%xmm7
  cvtsi2sd %eax,%xmm1
  movapd %xmm1,%xmm3
  subsd  0x38(%rsp),%xmm3
  movapd %xmm3,%xmm0
  andpd  D21(%rip),%xmm0
  comisd %xmm0,%xmm7
  jae    L467
  movsd  0x30(%rsp),%xmm5
  movsd  0x50(%rsp),%xmm2
  ucomisd %xmm2,%xmm5
  jp     L57
  jne    L57
  movsd  0x58(%rsp),%xmm5
  comisd %xmm3,%xmm5
  jb     L57
  comisd %xmm5,%xmm2
  ja     L467
L57:
  subl   $0x1,0x88(%rsp)
  je     L467
  test   %r12d,%r12d
  jle    L69
  mov    0x74(%rsp),%edx
  mov    0x48(%rsp),%rsi
  xor    %eax,%eax
  nopl   0x0(%rax)
L853:
  movslq (%rsi,%rax,4),%rcx
  movsd  0x0(%r13,%rcx,8),%xmm0
  mulsd  (%r14,%rcx,8),%xmm0
  mov    %rax,%rcx
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rcx
  jne    L853
  mov    0xe0(%rsp),%rax
  movsd  (%rbx),%xmm0
  divsd  (%rax),%xmm0
  movsd  %xmm0,(%rbx)
  cmp    $0x1,%r12d
  je     L69
  mov    %r13,0x50(%rsp)
  mov    0x44(%rsp),%r13d
  mov    %rbp,%r15
  xor    %r8d,%r8d
  mov    %r14,0xf0(%rsp)
  lea    0x18(%rbp),%r11
  lea    0x10(%rbx),%rax
  mov    0xe0(%rsp),%r14
  lea    -0x2(%r12),%edi
  mov    $0x2,%r9d
  nop
L355:
  movsd  -0x10(%r11),%xmm1
  lea    -0x1(%r9),%rcx
  mov    %r9d,%edx
  mulsd  %xmm0,%xmm1
  movsd  -0x8(%rax),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %r9d,%r12d
  jle    L327
  mov    %edi,%esi
  lea    0x1(%rcx,%rsi,1),%rcx
  lea    (%rbx,%rcx,8),%rsi
  lea    -0x10(%rax),%rcx
  cmp    %rcx,%rsi
  lea    -0x8(%rax),%rcx
  setbe  %sil
  cmp    %rcx,%rax
  setae  %cl
  or     %sil,%cl
  je     L416
  cmp    %rax,%r11
  setne  %sil
  cmp    $0x1,%edi
  setne  %cl
  test   %cl,%sil
  je     L416
  movsd  -0x10(%rax),%xmm4
  mov    %edi,%esi
  lea    -0x8(%r11),%r10
  xor    %ecx,%ecx
  shr    %esi
  unpcklpd %xmm4,%xmm4
  shl    $0x4,%rsi
  xchg   %ax,%ax
L351:
  movupd (%r10,%rcx,1),%xmm1
  movupd (%rax,%rcx,1),%xmm0
  mulpd  %xmm4,%xmm1
  subpd  %xmm1,%xmm0
  movups %xmm0,(%rax,%rcx,1)
  add    $0x10,%rcx
  cmp    %rcx,%rsi
  jne    L351
  mov    %edi,%ecx
  and    $0xfffffffe,%ecx
  add    %ecx,%edx
  cmp    %edi,%ecx
  je     L850
  movslq %edx,%rcx
  add    %r8d,%edx
  movslq %edx,%rdx
  lea    (%rbx,%rcx,8),%rcx
  movsd  0x0(%rbp,%rdx,8),%xmm1
  mulsd  -0x10(%rax),%xmm1
  movsd  (%rcx),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  movsd  -0x8(%rax),%xmm0
L327:
  divsd  -0x8(%r14,%r9,8),%xmm0
  add    %r13d,%r8d
  movsd  %xmm0,-0x8(%rax)
  add    $0x1,%r9
  add    0x8(%rsp),%r15
  add    0x10(%rsp),%r11
  add    $0x8,%rax
  sub    $0x1,%edi
  jae    L355
  mov    0x50(%rsp),%r13
  mov    0xf0(%rsp),%r14
L69:
  xor    %eax,%eax
  mov    %rbx,%rsi
  mov    %r12d,%edi
  movsd  %xmm2,0x58(%rsp)
  movsd  %xmm3,0x50(%rsp)
  call   <lm_enorm@plt>
  pxor   %xmm1,%xmm1
  movsd  0x50(%rsp),%xmm3
  movsd  0x58(%rsp),%xmm2
  cvtsi2sd %eax,%xmm1
  mov    0xd0(%rsp),%rax
  movapd %xmm3,%xmm0
  divsd  0x38(%rsp),%xmm0
  comisd %xmm2,%xmm3
  divsd  %xmm1,%xmm0
  divsd  %xmm1,%xmm0
  movsd  (%rax),%xmm1
  jbe    L894
  movsd  0x30(%rsp),%xmm7
  movapd %xmm1,%xmm4
  cmplesd %xmm7,%xmm4
  andpd  %xmm4,%xmm7
  andnpd %xmm1,%xmm4
  orpd   %xmm7,%xmm4
  movsd  %xmm4,0x30(%rsp)
L295:
  addsd  %xmm1,%xmm0
  movsd  0x30(%rsp),%xmm5
  mov    0xd0(%rsp),%rax
  movsd  %xmm3,0x58(%rsp)
  movapd %xmm0,%xmm4
  cmpnlesd %xmm5,%xmm4
  andpd  %xmm4,%xmm0
  andnpd %xmm5,%xmm4
  orpd   %xmm4,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L652
L297:
  test   %r12d,%r12d
  jle    L594
  mov    0x48(%rsp),%rsi
  mov    0xf0(%rsp),%rdi
  movslq %r12d,%rdx
  xor    %eax,%eax
L127:
  movslq (%rsi,%rax,4),%rcx
  movsd  0x0(%r13,%rcx,8),%xmm0
  mulsd  (%rdi,%rcx,8),%xmm0
  divsd  %xmm4,%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L127
  movslq 0x44(%rsp),%r15
  movsd  (%rbx),%xmm0
  divsd  0x0(%rbp),%xmm0
  movsd  %xmm0,(%rbx)
  lea    0x8(,%r15,8),%r10
  cmp    $0x1,%r12d
  je     L375
  mov    0x44(%rsp),%edi
  mov    %r13,(%rsp)
  lea    -0x8(%r10),%r11
  pxor   %xmm2,%xmm2
  mov    $0x1,%ecx
  mov    %edi,%eax
  mov    %edi,%esi
  add    $0x1,%eax
  cltq
  lea    0x0(%rbp,%rax,8),%r9
  mov    %edi,%eax
  lea    0x0(%rbp,%r15,8),%rdi
  mov    %eax,%r13d
L796:
  test   %ecx,%ecx
  mov    $0x1,%r8d
  cmovg  %ecx,%r8d
  cmp    $0x1,%rcx
  je     L448
  mov    %r8d,%edx
  movapd %xmm2,%xmm0
  xor    %eax,%eax
  shr    %edx
  shl    $0x4,%rdx
  xchg   %ax,%ax
L589:
  movupd (%rdi,%rax,1),%xmm3
  movupd (%rbx,%rax,1),%xmm5
  add    $0x10,%rax
  mulpd  %xmm5,%xmm3
  addsd  %xmm3,%xmm0
  unpckhpd %xmm3,%xmm3
  addsd  %xmm3,%xmm0
  cmp    %rdx,%rax
  jne    L589
  mov    %r8d,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%r8d
  je     L301
L790:
  lea    (%rax,%rsi,1),%edx
  cltq
  movslq %edx,%rdx
  movsd  0x0(%rbp,%rdx,8),%xmm1
  mulsd  (%rbx,%rax,8),%xmm1
  addsd  %xmm1,%xmm0
L301:
  movsd  (%rbx,%rcx,8),%xmm1
  add    %r13d,%esi
  add    %r11,%rdi
  subsd  %xmm0,%xmm1
  divsd  (%r9),%xmm1
  movsd  %xmm1,(%rbx,%rcx,8)
  add    $0x1,%rcx
  add    %r10,%r9
  cmp    %ecx,%r12d
  jg     L796
  mov    (%rsp),%r13
L121:
  mov    %rbx,%rsi
  mov    %r12d,%edi
  xor    %eax,%eax
  movsd  %xmm2,0x8(%rsp)
  movsd  %xmm4,(%rsp)
  call   <lm_enorm@plt>
  pxor   %xmm1,%xmm1
  movsd  (%rsp),%xmm4
  movsd  0x58(%rsp),%xmm0
  cvtsi2sd %eax,%xmm1
  divsd  0x38(%rsp),%xmm0
  movsd  0x8(%rsp),%xmm2
  divsd  %xmm1,%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x30(%rsp)
  jmp    L18
  nopl   (%rax)
L416:
  mov    %r9,%rdx
  nopl   0x0(%rax,%rax,1)
L442:
  movsd  (%r15,%rdx,8),%xmm1
  mulsd  -0x10(%rax),%xmm1
  movsd  (%rbx,%rdx,8),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rbx,%rdx,8)
  add    $0x1,%rdx
  cmp    %edx,%r12d
  jg     L442
L850:
  movsd  -0x8(%rax),%xmm0
  jmp    L327
L894:
  comisd %xmm3,%xmm2
  jbe    L295
  movsd  0x78(%rsp),%xmm5
  movapd %xmm5,%xmm4
  cmplesd %xmm1,%xmm4
  andpd  %xmm4,%xmm5
  andnpd %xmm1,%xmm4
  orpd   %xmm5,%xmm4
  movsd  %xmm4,0x78(%rsp)
  jmp    L295
L605:
  mov    0xd0(%rsp),%rax
  movq   $0x0,(%rax)
L467:
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L761:
  mov    0x74(%rsp),%edx
  mov    0xd8(%rsp),%rsi
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L24:
  movsd  (%rsi,%rax,8),%xmm0
  mulsd  0x0(%r13,%rax,8),%xmm0
  mov    %rax,%rcx
  movsd  %xmm0,(%r14,%rax,8)
  add    $0x1,%rax
  cmp    %rcx,%rdx
  jne    L24
  jmp    L201
L226:
  mov    0x74(%rsp),%ecx
  xor    %eax,%eax
  nopl   0x0(%rax)
L799:
  movsd  0x0(%r13,%rax,8),%xmm1
  mov    %rax,%rdx
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rcx,%rdx
  jne    L799
  jmp    L289
L329:
  movsd  %xmm2,0x50(%rsp)
  sub    $0x8,%rsp
  mov    %rbx,%r8
  mov    %rbp,%rsi
  push   %r14
  mov    %r12d,%edi
  xor    %eax,%eax
  push   0xf0(%rsp)
  push   0xf0(%rsp)
  mov    0xa0(%rsp),%r9
  mov    0x68(%rsp),%rcx
  mov    0x64(%rsp),%edx
  call   <lm_qrsolv@plt>
  add    $0x20,%rsp
  movsd  0x50(%rsp),%xmm2
  jmp    L201
L548:
  movapd %xmm2,%xmm0
  xor    %eax,%eax
  jmp    L715
L722:
  divsd  %xmm4,%xmm3
  movapd %xmm3,%xmm0
  movsd  %xmm3,(%rax)
  jmp    L558
L448:
  movapd %xmm2,%xmm0
  xor    %eax,%eax
  jmp    L790
L696:
  movsd  D59(%rip),%xmm6
  movsd  %xmm6,0x78(%rsp)
  movapd %xmm6,%xmm7
  jmp    L165
L647:
  mov    0xd8(%rsp),%rdx
  mov    0xf0(%rsp),%rsi
  xor    %eax,%eax
L97:
  movsd  0x0(%r13,%rax,8),%xmm0
  mulsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L97
  jmp    L151
L711:
  mov    %edi,%r15d
  jmp    L876
L375:
  pxor   %xmm2,%xmm2
  jmp    L121
L594:
  movslq 0x44(%rsp),%r15
  pxor   %xmm2,%xmm2
  jmp    L121
L363:
  movsd  %xmm2,0x50(%rsp)
  call   <sqrt@plt>
  movsd  0x50(%rsp),%xmm2
  jmp    L17
```

tool_calls: name: read_data
arguments: label: D72
type_infered: f64
name: read_data
arguments: label: D40
type_infered: byte[8]
name: read_data
arguments: label: D6
type_infered: f64
name: read_data
arguments: label: D21
type_infered: qword[2]
name: read_data
arguments: label: D59
type_infered: byte[8]

tool: D72: 0.1

tool: {"D40": [0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: D6: 0.001

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

tool: {"D59": [0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
void lm_lmpar(int n, double *r, int ldr, int *ipvt, double *diag, double *qtb, double delta, double *par, double *x, double *sdiag, double *wa1, double *wa2) {
  int i, iter, j, nsing;
  double dxnorm, fp, fp_old, gnorm, parc, parl, paru;
  double sum, temp;
  static double p1 = 0.1;
  static double p001 = 0.001;
  nsing = n;
  for (j = 0; j < n; j++) {
    wa1[j] = qtb[j];
    if (r[j * ldr + j] == 0 && nsing == n)
      nsing = j;
    if (nsing < n)
      wa1[j] = 0;
  }
  for (j = nsing - 1; j >= 0; j--) {
    wa1[j] = wa1[j] / r[j + ldr * j];
    temp = wa1[j];
    for (i = 0; i < j; i++)
      wa1[i] -= r[j * ldr + i] * temp;
  }
  for (j = 0; j < n; j++)
    x[ipvt[j]] = wa1[j];
  iter = 0;
  for (j = 0; j < n; j++)
    wa2[j] = diag[j] * x[j];
  dxnorm = lm_enorm(n, wa2);
  fp = dxnorm - delta;
  if (fp <= p1 * delta) {
    *par = 0;
    return;
  }
  parl = 0;
  if (nsing >= n) {
    for (j = 0; j < n; j++)
      wa1[j] = diag[ipvt[j]] * wa2[ipvt[j]] / dxnorm;
    for (j = 0; j < n; j++) {
      sum = 0.;
      for (i = 0; i < j; i++)
        sum += r[j * ldr + i] * wa1[i];
      wa1[j] = (wa1[j] - sum) / r[j + ldr * j];
    }
    temp = lm_enorm(n, wa1);
    parl = fp / delta / temp / temp;
  }
  for (j = 0; j < n; j++) {
    sum = 0;
    for (i = 0; i <= j; i++)
      sum += r[j * ldr + i] * qtb[i];
    wa1[j] = sum / diag[ipvt[j]];
  }
  gnorm = lm_enorm(n, wa1);
  paru = gnorm / delta;
  if (paru == 0.)
    paru = 9.9e-324 / (((delta) <= (p1)) ? (delta) : (p1));
  *par = (((*par) >= (parl)) ? (*par) : (parl));
  *par = (((*par) <= (paru)) ? (*par) : (paru));
  if (*par == 0.)
    *par = gnorm / dxnorm;
  for (;; iter++) {
    if (*par == 0.)
      *par = (((9.9e-324) >= (p001 * paru)) ? (9.9e-324) : (p001 * paru));
    temp = sqrt(*par);
    for (j = 0; j < n; j++)
      wa1[j] = temp * diag[j];
    lm_qrsolv(n, r, ldr, ipvt, wa1, qtb, x, sdiag, wa2);
    for (j = 0; j < n; j++)
      wa2[j] = diag[j] * x[j];
    dxnorm = lm_enorm(n, wa2);
    fp_old = fp;
    fp = dxnorm - delta;
    if (fabs(fp) <= p1 * delta || (parl == 0. && fp <= fp_old && fp_old < 0.) || iter == 10)
      break;
    for (j = 0; j < n; j++)
      wa1[j] = diag[ipvt[j]] * wa2[ipvt[j]] / dxnorm;
    for (j = 0; j < n; j++) {
      wa1[j] = wa1[j] / sdiag[j];
      for (i = j + 1; i < n; i++)
        wa1[i] -= r[j * ldr + i] * wa1[j];
    }
    temp = lm_enorm(n, wa1);
    parc = fp / delta / temp / temp;
    if (fp > 0)
      parl = (((parl) >= (*par)) ? (parl) : (*par));
    else if (fp < 0)
      paru = (((paru) <= (*par)) ? (paru) : (*par));
    *par = (((parl) >= (*par + parc)) ? (parl) : (*par + parc));
  }
}
```