user: Converte this assembly snippet into its equivalent C code:

```asm
<d1updt>:
  endbr64
  push   %r15
  mov    %esi,%r11d
  push   %r14
  lea    -0x1(%rsi),%r14d
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %edi,%r12d
  mov    %rcx,%rdi
  lea    (%r12,%r12,1),%eax
  push   %rbp
  mov    %r12d,%ecx
  sub    %esi,%eax
  push   %rbx
  sub    %esi,%ecx
  mov    %r9,%rbx
  add    $0x1,%eax
  imul   %esi,%eax
  sub    $0x78,%rsp
  mov    %r8,0x8(%rsp)
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edx
  sub    %ecx,%edx
  lea    -0x1(%rdx),%ebp
  cmp    %r12d,%r14d
  jge    L27
  movslq %esi,%r9
  movslq %r12d,%r10
  cltq
  lea    0x0(,%r9,8),%r8
  sub    %r10,%r9
  add    %r9,%rax
  lea    -0x8(%rbx,%r8,1),%rsi
  shl    $0x3,%rax
  lea    0x0(%r13,%rax,1),%r9
  cmp    %r9,%rsi
  je     L249
  cmp    $0x2,%ecx
  jbe    L249
  add    $0x1,%ecx
  lea    -0x8(%r13,%rax,1),%r8
  xor    %eax,%eax
  mov    %ecx,%edx
  shr    %edx
  shl    $0x4,%rdx
  nopl   0x0(%rax)
L272:
  movupd (%r8,%rax,1),%xmm6
  movups %xmm6,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L272
  mov    %ecx,%esi
  and    $0xfffffffe,%esi
  lea    (%r14,%rsi,1),%eax
  lea    0x0(%rbp,%rsi,1),%edx
  cmp    %esi,%ecx
  je     L27
  movslq %edx,%rdx
  cltq
  movsd  0x0(%r13,%rdx,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
L27:
  test   %r14d,%r14d
  jle    L15
  mov    0x8(%rsp),%r9
  movslq %r14d,%rax
  movslq %r11d,%rdx
  movslq %r12d,%rsi
  movq   D132(%rip),%xmm4
  lea    -0x2(%r11),%ecx
  lea    -0x10(%rbx,%rdx,8),%r15
  sub    %rsi,%rdx
  lea    (%r9,%rax,8),%r8
  mov    %r12d,%eax
  mov    %rdi,0x10(%rsp)
  sub    $0x1,%rdx
  lea    (%r9,%rsi,8),%r9
  pxor   %xmm2,%xmm2
  movapd %xmm4,%xmm6
  sub    %ecx,%eax
  movsd  D111(%rip),%xmm3
  movapd %xmm4,%xmm5
  jmp    L128
  nopl   0x0(%rax)
L810:
  lea    0x1(%rax),%esi
  sub    $0x8,%r15
  sub    $0x1,%ecx
  sub    $0x1,%rdx
  cmp    %r12d,%eax
  je     L100
  mov    %esi,%eax
L128:
  movq   $0x0,(%r15)
  movsd  -0x8(%r9,%rdx,8),%xmm1
  movslq %ebp,%rsi
  sub    %eax,%ebp
  ucomisd %xmm2,%xmm1
  jp     L393
  je     L810
L393:
  movsd  (%r8),%xmm9
  comisd %xmm2,%xmm9
  movapd %xmm9,%xmm0
  jae    L54
  xorpd  %xmm5,%xmm0
L54:
  comisd %xmm2,%xmm1
  movapd %xmm1,%xmm7
  jae    L655
  xorpd  %xmm6,%xmm7
L655:
  comisd %xmm0,%xmm7
  jbe    L132
  movsd  D111(%rip),%xmm8
  movapd %xmm9,%xmm7
  divsd  %xmm1,%xmm7
  movapd %xmm7,%xmm0
  mulsd  %xmm7,%xmm0
  mulsd  %xmm8,%xmm0
  addsd  %xmm8,%xmm0
  ucomisd %xmm0,%xmm2
  ja     L190
  sqrtsd %xmm0,%xmm0
L469:
  movsd  D45(%rip),%xmm8
  divsd  %xmm0,%xmm8
  mulsd  %xmm8,%xmm7
  comisd %xmm2,%xmm7
  movapd %xmm7,%xmm0
  jae    L202
  xorpd  %xmm4,%xmm0
L202:
  mulsd  D232(%rip),%xmm0
  movsd  D2(%rip),%xmm10
  comisd %xmm10,%xmm0
  jbe    L456
  divsd  %xmm7,%xmm10
L456:
  mulsd  %xmm8,%xmm1
  mulsd  %xmm7,%xmm9
  movapd %xmm1,%xmm0
  addsd  %xmm9,%xmm0
  movsd  %xmm0,(%r8)
  movsd  %xmm10,-0x8(%r9,%rdx,8)
  cmp    %ecx,%r12d
  jle    L810
  lea    0x1(%rdx,%rsi,1),%rsi
  shl    $0x3,%rsi
  lea    -0x10(%r13,%rsi,1),%rdi
  add    %r13,%rsi
  cmp    %rsi,%r15
  lea    0x10(%r15),%rsi
  setae  %r10b
  cmp    %rsi,%rdi
  setae  %sil
  or     %r10b,%sil
  je     L138
  lea    0x1(%rcx),%esi
  cmp    %r12d,%esi
  je     L138
  mov    %eax,%r10d
  movapd %xmm7,%xmm11
  movapd %xmm8,%xmm10
  xor    %esi,%esi
  shr    %r10d
  unpcklpd %xmm11,%xmm11
  unpcklpd %xmm10,%xmm10
  shl    $0x4,%r10
  nopl   0x0(%rax)
L545:
  movupd (%rdi,%rsi,1),%xmm0
  movupd (%r15,%rsi,1),%xmm1
  movapd %xmm11,%xmm12
  mulpd  %xmm1,%xmm12
  movapd %xmm0,%xmm9
  mulpd  %xmm10,%xmm9
  mulpd  %xmm11,%xmm0
  mulpd  %xmm10,%xmm1
  addpd  %xmm12,%xmm9
  subpd  %xmm1,%xmm0
  movups %xmm9,(%r15,%rsi,1)
  movups %xmm0,(%rdi,%rsi,1)
  add    $0x10,%rsi
  cmp    %rsi,%r10
  jne    L545
  mov    %eax,%r10d
  and    $0xfffffffe,%r10d
  lea    (%rcx,%r10,1),%esi
  lea    0x0(%rbp,%r10,1),%edi
  cmp    %r10d,%eax
  je     L810
  movslq %edi,%rdi
  movapd %xmm8,%xmm9
  movapd %xmm7,%xmm10
  movslq %esi,%rsi
  lea    0x0(%r13,%rdi,8),%rdi
  lea    (%rbx,%rsi,8),%rsi
  movsd  (%rdi),%xmm0
  movsd  (%rsi),%xmm1
  mulsd  %xmm0,%xmm9
  mulsd  %xmm1,%xmm10
  mulsd  %xmm7,%xmm0
  mulsd  %xmm8,%xmm1
  addsd  %xmm10,%xmm9
  subsd  %xmm1,%xmm0
  movsd  %xmm9,(%rsi)
  movsd  %xmm0,(%rdi)
  jmp    L810
L132:
  movapd %xmm1,%xmm8
  divsd  %xmm9,%xmm8
  movapd %xmm8,%xmm0
  mulsd  %xmm8,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  %xmm3,%xmm0
  ucomisd %xmm0,%xmm2
  ja     L805
  sqrtsd %xmm0,%xmm0
L399:
  movsd  D45(%rip),%xmm7
  divsd  %xmm0,%xmm7
  mulsd  %xmm7,%xmm8
  movapd %xmm8,%xmm10
  jmp    L456
  nopl   (%rax)
L100:
  mov    0x10(%rsp),%rdi
L15:
  test   %r12d,%r12d
  jle    L549
  mov    0x8(%rsp),%rdx
  movslq %r14d,%rax
  shl    $0x3,%rax
  lea    (%rdx,%rax,1),%rcx
  lea    0x8(%rdx,%rax,1),%rax
  movslq %r12d,%rdx
  cmp    %rax,%rbx
  lea    (%rbx,%rdx,8),%rsi
  setae  %al
  cmp    %rsi,%rcx
  setae  %sil
  or     %sil,%al
  je     L780
  lea    0x8(%rdi),%rax
  cmp    %rax,%rbx
  setne  %sil
  cmp    $0x1,%r12d
  setne  %al
  test   %al,%sil
  je     L780
  movsd  (%rcx),%xmm1
  mov    %r12d,%edx
  xor    %eax,%eax
  shr    %edx
  unpcklpd %xmm1,%xmm1
  shl    $0x4,%rdx
  cs nopw 0x0(%rax,%rax,1)
L640:
  movupd (%rdi,%rax,1),%xmm0
  movupd (%rbx,%rax,1),%xmm6
  mulpd  %xmm1,%xmm0
  addpd  %xmm6,%xmm0
  movups %xmm0,(%rbx,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L640
  mov    %r12d,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%r12b
  je     L218
  movsd  (%rdi,%rax,8),%xmm0
  lea    (%rbx,%rax,8),%rdx
  mulsd  (%rcx),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rdx)
L218:
  test   %r14d,%r14d
  jle    L220
  cmp    %r12d,%r14d
  mov    %r12d,%r9d
  pxor   %xmm2,%xmm2
  mov    %rbx,%rdx
  movq   D132(%rip),%xmm6
  cmovle %r14d,%r9d
  movsd  D2(%rip),%xmm7
  xor    %ecx,%ecx
  movapd %xmm6,%xmm8
  jmp    L843
  nopl   0x0(%rax,%rax,1)
L4:
  mov    %r12d,%eax
  add    $0x1,%rcx
  add    $0x8,%rdx
  sub    %edi,%eax
  add    $0x1,%edi
  add    %eax,%ebp
  cmp    %ecx,%r9d
  jle    L406
L843:
  movsd  (%rdx),%xmm4
  mov    %ecx,%edi
  mov    %ecx,%esi
  ucomisd %xmm2,%xmm4
  jp     L777
  je     L4
L777:
  movslq %ebp,%rax
  movapd %xmm6,%xmm1
  shl    $0x3,%rax
  lea    0x0(%r13,%rax,1),%r15
  movsd  (%r15),%xmm5
  comisd %xmm2,%xmm5
  movapd %xmm5,%xmm0
  jae    L326
  xorpd  %xmm8,%xmm0
L326:
  comisd %xmm2,%xmm4
  movapd %xmm4,%xmm3
  jae    L612
  xorpd  %xmm1,%xmm3
L612:
  comisd %xmm0,%xmm3
  jbe    L327
  divsd  %xmm4,%xmm5
  movsd  D111(%rip),%xmm3
  movapd %xmm5,%xmm0
  mulsd  %xmm5,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  %xmm3,%xmm0
  ucomisd %xmm0,%xmm2
  ja     L415
  sqrtsd %xmm0,%xmm0
L234:
  movsd  D45(%rip),%xmm4
  divsd  %xmm0,%xmm4
  mulsd  %xmm4,%xmm5
  comisd %xmm2,%xmm5
  movapd %xmm5,%xmm0
  jb     L270
L433:
  mulsd  D232(%rip),%xmm0
  movapd %xmm7,%xmm9
  comisd %xmm7,%xmm0
  jbe    L22
  divsd  %xmm5,%xmm9
L22:
  lea    0x10(%r13,%rax,1),%rax
  mov    %r12d,%r8d
  xorpd  %xmm4,%xmm1
  sub    %edi,%r8d
  cmp    %rax,%rdx
  lea    0x10(%rdx),%rax
  setae  %r10b
  cmp    %rax,%r15
  setae  %al
  or     %r10b,%al
  je     L32
  cmp    $0x1,%r8d
  setne  %r10b
  cmp    %ecx,%r12d
  setg   %al
  test   %al,%r10b
  je     L32
  cmp    %esi,%r12d
  mov    $0x1,%r10d
  movapd %xmm5,%xmm11
  cmovg  %r8d,%r10d
  movapd %xmm4,%xmm13
  movapd %xmm1,%xmm12
  xor    %eax,%eax
  unpcklpd %xmm11,%xmm11
  unpcklpd %xmm13,%xmm13
  mov    %r10d,%r8d
  unpcklpd %xmm12,%xmm12
  shr    %r8d
  shl    $0x4,%r8
  cs nopw 0x0(%rax,%rax,1)
L49:
  movupd (%r15,%rax,1),%xmm0
  movupd (%rdx,%rax,1),%xmm3
  movapd %xmm11,%xmm14
  mulpd  %xmm3,%xmm14
  movapd %xmm0,%xmm10
  mulpd  %xmm12,%xmm10
  mulpd  %xmm11,%xmm0
  mulpd  %xmm13,%xmm3
  addpd  %xmm14,%xmm10
  addpd  %xmm3,%xmm0
  movups %xmm10,(%rdx,%rax,1)
  movups %xmm0,(%r15,%rax,1)
  add    $0x10,%rax
  cmp    %r8,%rax
  jne    L49
  mov    %r10d,%r8d
  and    $0xfffffffe,%r8d
  add    %r8d,%esi
  lea    0x0(%rbp,%r8,1),%eax
  cmp    %r8d,%r10d
  je     L276
  cltq
  movslq %esi,%rsi
  movapd %xmm5,%xmm10
  lea    0x0(%r13,%rax,8),%rax
  lea    (%rbx,%rsi,8),%rsi
  movsd  (%rax),%xmm0
  movsd  (%rsi),%xmm3
  mulsd  %xmm0,%xmm1
  mulsd  %xmm3,%xmm10
  mulsd  %xmm5,%xmm0
  mulsd  %xmm4,%xmm3
  addsd  %xmm10,%xmm1
  addsd  %xmm3,%xmm0
  movsd  %xmm1,(%rsi)
  movsd  %xmm0,(%rax)
L276:
  movsd  %xmm9,(%rdx)
  jmp    L4
L406:
  movslq %edi,%r15
  cmp    %r15d,%r14d
  jg     L251
  nopl   0x0(%rax)
L491:
  cmp    %r12d,%r14d
  jge    L623
L220:
  movslq %ebp,%rax
  movslq %r11d,%rdx
  mov    %r12d,%ecx
  shl    $0x3,%rax
  shl    $0x3,%rdx
  sub    %r11d,%ecx
  lea    0x0(%r13,%rax,1),%rdi
  lea    (%rbx,%rdx,1),%rsi
  cmp    %rsi,%rdi
  je     L582
  cmp    $0x2,%ecx
  jbe    L582
  add    $0x1,%ecx
  lea    -0x8(%rbx,%rdx,1),%rsi
  xor    %eax,%eax
  mov    %ecx,%edx
  shr    %edx
  shl    $0x4,%rdx
  cs nopw 0x0(%rax,%rax,1)
L758:
  movupd (%rsi,%rax,1),%xmm6
  movups %xmm6,(%rdi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L758
  mov    %ecx,%eax
  and    $0xfffffffe,%eax
  add    %eax,%r14d
  add    %eax,%ebp
  cmp    %ecx,%eax
  je     L623
  movslq %r14d,%r14
  movslq %ebp,%rbp
  movsd  (%rbx,%r14,8),%xmm0
  movsd  %xmm0,0x0(%r13,%rbp,8)
L623:
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L327:
  divsd  %xmm5,%xmm4
  movsd  D111(%rip),%xmm3
  movapd %xmm4,%xmm0
  mulsd  %xmm4,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  %xmm3,%xmm0
  ucomisd %xmm0,%xmm2
  ja     L109
  sqrtsd %xmm0,%xmm0
L351:
  movsd  D45(%rip),%xmm5
  divsd  %xmm0,%xmm5
  mulsd  %xmm5,%xmm4
  movapd %xmm4,%xmm9
  jmp    L22
L549:
  test   %r14d,%r14d
  jle    L491
  xor    %r15d,%r15d
  pxor   %xmm2,%xmm2
  nopl   0x0(%rax)
L251:
  movq   D132(%rip),%xmm4
  movsd  D111(%rip),%xmm5
  movapd %xmm4,%xmm7
  movapd %xmm4,%xmm6
  jmp    L52
  nopw   0x0(%rax,%rax,1)
L825:
  mov    %r12d,%eax
  sub    %r15d,%eax
  add    $0x1,%r15
  add    %eax,%ebp
  cmp    %r15d,%r14d
  jle    L491
L52:
  movsd  (%rbx,%r15,8),%xmm0
  ucomisd %xmm2,%xmm0
  jp     L264
  je     L825
L264:
  movslq %ebp,%rax
  movsd  0x0(%r13,%rax,8),%xmm3
  comisd %xmm2,%xmm3
  movapd %xmm3,%xmm1
  jae    L555
  xorpd  %xmm6,%xmm1
L555:
  comisd %xmm2,%xmm0
  movapd %xmm0,%xmm8
  jae    L221
  xorpd  %xmm7,%xmm8
L221:
  comisd %xmm1,%xmm8
  jbe    L228
  divsd  %xmm0,%xmm3
  movsd  D111(%rip),%xmm1
  movapd %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm1,%xmm0
  ucomisd %xmm0,%xmm2
  ja     L776
  sqrtsd %xmm0,%xmm0
L83:
  movsd  D45(%rip),%xmm1
  divsd  %xmm0,%xmm1
  mulsd  %xmm3,%xmm1
  comisd %xmm2,%xmm1
  movapd %xmm1,%xmm3
  jb     L231
L274:
  mulsd  D232(%rip),%xmm3
  movsd  D2(%rip),%xmm0
  comisd %xmm0,%xmm3
  jbe    L111
  divsd  %xmm1,%xmm0
L111:
  movsd  %xmm0,(%rbx,%r15,8)
  jmp    L825
  nopl   0x0(%rax,%rax,1)
L228:
  movapd %xmm0,%xmm1
  divsd  %xmm3,%xmm1
  movapd %xmm1,%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  %xmm5,%xmm0
  addsd  %xmm5,%xmm0
  ucomisd %xmm0,%xmm2
  ja     L578
  movapd %xmm0,%xmm3
  sqrtsd %xmm3,%xmm3
L816:
  movsd  D45(%rip),%xmm0
  divsd  %xmm3,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rbx,%r15,8)
  jmp    L825
  nopl   (%rax)
L231:
  xorpd  %xmm4,%xmm3
  jmp    L274
  xchg   %ax,%ax
L270:
  xorpd  %xmm1,%xmm0
  jmp    L433
  nopl   0x0(%rax)
L138:
  movslq %ebp,%r10
  lea    -0x1(%rax),%esi
  lea    0x0(%r13,%r10,8),%rdi
  add    %rsi,%r10
  mov    %rdi,0x18(%rsp)
  movslq %ecx,%rdi
  mov    0x18(%rsp),%rsi
  lea    0x8(%r13,%r10,8),%r10
  lea    (%rbx,%rdi,8),%rdi
  nopl   0x0(%rax)
L150:
  movsd  (%rsi),%xmm0
  movsd  (%rdi),%xmm1
  add    $0x8,%rsi
  add    $0x8,%rdi
  movapd %xmm8,%xmm9
  movapd %xmm7,%xmm10
  mulsd  %xmm0,%xmm9
  mulsd  %xmm1,%xmm10
  mulsd  %xmm7,%xmm0
  mulsd  %xmm8,%xmm1
  addsd  %xmm10,%xmm9
  subsd  %xmm1,%xmm0
  movsd  %xmm9,-0x8(%rdi)
  movsd  %xmm0,-0x8(%rsi)
  cmp    %rsi,%r10
  jne    L150
  jmp    L810
  nopl   0x0(%rax,%rax,1)
L32:
  mov    %rcx,%rax
  nopl   0x0(%rax,%rax,1)
L466:
  movsd  (%r15),%xmm3
  movsd  (%rbx,%rax,8),%xmm0
  movapd %xmm5,%xmm10
  add    $0x8,%r15
  mulsd  %xmm0,%xmm10
  movapd %xmm3,%xmm11
  mulsd  %xmm1,%xmm11
  mulsd  %xmm4,%xmm0
  mulsd  %xmm5,%xmm3
  addsd  %xmm11,%xmm10
  addsd  %xmm3,%xmm0
  movsd  %xmm10,(%rbx,%rax,8)
  add    $0x1,%rax
  movsd  %xmm0,-0x8(%r15)
  cmp    %eax,%r12d
  jg     L466
  jmp    L276
L249:
  movslq %edx,%rdx
  movslq %r14d,%rax
  lea    0x0(%r13,%rdx,8),%rdx
  sub    %r8,%rdx
  nopl   0x0(%rax,%rax,1)
L652:
  movsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r12d
  jg     L652
  jmp    L27
L780:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L330:
  movsd  (%rcx),%xmm0
  mulsd  (%rdi,%rax,8),%xmm0
  addsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L330
  jmp    L218
L582:
  sub    %rdx,%rax
  movslq %r14d,%r14
  add    %r13,%rax
  nopw   0x0(%rax,%rax,1)
L536:
  movsd  (%rbx,%r14,8),%xmm0
  movsd  %xmm0,0x8(%rax,%r14,8)
  add    $0x1,%r14
  cmp    %r14d,%r12d
  jg     L536
  jmp    L623
L805:
  mov    %r11d,0x6c(%rsp)
  mov    %r9,0x60(%rsp)
  mov    %rdx,0x58(%rsp)
  mov    %ecx,0x68(%rsp)
  mov    %r8,0x50(%rsp)
  mov    %eax,0x48(%rsp)
  mov    %esi,0x30(%rsp)
  movsd  %xmm2,0x40(%rsp)
  movsd  %xmm8,0x28(%rsp)
  movsd  %xmm9,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  call   <sqrt@plt>
  mov    D111(%rip),%rdi
  mov    0x6c(%rsp),%r11d
  movq   D132(%rip),%xmm5
  mov    0x60(%rsp),%r9
  mov    0x58(%rsp),%rdx
  mov    0x68(%rsp),%ecx
  movq   %rdi,%xmm3
  mov    0x50(%rsp),%r8
  mov    0x48(%rsp),%eax
  movapd %xmm5,%xmm6
  movapd %xmm5,%xmm4
  movsd  0x40(%rsp),%xmm2
  movslq 0x30(%rsp),%rsi
  movsd  0x28(%rsp),%xmm8
  movsd  0x20(%rsp),%xmm9
  movsd  0x18(%rsp),%xmm1
  jmp    L399
L190:
  mov    %r11d,0x6c(%rsp)
  mov    %r9,0x60(%rsp)
  mov    %rdx,0x58(%rsp)
  mov    %ecx,0x68(%rsp)
  mov    %r8,0x50(%rsp)
  mov    %eax,0x48(%rsp)
  mov    %esi,0x30(%rsp)
  movsd  %xmm2,0x40(%rsp)
  movsd  %xmm7,0x28(%rsp)
  movsd  %xmm9,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  call   <sqrt@plt>
  mov    D111(%rip),%rdi
  mov    0x6c(%rsp),%r11d
  movq   D132(%rip),%xmm5
  mov    0x60(%rsp),%r9
  mov    0x58(%rsp),%rdx
  mov    0x68(%rsp),%ecx
  movq   %rdi,%xmm3
  mov    0x50(%rsp),%r8
  mov    0x48(%rsp),%eax
  movapd %xmm5,%xmm6
  movapd %xmm5,%xmm4
  movsd  0x40(%rsp),%xmm2
  movslq 0x30(%rsp),%rsi
  movsd  0x28(%rsp),%xmm7
  movsd  0x20(%rsp),%xmm9
  movsd  0x18(%rsp),%xmm1
  jmp    L469
L578:
  mov    %r11d,0x18(%rsp)
  movsd  %xmm2,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  call   <sqrt@plt>
  mov    0x18(%rsp),%r11d
  movq   D132(%rip),%xmm6
  movsd  0x10(%rsp),%xmm2
  mov    D111(%rip),%rax
  movapd %xmm0,%xmm3
  movsd  0x8(%rsp),%xmm1
  movapd %xmm6,%xmm7
  movapd %xmm6,%xmm4
  movq   %rax,%xmm5
  jmp    L816
L776:
  mov    %r11d,0x18(%rsp)
  movsd  %xmm2,0x10(%rsp)
  movsd  %xmm3,0x8(%rsp)
  call   <sqrt@plt>
  mov    0x18(%rsp),%r11d
  movq   D132(%rip),%xmm6
  mov    D111(%rip),%rax
  movsd  0x10(%rsp),%xmm2
  movsd  0x8(%rsp),%xmm3
  movapd %xmm6,%xmm7
  movapd %xmm6,%xmm4
  movq   %rax,%xmm5
  jmp    L83
L415:
  mov    %r11d,0x68(%rsp)
  mov    %rdx,0x50(%rsp)
  mov    %rcx,0x48(%rsp)
  mov    %r9d,0x40(%rsp)
  mov    %edi,0x20(%rsp)
  mov    %esi,0x18(%rsp)
  mov    %rax,0x8(%rsp)
  movaps %xmm1,0x30(%rsp)
  movsd  %xmm2,0x28(%rsp)
  movsd  %xmm5,0x10(%rsp)
  call   <sqrt@plt>
  mov    D2(%rip),%rax
  mov    0x68(%rsp),%r11d
  movq   D132(%rip),%xmm8
  mov    0x50(%rsp),%rdx
  movq   %rax,%xmm7
  mov    0x48(%rsp),%rcx
  mov    0x20(%rsp),%edi
  mov    0x40(%rsp),%r9d
  movapd 0x30(%rsp),%xmm1
  movapd %xmm8,%xmm6
  movsd  0x28(%rsp),%xmm2
  mov    0x18(%rsp),%esi
  movsd  0x10(%rsp),%xmm5
  mov    0x8(%rsp),%rax
  jmp    L234
L109:
  mov    %r11d,0x68(%rsp)
  mov    %rdx,0x50(%rsp)
  mov    %rcx,0x48(%rsp)
  mov    %r9d,0x40(%rsp)
  mov    %edi,0x20(%rsp)
  mov    %esi,0x18(%rsp)
  mov    %rax,0x8(%rsp)
  movaps %xmm1,0x30(%rsp)
  movsd  %xmm2,0x28(%rsp)
  movsd  %xmm4,0x10(%rsp)
  call   <sqrt@plt>
  mov    D2(%rip),%rax
  mov    0x68(%rsp),%r11d
  movq   D132(%rip),%xmm8
  mov    0x50(%rsp),%rdx
  movq   %rax,%xmm7
  mov    0x48(%rsp),%rcx
  mov    0x20(%rsp),%edi
  mov    0x40(%rsp),%r9d
  movapd 0x30(%rsp),%xmm1
  movapd %xmm8,%xmm6
  movsd  0x28(%rsp),%xmm2
  mov    0x18(%rsp),%esi
  movsd  0x10(%rsp),%xmm4
  mov    0x8(%rsp),%rax
  jmp    L351
```

tool_calls: name: read_data
arguments: label: D132
data_type: f32[2]
name: read_data
arguments: label: D111
data_type: f64
name: read_data
arguments: label: D45
data_type: f64
name: read_data
arguments: label: D232
data_type: byte[8]
name: read_data
arguments: label: D2
data_type: f64

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

tool: D111: 0.25

tool: D45: 0.5

tool: {"D232": [0x99,0xbb,0xad,0x58,0xf1,0xdc,0xef,0x7f]}

tool: D2: 1

assistant: ```c
int d1updt(int m, int n, double *s, double *u, double *v, double *w) {
  int i, j, l;
  int jj;
  int nm1 = n - 1;
  int nmj;
  double temp;
  double giant, cotan;
  double tan_;
  double cos_, sin_, tau;
  giant = 1.79e+308;
  jj = n * ((m << 1) - n + 1) / 2 - (m - n) - 1;
  l = jj;
  for (i = nm1; i < m; ++i) {
    w[i] = s[l];
    ++l;
  }
  if (nm1 >= 1) {
    for (nmj = 1; nmj <= nm1; ++nmj) {
      j = n - nmj - 1;
      jj -= m - j;
      w[j] = 0.0;
      if (v[j] == 0.0)
        continue;
      if (((v[nm1]) >= 0.0 ? (v[nm1]) : -(v[nm1])) < ((v[j]) >= 0.0 ? (v[j]) : -(v[j]))) {
        cotan = v[nm1] / v[j];
        sin_ = 0.5 / sqrt(0.25 + 0.25 * (cotan * cotan));
        cos_ = sin_ * cotan;
        tau = 1.0;
        if (((cos_) >= 0.0 ? (cos_) : -(cos_)) * giant > 1.0) {
          tau = 1.0 / cos_;
        }
      } else {
        tan_ = v[j] / v[nm1];
        cos_ = 0.5 / sqrt(0.25 + 0.25 * (tan_ * tan_));
        sin_ = cos_ * tan_;
        tau = sin_;
      }
      v[nm1] = sin_ * v[j] + cos_ * v[nm1];
      v[j] = tau;
      l = jj;
      for (i = j; i < m; ++i) {
        temp = cos_ * s[l] - sin_ * w[i];
        w[i] = sin_ * s[l] + cos_ * w[i];
        s[l] = temp;
        ++l;
      }
    }
  }
  for (i = 0; i < m; ++i)
    w[i] += v[nm1] * u[i];
  if (nm1 >= 1) {
    for (j = 0; j < nm1; ++j) {
      if (w[j] != 0.0) {
        if (((s[jj]) >= 0.0 ? (s[jj]) : -(s[jj])) < ((w[j]) >= 0.0 ? (w[j]) : -(w[j]))) {
          cotan = s[jj] / w[j];
          sin_ = 0.5 / sqrt(0.25 + 0.25 * (cotan * cotan));
          cos_ = sin_ * cotan;
          tau = 1.0;
          if (((cos_) >= 0.0 ? (cos_) : -(cos_)) * giant > 1.0) {
            tau = 1.0 / cos_;
          }
        } else {
          tan_ = w[j] / s[jj];
          cos_ = 0.5 / sqrt(0.25 + 0.25 * (tan_ * tan_));
          sin_ = cos_ * tan_;
          tau = sin_;
        }
        l = jj;
        for (i = j; i < m; ++i) {
          temp = cos_ * s[l] + sin_ * w[i];
          w[i] = -sin_ * s[l] + cos_ * w[i];
          s[l] = temp;
          ++l;
        }
        w[j] = tau;
      }
      jj += m - j;
    }
  }
  l = jj;
  for (i = nm1; i < m; ++i) {
    s[l] = w[i];
    ++l;
  }
  return 0;
}
```