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

```asm
<minfit>:
  endbr64
  push   %r15
  movslq %edx,%rax
  push   %r14
  mov    %ecx,%r14d
  push   %r13
  push   %r12
  mov    %rax,%r12
  push   %rbp
  mov    %rdi,%rbp
  lea    0x0(,%rax,8),%rdi
  push   %rbx
  mov    %esi,%ebx
  sub    $0xe8,%rsp
  mov    %ecx,0x44(%rsp)
  mov    %r8,(%rsp)
  mov    %rax,0x60(%rsp)
  call   <malloc@plt>
  mov    %rax,%r15
  xor    %eax,%eax
  call   <macheps@plt>
  pxor   %xmm3,%xmm3
  lea    -0x1(%r12),%r9d
  cvtsi2sd %eax,%xmm3
  lea    (%r12,%r14,1),%eax
  mov    %r9d,0x38(%rsp)
  mov    %eax,0x40(%rsp)
  movsd  %xmm3,0x98(%rsp)
  movapd %xmm3,%xmm5
  mulsd  %xmm3,%xmm3
  movsd  %xmm3,0x28(%rsp)
  test   %r12d,%r12d
  jle    L256
  test   %ebx,%ebx
  jle    L1179
  cmp    %ebx,%r12d
  mov    %ebx,%ecx
  lea    0x8(%r15),%r11
  mov    %r15,0x30(%rsp)
  cmovle %r12d,%ecx
  pxor   %xmm2,%xmm2
  movq   D54(%rip),%xmm3
  movl   $0x0,0x8(%rsp)
  movq   $0x0,0x10(%rsp)
  lea    0x8(%rbp),%r10
  xor    %r14d,%r14d
  mov    %ecx,0xa0(%rsp)
  lea    0x1(%rax),%ecx
  mov    %r14d,%r8d
  mov    %r10,%r15
  mov    %ecx,0x80(%rsp)
  movslq %eax,%rcx
  sub    $0x1,%eax
  lea    0x8(,%rcx,8),%rsi
  mov    %rcx,0x68(%rsp)
  lea    0x0(,%rcx,8),%r13
  mov    %rsi,0xa8(%rsp)
  movl   $0x0,0xc8(%rsp)
  mov    %eax,0xb0(%rsp)
  mov    %r12d,0x20(%rsp)
  mov    %r11,%r12
  movsd  %xmm2,0x48(%rsp)
  movsd  %xmm2,0x18(%rsp)
  movaps %xmm3,0x50(%rsp)
L1278:
  mov    %r8d,%r10d
  lea    -0x8(%r15),%rdx
  pxor   %xmm1,%xmm1
  add    $0x1,%r8d
  movsd  %xmm2,-0x8(%r12)
  mov    %r10d,%eax
  nopl   (%rax)
L1509:
  movsd  (%rdx),%xmm0
  add    $0x1,%eax
  add    %r13,%rdx
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  cmp    %eax,%ebx
  jg     L1509
  movsd  0x28(%rsp),%xmm3
  comisd %xmm1,%xmm3
  ja     L554
  movslq 0xc8(%rsp),%rax
  movsd  0x48(%rsp),%xmm5
  lea    0x0(%rbp,%rax,8),%r14
  movsd  (%r14),%xmm3
  comisd %xmm3,%xmm5
  movsd  %xmm3,0x70(%rsp)
  ja     L364
  ucomisd %xmm1,%xmm5
  ja     L718
  movapd %xmm1,%xmm3
  sqrtsd %xmm3,%xmm3
L1281:
  xorpd  D64(%rip),%xmm3
L674:
  movsd  0x70(%rsp),%xmm5
  movapd %xmm5,%xmm4
  subsd  %xmm3,%xmm5
  mulsd  %xmm3,%xmm4
  movsd  %xmm5,(%r14)
  subsd  %xmm1,%xmm4
  cmp    %r8d,0x40(%rsp)
  jle    L209
  mov    0x10(%rsp),%rcx
  movslq 0x8(%rsp),%rax
  mov    %r8d,0x70(%rsp)
  mov    $0x1,%r11d
  mov    %r9d,0x78(%rsp)
  mov    $0xffffffffffffffff,%rdi
  lea    0x1(%rcx),%rsi
  mov    %rbp,0x90(%rsp)
  lea    (%rsi,%rax,1),%rdx
  mov    %rsi,0x88(%rsp)
  add    %rcx,%rax
  mov    $0xfffffffffffffffe,%rsi
  lea    0x0(%rbp,%rdx,8),%r14
  mov    0xb0(%rsp),%edx
  lea    0x0(%rbp,%rax,8),%rax
  mov    %ecx,%ebp
  sub    %r8d,%edx
  mov    %rax,%r8
  sub    %rdx,%rsi
  mov    %rsi,%r9
L541:
  mov    %r8,%rax
  mov    %r10d,%edx
  pxor   %xmm1,%xmm1
  cmp    %ebp,%ebx
  jle    L693
  xchg   %ax,%ax
L1488:
  movsd  (%rax),%xmm0
  mulsd  (%rax,%r11,8),%xmm0
  mov    %edx,%ecx
  lea    0x1(%rdx),%edx
  add    %r13,%rax
  addsd  %xmm0,%xmm1
  cmp    %edx,%ebx
  jne    L1488
  divsd  %xmm4,%xmm1
  mov    %r14,%rax
  mov    %r10d,%edx
  nopl   0x0(%rax)
L1158:
  movsd  (%rax,%rdi,8),%xmm0
  mov    %edx,%esi
  add    $0x1,%edx
  mulsd  %xmm1,%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    %r13,%rax
  cmp    %esi,%ecx
  jne    L1158
L693:
  sub    $0x1,%rdi
  add    $0x8,%r14
  add    $0x1,%r11
  cmp    %r9,%rdi
  jne    L541
  mov    0x70(%rsp),%r8d
  mov    0x78(%rsp),%r9d
  mov    0x90(%rsp),%rbp
L330:
  mov    (%rsp),%rcx
  mov    0x10(%rsp),%rax
  movsd  %xmm3,(%rcx,%rax,8)
  cmp    %eax,%ebx
  jg     L1405
L660:
  pxor   %xmm1,%xmm1
L942:
  movsd  0x28(%rsp),%xmm3
  comisd %xmm1,%xmm3
  jbe    L69
  mov    0x40(%rsp),%eax
  mov    0x8(%rsp),%ecx
  movapd %xmm2,%xmm4
  pxor   %xmm2,%xmm2
  add    %ecx,%eax
  mov    %eax,0x78(%rsp)
L414:
  mov    0x10(%rsp),%rcx
  mov    (%rsp),%rax
  sub    $0x1,%r9d
  add    $0x8,%r12
  movapd 0x50(%rsp),%xmm3
  add    0xa8(%rsp),%r15
  movsd  (%rax,%rcx,8),%xmm0
  mov    0x88(%rsp),%rax
  andpd  %xmm3,%xmm4
  mov    0x80(%rsp),%ecx
  add    %ecx,0xc8(%rsp)
  andpd  %xmm3,%xmm0
  mov    %rax,0x10(%rsp)
  mov    0x78(%rsp),%eax
  addsd  %xmm4,%xmm0
  maxsd  0x18(%rsp),%xmm0
  mov    %eax,0x8(%rsp)
  movsd  %xmm0,0x18(%rsp)
  cmp    0xa0(%rsp),%r8d
  jl     L1278
  mov    0x20(%rsp),%r12d
  mov    0x30(%rsp),%r15
  mov    %r8d,%r14d
  cmp    %r8d,%r12d
  jle    L1159
L661:
  movslq %r14d,%rax
  mov    0x40(%rsp),%ecx
  mov    0x38(%rsp),%edi
  mov    %r15,0x70(%rsp)
  mov    0x68(%rsp),%r9
  lea    0x1(%rax),%rsi
  mov    %rax,0x20(%rsp)
  lea    (%r15,%rsi,8),%r10
  mov    %rsi,0x90(%rsp)
  sub    %r14d,%edi
  lea    0x8(,%r9,8),%rax
  mov    %r12d,0x10(%rsp)
  lea    0x0(,%r9,8),%r13
  mov    %r10,%r15
  mov    %rax,0xa0(%rsp)
  mov    %ecx,%eax
  mov    %r14d,%r9d
  mov    %edi,%r10d
  imul   %r14d,%eax
  movslq %eax,%rdx
  mov    %eax,0x8(%rsp)
  add    %rsi,%rdx
  lea    (%r14,%rax,1),%esi
  lea    -0x1(%rcx),%eax
  lea    0x0(%rbp,%rdx,8),%r11
  mov    %esi,0xc8(%rsp)
  mov    %eax,0xa8(%rsp)
  mov    %r11,%r12
  jmp    L302
L1336:
  lea    0x1(%rsi),%rax
  mov    %rax,0x90(%rsp)
L302:
  movsd  0x28(%rsp),%xmm3
  mov    %r9d,%r11d
  add    $0x1,%r9d
  movsd  %xmm2,-0x8(%r15)
  comisd 0x48(%rsp),%xmm3
  jbe    L433
  mov    (%rsp),%rax
  mov    0x20(%rsp),%rcx
  movq   $0x0,(%rax,%rcx,8)
L41:
  mov    0x40(%rsp),%eax
  mov    0x8(%rsp),%ecx
  movapd %xmm2,%xmm4
  pxor   %xmm2,%xmm2
  add    %ecx,%eax
  mov    %eax,0x88(%rsp)
L534:
  mov    0x20(%rsp),%rcx
  mov    (%rsp),%rax
  sub    $0x1,%r10d
  add    $0x8,%r15
  movapd 0x50(%rsp),%xmm3
  mov    0x90(%rsp),%rsi
  movsd  (%rax,%rcx,8),%xmm0
  mov    0x88(%rsp),%eax
  andpd  %xmm3,%xmm4
  mov    0x80(%rsp),%ecx
  mov    %rsi,0x20(%rsp)
  andpd  %xmm3,%xmm0
  add    %ecx,0xc8(%rsp)
  add    0xa0(%rsp),%r12
  addsd  %xmm4,%xmm0
  maxsd  0x18(%rsp),%xmm0
  mov    %eax,0x8(%rsp)
  movsd  %xmm0,0x18(%rsp)
  cmp    %r9d,0x10(%rsp)
  jg     L1336
  mov    0x70(%rsp),%r15
  mov    0x10(%rsp),%r12d
L1159:
  mov    %r12d,0x8(%rsp)
L822:
  mov    0x40(%rsp),%ecx
  movslq 0x38(%rsp),%rsi
  mov    %r15,0x50(%rsp)
  mov    %ebx,0xc8(%rsp)
  movsd  D53(%rip),%xmm3
  mov    %ecx,%eax
  mov    %rsi,0x90(%rsp)
  mov    %rsi,%r13
  not    %eax
  cltq
  shl    $0x3,%rax
  mov    %rax,0x80(%rsp)
  mov    %ecx,%eax
  imul   %esi,%eax
  movslq %eax,%rdi
  mov    %eax,0x20(%rsp)
  mov    %ecx,%eax
  neg    %eax
  add    %rdi,%rsi
  mov    %rdi,0x28(%rsp)
  lea    0x0(%rbp,%rdi,8),%r14
  cltq
  lea    0x0(%rbp,%rsi,8),%rsi
  mov    %rax,0x70(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x78(%rsp)
  mov    0x68(%rsp),%rax
  mov    %rsi,0x10(%rsp)
  mov    %rax,%rcx
  shl    $0x4,%rcx
  mov    %rcx,0x30(%rsp)
  lea    0x0(,%rax,8),%rcx
  lea    0x8(%rbp),%rax
  mov    %rax,0x88(%rsp)
L185:
  ucomisd 0x48(%rsp),%xmm2
  mov    0x8(%rsp),%r10d
  mov    %r13d,0x8(%rsp)
  jp     L259
  jne    L259
  movslq %r10d,%rsi
  cmp    %r10d,%r12d
  jle    L680
L702:
  mov    0x40(%rsp),%eax
  imul   %r10d,%eax
  cltq
  add    %r13,%rax
  lea    0x0(%rbp,%rax,8),%rax
  nopw   0x0(%rax,%rax,1)
L43:
  movq   $0x0,(%rax)
  add    %rcx,%rax
  movq   $0x0,(%r14,%rsi,8)
  add    $0x1,%rsi
  cmp    %esi,%r12d
  jg     L43
L680:
  mov    0x50(%rsp),%rsi
  mov    0x10(%rsp),%rax
  add    0x78(%rsp),%r14
  movsd  (%rsi,%r13,8),%xmm2
  movsd  %xmm3,(%rax)
  sub    $0x1,%r13
  mov    0x80(%rsp),%rsi
  add    %rsi,%rax
  mov    0x40(%rsp),%esi
  sub    %esi,0x20(%rsp)
  mov    %rax,0x10(%rsp)
  mov    0x70(%rsp),%rsi
  add    %rsi,0x28(%rsp)
  test   %r13d,%r13d
  jns    L185
  movsd  0x98(%rsp),%xmm3
  mulsd  0x18(%rsp),%xmm3
  mov    0xc8(%rsp),%ebx
  mov    0x50(%rsp),%r15
  movsd  %xmm3,0x88(%rsp)
  cmp    %ebx,%r12d
  jle    L1275
L616:
  mov    0x40(%rsp),%eax
  cmp    %eax,%r12d
  jge    L1401
  movslq %eax,%rcx
  imul   %ebx,%eax
  lea    0x0(,%rcx,8),%r14
  cltq
  add    0x60(%rsp),%rax
  lea    0x0(%rbp,%rax,8),%rcx
  mov    0x44(%rsp),%eax
  sub    $0x1,%eax
  lea    0x8(,%rax,8),%r13
L261:
  mov    %rcx,%rdi
  mov    %r13,%rdx
  xor    %esi,%esi
  add    $0x1,%ebx
  call   <memset@plt>
  mov    %rax,%rcx
  add    %r14,%rcx
  cmp    %ebx,%r12d
  jg     L261
L1401:
  movslq 0x40(%rsp),%rax
  movslq 0x38(%rsp),%rcx
  mov    %rax,0x68(%rsp)
  mov    %rcx,0x90(%rsp)
  test   %ecx,%ecx
  js     L146
L1275:
  mov    0x44(%rsp),%ecx
  mov    0x90(%rsp),%rax
  mov    0x68(%rsp),%r11
  movq   D54(%rip),%xmm3
  mov    %rax,0x80(%rsp)
  mov    %ecx,%eax
  shr    %eax
  shl    $0x3,%r11
  movaps %xmm3,0x50(%rsp)
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,0x70(%rsp)
  mov    %ecx,%eax
  and    $0xfffffffe,%ecx
  sub    $0x1,%eax
  mov    %ecx,0x78(%rsp)
  lea    (%rcx,%r12,1),%r14d
  mov    %eax,0xc8(%rsp)
  mov    %r12d,%eax
  mov    %rbp,%r12
  mov    %r14d,%ebp
  mov    %r15,%r14
  mov    %r11,%r15
  mov    %eax,%r11d
L678:
  mov    0x80(%rsp),%rax
  mov    %r14,%rsi
  mov    %r11d,%r13d
  movl   $0x32,0xa8(%rsp)
  mov    %eax,0xb0(%rsp)
  movsd  (%r14,%rax,8),%xmm6
  mov    %eax,0xa0(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x98(%rsp)
  nopl   0x0(%rax,%rax,1)
L218:
  mov    0x98(%rsp),%rbx
  mov    0xa0(%rsp),%r11d
  movsd  0x88(%rsp),%xmm1
  mov    (%rsp),%rdx
  movapd 0x50(%rsp),%xmm5
  jmp    L70
  nopl   (%rax)
L596:
  mov    %r8d,%r11d
L70:
  movsd  (%rsi,%rbx,1),%xmm0
  lea    (%rsi,%rbx,1),%rax
  andpd  %xmm5,%xmm0
  comisd %xmm0,%xmm1
  jae    L1474
  movsd  -0x8(%rdx,%rbx,1),%xmm0
  lea    -0x1(%r11),%r8d
  andpd  %xmm5,%xmm0
  comisd %xmm0,%xmm1
  jae    L647
  sub    $0x8,%rbx
  cmp    $0xffffffff,%r8d
  jne    L596
  lea    -0x8(%rsi),%rax
  mov    $0xffffffff,%r11d
  mov    $0xfffffffffffffff8,%rbx
  mov    $0xfffffffe,%r8d
  mov    %rax,0x90(%rsp)
L352:
  mov    0x80(%rsp),%rax
  mov    %eax,0x28(%rsp)
  cmp    %eax,%r11d
  jg     L118
  mov    0x40(%rsp),%eax
  mov    0x60(%rsp),%r9
  movslq %r11d,%rdi
  pxor   %xmm1,%xmm1
  mov    %r11d,0xcc(%rsp)
  imul   %eax,%r8d
  mov    %r15,0xd0(%rsp)
  mov    %ebp,%r15d
  imul   %r11d,%eax
  mov    %rbx,0xd8(%rsp)
  mov    %r13d,0x20(%rsp)
  mov    %rsi,%r13
  movslq %r8d,%r10
  add    %ebp,%r8d
  mov    %rdi,%rbp
  mov    %eax,%ecx
  mov    %r9,%rax
  mov    %r10,0xc0(%rsp)
  movslq %r8d,%r8
  add    %r10,%rax
  lea    (%r12,%r8,8),%r14
  lea    0x10(,%rax,8),%rdx
  mov    %rdx,0x38(%rsp)
  lea    0x0(,%rax,8),%rdx
  mov    0xc8(%rsp),%eax
  mov    %rdx,0x30(%rsp)
  add    %r12,%rdx
  add    %r9,%rax
  mov    %rdx,0xb8(%rsp)
  mov    %rdx,%rbx
  add    %r10,%rax
  lea    0x8(%r12,%rax,8),%rax
  mov    %rax,0x68(%rsp)
  mov    D53(%rip),%rax
  movq   %rax,%xmm3
  mov    %r12,%rax
  mov    %ecx,%r12d
  mov    %rax,%rcx
  nopw   0x0(%rax,%rax,1)
L16:
  movsd  0x0(%r13,%rbp,8),%xmm0
  movapd 0x50(%rsp),%xmm5
  mulsd  %xmm0,%xmm3
  mulsd  %xmm1,%xmm0
  andpd  %xmm3,%xmm5
  movsd  %xmm0,0x0(%r13,%rbp,8)
  movapd %xmm5,%xmm0
  movsd  0x88(%rsp),%xmm5
  comisd %xmm0,%xmm5
  jae    L1255
  mov    (%rsp),%rax
  movapd %xmm3,%xmm0
  mov    %rcx,0x18(%rsp)
  movsd  %xmm3,0x8(%rsp)
  movsd  (%rax,%rbp,8),%xmm1
  movsd  %xmm1,0x10(%rsp)
  call   <hypot@plt>
  mov    (%rsp),%rax
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm3
  xorpd  D64(%rip),%xmm3
  mov    0x40(%rsp),%esi
  cmp    %esi,0x20(%rsp)
  movsd  %xmm0,(%rax,%rbp,8)
  divsd  %xmm0,%xmm1
  mov    0x18(%rsp),%rcx
  divsd  %xmm0,%xmm3
  jge    L1259
  mov    0x60(%rsp),%rax
  movslq %r12d,%rdx
  add    %rdx,%rax
  shl    $0x3,%rax
  lea    0x10(%rax),%r10
  cmp    %r10,0x30(%rsp)
  setge  %r11b
  cmp    0x38(%rsp),%rax
  setge  %r10b
  or     %r11b,%r10b
  je     L1164
  cmpl   $0x1,0x44(%rsp)
  je     L1164
  movapd %xmm1,%xmm6
  movapd %xmm3,%xmm5
  mov    0x70(%rsp),%r9
  add    %rcx,%rax
  unpcklpd %xmm6,%xmm6
  unpcklpd %xmm5,%xmm5
  xor    %edx,%edx
  nopl   (%rax)
L484:
  movupd (%rbx,%rdx,1),%xmm2
  movupd (%rax,%rdx,1),%xmm0
  movapd %xmm5,%xmm4
  movapd %xmm6,%xmm7
  mulpd  %xmm0,%xmm4
  mulpd  %xmm2,%xmm7
  mulpd  %xmm6,%xmm0
  mulpd  %xmm5,%xmm2
  addpd  %xmm7,%xmm4
  subpd  %xmm2,%xmm0
  movups %xmm4,(%rbx,%rdx,1)
  movups %xmm0,(%rax,%rdx,1)
  add    $0x10,%rdx
  cmp    %rdx,%r9
  jne    L484
  mov    0x44(%rsp),%esi
  cmp    %esi,0x78(%rsp)
  je     L1259
  lea    (%r12,%r15,1),%eax
  movsd  (%r14),%xmm2
  movapd %xmm3,%xmm4
  movapd %xmm1,%xmm5
  cltq
  lea    (%rcx,%rax,8),%rax
  mulsd  %xmm2,%xmm5
  movsd  (%rax),%xmm0
  mulsd  %xmm3,%xmm2
  mulsd  %xmm0,%xmm4
  mulsd  %xmm1,%xmm0
  addsd  %xmm5,%xmm4
  subsd  %xmm2,%xmm0
  movsd  %xmm4,(%r14)
  movsd  %xmm0,(%rax)
L1259:
  add    $0x1,%rbp
  add    0x40(%rsp),%r12d
  cmp    %ebp,0x28(%rsp)
  jge    L16
L1255:
  mov    %r13,%rsi
  mov    %r15d,%ebp
  mov    %rcx,%r12
  mov    0xcc(%rsp),%r11d
  mov    0xd0(%rsp),%r15
  mov    0xd8(%rsp),%rbx
  mov    0x20(%rsp),%r13d
L810:
  mov    (%rsp),%rcx
  mov    0x80(%rsp),%rax
  movsd  (%rcx,%rax,8),%xmm7
  cmp    %eax,%r11d
  je     L897
  movsd  (%rsi,%rax,8),%xmm6
  mov    %rcx,%rax
L1304:
  movapd %xmm7,%xmm2
  mov    0x80(%rsp),%rcx
  movsd  (%rax,%rbx,1),%xmm5
  mov    %r11d,0x68(%rsp)
  movsd  D53(%rip),%xmm1
  mov    %rsi,0x30(%rsp)
  movsd  -0x8(%rsi,%rcx,8),%xmm0
  movsd  -0x8(%rax,%rcx,8),%xmm3
  movsd  %xmm5,0x38(%rsp)
  movsd  %xmm7,0x28(%rsp)
  addsd  %xmm0,%xmm2
  subsd  %xmm7,%xmm0
  movsd  %xmm6,0x20(%rsp)
  movsd  %xmm3,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  divsd  %xmm3,%xmm0
  divsd  %xmm6,%xmm2
  mulsd  %xmm0,%xmm2
  movapd %xmm3,%xmm0
  divsd  %xmm6,%xmm0
  addsd  %xmm0,%xmm2
  movapd %xmm6,%xmm0
  divsd  %xmm3,%xmm0
  subsd  %xmm0,%xmm2
  mulsd  D38(%rip),%xmm2
  movapd %xmm2,%xmm0
  movsd  %xmm2,0x8(%rsp)
  call   <hypot@plt>
  movsd  0x48(%rsp),%xmm3
  mov    0x30(%rsp),%rsi
  movsd  0x8(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm1
  movsd  0x20(%rsp),%xmm6
  movsd  0x28(%rsp),%xmm7
  comisd %xmm2,%xmm3
  movsd  0x38(%rsp),%xmm5
  movsd  0x18(%rsp),%xmm3
  mov    0x68(%rsp),%r11d
  ja     L1492
  addsd  %xmm0,%xmm2
L383:
  divsd  %xmm2,%xmm3
  movapd %xmm7,%xmm0
  lea    0x1(%r11),%eax
  divsd  %xmm5,%xmm0
  subsd  %xmm6,%xmm3
  divsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm7
  mulsd  %xmm6,%xmm3
  movapd %xmm5,%xmm6
  subsd  %xmm7,%xmm6
  addsd  %xmm3,%xmm6
  cmp    0x80(%rsp),%eax
  jg     L1277
  cltq
  mov    0x40(%rsp),%ebx
  mov    %rsi,0x8(%rsp)
  movapd %xmm1,%xmm4
  mov    0xb0(%rsp),%ecx
  lea    -0x8(,%rax,8),%r14
  movapd %xmm1,%xmm3
  imul   %r11d,%ebx
  lea    -0x1(%rcx),%edx
  sub    %r11d,%edx
  add    %rax,%rdx
  lea    0x0(,%rdx,8),%rax
  mov    %rax,0x68(%rsp)
  nopl   0x0(%rax,%rax,1)
L555:
  mov    0x8(%rsp),%rax
  mov    (%rsp),%rcx
  movapd %xmm6,%xmm0
  movsd  %xmm5,0x30(%rsp)
  movsd  %xmm6,0x10(%rsp)
  movsd  0x8(%rax,%r14,1),%xmm7
  movsd  0x8(%rcx,%r14,1),%xmm2
  mulsd  %xmm7,%xmm3
  movsd  %xmm2,0x28(%rsp)
  mulsd  %xmm4,%xmm7
  movapd %xmm3,%xmm1
  movsd  %xmm3,0x18(%rsp)
  movsd  %xmm7,0x20(%rsp)
  call   <hypot@plt>
  movsd  0x10(%rsp),%xmm6
  mov    0x8(%rsp),%rax
  movsd  0x18(%rsp),%xmm1
  movsd  0x30(%rsp),%xmm5
  movapd %xmm6,%xmm4
  movsd  0x20(%rsp),%xmm7
  movsd  %xmm0,(%rax,%r14,1)
  movsd  0x28(%rsp),%xmm2
  divsd  %xmm0,%xmm4
  movapd %xmm1,%xmm3
  movapd %xmm2,%xmm1
  divsd  %xmm0,%xmm3
  movapd %xmm7,%xmm0
  mulsd  %xmm4,%xmm7
  movapd %xmm4,%xmm10
  mulsd  %xmm5,%xmm10
  mulsd  %xmm3,%xmm5
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm1
  subsd  %xmm5,%xmm7
  movapd %xmm2,%xmm5
  mulsd  %xmm4,%xmm5
  addsd  %xmm0,%xmm10
  test   %r13d,%r13d
  jle    L454
  movapd %xmm4,%xmm9
  movapd %xmm3,%xmm8
  lea    (%r12,%r14,1),%rax
  xor    %edx,%edx
  unpcklpd %xmm9,%xmm9
  unpcklpd %xmm8,%xmm8
  nopl   (%rax)
L804:
  movupd (%rax),%xmm0
  movupd (%rax),%xmm2
  add    $0x1,%edx
  mulpd  %xmm8,%xmm0
  mulpd  %xmm9,%xmm2
  shufpd $0x1,%xmm0,%xmm0
  movapd %xmm0,%xmm6
  addpd  %xmm2,%xmm6
  subpd  %xmm0,%xmm2
  movsd  %xmm6,%xmm2
  movups %xmm2,(%rax)
  add    %r15,%rax
  cmp    %edx,%r13d
  jne    L804
L454:
  movapd %xmm10,%xmm0
  movsd  %xmm5,0x28(%rsp)
  movsd  %xmm7,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm10,0x10(%rsp)
  movsd  %xmm4,0x38(%rsp)
  movsd  %xmm3,0x30(%rsp)
  call   <hypot@plt>
  ucomisd 0x48(%rsp),%xmm0
  mov    (%rsp),%rax
  movsd  0x10(%rsp),%xmm10
  movsd  0x18(%rsp),%xmm1
  movsd  0x20(%rsp),%xmm7
  movsd  0x28(%rsp),%xmm5
  movsd  %xmm0,(%rax,%r14,1)
  jp     L395
  movsd  0x30(%rsp),%xmm3
  movsd  0x38(%rsp),%xmm4
  je     L1387
L395:
  movapd %xmm10,%xmm4
  movapd %xmm1,%xmm3
  divsd  %xmm0,%xmm4
  divsd  %xmm0,%xmm3
L1387:
  movapd %xmm4,%xmm6
  movapd %xmm3,%xmm0
  mov    0x40(%rsp),%eax
  mulsd  %xmm7,%xmm6
  mulsd  %xmm5,%xmm0
  lea    (%rax,%rbx,1),%esi
  mulsd  %xmm4,%xmm5
  mulsd  %xmm3,%xmm7
  addsd  %xmm0,%xmm6
  subsd  %xmm7,%xmm5
  cmp    0x40(%rsp),%r13d
  jge    L1493
  mov    0x60(%rsp),%rax
  movslq %ebx,%r10
  movslq %esi,%rdi
  lea    (%rax,%r10,1),%r8
  add    %rdi,%rax
  shl    $0x3,%rax
  lea    0x0(,%r8,8),%rdx
  lea    0x10(,%r8,8),%r9
  lea    0x10(%rax),%r11
  cmp    %r11,%rdx
  setge  %r11b
  cmp    %rax,%r9
  setle  %r9b
  or     %r11b,%r9b
  je     L1283
  cmpl   $0x1,0x44(%rsp)
  je     L1283
  movapd %xmm4,%xmm8
  movapd %xmm3,%xmm7
  mov    0x70(%rsp),%rcx
  xor    %edi,%edi
  add    %r12,%rdx
  unpcklpd %xmm8,%xmm8
  unpcklpd %xmm7,%xmm7
  add    %r12,%rax
  nopl   0x0(%rax,%rax,1)
L741:
  movupd (%rdx,%rdi,1),%xmm1
  movupd (%rax,%rdi,1),%xmm0
  movapd %xmm7,%xmm2
  movapd %xmm8,%xmm9
  mulpd  %xmm0,%xmm2
  mulpd  %xmm1,%xmm9
  mulpd  %xmm8,%xmm0
  mulpd  %xmm7,%xmm1
  addpd  %xmm9,%xmm2
  subpd  %xmm1,%xmm0
  movups %xmm2,(%rdx,%rdi,1)
  movups %xmm0,(%rax,%rdi,1)
  add    $0x10,%rdi
  cmp    %rcx,%rdi
  jne    L741
  mov    0x44(%rsp),%ecx
  cmp    %ecx,0x78(%rsp)
  je     L1493
  lea    0x0(%rbp,%rsi,1),%eax
  movapd %xmm3,%xmm1
  movapd %xmm4,%xmm7
  add    %ebp,%ebx
  movslq %ebx,%rbx
  cltq
  lea    (%r12,%rbx,8),%rdx
  lea    (%r12,%rax,8),%rax
  movsd  (%rdx),%xmm2
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm7
  mulsd  %xmm0,%xmm1
  mulsd  %xmm3,%xmm2
  mulsd  %xmm4,%xmm0
  addsd  %xmm7,%xmm1
  subsd  %xmm2,%xmm0
  movsd  %xmm1,(%rdx)
  movsd  %xmm0,(%rax)
L1493:
  mov    %esi,%ebx
  add    $0x8,%r14
  cmp    0x68(%rsp),%r14
  jne    L555
  mov    0x8(%rsp),%rsi
L1277:
  mov    0x90(%rsp),%rax
  subl   $0x1,0xa8(%rsp)
  mov    (%rsp),%rcx
  movq   $0x0,(%rax)
  mov    0x80(%rsp),%rax
  movsd  %xmm6,(%rsi,%rax,8)
  movsd  %xmm5,(%rcx,%rax,8)
  jne    L218
  lea    D46(%rip),%rdi
  call   <puts@plt>
  mov    $0xf,%eax
L514:
  add    $0xe8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1283:
  mov    0xc8(%rsp),%edx
  add    0x60(%rsp),%rdx
  lea    (%r12,%r8,8),%rax
  sub    %r10,%rdi
  add    %r10,%rdx
  lea    0x8(%r12,%rdx,8),%rdx
  nopl   0x0(%rax,%rax,1)
L1295:
  movsd  (%rax),%xmm1
  movsd  (%rax,%rdi,8),%xmm0
  movapd %xmm3,%xmm2
  movapd %xmm4,%xmm7
  mulsd  %xmm0,%xmm2
  mulsd  %xmm1,%xmm7
  mulsd  %xmm4,%xmm0
  mulsd  %xmm3,%xmm1
  addsd  %xmm7,%xmm2
  subsd  %xmm1,%xmm0
  movsd  %xmm2,(%rax)
  movsd  %xmm0,(%rax,%rdi,8)
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L1295
  jmp    L1493
L1164:
  mov    0xb8(%rsp),%rax
  mov    0x68(%rsp),%rsi
  sub    0xc0(%rsp),%rdx
  nopl   (%rax)
L380:
  movsd  (%rax),%xmm2
  movsd  (%rax,%rdx,8),%xmm0
  movapd %xmm3,%xmm4
  movapd %xmm1,%xmm5
  mulsd  %xmm0,%xmm4
  mulsd  %xmm2,%xmm5
  mulsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm2
  addsd  %xmm5,%xmm4
  subsd  %xmm2,%xmm0
  movsd  %xmm4,(%rax)
  movsd  %xmm0,(%rax,%rdx,8)
  add    $0x8,%rax
  cmp    %rax,%rsi
  jne    L380
  jmp    L1259
L1492:
  subsd  %xmm0,%xmm2
  jmp    L383
L1474:
  mov    %rax,0x90(%rsp)
  jmp    L810
L647:
  mov    %rax,0x90(%rsp)
  jmp    L352
L897:
  movsd  0x48(%rsp),%xmm3
  mov    %rsi,%r14
  mov    %r13d,%r11d
  comisd %xmm7,%xmm3
  ja     L498
L1253:
  subq   $0x1,0x80(%rsp)
  mov    0x80(%rsp),%rax
  test   %eax,%eax
  jns    L678
  mov    %r14,%r15
L146:
  mov    %r15,%rdi
  call   <free@plt>
  xor    %eax,%eax
  jmp    L514
  nopl   0x0(%rax)
L259:
  mov    0x10(%rsp),%rax
  mulsd  0x8(%rax),%xmm2
  cmp    %r10d,%r12d
  jle    L680
  mov    0x28(%rsp),%rax
  movslq %r10d,%rsi
  mov    %r12d,%r8d
  sub    %r10d,%r8d
  lea    (%rax,%rsi,1),%rbx
  mov    0x40(%rsp),%eax
  mov    %r8d,%edx
  lea    -0x1(%rdx),%rdi
  lea    -0x1(%rdx,%rbx,1),%rdx
  imul   %r10d,%eax
  mov    %rdi,%r9
  xor    %edi,%edi
  imul   %rcx,%r9
  lea    0x0(,%rbx,8),%r15
  movslq %eax,%r11
  lea    0x0(%r13,%r11,1),%rax
  shl    $0x3,%rax
  cmpl   $0x0,0x40(%rsp)
  cmovs  %r9,%rdi
  shl    $0x3,%rdx
  add    %rax,%rdi
  cmp    %rdx,%rdi
  setg   %dil
  xor    %edx,%edx
  cmpl   $0x0,0x40(%rsp)
  cmovns %r9,%rdx
  add    %rax,%rdx
  cmp    %rdx,%r15
  setg   %dl
  or     %dil,%dl
  je     L403
  lea    -0x1(%r8),%edx
  cmp    $0x1,%edx
  jbe    L403
  mov    %r8d,%edx
  add    %rbp,%r15
  movapd %xmm2,%xmm1
  add    %rbp,%rax
  shr    %edx
  unpcklpd %xmm1,%xmm1
  mov    %r15,%rdi
  lea    -0x1(%rdx),%r9d
  lea    0x10(%r15),%rdx
  shl    $0x4,%r9
  add    %rdx,%r9
  jmp    L344
L815:
  add    $0x10,%rdx
L344:
  movupd (%rdi),%xmm0
  mov    %rdx,%rdi
  divpd  %xmm1,%xmm0
  movlpd %xmm0,(%rax)
  movhpd %xmm0,(%rax,%rcx,1)
  add    0x30(%rsp),%rax
  cmp    %rdx,%r9
  jne    L815
  mov    %r8d,%edx
  and    $0xfffffffe,%edx
  lea    (%rdx,%r10,1),%eax
  cmp    %r8d,%edx
  je     L1290
  mov    0x40(%rsp),%edx
  imul   %eax,%edx
  add    0x20(%rsp),%eax
  add    0x8(%rsp),%edx
  cltq
  movslq %edx,%rdx
  movsd  0x0(%rbp,%rax,8),%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,0x0(%rbp,%rdx,8)
L1290:
  mov    0x38(%rsp),%eax
  add    %rsi,%r11
  mov    %r13,%rdi
  lea    0x0(%rbp,%r11,8),%r11
  sub    %rsi,%rdi
  sub    %r10d,%eax
  add    %rbx,%rax
  mov    0x88(%rsp),%rbx
  lea    (%rbx,%rax,8),%r9
  mov    %r10d,%ebx
L87:
  mov    %r11,%rdx
  mov    %r15,%rax
  pxor   %xmm1,%xmm1
  nopl   0x0(%rax)
L313:
  movsd  (%rax),%xmm0
  mulsd  (%rdx),%xmm0
  add    $0x8,%rax
  add    %rcx,%rdx
  addsd  %xmm0,%xmm1
  cmp    %r9,%rax
  jne    L313
  mov    %r11,%rax
  mov    %r10d,%edx
  cs nopw 0x0(%rax,%rax,1)
L964:
  movsd  (%rax,%rdi,8),%xmm0
  mov    %edx,%r8d
  add    $0x1,%edx
  mulsd  %xmm1,%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    %rcx,%rax
  cmp    %edx,%r12d
  jne    L964
  lea    0x1(%rbx),%eax
  add    $0x8,%r11
  sub    $0x1,%rdi
  cmp    %r8d,%ebx
  je     L702
  mov    %eax,%ebx
  jmp    L87
L69:
  movslq 0xc8(%rsp),%rax
  movsd  0x48(%rsp),%xmm5
  lea    0x8(%rbp,%rax,8),%r14
  movsd  (%r14),%xmm3
  comisd %xmm3,%xmm5
  movsd  %xmm3,0x70(%rsp)
  ja     L1527
  ucomisd %xmm1,%xmm5
  ja     L240
  movapd %xmm1,%xmm3
  sqrtsd %xmm3,%xmm3
L611:
  xorpd  D64(%rip),%xmm3
L586:
  movsd  0x70(%rsp),%xmm5
  mov    0x20(%rsp),%eax
  movapd %xmm5,%xmm4
  subsd  %xmm3,%xmm5
  mulsd  %xmm3,%xmm4
  movsd  %xmm5,(%r14)
  subsd  %xmm1,%xmm4
  cmp    %r8d,%eax
  jle    L445
  sub    0x10(%rsp),%eax
  cmp    $0x2,%eax
  je     L989
  mov    %r9d,%edx
  movapd %xmm4,%xmm1
  xor    %eax,%eax
  shr    %edx
  unpcklpd %xmm1,%xmm1
  shl    $0x4,%rdx
L634:
  movupd (%r15,%rax,1),%xmm0
  divpd  %xmm1,%xmm0
  movups %xmm0,(%r12,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L634
  mov    %r9d,%edx
  and    $0xfffffffe,%edx
  lea    (%rdx,%r8,1),%eax
  cmp    %r9d,%edx
  je     L1032
L617:
  movslq %eax,%rdx
  add    0x8(%rsp),%eax
  cltq
  movsd  0x0(%rbp,%rax,8),%xmm0
  mov    0x30(%rsp),%rax
  divsd  %xmm4,%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
L1032:
  movsd  -0x8(%r12),%xmm4
L525:
  cmp    %r8d,%ebx
  jle    L1086
  mov    0x8(%rsp),%r11d
  mov    0x40(%rsp),%eax
  mov    %r9d,%r10d
  and    $0xfffffffe,%r10d
  mov    0x20(%rsp),%esi
  sub    0x10(%rsp),%esi
  add    %r11d,%eax
  mov    %esi,0x70(%rsp)
  mov    %eax,0x78(%rsp)
  mov    %eax,%edi
  cltq
  add    0x88(%rsp),%rax
  lea    0x0(%rbp,%rax,8),%rdx
  mov    %r9d,%eax
  shr    %eax
  lea    -0x1(%rax),%ecx
  lea    (%r8,%r10,1),%eax
  add    $0x1,%rcx
  shl    $0x4,%rcx
  cmp    $0x2,%esi
  mov    0x30(%rsp),%rsi
  cmove  %r8d,%eax
  mov    %rcx,0x8(%rsp)
  mov    %eax,%r14d
  mov    %r11d,%eax
  mov    %r8d,%r11d
  add    %r14d,%eax
  cltq
  lea    0x0(%rbp,%rax,8),%rax
  mov    %rax,0x90(%rsp)
  movslq %r14d,%rax
  lea    (%rsi,%rax,8),%rsi
L1009:
  cmp    %r8d,0x20(%rsp)
  jle    L134
  cmpl   $0x2,0x70(%rsp)
  je     L679
  mov    0x8(%rsp),%rcx
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  nopl   0x0(%rax)
L1100:
  movupd (%rdx,%rax,1),%xmm2
  movupd (%r15,%rax,1),%xmm5
  add    $0x10,%rax
  mulpd  %xmm5,%xmm2
  addsd  %xmm2,%xmm0
  unpckhpd %xmm2,%xmm2
  addsd  %xmm2,%xmm0
  cmp    %rcx,%rax
  jne    L1100
  mov    %rcx,0x8(%rsp)
  cmp    %r9d,%r10d
  je     L505
  lea    (%rdi,%r14,1),%eax
  cltq
  movsd  0x0(%rbp,%rax,8),%xmm1
  mov    0x90(%rsp),%rax
  mulsd  (%rax),%xmm1
  addsd  %xmm1,%xmm0
L505:
  movapd %xmm0,%xmm2
  mov    0x8(%rsp),%rcx
  xor    %eax,%eax
  unpcklpd %xmm2,%xmm2
  nopl   0x0(%rax)
L362:
  movupd (%r12,%rax,1),%xmm1
  movupd (%rdx,%rax,1),%xmm5
  mulpd  %xmm2,%xmm1
  addpd  %xmm5,%xmm1
  movups %xmm1,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rcx,%rax
  jne    L362
  mov    %rcx,0x8(%rsp)
  cmp    %r9d,%r10d
  je     L134
  lea    (%rdi,%r14,1),%eax
L2:
  mulsd  (%rsi),%xmm0
  cltq
  lea    0x0(%rbp,%rax,8),%rax
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
L134:
  add    $0x1,%r11d
  add    0x40(%rsp),%edi
  add    %r13,%rdx
  cmp    %r11d,%ebx
  jne    L1009
  movapd %xmm3,%xmm2
  jmp    L414
L433:
  movslq 0xc8(%rsp),%rax
  movsd  0x48(%rsp),%xmm3
  movsd  D64(%rip),%xmm5
  mov    %rax,0x78(%rsp)
  lea    0x0(%rbp,%rax,8),%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  cmpltsd %xmm3,%xmm1
  andpd  %xmm1,%xmm3
  andnpd %xmm5,%xmm1
  orpd   %xmm1,%xmm3
  movapd %xmm3,%xmm4
  mulsd  %xmm0,%xmm4
  subsd  %xmm3,%xmm0
  movsd  %xmm0,(%rax)
  cmp    %r9d,0x40(%rsp)
  jle    L58
  movslq 0x8(%rsp),%rax
  mov    0x20(%rsp),%rsi
  movslq %r9d,%rdx
  mov    $0xfffffffffffffffe,%rcx
  mov    %r9d,0x88(%rsp)
  mov    $0x1,%r8d
  mov    $0xffffffffffffffff,%rdi
  add    %rax,%rdx
  add    %rsi,%rax
  mov    %r10d,0xb0(%rsp)
  mov    %esi,%r10d
  lea    0x0(%rbp,%rdx,8),%r14
  mov    0xa8(%rsp),%edx
  lea    0x0(%rbp,%rax,8),%rax
  mov    %rax,0x30(%rsp)
  sub    %r9d,%edx
  sub    %rdx,%rcx
  mov    %rcx,%r9
L1174:
  cmp    %r10d,%ebx
  jle    L695
  mov    0x30(%rsp),%rax
  mov    %r11d,%edx
  pxor   %xmm1,%xmm1
  nopl   0x0(%rax)
L47:
  movsd  (%rax,%r8,8),%xmm0
  mulsd  (%rax),%xmm0
  mov    %edx,%ecx
  lea    0x1(%rdx),%edx
  add    %r13,%rax
  addsd  %xmm0,%xmm1
  cmp    %edx,%ebx
  jne    L47
  divsd  %xmm4,%xmm1
  mov    %r14,%rax
  mov    %r11d,%edx
  nopl   0x0(%rax)
L960:
  movsd  (%rax,%rdi,8),%xmm0
  mov    %edx,%esi
  add    $0x1,%edx
  mulsd  %xmm1,%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    %r13,%rax
  cmp    %ecx,%esi
  jne    L960
L695:
  sub    $0x1,%rdi
  add    $0x8,%r14
  add    $0x1,%r8
  cmp    %r9,%rdi
  jne    L1174
  mov    0x88(%rsp),%r9d
  mov    0xb0(%rsp),%r10d
L58:
  mov    (%rsp),%rcx
  mov    0x20(%rsp),%rax
  movsd  %xmm3,(%rcx,%rax,8)
  cmp    %eax,%ebx
  jg     L873
L493:
  pxor   %xmm1,%xmm1
L1538:
  movsd  0x28(%rsp),%xmm3
  comisd %xmm1,%xmm3
  ja     L41
  mov    0x78(%rsp),%rax
  movsd  0x48(%rsp),%xmm5
  lea    0x8(%rbp,%rax,8),%r14
  movsd  (%r14),%xmm3
  comisd %xmm3,%xmm5
  movsd  %xmm3,0x30(%rsp)
  ja     L762
  ucomisd %xmm1,%xmm5
  ja     L1161
  movapd %xmm1,%xmm3
  sqrtsd %xmm3,%xmm3
L1495:
  xorpd  D64(%rip),%xmm3
L393:
  movsd  0x30(%rsp),%xmm5
  mov    0x10(%rsp),%eax
  movapd %xmm5,%xmm4
  subsd  %xmm3,%xmm5
  mulsd  %xmm3,%xmm4
  movsd  %xmm5,(%r14)
  subsd  %xmm1,%xmm4
  cmp    %r9d,%eax
  jle    L1258
  sub    0x20(%rsp),%eax
  cmp    $0x2,%eax
  je     L1448
  mov    %r10d,%edx
  movapd %xmm4,%xmm1
  xor    %eax,%eax
  shr    %edx
  unpcklpd %xmm1,%xmm1
  shl    $0x4,%rdx
L292:
  movupd (%r12,%rax,1),%xmm0
  divpd  %xmm1,%xmm0
  movups %xmm0,(%r15,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L292
  mov    %r10d,%edx
  and    $0xfffffffe,%edx
  lea    (%rdx,%r9,1),%eax
  cmp    %r10d,%edx
  je     L1135
L176:
  movslq %eax,%rdx
  add    0x8(%rsp),%eax
  cltq
  movsd  0x0(%rbp,%rax,8),%xmm0
  mov    0x70(%rsp),%rax
  divsd  %xmm4,%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
L1135:
  movsd  -0x8(%r15),%xmm4
L124:
  cmp    %r9d,%ebx
  jle    L1522
  mov    0x8(%rsp),%r8d
  mov    0x40(%rsp),%eax
  mov    %r10d,%r14d
  and    $0xfffffffe,%r14d
  mov    0x10(%rsp),%esi
  sub    0x20(%rsp),%esi
  add    %r8d,%eax
  mov    %esi,0x78(%rsp)
  mov    %eax,0x88(%rsp)
  mov    %eax,%edi
  cltq
  add    0x90(%rsp),%rax
  lea    0x0(%rbp,%rax,8),%rdx
  mov    %r10d,%eax
  shr    %eax
  lea    -0x1(%rax),%ecx
  lea    (%r9,%r14,1),%eax
  add    $0x1,%rcx
  shl    $0x4,%rcx
  cmp    $0x2,%esi
  mov    %eax,%esi
  mov    %r8d,%eax
  cmove  %r9d,%esi
  mov    %rcx,0x8(%rsp)
  mov    %r9d,%r8d
  add    %esi,%eax
  mov    %esi,0x30(%rsp)
  cltq
  lea    0x0(%rbp,%rax,8),%r11
  movslq %esi,%rax
  mov    0x70(%rsp),%rsi
  lea    (%rsi,%rax,8),%rsi
L933:
  cmp    %r9d,0x10(%rsp)
  jle    L223
  cmpl   $0x2,0x78(%rsp)
  je     L1487
  mov    0x8(%rsp),%rcx
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  nopl   0x0(%rax,%rax,1)
L1094:
  movupd (%rdx,%rax,1),%xmm2
  movupd (%r12,%rax,1),%xmm5
  add    $0x10,%rax
  mulpd  %xmm5,%xmm2
  addsd  %xmm2,%xmm0
  unpckhpd %xmm2,%xmm2
  addsd  %xmm2,%xmm0
  cmp    %rax,%rcx
  jne    L1094
  mov    %rcx,0x8(%rsp)
  cmp    %r10d,%r14d
  je     L1119
  mov    0x30(%rsp),%eax
  add    %edi,%eax
  cltq
  movsd  0x0(%rbp,%rax,8),%xmm1
  mulsd  (%r11),%xmm1
  addsd  %xmm1,%xmm0
L1119:
  movapd %xmm0,%xmm2
  mov    0x8(%rsp),%rcx
  xor    %eax,%eax
  unpcklpd %xmm2,%xmm2
  nopl   0x0(%rax)
L21:
  movupd (%r15,%rax,1),%xmm1
  movupd (%rdx,%rax,1),%xmm5
  mulpd  %xmm2,%xmm1
  addpd  %xmm5,%xmm1
  movups %xmm1,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rcx,%rax
  jne    L21
  mov    %rcx,0x8(%rsp)
  cmp    %r10d,%r14d
  je     L223
  mov    0x30(%rsp),%eax
  add    %edi,%eax
L623:
  mulsd  (%rsi),%xmm0
  cltq
  lea    0x0(%rbp,%rax,8),%rax
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
L223:
  add    $0x1,%r8d
  add    0x40(%rsp),%edi
  add    %r13,%rdx
  cmp    %r8d,%ebx
  jne    L933
  movapd %xmm3,%xmm2
  jmp    L534
L873:
  mov    0x10(%rsp),%eax
  cmp    %r9d,%eax
  jle    L493
  sub    0x20(%rsp),%eax
  cmp    $0x2,%eax
  je     L1499
  mov    %r10d,%eax
  pxor   %xmm1,%xmm1
  shr    %eax
  sub    $0x1,%eax
  shl    $0x4,%rax
  lea    0x10(%r12,%rax,1),%rdx
  mov    %r12,%rax
L1102:
  movupd (%rax),%xmm3
  add    $0x10,%rax
  mulpd  %xmm3,%xmm3
  addsd  %xmm3,%xmm1
  unpckhpd %xmm3,%xmm3
  addsd  %xmm3,%xmm1
  cmp    %rax,%rdx
  jne    L1102
  mov    %r10d,%edx
  and    $0xfffffffe,%edx
  lea    (%rdx,%r9,1),%eax
  cmp    %r10d,%edx
  je     L1538
L114:
  add    0x8(%rsp),%eax
  cltq
  movsd  0x0(%rbp,%rax,8),%xmm0
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  jmp    L1538
L554:
  mov    0x10(%rsp),%rax
  mov    (%rsp),%rcx
  movq   $0x0,(%rcx,%rax,8)
  add    $0x1,%rax
  mov    %rax,0x88(%rsp)
L1405:
  mov    0x20(%rsp),%eax
  cmp    %r8d,%eax
  jle    L660
  sub    0x10(%rsp),%eax
  cmp    $0x2,%eax
  je     L1198
  mov    %r9d,%eax
  pxor   %xmm1,%xmm1
  shr    %eax
  sub    $0x1,%eax
  shl    $0x4,%rax
  lea    0x10(%r15,%rax,1),%rdx
  mov    %r15,%rax
L1483:
  movupd (%rax),%xmm3
  add    $0x10,%rax
  mulpd  %xmm3,%xmm3
  addsd  %xmm3,%xmm1
  unpckhpd %xmm3,%xmm3
  addsd  %xmm3,%xmm1
  cmp    %rdx,%rax
  jne    L1483
  mov    %r9d,%edx
  and    $0xfffffffe,%edx
  lea    (%rdx,%r8,1),%eax
  cmp    %r9d,%edx
  je     L942
L1091:
  add    0x8(%rsp),%eax
  cltq
  movsd  0x0(%rbp,%rax,8),%xmm0
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  jmp    L942
L1487:
  mov    0x30(%rsp),%eax
  add    %edi,%eax
  movslq %eax,%rcx
  movsd  0x0(%rbp,%rcx,8),%xmm0
  mulsd  (%r11),%xmm0
  addsd  0x48(%rsp),%xmm0
  jmp    L623
L679:
  lea    (%rdi,%r14,1),%eax
  movslq %eax,%rcx
  movsd  0x0(%rbp,%rcx,8),%xmm0
  mov    0x90(%rsp),%rcx
  mulsd  (%rcx),%xmm0
  addsd  0x48(%rsp),%xmm0
  jmp    L2
L1527:
  ucomisd %xmm1,%xmm5
  ja     L643
  movapd %xmm1,%xmm3
  sqrtsd %xmm3,%xmm3
  jmp    L586
L364:
  ucomisd %xmm1,%xmm5
  ja     L143
  movapd %xmm1,%xmm3
  sqrtsd %xmm3,%xmm3
  jmp    L674
L1179:
  movq   D54(%rip),%xmm3
  pxor   %xmm2,%xmm2
  lea    0x1(%rax),%ecx
  cltq
  mov    %ecx,0x80(%rsp)
  xor    %r14d,%r14d
  mov    %rax,0x68(%rsp)
  movsd  %xmm2,0x48(%rsp)
  movsd  %xmm2,0x18(%rsp)
  movaps %xmm3,0x50(%rsp)
  jmp    L661
L762:
  ucomisd %xmm1,%xmm5
  ja     L666
  movapd %xmm1,%xmm3
  sqrtsd %xmm3,%xmm3
  jmp    L393
L118:
  mov    %rax,%rcx
  mov    (%rsp),%rax
  movsd  (%rax,%rcx,8),%xmm7
  jmp    L1304
L498:
  movq   D64(%rip),%xmm1
  mov    %rcx,%rax
  mov    0x80(%rsp),%rcx
  xorpd  %xmm1,%xmm7
  movsd  %xmm7,(%rax,%rcx,8)
  test   %r13d,%r13d
  jle    L1253
  mov    0x98(%rsp),%rax
  xor    %edx,%edx
  add    %r12,%rax
L442:
  movsd  (%rax),%xmm0
  add    $0x1,%edx
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    %r15,%rax
  cmp    %edx,%r11d
  jne    L442
  jmp    L1253
L209:
  mov    0x10(%rsp),%rax
  add    $0x1,%rax
  mov    %rax,0x88(%rsp)
  jmp    L330
L1522:
  mov    0x40(%rsp),%eax
  mov    0x8(%rsp),%ecx
  movapd %xmm3,%xmm2
  add    %ecx,%eax
  mov    %eax,0x88(%rsp)
  jmp    L534
L1258:
  movapd %xmm2,%xmm4
  jmp    L124
L1086:
  mov    0x40(%rsp),%eax
  mov    0x8(%rsp),%ecx
  movapd %xmm3,%xmm2
  add    %ecx,%eax
  mov    %eax,0x78(%rsp)
  jmp    L414
L445:
  movapd %xmm2,%xmm4
  jmp    L525
L403:
  mov    0x38(%rsp),%edi
  mov    0x88(%rsp),%r9
  add    %rbp,%r15
  add    %rbp,%rax
  mov    %r15,%rdx
  sub    %r10d,%edi
  add    %rbx,%rdi
  lea    (%r9,%rdi,8),%rdi
L1311:
  movsd  (%rdx),%xmm0
  add    $0x8,%rdx
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  add    %rcx,%rax
  cmp    %rdi,%rdx
  jne    L1311
  jmp    L1290
L989:
  mov    %r8d,%eax
  jmp    L617
L1448:
  mov    %r9d,%eax
  jmp    L176
L1499:
  mov    %r9d,%eax
  pxor   %xmm1,%xmm1
  jmp    L114
L1198:
  mov    %r8d,%eax
  pxor   %xmm1,%xmm1
  jmp    L1091
L256:
  pxor   %xmm3,%xmm3
  mov    0x38(%rsp),%eax
  mulsd  %xmm3,%xmm5
  movsd  %xmm3,0x48(%rsp)
  movsd  %xmm5,0x88(%rsp)
  test   %eax,%eax
  jns    L990
  cmp    %ebx,%r12d
  jg     L616
  jmp    L146
L643:
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x78(%rsp)
  mov    %r9d,0xc0(%rsp)
  mov    %r8d,0x90(%rsp)
  movsd  %xmm2,0xb8(%rsp)
  call   <sqrt@plt>
  movsd  0x78(%rsp),%xmm1
  mov    0x90(%rsp),%r8d
  movsd  0xb8(%rsp),%xmm2
  mov    0xc0(%rsp),%r9d
  movapd %xmm0,%xmm3
  jmp    L586
L240:
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x78(%rsp)
  mov    %r9d,0xc0(%rsp)
  mov    %r8d,0x90(%rsp)
  movsd  %xmm2,0xb8(%rsp)
  call   <sqrt@plt>
  mov    0xc0(%rsp),%r9d
  movsd  0xb8(%rsp),%xmm2
  mov    0x90(%rsp),%r8d
  movsd  0x78(%rsp),%xmm1
  movapd %xmm0,%xmm3
  jmp    L611
L718:
  movapd %xmm1,%xmm0
  mov    %r9d,0xc0(%rsp)
  mov    %r8d,0x90(%rsp)
  mov    %r10d,0x88(%rsp)
  movsd  %xmm2,0xb8(%rsp)
  movsd  %xmm1,0x78(%rsp)
  call   <sqrt@plt>
  mov    0xc0(%rsp),%r9d
  movsd  0xb8(%rsp),%xmm2
  mov    0x90(%rsp),%r8d
  mov    0x88(%rsp),%r10d
  movapd %xmm0,%xmm3
  movsd  0x78(%rsp),%xmm1
  jmp    L1281
L1161:
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x78(%rsp)
  mov    %r10d,0xb8(%rsp)
  mov    %r9d,0x88(%rsp)
  movsd  %xmm2,0xb0(%rsp)
  call   <sqrt@plt>
  mov    0xb8(%rsp),%r10d
  movsd  0xb0(%rsp),%xmm2
  mov    0x88(%rsp),%r9d
  movsd  0x78(%rsp),%xmm1
  movapd %xmm0,%xmm3
  jmp    L1495
L990:
  movslq 0x40(%rsp),%rax
  movapd %xmm3,%xmm2
  movsd  %xmm3,0x18(%rsp)
  mov    %rax,0x68(%rsp)
  jmp    L822
L666:
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x78(%rsp)
  mov    %r10d,0xb8(%rsp)
  mov    %r9d,0x88(%rsp)
  movsd  %xmm2,0xb0(%rsp)
  call   <sqrt@plt>
  movsd  0x78(%rsp),%xmm1
  mov    0x88(%rsp),%r9d
  movsd  0xb0(%rsp),%xmm2
  mov    0xb8(%rsp),%r10d
  movapd %xmm0,%xmm3
  jmp    L393
L143:
  movapd %xmm1,%xmm0
  mov    %r9d,0xc0(%rsp)
  mov    %r8d,0x90(%rsp)
  mov    %r10d,0x88(%rsp)
  movsd  %xmm2,0xb8(%rsp)
  movsd  %xmm1,0x78(%rsp)
  call   <sqrt@plt>
  movsd  0x78(%rsp),%xmm1
  mov    0x88(%rsp),%r10d
  mov    0x90(%rsp),%r8d
  mov    0xc0(%rsp),%r9d
  movapd %xmm0,%xmm3
  movsd  0xb8(%rsp),%xmm2
  jmp    L674
```

tool_calls: name: parse_data
arguments: data_tag: D54
data_type: qword
name: parse_data
arguments: data_tag: D64
data_type: f32[4]
name: parse_data
arguments: data_tag: D53
data_type: f64
name: parse_data
arguments: data_tag: D38
data_type: f64
name: parse_data
arguments: data_tag: D46
data_type: string

tool: D54: 9223372036854775807

tool: {"D64": [0.0,-0.0,0.0,0.0]}

tool: D53: 1

tool: D38: 0.5

tool: D46: Convergence Not Achieved 

assistant: ```c
int minfit(double *AB, int M, int N, int P, double *q) {
  int i, j, k, l, t, t2, ierr, cancel, iter, l1, np, n1;
  double eps, g, x, s, temp, f, h, tol, c, y, z;
  double *e;
  e = (double *)malloc(sizeof(double) * N);
  ierr = 0;
  eps = macheps();
  tol = eps * eps;
  g = x = 0.0;
  np = N + P;
  for (i = 0; i < N; ++i) {
    l = i + 1;
    e[i] = g;
    s = 0.0;
    for (k = i; k < M; ++k) {
      t = k * np;
      temp = AB[t + i];
      s += temp * temp;
    }
    if (s < tol) {
      g = 0.0;
    } else {
      f = AB[i * np + i];
      g = (f < 0) ? sqrt(s) : -sqrt(s);
      h = f * g - s;
      AB[i * np + i] = f - g;
      for (j = l; j < np; ++j) {
        s = 0.0;
        for (k = i; k < M; ++k) {
          t = k * np;
          s += (AB[t + i] * AB[t + j]);
        }
        f = s / h;
        for (k = i; k < M; ++k) {
          t = k * np;
          AB[t + j] += (f * AB[t + i]);
        }
      }
    }
    q[i] = g;
    s = 0.0;
    t = i * np;
    if (i < M) {
      for (k = l; k < N; ++k) {
        temp = AB[t + k];
        s = s + temp * temp;
      }
    }
    if (s < tol) {
      g = 0.0;
    } else {
      f = AB[t + i + 1];
      g = (f < 0) ? sqrt(s) : -sqrt(s);
      h = f * g - s;
      AB[t + i + 1] = f - g;
      for (k = l; k < N; ++k) {
        e[k] = AB[t + k] / h;
      }
      for (j = l; j < M; j++) {
        s = 0.0;
        t2 = j * np;
        for (k = l; k < N; k++) {
          s += AB[t2 + k] * AB[t + k];
        }
        for (k = l; k < N; k++) {
          AB[t2 + k] += s * e[k];
        }
      }
    }
    temp = fabs(q[i]) + fabs(e[i]);
    if (x < temp) {
      x = temp;
    }
  }
  for (i = N - 1; i >= 0; --i) {
    t = i * np;
    if (g != 0.0) {
      h = AB[t + i + 1] * g;
      for (j = l; j < N; ++j) {
        AB[j * np + i] = AB[t + j] / h;
      }
      for (j = l; j < N; ++j) {
        s = 0.0;
        for (k = l; k < N; ++k) {
          s += AB[t + k] * AB[k * np + j];
        }
        for (k = l; k < N; ++k) {
          AB[k * np + j] += (s * AB[k * np + i]);
        }
      }
    }
    for (j = l; j < N; ++j) {
      AB[t + j] = AB[j * np + i] = 0.0;
    }
    AB[t + i] = 1.0;
    g = e[i];
    l = i;
  }
  eps = eps * x;
  n1 = N + 1;
  for (i = M; i < N; ++i) {
    for (j = n1 - 1; j < np; ++j) {
      AB[i * np + j] = 0.0;
    }
  }
  for (k = N - 1; k >= 0; --k) {
    iter = 0;
    while (1) {
      iter++;
      if (iter > 50) {
        printf("Convergence Not Achieved \n");
        return 15;
      }
      cancel = 1;
      for (l = k; l >= 0; --l) {
        if (fabs(e[l]) <= eps) {
          cancel = 0;
          break;
        }
        if (fabs(q[l - 1]) <= eps) {
          break;
        }
      }
      if (cancel) {
        c = 0.0;
        s = 1.0;
        l1 = l - 1;
        for (i = l; i <= k; ++i) {
          f = s * e[i];
          e[i] *= c;
          if (fabs(f) <= eps) {
            break;
          }
          g = q[i];
          h = q[i] = hypot(f, g);
          c = g / h;
          s = -f / h;
          for (j = n1 - 1; j < np; ++j) {
            y = AB[l1 * np + j];
            z = AB[i * np + j];
            AB[l1 * np + j] = y * c + z * s;
            AB[i * np + j] = z * c - y * s;
          }
        }
      }
      z = q[k];
      if (l != k) {
        x = q[l];
        y = q[k - 1];
        g = e[k - 1];
        h = e[k];
        f = 0.5 * (((g + z) / h) * ((g - z) / y) + y / h - h / y);
        g = hypot(f, 1.0);
        if (f < 0.0) {
          temp = f - g;
        } else {
          temp = f + g;
        }
        f = x - (z / x) * z + (h / x) * (y / temp - h);
        c = s = 1.0;
        for (i = l + 1; i <= k; ++i) {
          g = e[i];
          y = q[i];
          h = s * g;
          g = c * g;
          e[i - 1] = z = hypot(f, h);
          c = f / z;
          s = h / z;
          f = x * c + g * s;
          g = g * c - x * s;
          h = y * s;
          y *= c;
          for (j = 0; j < N; ++j) {
            t = j * np;
            x = AB[t + i - 1];
            z = AB[t + i];
            AB[t + i - 1] = x * c + z * s;
            AB[t + i] = z * c - x * s;
          }
          q[i - 1] = z = hypot(f, h);
          if (z != 0.0) {
            c = f / z;
            s = h / z;
          }
          f = c * g + s * y;
          x = c * y - s * g;
          for (j = n1 - 1; j < np; ++j) {
            y = AB[(i - 1) * np + j];
            z = AB[i * np + j];
            AB[(i - 1) * np + j] = y * c + z * s;
            AB[i * np + j] = z * c - y * s;
          }
        }
        e[l] = 0.0;
        e[k] = f;
        q[k] = x;
      } else {
        if (z < 0.0) {
          q[k] = -z;
          for (j = 0; j < N; j++) {
            t = j * np;
            AB[t + k] = -AB[t + k];
          }
        }
        break;
      }
    }
  }
  free(e);
  return ierr;
}
```