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

```asm
<relax_svd>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %rdi,0x40(%rsp)
  mov    %ecx,0x8(%rsp)
  mov    %r8,0x48(%rsp)
  mov    %r9d,0x6c(%rsp)
  mov    0x100(%rsp),%r15
  mov    0x108(%rsp),%r14
  cmp    %edx,%esi
  jl     L120
  mov    %esi,%ebp
  mov    %edx,%r12d
  test   %edx,%edx
  jle    L1173
  lea    -0x2(%rdx),%eax
  mov    %eax,0x50(%rsp)
  lea    0x1(%rcx),%eax
  mov    %eax,0x78(%rsp)
  mov    %r15,0x30(%rsp)
  movslq %ecx,%rax
  lea    0x8(,%rax,8),%rsi
  mov    %rsi,0x80(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x10(%rsp)
  mov    %rdi,0x60(%rsp)
  movl   $0x1,0x58(%rsp)
  movl   $0x0,0x68(%rsp)
  mov    $0x1,%esi
  mov    $0x0,%eax
  pxor   %xmm7,%xmm7
  movsd  %xmm7,(%rsp)
  movapd %xmm7,%xmm2
  movsd  %xmm7,0x20(%rsp)
  mov    %r13d,0x90(%rsp)
  mov    %rsi,%r13
  mov    %ebp,0x38(%rsp)
  mov    %rax,%rbp
  jmp    L486
L316:
  movslq 0x68(%rsp),%rax
  mov    %rax,0xa8(%rsp)
  add    %rbp,%rax
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
  mov    %rax,0x88(%rsp)
  mov    %rax,%rdx
  mov    %r15d,%eax
  pxor   %xmm7,%xmm7
  movsd  %xmm7,(%rsp)
  mov    0x38(%rsp),%ecx
L851:
  movsd  (%rdx),%xmm0
  andpd  D86(%rip),%xmm0
  addsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  mov    %eax,%ebx
  add    $0x1,%eax
  add    0x10(%rsp),%rdx
  cmp    %eax,%ecx
  jne    L851
  ucomisd D124(%rip),%xmm0
  jp     L105
  pxor   %xmm2,%xmm2
  jne    L105
L426:
  mov    0x30(%rsp),%rax
  mov    %rax,0x18(%rsp)
  mulsd  (%rsp),%xmm2
  movsd  %xmm2,(%rax)
  lea    -0x1(%r12),%eax
  cmp    0x28(%rsp),%eax
  je     L171
  cmp    %r13d,%r12d
  jle    L646
  movslq 0x68(%rsp),%rdi
  mov    %rdi,0x88(%rsp)
  lea    (%rdi,%r13,1),%rax
  mov    0x40(%rsp),%rsi
  lea    (%rsi,%rax,8),%r15
  mov    0x50(%rsp),%eax
  add    %rdi,%rax
  add    %rbp,%rax
  lea    0x10(%rsi,%rax,8),%rbx
  mov    %r15,%rax
  pxor   %xmm7,%xmm7
  movapd %xmm7,%xmm1
L133:
  movsd  (%rax),%xmm0
  andpd  D86(%rip),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L133
  movsd  %xmm1,(%rsp)
  ucomisd D124(%rip),%xmm1
  jp     L668
  jne    L668
  mov    0x18(%rsp),%rax
  movsd  (%rax),%xmm0
  movq   D86(%rip),%xmm2
  andpd  %xmm2,%xmm0
  movsd  (%r14,%rbp,8),%xmm1
  andpd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  movsd  0x20(%rsp),%xmm6
  comisd %xmm0,%xmm6
  ja     L625
L1115:
  movsd  %xmm0,0x20(%rsp)
L405:
  cmp    %r13d,%r12d
  jle    L821
  pxor   %xmm2,%xmm2
L692:
  add    $0x1,%rbp
  add    $0x1,%r13
  mov    0x8(%rsp),%edi
  add    %edi,0x68(%rsp)
  subl   $0x1,0x50(%rsp)
  mov    0x78(%rsp),%esi
  add    %esi,0x58(%rsp)
  addq   $0x8,0x30(%rsp)
  mov    0x80(%rsp),%rdi
  add    %rdi,0x60(%rsp)
L486:
  lea    -0x1(%r13),%r15d
  mov    %r13d,0x70(%rsp)
  mulsd  (%rsp),%xmm2
  movsd  %xmm2,(%r14,%rbp,8)
  mov    %ebp,0x28(%rsp)
  cmp    %ebp,0x38(%rsp)
  jg     L316
  mov    0x30(%rsp),%rax
  mov    %rax,0x18(%rsp)
  movq   $0x0,(%rax)
L171:
  mov    0x18(%rsp),%rax
  movsd  (%rax),%xmm0
  andpd  D86(%rip),%xmm0
  movsd  (%r14,%rbp,8),%xmm1
  andpd  D86(%rip),%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm6,%xmm6
  movsd  %xmm6,(%rsp)
  movsd  0x20(%rsp),%xmm4
  comisd %xmm0,%xmm4
  ja     L405
  jmp    L1115
L105:
  mov    0x88(%rsp),%rax
  mov    %r15d,%edx
  pxor   %xmm4,%xmm4
  movsd  %xmm4,0x18(%rsp)
L1136:
  movsd  (%rax),%xmm0
  divsd  (%rsp),%xmm0
  movsd  %xmm0,(%rax)
  mulsd  %xmm0,%xmm0
  addsd  0x18(%rsp),%xmm0
  movsd  %xmm0,0x18(%rsp)
  mov    %edx,%ecx
  add    $0x1,%edx
  add    0x10(%rsp),%rax
  cmp    %ecx,%ebx
  jne    L1136
  mov    0x58(%rsp),%eax
  sub    $0x1,%eax
  cltq
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
  mov    %rax,0x98(%rsp)
  movsd  (%rax),%xmm6
  movsd  %xmm6,0xa0(%rsp)
  comisd D124(%rip),%xmm6
  jb     L162
  pxor   %xmm0,%xmm0
  movsd  0x18(%rsp),%xmm4
  ucomisd %xmm4,%xmm0
  ja     L1041
  sqrtsd %xmm4,%xmm4
  movapd %xmm4,%xmm2
L1063:
  orpd   D91(%rip),%xmm2
L251:
  movsd  0xa0(%rsp),%xmm7
  movapd %xmm7,%xmm3
  mulsd  %xmm2,%xmm3
  subsd  0x18(%rsp),%xmm3
  subsd  %xmm2,%xmm7
  mov    0x98(%rsp),%rax
  movsd  %xmm7,(%rax)
  cmp    %r13d,%r12d
  jle    L661
  mov    0xa8(%rsp),%rax
  add    %r13,%rax
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%rdi
  mov    0x50(%rsp),%eax
  mov    $0xfffffffffffffffe,%r8
  sub    %rax,%r8
  mov    $0x1,%esi
  mov    $0xffffffffffffffff,%rcx
  mov    0x10(%rsp),%rdx
L824:
  mov    0x60(%rsp),%rax
  mov    %r15d,%r9d
  pxor   %xmm1,%xmm1
L960:
  movsd  (%rax),%xmm0
  mulsd  (%rax,%rsi,8),%xmm0
  addsd  %xmm0,%xmm1
  mov    %r9d,%r10d
  add    $0x1,%r9d
  add    %rdx,%rax
  cmp    %r10d,%ebx
  jne    L960
  divsd  %xmm3,%xmm1
  mov    %rdi,%rax
  mov    %r15d,%r9d
L929:
  movapd %xmm1,%xmm0
  mulsd  (%rax,%rcx,8),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  mov    %r9d,%r10d
  add    $0x1,%r9d
  add    %rdx,%rax
  cmp    %r10d,%ebx
  jne    L929
  add    $0x8,%rdi
  sub    $0x1,%rcx
  add    $0x1,%rsi
  cmp    %r8,%rcx
  jne    L824
  mov    0x88(%rsp),%rax
L600:
  movsd  (%rsp),%xmm0
  mulsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  mov    %r15d,%edx
  add    $0x1,%r15d
  add    0x10(%rsp),%rax
  cmp    %edx,%ebx
  jne    L600
  jmp    L426
L1041:
  movsd  0x18(%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm2
  jmp    L1063
L162:
  pxor   %xmm0,%xmm0
  movsd  0x18(%rsp),%xmm6
  ucomisd %xmm6,%xmm0
  ja     L938
  sqrtsd %xmm6,%xmm6
  movapd %xmm6,%xmm2
L80:
  andpd  D86(%rip),%xmm2
  jmp    L251
L938:
  movsd  0x18(%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm2
  jmp    L80
L661:
  mov    0x88(%rsp),%rax
  jmp    L600
L668:
  mov    %r15,%rax
  pxor   %xmm4,%xmm4
  movsd  %xmm4,0x28(%rsp)
L206:
  movsd  (%rax),%xmm0
  divsd  (%rsp),%xmm0
  movsd  %xmm0,(%rax)
  mulsd  %xmm0,%xmm0
  addsd  0x28(%rsp),%xmm0
  movsd  %xmm0,0x28(%rsp)
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L206
  movslq 0x58(%rsp),%rax
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
  mov    %rax,0x98(%rsp)
  movsd  (%rax),%xmm7
  movsd  %xmm7,0xa0(%rsp)
  comisd D124(%rip),%xmm7
  jb     L1147
  pxor   %xmm0,%xmm0
  movsd  0x28(%rsp),%xmm4
  ucomisd %xmm4,%xmm0
  ja     L988
  sqrtsd %xmm4,%xmm4
  movapd %xmm4,%xmm2
L404:
  orpd   D91(%rip),%xmm2
L432:
  movsd  0xa0(%rsp),%xmm4
  movapd %xmm4,%xmm1
  mulsd  %xmm2,%xmm1
  subsd  0x28(%rsp),%xmm1
  subsd  %xmm2,%xmm4
  mov    0x98(%rsp),%rax
  movsd  %xmm4,(%rax)
  mov    0x40(%rsp),%rax
  mov    0x88(%rsp),%rdi
  lea    (%rax,%rdi,8),%rdx
  mov    %r13,%rax
L1001:
  movsd  (%rdx,%rax,8),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%r14,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r12d
  jg     L1001
  mov    0x68(%rsp),%esi
  add    0x8(%rsp),%esi
  mov    0x40(%rsp),%r8
  mov    0x88(%rsp),%rax
  lea    (%r8,%rax,8),%rcx
  mov    0x70(%rsp),%edi
L107:
  movslq %esi,%rax
  lea    (%r8,%rax,8),%rdx
  mov    %r13,%rax
  pxor   %xmm1,%xmm1
L332:
  movsd  (%rdx,%rax,8),%xmm0
  mulsd  (%rcx,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %eax,%r12d
  jg     L332
  mov    %r13,%rax
L555:
  movapd %xmm1,%xmm0
  mulsd  (%r14,%rax,8),%xmm0
  addsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r12d
  jg     L555
  add    $0x1,%edi
  add    0x8(%rsp),%esi
  cmp    %edi,0x38(%rsp)
  jne    L107
  movsd  (%rsp),%xmm1
L123:
  movapd %xmm1,%xmm0
  mulsd  (%r15),%xmm0
  movsd  %xmm0,(%r15)
  add    $0x8,%r15
  cmp    %rbx,%r15
  jne    L123
  movsd  %xmm1,(%rsp)
  movsd  (%r14,%rbp,8),%xmm0
  movq   D86(%rip),%xmm3
  andpd  %xmm3,%xmm0
  mov    0x18(%rsp),%rax
  movsd  (%rax),%xmm1
  andpd  %xmm3,%xmm1
  addsd  %xmm1,%xmm0
  movsd  0x20(%rsp),%xmm4
  maxsd  %xmm0,%xmm4
  movsd  %xmm4,0x20(%rsp)
  jmp    L692
L988:
  movsd  0x28(%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm2
  jmp    L404
L1147:
  pxor   %xmm0,%xmm0
  movsd  0x28(%rsp),%xmm6
  ucomisd %xmm6,%xmm0
  ja     L314
  sqrtsd %xmm6,%xmm6
  movapd %xmm6,%xmm2
L116:
  andpd  D86(%rip),%xmm2
  jmp    L432
L314:
  movsd  0x28(%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm2
  jmp    L116
L625:
  pxor   %xmm2,%xmm2
  jmp    L692
L1173:
  pxor   %xmm4,%xmm4
  movsd  %xmm4,0x20(%rsp)
  jmp    L778
L821:
  mov    0x90(%rsp),%r13d
  mov    0x38(%rsp),%ebp
  mov    0x100(%rsp),%r15
L778:
  mov    %r12d,%r11d
  sub    $0x1,%r11d
  mov    %r11d,0x68(%rsp)
  js     L540
  movslq %r11d,%rsi
  mov    %rsi,0x60(%rsp)
  mov    0x6c(%rsp),%edi
  mov    %edi,%eax
  not    %eax
  cltq
  shl    $0x3,%rax
  mov    %rax,0x30(%rsp)
  mov    %r11d,%edx
  imul   %edi,%edx
  movslq %edx,%rax
  add    %rsi,%rax
  mov    0x48(%rsp),%r10
  lea    (%r10,%rax,8),%rbx
  lea    -0x2(%r12),%ecx
  mov    %ecx,0x88(%rsp)
  mov    %edi,%eax
  imul   %ecx,%edi
  mov    %edx,%r9d
  mov    0x8(%rsp),%edx
  imul   %edx,%ecx
  mov    %ecx,%r8d
  not    %edx
  mov    %edx,(%rsp)
  mov    %r12d,0x78(%rsp)
  mov    %r11d,%ecx
  mov    %r11d,0x70(%rsp)
  add    %r8d,%ecx
  mov    %ecx,0x18(%rsp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    %rdx,0x10(%rsp)
  mov    $0x0,%ecx
  movsd  D114(%rip),%xmm2
  lea    0x8(%r10),%rax
  mov    %rax,0x50(%rsp)
  mov    0x40(%rsp),%rax
  add    $0x8,%rax
  mov    %rax,0x58(%rsp)
  mov    %r13d,0x80(%rsp)
  mov    %edi,%r13d
  mov    %ebp,0x90(%rsp)
  mov    %r15,0x100(%rsp)
  mov    %r14,0x108(%rsp)
  mov    %ecx,%r14d
  jmp    L903
L682:
  movslq %r9d,%rcx
  movslq %ebp,%rax
  add    %rax,%rcx
  mov    0x48(%rsp),%rdi
  lea    (%rdi,%rcx,8),%rcx
  movslq %r13d,%r10
  lea    (%r10,%rsi,1),%rax
  lea    (%rdi,%rax,8),%rax
  mov    %r14d,%edi
  add    %r10,%rdi
  add    %rsi,%rdi
  mov    0x50(%rsp),%r11
  lea    (%r11,%rdi,8),%rdi
L464:
  movq   $0x0,(%rcx)
  movq   $0x0,(%rax)
  add    %rdx,%rcx
  add    $0x8,%rax
  cmp    %rdi,%rax
  jne    L464
L363:
  add    $0x1,%r14d
  sub    $0x1,%rsi
  add    0x30(%rsp),%rbx
  mov    0x6c(%rsp),%eax
  sub    %eax,%r13d
  sub    %eax,%r9d
  sub    0x8(%rsp),%r8d
  mov    (%rsp),%edi
  add    %edi,0x18(%rsp)
  mov    %ebp,%r11d
L903:
  movsd  %xmm2,(%rbx)
  lea    -0x1(%r11),%ebp
  test   %r11d,%r11d
  je     L1159
  cmp    %esi,%r12d
  jle    L363
  mov    0x108(%rsp),%rax
  movsd  (%rax,%rsi,8),%xmm1
  ucomisd D124(%rip),%xmm1
  jp     L970
  je     L682
L970:
  movslq 0x18(%rsp),%rax
  mov    0x40(%rsp),%rcx
  lea    (%rcx,%rax,8),%r10
  movslq %r8d,%rdi
  lea    (%rdi,%rsi,1),%rax
  lea    (%rcx,%rax,8),%rax
  mov    %rax,0x28(%rsp)
  movslq %r9d,%r15
  movslq %ebp,%rax
  add    %r15,%rax
  mov    0x48(%rsp),%rcx
  lea    (%rcx,%rax,8),%rcx
  mov    %r14d,%eax
  mov    %rax,0x38(%rsp)
  add    %rdi,%rax
  add    %rsi,%rax
  mov    0x58(%rsp),%rdi
  lea    (%rdi,%rax,8),%rdi
  mov    0x28(%rsp),%rax
L905:
  movsd  (%rax),%xmm0
  divsd  (%r10),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  add    $0x8,%rax
  add    %rdx,%rcx
  cmp    %rdi,%rax
  jne    L905
  lea    (%r15,%rsi,1),%rax
  mov    0x48(%rsp),%rcx
  lea    (%rcx,%rax,8),%r10
  mov    0x38(%rsp),%rax
  not    %rax
  mov    %rax,0x38(%rsp)
  mov    $0x0,%ecx
L763:
  mov    %r10,%r15
  mov    0x28(%rsp),%rax
  pxor   %xmm1,%xmm1
L485:
  movsd  (%rax),%xmm0
  mulsd  (%r15),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  add    %rdx,%r15
  cmp    %rdi,%rax
  jne    L485
  mov    %r10,%rax
  mov    %r11d,%r15d
L359:
  movapd %xmm1,%xmm0
  mulsd  -0x8(%rax,%rcx,8),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%r15d
  add    %rdx,%rax
  cmp    %r15d,%r12d
  jne    L359
  add    $0x8,%r10
  sub    $0x1,%rcx
  cmp    0x38(%rsp),%rcx
  jne    L763
  jmp    L682
L1159:
  mov    0x80(%rsp),%r13d
  mov    %ebp,0xa8(%rsp)
  mov    0x90(%rsp),%ebp
  movslq (%rsp),%rax
  shl    $0x3,%rax
  mov    %rax,0x50(%rsp)
  mov    0x68(%rsp),%ecx
  mov    %ecx,%eax
  mov    0x8(%rsp),%esi
  imul   %esi,%eax
  cltq
  mov    0x60(%rsp),%r11
  add    %r11,%rax
  mov    0x40(%rsp),%rbx
  lea    (%rbx,%rax,8),%rax
  mov    %rax,0x18(%rsp)
  mov    %ecx,%edi
  imul   %esi,%edi
  lea    0x1(%rsi),%eax
  imul   %ecx,%eax
  mov    %eax,0x30(%rsp)
  mov    %esi,%eax
  imul   %r12d,%esi
  mov    %esi,0x38(%rsp)
  cltq
  mov    %rax,0xb0(%rsp)
  lea    0x0(,%rax,8),%rdx
  mov    %rdx,0x80(%rsp)
  movl   $0xffffffff,0x28(%rsp)
  movsd  D114(%rip),%xmm7
  lea    0x10(%rbx),%rax
  mov    %rax,0x58(%rsp)
  pxor   %xmm5,%xmm5
  movapd %xmm5,%xmm4
  movapd %xmm7,%xmm6
  movapd %xmm7,%xmm3
  mov    %r13d,0x6c(%rsp)
  mov    0x78(%rsp),%ebx
  mov    %r12d,0x68(%rsp)
  mov    %edi,%r14d
  jmp    L656
L1121:
  add    $0x1,%rcx
  add    $0x8,%r8
  sub    $0x1,%rsi
  cmp    %r10,%rcx
  je     L386
L68:
  pxor   %xmm1,%xmm1
  cmp    %r9d,%ebp
  jle    L42
  mov    %r13,%rax
  mov    %r9d,%r15d
  pxor   %xmm1,%xmm1
L37:
  movsd  (%rax),%xmm0
  mulsd  (%rax,%rcx,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x1,%r15d
  add    %rdx,%rax
  cmp    %r15d,%ebp
  jne    L37
L42:
  divsd  (%r12),%xmm1
  mulsd  %xmm2,%xmm1
  cmp    %r11d,%ebp
  jle    L1121
  mov    %r8,%rax
  mov    %edi,%r15d
L770:
  movapd %xmm1,%xmm0
  mulsd  (%rax,%rsi,8),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%r15d
  add    %rdx,%rax
  cmp    %r15d,%ebp
  jne    L770
  jmp    L1121
L725:
  mov    0x6c(%rsp),%r13d
  mov    0x68(%rsp),%r12d
  mov    0x100(%rsp),%r15
  mov    0x108(%rsp),%r14
  movslq 0x88(%rsp),%rax
  mov    %rax,0x58(%rsp)
  mov    0x60(%rsp),%rax
  shl    $0x3,%rax
  mov    %rax,0x60(%rsp)
  movslq %r12d,%rdx
  sub    $0x3,%rdx
  mov    0x70(%rsp),%eax
  sub    %rax,%rdx
  mov    %rdx,0xb8(%rsp)
  mov    %r15,%rbx
  mov    %r12d,%r15d
  mov    %ebp,%r12d
  jmp    L1032
L267:
  mov    %eax,0x30(%rsp)
L804:
  mov    0x50(%rsp),%esi
  cmp    %esi,0x30(%rsp)
  jge    L779
  movslq 0x30(%rsp),%rbp
  movslq %r13d,%rax
  mov    %rbp,%r13
  sub    %rax,%r13
  add    0xb0(%rsp),%rax
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
  mov    %rax,0x18(%rsp)
  movsd  D114(%rip),%xmm4
  pxor   %xmm3,%xmm3
  mov    %r15d,0x28(%rsp)
  mov    %rbx,%r15
  mov    0x80(%rsp),%rbx
  jmp    L734
L534:
  add    $0x1,%rbp
  add    $0x1,%r13
  cmp    %ebp,0x50(%rsp)
  jle    L483
L734:
  movsd  (%r14,%rbp,8),%xmm0
  movapd %xmm4,%xmm7
  mulsd  %xmm0,%xmm7
  movsd  %xmm7,(%rsp)
  mulsd  %xmm3,%xmm0
  movsd  %xmm0,(%r14,%rbp,8)
  andpd  D86(%rip),%xmm7
  movapd %xmm7,%xmm0
  movsd  0x20(%rsp),%xmm7
  addsd  %xmm7,%xmm0
  ucomisd %xmm7,%xmm0
  jp     L1124
  je     L1062
L1124:
  movsd  (%r15,%rbp,8),%xmm7
  movsd  %xmm7,0x8(%rsp)
  movapd %xmm7,%xmm1
  movsd  (%rsp),%xmm0
  mov    $0x2,%eax
  call   <pythag@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  %xmm1,(%r15,%rbp,8)
  movsd  D114(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  0x8(%rsp),%xmm3
  mulsd  %xmm0,%xmm3
  movsd  (%rsp),%xmm4
  xorpd  D91(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  cmp    $0x1,%r12d
  jle    L534
  mov    0x18(%rsp),%rax
  mov    $0x1,%edx
L607:
  movsd  (%rax),%xmm1
  movsd  (%rax,%r13,8),%xmm0
  movapd %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm4,%xmm5
  mulsd  %xmm0,%xmm5
  addsd  %xmm5,%xmm2
  movsd  %xmm2,(%rax)
  mulsd  %xmm3,%xmm0
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax,%r13,8)
  add    $0x1,%edx
  add    %rbx,%rax
  cmp    %edx,%r12d
  jne    L607
  jmp    L534
L483:
  mov    %r15,%rbx
  mov    0x28(%rsp),%r15d
  jmp    L32
L164:
  mov    %edx,0x30(%rsp)
L779:
  mov    0x60(%rsp),%rax
  movsd  (%rbx,%rax,1),%xmm7
  movsd  %xmm7,(%rsp)
  mov    0x50(%rsp),%edi
  cmp    %edi,0x30(%rsp)
  je     L73
L409:
  cmpl   $0x1,0x6c(%rsp)
  je     L1108
  movslq 0x30(%rsp),%rbp
  lea    0x0(,%rbp,8),%rax
  mov    %rax,0x70(%rsp)
  movsd  (%rbx,%rbp,8),%xmm4
  movsd  %xmm4,0x28(%rsp)
  mov    0x88(%rsp),%rax
  mov    (%rax),%r13
  mov    0x90(%rsp),%rax
  movsd  (%rax),%xmm1
  mov    0x60(%rsp),%rax
  add    %r14,%rax
  mov    %rax,0x78(%rsp)
  movsd  (%rax),%xmm7
  movsd  %xmm7,0x18(%rsp)
  movq   %r13,%xmm0
  movsd  (%rsp),%xmm6
  subsd  %xmm6,%xmm0
  movq   %r13,%xmm2
  addsd  %xmm6,%xmm2
  mulsd  %xmm2,%xmm0
  movapd %xmm1,%xmm2
  subsd  %xmm7,%xmm2
  addsd  %xmm7,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  movapd %xmm7,%xmm1
  addsd  %xmm7,%xmm1
  movq   %r13,%xmm5
  mulsd  %xmm5,%xmm1
  divsd  %xmm1,%xmm0
  movsd  D114(%rip),%xmm1
  movsd  %xmm0,0x8(%rsp)
  mov    $0x2,%eax
  call   <pythag@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  0x28(%rsp),%xmm4
  movapd %xmm4,%xmm2
  movsd  (%rsp),%xmm7
  subsd  %xmm7,%xmm2
  addsd  %xmm4,%xmm7
  mulsd  %xmm7,%xmm2
  movapd %xmm1,%xmm6
  andpd  D86(%rip),%xmm6
  movapd %xmm6,%xmm0
  movsd  0x8(%rsp),%xmm7
  comisd D124(%rip),%xmm7
  jb     L317
L1132:
  movsd  0x8(%rsp),%xmm1
  addsd  %xmm0,%xmm1
  movq   %r13,%xmm0
  divsd  %xmm1,%xmm0
  movsd  0x18(%rsp),%xmm7
  subsd  %xmm7,%xmm0
  mulsd  %xmm7,%xmm0
  addsd  %xmm2,%xmm0
  divsd  0x28(%rsp),%xmm0
  movsd  %xmm0,0x18(%rsp)
  mov    0x58(%rsp),%rax
  mov    0x30(%rsp),%edi
  cmp    %edi,%eax
  jl     L96
  movsd  D114(%rip),%xmm6
  movsd  %xmm6,0x8(%rsp)
  movsd  %xmm6,(%rsp)
  mov    %eax,0x68(%rsp)
  mov    0x80(%rsp),%r13
  jmp    L933
L73:
  pxor   %xmm0,%xmm0
  comisd %xmm7,%xmm0
  ja     L697
L746:
  subq   $0x1,0x58(%rsp)
  mov    0x58(%rsp),%rax
  subq   $0x8,0x60(%rsp)
  cmp    0xb8(%rsp),%rax
  je     L727
L1032:
  mov    0x58(%rsp),%rax
  lea    0x1(%rax),%esi
  mov    %esi,0x50(%rsp)
  mov    0x60(%rsp),%rdi
  lea    (%rbx,%rdi,1),%rsi
  mov    %rsi,0xa0(%rsp)
  mov    %eax,0x98(%rsp)
  cltq
  shl    $0x3,%rax
  lea    (%rbx,%rax,1),%rdi
  mov    %rdi,0x88(%rsp)
  add    %r14,%rax
  mov    %rax,0x90(%rsp)
  movl   $0x1e,0x6c(%rsp)
  jmp    L735
L697:
  movapd %xmm7,%xmm0
  xorpd  D91(%rip),%xmm0
  mov    %rax,%rdi
  movsd  %xmm0,(%rbx,%rax,1)
  test   %r15d,%r15d
  jle    L746
  mov    0x48(%rsp),%rax
  add    %rdi,%rax
  mov    $0x0,%edx
  movq   D91(%rip),%xmm1
L1174:
  movsd  (%rax),%xmm0
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edx
  add    0x10(%rsp),%rax
  cmp    %edx,%r15d
  jne    L1174
  jmp    L746
L317:
  orpd   D91(%rip),%xmm1
  movapd %xmm1,%xmm0
  jmp    L1132
L1111:
  movsd  (%rsp),%xmm7
  movapd %xmm7,%xmm1
  movsd  0x38(%rsp),%xmm4
  mulsd  %xmm4,%xmm1
  movsd  0x8(%rsp),%xmm6
  movapd %xmm6,%xmm0
  movsd  0x30(%rsp),%xmm5
  mulsd  %xmm5,%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rsp)
  mulsd  %xmm7,%xmm5
  movapd %xmm5,%xmm1
  mulsd  %xmm6,%xmm4
  subsd  %xmm4,%xmm1
  movsd  %xmm1,0x28(%rsp)
  test   %r12d,%r12d
  jle    L815
  mov    0x40(%rsp),%rax
  lea    (%rax,%rbp,8),%rax
  mov    $0x0,%edx
L301:
  movsd  (%rax),%xmm1
  movsd  0x8(%rax),%xmm0
  movsd  (%rsp),%xmm5
  movapd %xmm5,%xmm2
  mulsd  %xmm1,%xmm2
  movsd  0x8(%rsp),%xmm4
  movapd %xmm4,%xmm3
  mulsd  %xmm0,%xmm3
  addsd  %xmm3,%xmm2
  movsd  %xmm2,(%rax)
  mulsd  %xmm5,%xmm0
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rax)
  add    $0x1,%edx
  add    %r13,%rax
  cmp    %edx,%r12d
  jne    L301
L815:
  add    $0x1,%rbp
  cmp    %ebp,0x68(%rsp)
  jl     L96
L933:
  movsd  0x8(%r14,%rbp,8),%xmm0
  movsd  0x8(%rbx,%rbp,8),%xmm6
  movsd  %xmm6,0x30(%rsp)
  movsd  0x8(%rsp),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rsp)
  mulsd  (%rsp),%xmm0
  movsd  %xmm0,0x38(%rsp)
  movsd  0x18(%rsp),%xmm0
  mov    $0x2,%eax
  call   <pythag@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,(%r14,%rbp,8)
  movsd  0x18(%rsp),%xmm7
  divsd  %xmm0,%xmm7
  movsd  %xmm7,(%rsp)
  movsd  0x8(%rsp),%xmm4
  divsd  %xmm0,%xmm4
  movsd  %xmm4,0x8(%rsp)
  movapd %xmm7,%xmm1
  movsd  0x28(%rsp),%xmm5
  mulsd  %xmm5,%xmm1
  movsd  0x38(%rsp),%xmm6
  movapd %xmm6,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rsp)
  mulsd  %xmm7,%xmm6
  movapd %xmm6,%xmm0
  mulsd  %xmm4,%xmm5
  subsd  %xmm5,%xmm0
  movsd  %xmm0,0x38(%rsp)
  movsd  0x30(%rsp),%xmm6
  movapd %xmm6,%xmm5
  mulsd  %xmm4,%xmm5
  movsd  %xmm5,0x28(%rsp)
  mulsd  %xmm7,%xmm6
  movsd  %xmm6,0x30(%rsp)
  test   %r15d,%r15d
  jle    L750
  mov    0x48(%rsp),%rax
  lea    (%rax,%rbp,8),%rax
  mov    $0x0,%edx
L176:
  movsd  (%rax),%xmm1
  movsd  0x8(%rax),%xmm0
  movsd  (%rsp),%xmm7
  movapd %xmm7,%xmm2
  mulsd  %xmm1,%xmm2
  movsd  0x8(%rsp),%xmm6
  movapd %xmm6,%xmm3
  mulsd  %xmm0,%xmm3
  addsd  %xmm3,%xmm2
  movsd  %xmm2,(%rax)
  mulsd  %xmm7,%xmm0
  mulsd  %xmm6,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rax)
  add    $0x1,%edx
  add    0x10(%rsp),%rax
  cmp    %edx,%r15d
  jne    L176
L750:
  movsd  0x28(%rsp),%xmm1
  movsd  0x18(%rsp),%xmm0
  mov    $0x2,%eax
  call   <pythag@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,(%rbx,%rbp,8)
  test   %eax,%eax
  je     L1111
  movsd  D114(%rip),%xmm4
  divsd  %xmm0,%xmm4
  movsd  0x18(%rsp),%xmm6
  mulsd  %xmm4,%xmm6
  movsd  %xmm6,(%rsp)
  mulsd  0x28(%rsp),%xmm4
  movsd  %xmm4,0x8(%rsp)
  jmp    L1111
L96:
  mov    0x70(%rsp),%rax
  movq   $0x0,(%r14,%rax,1)
  mov    0x78(%rsp),%rax
  movsd  0x18(%rsp),%xmm7
  movsd  %xmm7,(%rax)
  mov    0xa0(%rsp),%rax
  movsd  0x28(%rsp),%xmm4
  movsd  %xmm4,(%rax)
  subl   $0x1,0x6c(%rsp)
  mov    0x98(%rsp),%r13d
L735:
  mov    0x58(%rsp),%rax
  add    $0x1,%rax
L943:
  mov    %eax,%edx
  test   %eax,%eax
  js     L267
  lea    -0x1(%rax),%r13d
  movsd  (%r14,%rax,8),%xmm0
  andpd  D86(%rip),%xmm0
  movsd  0x20(%rsp),%xmm6
  addsd  %xmm6,%xmm0
  ucomisd %xmm6,%xmm0
  jp     L14
  je     L164
L14:
  movsd  -0x8(%rbx,%rax,8),%xmm0
  andpd  D86(%rip),%xmm0
  movsd  0x20(%rsp),%xmm5
  addsd  %xmm5,%xmm0
  sub    $0x1,%rax
  ucomisd %xmm5,%xmm0
  jp     L943
  jne    L943
  mov    %edx,0x30(%rsp)
  jmp    L804
L120:
  movl   $0xffffffff,0xa8(%rsp)
  jmp    L1108
L540:
  movl   $0x0,0xa8(%rsp)
L1108:
  mov    0xa8(%rsp),%eax
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L727:
  movl   $0x0,0xa8(%rsp)
  jmp    L1108
L1062:
  mov    %r15,%rbx
  mov    0x28(%rsp),%r15d
L32:
  mov    0x60(%rsp),%rax
  movsd  (%rbx,%rax,1),%xmm6
  movsd  %xmm6,(%rsp)
  jmp    L409
L586:
  movapd %xmm6,%xmm2
  divsd  %xmm0,%xmm2
  movslq 0x30(%rsp),%rax
  mov    0x40(%rsp),%rsi
  lea    (%rsi,%rax,8),%r12
  add    $0x2,%r10
  movslq 0x38(%rsp),%rax
  add    %r11,%rax
  lea    (%rsi,%rax,8),%r13
  mov    $0xffffffffffffffff,%rsi
  mov    $0x1,%ecx
  jmp    L68
L845:
  ucomisd D124(%rip),%xmm0
  jp     L890
  je     L891
L890:
  movapd %xmm7,%xmm2
  divsd  %xmm0,%xmm2
L386:
  cmp    %r11d,%ebp
  jle    L719
  movslq %r14d,%rax
  add    %r11,%rax
  mov    0x40(%rsp),%rsi
  lea    (%rsi,%rax,8),%rax
L537:
  movapd %xmm2,%xmm0
  mulsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edi
  add    %rdx,%rax
  cmp    %edi,%ebp
  jne    L537
L719:
  mov    0x18(%rsp),%rax
  movapd %xmm3,%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  sub    $0x1,%r11
  sub    $0x1,%ebx
  mov    0x50(%rsp),%rdi
  add    %rdi,%rax
  mov    %rax,0x18(%rsp)
  mov    0x8(%rsp),%esi
  sub    %esi,%r14d
  addl   $0x1,0x28(%rsp)
  mov    (%rsp),%edi
  add    %edi,0x30(%rsp)
  sub    %esi,0x38(%rsp)
  test   %r11d,%r11d
  js     L725
L656:
  mov    %r11d,%edi
  mov    %ebx,%r9d
  mov    0x100(%rsp),%rax
  movsd  (%rax,%r11,8),%xmm0
  cmp    %ebx,0x68(%rsp)
  jle    L845
  movslq %r14d,%rax
  movslq %ebx,%rcx
  add    %rax,%rcx
  mov    0x40(%rsp),%rsi
  lea    (%rsi,%rcx,8),%r8
  mov    0x28(%rsp),%r10d
  add    %r10,%rax
  add    %r11,%rax
  mov    0x58(%rsp),%rsi
  lea    (%rsi,%rax,8),%rcx
  mov    %r8,%rax
L1086:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L1086
  ucomisd %xmm5,%xmm0
  jp     L586
  ucomisd %xmm4,%xmm0
  jne    L586
L891:
  cmp    %r11d,%ebp
  jle    L719
  movslq %r14d,%rax
  add    %r11,%rax
  mov    0x40(%rsp),%rsi
  lea    (%rsi,%rax,8),%rax
L1031:
  movq   $0x0,(%rax)
  add    $0x1,%edi
  add    %rdx,%rax
  cmp    %edi,%ebp
  jne    L1031
  jmp    L719
L646:
  movsd  (%r14,%rbp,8),%xmm0
  andpd  D86(%rip),%xmm0
  mov    0x18(%rsp),%rax
  movsd  (%rax),%xmm1
  andpd  D86(%rip),%xmm1
  addsd  %xmm1,%xmm0
  movsd  0x20(%rsp),%xmm7
  comisd %xmm0,%xmm7
  jbe    L569
  mov    0x90(%rsp),%r13d
  mov    0x38(%rsp),%ebp
  mov    0x100(%rsp),%r15
  jmp    L778
L569:
  pxor   %xmm4,%xmm4
  movsd  %xmm4,(%rsp)
  jmp    L1115
```

tool_calls: name: disassemble_data
arguments: label: D86
data_type: qword[2]
name: disassemble_data
arguments: label: D124
data_type: f64[2]
name: disassemble_data
arguments: label: D91
data_type: byte[16]
name: disassemble_data
arguments: label: D114
data_type: f64

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

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

tool: {"D91": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: D114: 1

assistant: ```c
int relax_svd(double *U, int m, int n, int ustride, double *V, int vstride, double *w, double *rv1) {
  int flag, i, its, j, o, k, l, nm;
  double anorm, c, f, g, h, s, scale, x, y, z;
  if (m < n) {
    return -1;
  }
  g = scale = anorm = 0.0;
  for (i = 0; i < n; i++) {
    l = i + 1;
    rv1[i] = scale * g;
    g = s = scale = 0.0;
    if (i < m) {
      for (k = i; k < m; k++)
        scale += fabs(U[k * ustride + i]);
      if (scale != 0.0) {
        for (k = i; k < m; k++) {
          U[k * ustride + i] /= scale;
          s += U[k * ustride + i] * U[k * ustride + i];
        }
        f = U[i * ustride + i];
        g = -((f) >= 0.0 ? fabs(sqrt(s)) : -fabs(sqrt(s)));
        h = f * g - s;
        U[i * ustride + i] = f - g;
        for (j = l; j < n; j++) {
          for (s = 0.0, k = i; k < m; k++)
            s += U[k * ustride + i] * U[k * ustride + j];
          f = s / h;
          for (k = i; k < m; k++)
            U[k * ustride + j] += f * U[k * ustride + i];
        }
        for (k = i; k < m; k++)
          U[k * ustride + i] *= scale;
      }
    }
    w[i] = scale * g;
    g = s = scale = 0.0;
    if (i < m && i != n - 1) {
      for (k = l; k < n; k++)
        scale += fabs(U[i * ustride + k]);
      if (scale) {
        for (k = l; k < n; k++) {
          U[i * ustride + k] /= scale;
          s += U[i * ustride + k] * U[i * ustride + k];
        }
        f = U[i * ustride + l];
        g = -((f) >= 0.0 ? fabs(sqrt(s)) : -fabs(sqrt(s)));
        h = f * g - s;
        U[i * ustride + l] = f - g;
        for (k = l; k < n; k++)
          rv1[k] = U[i * ustride + k] / h;
        for (j = l; j < m; j++) {
          for (s = 0.0, k = l; k < n; k++)
            s += U[j * ustride + k] * U[i * ustride + k];
          for (k = l; k < n; k++)
            U[j * ustride + k] += s * rv1[k];
        }
        for (k = l; k < n; k++)
          U[i * ustride + k] *= scale;
      }
    }
    double tmp = fabs(w[i]) + fabs(rv1[i]);
    anorm = anorm > tmp ? anorm : tmp;
  }
  for (i = n - 1; i >= 0; i--) {
    if (i < n - 1) {
      if (g != 0.0) {
        for (j = l; j < n; j++)
          V[j * vstride + i] = (U[i * ustride + j] / U[i * ustride + l]) / g;
        for (j = l; j < n; j++) {
          for (s = 0.0, k = l; k < n; k++)
            s += U[i * ustride + k] * V[k * vstride + j];
          for (k = l; k < n; k++)
            V[k * vstride + j] += s * V[k * vstride + i];
        }
      }
      for (j = l; j < n; j++)
        V[i * vstride + j] = V[j * vstride + i] = 0.0;
    }
    V[i * vstride + i] = 1.0;
    g = rv1[i];
    l = i;
  }
  for (i = n - 1; i >= 0; i--) {
    l = i + 1;
    g = w[i];
    for (j = l; j < n; j++)
      U[i * ustride + j] = 0.0;
    if (g != 0.0) {
      g = 1.0 / g;
      for (j = l; j < n; j++) {
        for (s = 0.0, k = l; k < m; k++)
          s += U[k * ustride + i] * U[k * ustride + j];
        f = (s / U[i * ustride + i]) * g;
        for (k = i; k < m; k++)
          U[k * ustride + j] += f * U[k * ustride + i];
      }
      for (j = i; j < m; j++)
        U[j * ustride + i] *= g;
    } else {
      for (j = i; j < m; j++)
        U[j * ustride + i] = 0.0;
    }
    U[i * ustride + i] += 1.0;
  }
  for (k = n - 1; k >= 0; k--) {
    for (its = 1; its <= 30; its++) {
      flag = 1;
      for (l = k; l >= 0; l--) {
        nm = l - 1;
        if (fabs(rv1[l]) + anorm == anorm) {
          flag = 0;
          break;
        }
        if (fabs(w[nm]) + anorm == anorm)
          break;
      }
      if (flag != 0) {
        c = 0.0;
        s = 1.0;
        for (i = l; i < k; i++) {
          f = s * rv1[i];
          rv1[i] = c * rv1[i];
          if (fabs(f) + anorm == anorm)
            break;
          g = w[i];
          h = pythag(f, g);
          w[i] = h;
          h = 1.0 / h;
          c = g * h;
          s = -f * h;
          for (j = 1; j < m; j++) {
            y = U[j * ustride + nm];
            z = U[j * ustride + i];
            U[j * ustride + nm] = y * c + z * s;
            U[j * ustride + i] = z * c - y * s;
          }
        }
      }
      z = w[k];
      if (l == k) {
        if (z < 0.0) {
          w[k] = -z;
          for (j = 0; j < n; j++)
            V[j * vstride + k] = -V[j * vstride + k];
        }
        break;
      }
      if (its == 30)
        return -1;
      x = w[l];
      nm = k - 1;
      y = w[nm];
      g = rv1[nm];
      h = rv1[k];
      f = ((y - z) * (y + z) + (g - h) * (g + h)) / (2.0 * h * y);
      g = pythag(f, 1.0);
      f = ((x - z) * (x + z) + h * ((y / (f + ((f) >= 0.0 ? fabs(g) : -fabs(g)))) - h)) / x;
      c = s = 1.0;
      for (j = l; j <= nm; j++) {
        i = j + 1;
        g = rv1[i];
        y = w[i];
        h = s * g;
        g = c * g;
        z = pythag(f, h);
        rv1[j] = z;
        c = f / z;
        s = h / z;
        f = x * c + g * s;
        g = g * c - x * s;
        h = y * s;
        y *= c;
        for (o = 0; o < n; o++) {
          x = V[o * vstride + j];
          z = V[o * vstride + i];
          V[o * vstride + j] = x * c + z * s;
          V[o * vstride + i] = z * c - x * s;
        }
        z = pythag(f, h);
        w[j] = z;
        if (z != 0.0) {
          z = 1.0 / z;
          c = f * z;
          s = h * z;
        }
        f = c * g + s * y;
        x = c * y - s * g;
        for (o = 0; o < m; o++) {
          y = U[o * ustride + j];
          z = U[o * ustride + i];
          U[o * ustride + j] = y * c + z * s;
          U[o * ustride + i] = z * c - y * s;
        }
      }
      rv1[l] = 0.0;
      rv1[k] = f;
      w[k] = x;
    }
  }
  return 0;
}
```