user: Translate the below assembly code into C programming language:

```asm
<svd>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xd8,%rsp
  mov    %rcx,0x40(%rsp)
  mov    %r8,0x48(%rsp)
  mov    %r9,0x58(%rsp)
  cmp    %edx,%esi
  jl     L1067
  mov    %rdi,%rbx
  mov    %esi,%r14d
  mov    %edx,%r15d
  movslq %edx,%rax
  mov    %rax,0x90(%rsp)
  lea    0x0(,%rdx,8),%edi
  call   <malloc@plt>
  mov    %rax,0x50(%rsp)
  mov    $0x0,%eax
  call   <macheps@plt>
  movsd  %xmm0,0xc0(%rsp)
  mov    %r14d,%edx
  imul   %r15d,%edx
  test   %edx,%edx
  jle    L1315
  mov    %edx,%edx
  mov    $0x0,%eax
  mov    0x40(%rsp),%rcx
L414:
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L414
L1315:
  test   %r15d,%r15d
  jle    L287
  lea    -0x2(%r15),%eax
  mov    %eax,0x3c(%rsp)
  lea    0x1(%r15),%eax
  mov    %eax,0xb4(%rsp)
  mov    0x58(%rsp),%rax
  mov    %rax,0x70(%rsp)
  mov    0x90(%rsp),%rax
  lea    0x8(,%rax,8),%rcx
  mov    %rcx,0xb8(%rsp)
  mov    0x50(%rsp),%rsi
  lea    0x8(%rsi),%r12
  shl    $0x3,%rax
  mov    %rax,0x10(%rsp)
  mov    0x40(%rsp),%rax
  mov    %rax,0xa8(%rsp)
  movl   $0x1,0x68(%rsp)
  movl   $0x0,0x60(%rsp)
  movq   $0x1,0x28(%rsp)
  mov    $0x0,%ebp
  pxor   %xmm2,%xmm2
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm2,0x20(%rsp)
  jmp    L1266
L1067:
  lea    D101(%rip),%rdi
  call   <printf@plt>
  lea    D246(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L470
L1318:
  mov    %r13,%rax
  mov    0x30(%rsp),%edx
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x18(%rsp)
L1275:
  movsd  (%rax),%xmm0
  divsd  0x8(%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    L1275
  mov    0x68(%rsp),%eax
  sub    $0x1,%eax
  cltq
  mov    0x40(%rsp),%rsi
  lea    (%rsi,%rax,8),%rax
  mov    %rax,0xa0(%rsp)
  movsd  (%rax),%xmm7
  movsd  %xmm7,0x88(%rsp)
  pxor   %xmm0,%xmm0
  comisd %xmm7,%xmm0
  ja     L1215
  pxor   %xmm0,%xmm0
  movsd  0x18(%rsp),%xmm7
  ucomisd %xmm7,%xmm0
  ja     L213
  sqrtsd %xmm7,%xmm7
  movapd %xmm7,%xmm0
L1039:
  xorpd  D166(%rip),%xmm0
L853:
  movsd  0x88(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  mov    0xa0(%rsp),%rax
  movsd  %xmm1,(%rax)
  lea    -0x1(%r15),%eax
  cmp    0x80(%rsp),%eax
  jg     L447
  mov    0x30(%rsp),%eax
L1042:
  movsd  0x8(%rsp),%xmm1
  mulsd  0x0(%r13),%xmm1
  movsd  %xmm1,0x0(%r13)
  mov    %eax,%edx
  add    $0x1,%eax
  add    0x10(%rsp),%r13
  cmp    %edx,%ebx
  jne    L1042
  jmp    L275
L1215:
  movsd  0x18(%rsp),%xmm5
  ucomisd %xmm5,%xmm0
  ja     L799
  sqrtsd %xmm5,%xmm5
  movapd %xmm5,%xmm0
  jmp    L853
L799:
  movsd  0x18(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L853
L213:
  movsd  0x18(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L1039
L447:
  mov    0x28(%rsp),%rsi
  cmp    %esi,%r15d
  jle    L322
  movsd  0x88(%rsp),%xmm3
  mulsd  %xmm0,%xmm3
  subsd  0x18(%rsp),%xmm3
  mov    0xc8(%rsp),%rax
  add    %rsi,%rax
  mov    0x40(%rsp),%rsi
  lea    (%rsi,%rax,8),%rdi
  mov    0x3c(%rsp),%eax
  mov    $0xfffffffffffffffe,%rsi
  sub    %rax,%rsi
  mov    $0x1,%ecx
  mov    $0xffffffffffffffff,%rdx
  jmp    L774
L382:
  add    $0x8,%rdi
  sub    $0x1,%rdx
  add    $0x1,%rcx
  cmp    %rsi,%rdx
  je     L200
L774:
  mov    0xa8(%rsp),%rax
  mov    0x30(%rsp),%r8d
  pxor   %xmm1,%xmm1
L982:
  movsd  (%rax),%xmm2
  mulsd  (%rax,%rcx,8),%xmm2
  addsd  %xmm2,%xmm1
  mov    %r8d,%r9d
  add    $0x1,%r8d
  add    0x10(%rsp),%rax
  cmp    %r9d,%ebx
  jne    L982
  divsd  %xmm3,%xmm1
  mov    %rdi,%rax
  mov    0x30(%rsp),%r8d
L104:
  movapd %xmm1,%xmm2
  mulsd  (%rax,%rdx,8),%xmm2
  addsd  (%rax),%xmm2
  movsd  %xmm2,(%rax)
  mov    %r8d,%r9d
  add    $0x1,%r8d
  add    0x10(%rsp),%rax
  cmp    %r9d,%ebx
  jne    L104
  jmp    L382
L322:
  mov    0x30(%rsp),%eax
  jmp    L1042
L200:
  mov    0x30(%rsp),%eax
  jmp    L1042
L169:
  mov    0x70(%rsp),%rax
  mov    %rax,0x30(%rsp)
  movq   $0x0,(%rax)
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x18(%rsp)
L840:
  mov    0x30(%rsp),%rax
  movsd  (%rax),%xmm0
  andpd  D232(%rip),%xmm0
  mov    0x78(%rsp),%rax
  movsd  (%rax),%xmm1
  andpd  D232(%rip),%xmm1
  addsd  %xmm1,%xmm0
  maxsd  0x20(%rsp),%xmm0
  movsd  %xmm0,0x20(%rsp)
  cmp    0x28(%rsp),%r15d
  jle    L847
  pxor   %xmm2,%xmm2
L555:
  add    $0x1,%rbp
  addq   $0x1,0x28(%rsp)
  add    %r15d,0x60(%rsp)
  subl   $0x1,0x3c(%rsp)
  mov    0xb4(%rsp),%edi
  add    %edi,0x68(%rsp)
  addq   $0x8,0x70(%rsp)
  mov    0xb8(%rsp),%rcx
  add    %rcx,0xa8(%rsp)
  add    $0x8,%r12
L1266:
  mov    %ebp,0x98(%rsp)
  mov    %ebp,0x30(%rsp)
  mov    0x28(%rsp),%eax
  mov    %eax,0xb0(%rsp)
  lea    -0x8(%r12),%rax
  mov    %rax,0x78(%rsp)
  mulsd  0x18(%rsp),%xmm2
  movsd  %xmm2,-0x8(%r12)
  mov    %ebp,0x80(%rsp)
  cmp    %ebp,%r14d
  jle    L169
  movslq 0x60(%rsp),%rax
  mov    %rax,0xc8(%rsp)
  add    %rbp,%rax
  mov    0x40(%rsp),%rcx
  lea    (%rcx,%rax,8),%r13
  mov    %r13,%rdx
  mov    %ebp,%eax
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
L416:
  movsd  (%rdx),%xmm0
  andpd  D232(%rip),%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  mov    %eax,%ebx
  add    $0x1,%eax
  add    0x10(%rsp),%rdx
  cmp    %eax,%r14d
  jne    L416
  ucomisd D60(%rip),%xmm0
  jp     L1318
  pxor   %xmm0,%xmm0
  jne    L1318
L275:
  mov    0x70(%rsp),%rax
  mov    %rax,0x30(%rsp)
  mulsd  0x8(%rsp),%xmm0
  movsd  %xmm0,(%rax)
  lea    -0x1(%r15),%eax
  cmp    0x80(%rsp),%eax
  jne    L1124
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x18(%rsp)
  jmp    L840
L1124:
  mov    0x28(%rsp),%rdi
  mov    %edi,0x88(%rsp)
  cmp    %edi,%r14d
  jle    L1026
  movslq 0x60(%rsp),%rcx
  mov    %rcx,0x80(%rsp)
  mov    %rcx,%rax
  add    %rdi,%rax
  mov    0x40(%rsp),%rsi
  lea    (%rsi,%rax,8),%rbx
  lea    0x10(%rsi),%rdi
  mov    %rdi,0xa0(%rsp)
  lea    -0x2(%r14),%eax
  sub    0x98(%rsp),%eax
  lea    (%rcx,%rbp,1),%rdx
  add    %rdx,%rax
  lea    (%rdi,%rax,8),%rdx
  mov    %rbx,%rax
  pxor   %xmm5,%xmm5
  movapd %xmm5,%xmm1
L1196:
  movsd  (%rax),%xmm0
  andpd  D232(%rip),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L1196
  movsd  %xmm1,0x18(%rsp)
  ucomisd D60(%rip),%xmm1
  jp     L923
  je     L840
L923:
  cmp    0x88(%rsp),%r15d
  jle    L1228
  mov    0x3c(%rsp),%eax
  add    0x80(%rsp),%rax
  add    %rbp,%rax
  mov    0xa0(%rsp),%rcx
  lea    (%rcx,%rax,8),%rdx
  mov    %rbx,%rax
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
L66:
  movsd  (%rax),%xmm0
  divsd  0x18(%rsp),%xmm0
  movsd  %xmm0,(%rax)
  mulsd  %xmm0,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L66
  movslq 0x68(%rsp),%rax
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%r13
  movsd  0x0(%r13),%xmm5
  movsd  %xmm5,0x98(%rsp)
  pxor   %xmm0,%xmm0
  comisd %xmm5,%xmm0
  ja     L297
  pxor   %xmm0,%xmm0
  ucomisd 0x8(%rsp),%xmm0
  ja     L502
L483:
  movsd  0x8(%rsp),%xmm2
  sqrtsd %xmm2,%xmm2
L496:
  xorpd  D166(%rip),%xmm2
L296:
  movsd  0x98(%rsp),%xmm5
  movapd %xmm5,%xmm0
  mulsd  %xmm2,%xmm0
  subsd  0x8(%rsp),%xmm0
  subsd  %xmm2,%xmm5
  movsd  %xmm5,0x0(%r13)
  cmp    0x88(%rsp),%r15d
  jle    L199
L1073:
  mov    0x3c(%rsp),%eax
  add    %rbp,%rax
  mov    0x50(%rsp),%rsi
  lea    0x10(%rsi,%rax,8),%rcx
  mov    0x40(%rsp),%rax
  mov    0x80(%rsp),%rdi
  lea    (%rax,%rdi,8),%rdx
  sub    %rsi,%rdx
  mov    %r12,%rax
L12:
  movsd  (%rdx,%rax,1),%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L12
L199:
  mov    0x60(%rsp),%eax
  add    %r15d,%eax
  cltq
  mov    0x40(%rsp),%rcx
  lea    (%rcx,%rax,8),%rdx
  mov    0x50(%rsp),%r9
  sub    %r9,%rdx
  mov    0x80(%rsp),%rsi
  sub    %rax,%rsi
  mov    0x3c(%rsp),%edi
  add    %rbp,%rdi
  add    %rdi,%rax
  mov    0xa0(%rsp),%rcx
  lea    (%rcx,%rax,8),%rcx
  lea    0x10(%r9,%rdi,8),%rdi
  mov    0xb0(%rsp),%r8d
L722:
  cmp    0x88(%rsp),%r15d
  jle    L718
  lea    (%rdx,%r12,1),%rax
  pxor   %xmm1,%xmm1
L660:
  movsd  (%rax),%xmm0
  mulsd  (%rax,%rsi,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L660
  mov    %r12,%rax
L866:
  movapd %xmm1,%xmm0
  mulsd  (%rax),%xmm0
  addsd  (%rdx,%rax,1),%xmm0
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    %rdi,%rax
  jne    L866
L718:
  add    $0x1,%r8d
  mov    0x10(%rsp),%rax
  add    %rax,%rdx
  sub    0x90(%rsp),%rsi
  add    %rax,%rcx
  cmp    %r8d,%r14d
  jne    L722
  cmp    0x88(%rsp),%r15d
  jle    L689
  mov    0x3c(%rsp),%eax
  add    0x80(%rsp),%rax
  add    %rbp,%rax
  mov    0xa0(%rsp),%rsi
  lea    (%rsi,%rax,8),%rax
L314:
  movsd  0x18(%rsp),%xmm0
  mulsd  (%rbx),%xmm0
  movsd  %xmm0,(%rbx)
  add    $0x8,%rbx
  cmp    %rax,%rbx
  jne    L314
  mov    0x30(%rsp),%rax
  movsd  (%rax),%xmm0
  andpd  D232(%rip),%xmm0
  mov    0x78(%rsp),%rax
  movsd  (%rax),%xmm1
  andpd  D232(%rip),%xmm1
  addsd  %xmm1,%xmm0
  maxsd  0x20(%rsp),%xmm0
  movsd  %xmm0,0x20(%rsp)
  jmp    L555
L297:
  ucomisd 0x8(%rsp),%xmm0
  ja     L876
L659:
  movsd  0x8(%rsp),%xmm2
  sqrtsd %xmm2,%xmm2
  jmp    L296
L250:
  pxor   %xmm5,%xmm5
  movsd  %xmm5,0x8(%rsp)
  jmp    L659
L876:
  movsd  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm2
  movsd  0x98(%rsp),%xmm5
  movapd %xmm5,%xmm0
  mulsd  %xmm2,%xmm0
  subsd  0x8(%rsp),%xmm0
  subsd  %xmm2,%xmm5
  movsd  %xmm5,0x0(%r13)
  jmp    L1073
L502:
  movsd  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm2
  jmp    L496
L1026:
  pxor   %xmm5,%xmm5
  movsd  %xmm5,0x18(%rsp)
  jmp    L840
L287:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x20(%rsp)
L847:
  mov    %r15d,%eax
  sub    $0x1,%eax
  mov    %eax,0x3c(%rsp)
  js     L121
  mov    0x3c(%rsp),%ebx
  mov    %ebx,%esi
  imul   %r15d,%esi
  mov    %esi,0x80(%rsp)
  movslq %ebx,%r12
  mov    %esi,%eax
  sub    %r15d,%eax
  mov    %eax,0x30(%rsp)
  mov    %r15d,%edi
  not    %edi
  mov    %edi,0x18(%rsp)
  lea    -0x2(%rax,%r15,1),%edi
  mov    %edi,0x70(%rsp)
  lea    0x0(,%r12,8),%rcx
  mov    0x50(%rsp),%rdi
  lea    (%rcx,%rdi,1),%r13
  mov    %esi,0x60(%rsp)
  mov    %r15d,%edx
  neg    %edx
  movslq %edx,%rdi
  mov    %rdi,0x98(%rsp)
  sub    $0x1,%rdi
  mov    %rdi,0x68(%rsp)
  cltq
  lea    (%rax,%r12,1),%rbp
  movslq %esi,%rax
  mov    %rax,0x28(%rsp)
  lea    0x8(%rcx),%r11
  mov    %esi,%r8d
  mov    %r12,%r9
  mov    %esi,0x8(%rsp)
  movl   $0x0,0x10(%rsp)
  movsd  D283(%rip),%xmm2
  mov    0x48(%rsp),%rax
  lea    0x8(%rax),%rsi
  mov    %rsi,0x88(%rsp)
  mov    0x40(%rsp),%rsi
  lea    0x8(%rsi),%rcx
  mov    %rcx,0xa0(%rsp)
  mov    %r12,0xa8(%rsp)
  mov    %r14d,0xb0(%rsp)
  mov    %rax,%r14
  jmp    L318
L388:
  add    $0x8,%rsi
  sub    $0x1,%rdx
  cmp    0x78(%rsp),%rdx
  je     L299
L237:
  mov    %rsi,%r10
  mov    %r12,%rax
  pxor   %xmm1,%xmm1
L313:
  movsd  (%rax),%xmm0
  mulsd  (%r10),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  add    %r11,%r10
  cmp    %rcx,%rax
  jne    L313
  mov    %rsi,%rax
  mov    %ebx,%r10d
L394:
  movapd %xmm1,%xmm0
  mulsd  -0x8(%rax,%rdx,8),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%r10d
  add    %r11,%rax
  cmp    %r10d,%r15d
  jne    L394
  jmp    L388
L299:
  movslq %r8d,%rax
  movslq %edi,%rdx
  add    %rdx,%rax
  lea    (%r14,%rax,8),%rdx
  lea    (%r14,%rbp,8),%rax
  mov    0x10(%rsp),%ecx
  add    %rbp,%rcx
  mov    0x88(%rsp),%rsi
  lea    (%rsi,%rcx,8),%rcx
L1148:
  movq   $0x0,(%rdx)
  movq   $0x0,(%rax)
  add    %r11,%rdx
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L1148
L522:
  addl   $0x1,0x10(%rsp)
  sub    $0x1,%r9
  sub    %r15d,0x30(%rsp)
  mov    0x18(%rsp),%ecx
  add    %ecx,0x70(%rsp)
  sub    $0x8,%r13
  sub    %r15d,%r8d
  add    0x68(%rsp),%rbp
  mov    %edi,%ebx
L318:
  mov    0x8(%rsp),%eax
  add    %ebx,%eax
  cltq
  movsd  %xmm2,(%r14,%rax,8)
  lea    -0x1(%rbx),%edi
  test   %ebx,%ebx
  je     L825
  mov    0x30(%rsp),%eax
  mov    %eax,0x8(%rsp)
  cmp    %r9d,%r15d
  jle    L522
  movsd  0x0(%r13),%xmm1
  ucomisd D60(%rip),%xmm1
  jp     L353
  je     L299
L353:
  movslq 0x70(%rsp),%rax
  mov    0x40(%rsp),%rcx
  mulsd  0x8(%rcx,%rax,8),%xmm1
  lea    (%rcx,%rbp,8),%r12
  movslq %r8d,%rsi
  movslq %edi,%rax
  add    %rsi,%rax
  lea    (%r14,%rax,8),%rdx
  mov    0x10(%rsp),%r10d
  lea    (%r10,%rbp,1),%rax
  mov    0xa0(%rsp),%rcx
  lea    (%rcx,%rax,8),%rcx
  mov    %r12,%rax
L329:
  movsd  (%rax),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x8,%rax
  add    %r11,%rdx
  cmp    %rcx,%rax
  jne    L329
  add    %r9,%rsi
  lea    (%r14,%rsi,8),%rsi
  not    %r10
  mov    %r10,0x78(%rsp)
  mov    $0x0,%edx
  jmp    L237
L825:
  mov    0xa8(%rsp),%r12
  mov    0xb0(%rsp),%r14d
  movslq 0x18(%rsp),%rax
  shl    $0x3,%rax
  mov    %rax,0x88(%rsp)
  mov    0x28(%rsp),%rax
  add    %r12,%rax
  mov    %rax,0x70(%rsp)
  mov    0x40(%rsp),%rcx
  lea    (%rcx,%rax,8),%r13
  mov    0x80(%rsp),%eax
  lea    -0x1(%rax,%r15,1),%eax
  mov    %eax,0x78(%rsp)
  mov    %r15d,%eax
  imul   %r15d,%eax
  mov    %eax,0x80(%rsp)
  mov    0x90(%rsp),%rbp
  shl    $0x3,%rbp
  mov    %r15d,0x10(%rsp)
  movl   $0xffffffff,0x30(%rsp)
  lea    0x10(%rcx),%rax
  mov    %rax,0x90(%rsp)
  movsd  D283(%rip),%xmm3
  jmp    L869
L222:
  cmp    %r8d,%r15d
  jle    L986
  movslq %r8d,%rax
  add    0x28(%rsp),%rax
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
  mov    0x30(%rsp),%ecx
  add    0x70(%rsp),%rcx
  mov    0x90(%rsp),%rsi
  lea    (%rsi,%rcx,8),%rcx
L284:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L284
  ucomisd D60(%rip),%xmm2
  jp     L1198
  je     L1045
L1198:
  movslq 0x78(%rsp),%rax
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%r11
  movslq 0x60(%rsp),%rax
  movslq %r8d,%rcx
  add    %rcx,%rax
  mov    %rdi,%rcx
  lea    (%rdi,%rax,8),%rdi
  mov    0x30(%rsp),%r10d
  add    $0x2,%r10
  movslq 0x80(%rsp),%rax
  add    %r12,%rax
  lea    (%rcx,%rax,8),%rax
  mov    %rax,0x8(%rsp)
  mov    $0xffffffffffffffff,%rsi
  mov    $0x1,%ecx
  jmp    L399
L245:
  cmp    %r9d,0x3c(%rsp)
  jne    L557
  mov    %r9d,%edx
L1307:
  cmp    %edx,%r14d
  jle    L1219
  mov    %r15d,%eax
  imul   %edx,%eax
  cltq
  add    %r12,%rax
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
L204:
  movsd  (%rax),%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edx
  add    %rbp,%rax
  cmp    %edx,%r14d
  jne    L204
L1219:
  movapd %xmm3,%xmm0
  addsd  0x0(%r13),%xmm0
  movsd  %xmm0,0x0(%r13)
  sub    $0x1,%r12
  subl   $0x1,0x10(%rsp)
  add    0x88(%rsp),%r13
  mov    0x98(%rsp),%rdi
  add    %rdi,0x28(%rsp)
  addl   $0x1,0x30(%rsp)
  mov    0x68(%rsp),%rdi
  add    %rdi,0x70(%rsp)
  mov    0x18(%rsp),%ecx
  add    %ecx,0x78(%rsp)
  sub    %r15d,0x60(%rsp)
  sub    %r15d,0x80(%rsp)
  test   %r12d,%r12d
  js     L994
L869:
  mov    %r12d,%edx
  mov    0x10(%rsp),%r8d
  mov    0x58(%rsp),%rax
  movsd  (%rax,%r12,8),%xmm2
  mov    %r12d,%r9d
  cmp    %r12d,0x3c(%rsp)
  jg     L222
  ucomisd D60(%rip),%xmm2
  jp     L245
  jne    L245
L1045:
  cmp    %r9d,%r14d
  jle    L1219
  movslq 0x60(%rsp),%rax
  add    %r12,%rax
  mov    0x40(%rsp),%rcx
  lea    (%rcx,%rax,8),%rax
L25:
  movq   $0x0,(%rax)
  add    $0x1,%edx
  add    %rbp,%rax
  cmp    %edx,%r14d
  jne    L25
  jmp    L1219
L557:
  cmp    %r8d,%r15d
  jg     L1198
  jmp    L1307
L1238:
  mov    0x8(%rsp),%rax
  mov    %r8d,%ebx
  pxor   %xmm1,%xmm1
L1056:
  movsd  (%rax),%xmm0
  mulsd  (%rax,%rcx,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x1,%ebx
  add    %rbp,%rax
  cmp    %ebx,%r14d
  jne    L1056
L1099:
  divsd  (%r11),%xmm1
  divsd  %xmm2,%xmm1
  cmp    %r9d,%r14d
  jle    L1316
  mov    %rdi,%rax
  mov    %edx,%ebx
L1189:
  movapd %xmm1,%xmm0
  mulsd  (%rax,%rsi,8),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%ebx
  add    %rbp,%rax
  cmp    %ebx,%r14d
  jne    L1189
L1316:
  add    $0x1,%rcx
  add    $0x8,%rdi
  sub    $0x1,%rsi
  cmp    %r10,%rcx
  je     L1307
L399:
  pxor   %xmm1,%xmm1
  cmp    %r8d,%r14d
  jg     L1238
  jmp    L1099
L637:
  lea    D154(%rip),%rdi
  call   <printf@plt>
  mov    $0xf,%eax
L470:
  add    $0xd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L726:
  add    $0x8,%r14
  sub    $0x1,%r13
  mov    %ebp,%eax
  sub    %r13d,%eax
  cmp    0x3c(%rsp),%eax
  jg     L750
L307:
  movsd  (%r14),%xmm0
  movapd %xmm4,%xmm7
  mulsd  %xmm0,%xmm7
  movsd  %xmm7,0x8(%rsp)
  mulsd  %xmm3,%xmm0
  movsd  %xmm0,(%r14)
  movapd %xmm7,%xmm0
  andpd  D232(%rip),%xmm0
  movsd  0x60(%rsp),%xmm5
  comisd %xmm0,%xmm5
  jae    L60
  movsd  (%r12,%r14,1),%xmm6
  movsd  %xmm6,0x10(%rsp)
  movapd %xmm6,%xmm1
  movapd %xmm7,%xmm0
  call   <hypot@plt>
  movsd  %xmm0,(%r12,%r14,1)
  movsd  0x10(%rsp),%xmm3
  divsd  %xmm0,%xmm3
  movsd  0x8(%rsp),%xmm4
  xorpd  D166(%rip),%xmm4
  divsd  %xmm0,%xmm4
  test   %ebx,%ebx
  jle    L726
  mov    0x40(%rsp),%rax
  sub    0x50(%rsp),%rax
  add    %r14,%rax
  mov    $0x0,%edx
L951:
  movsd  -0x8(%rax,%r13,8),%xmm1
  movsd  (%rax),%xmm0
  movapd %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm4,%xmm5
  mulsd  %xmm0,%xmm5
  addsd  %xmm5,%xmm2
  movsd  %xmm2,-0x8(%rax,%r13,8)
  mulsd  %xmm3,%xmm0
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edx
  add    %r15,%rax
  cmp    %edx,%ebx
  jne    L951
  jmp    L726
L750:
  mov    0x18(%rsp),%r15d
  mov    0x20(%rsp),%ebp
  jmp    L116
L60:
  mov    0x18(%rsp),%r15d
  mov    0x20(%rsp),%ebp
L116:
  mov    0x58(%rsp),%rax
  mov    0x68(%rsp),%rdi
  movsd  (%rax,%rdi,1),%xmm5
  movsd  %xmm5,0x8(%rsp)
  cmp    0x3c(%rsp),%r15d
  je     L1091
L505:
  movslq %r15d,%r13
  lea    0x0(,%r13,8),%r14
  mov    0x58(%rsp),%rax
  movsd  (%rax,%r13,8),%xmm7
  movsd  %xmm7,0x20(%rsp)
  mov    0x68(%rsp),%rsi
  mov    -0x8(%rax,%rsi,1),%r12
  mov    0x50(%rsp),%rax
  movsd  -0x8(%rax,%rsi,1),%xmm1
  add    %rsi,%rax
  mov    %rax,0x70(%rsp)
  movsd  (%rax),%xmm7
  movsd  %xmm7,0x18(%rsp)
  movsd  0x8(%rsp),%xmm5
  movapd %xmm5,%xmm0
  addsd  %xmm1,%xmm0
  divsd  %xmm7,%xmm0
  subsd  %xmm5,%xmm1
  movq   %r12,%xmm5
  divsd  %xmm5,%xmm1
  mulsd  %xmm1,%xmm0
  movq   %r12,%xmm1
  divsd  %xmm7,%xmm1
  addsd  %xmm1,%xmm0
  divsd  %xmm5,%xmm7
  subsd  %xmm7,%xmm0
  mulsd  D146(%rip),%xmm0
  movsd  D283(%rip),%xmm1
  movsd  %xmm0,0x10(%rsp)
  call   <hypot@plt>
  pxor   %xmm1,%xmm1
  movsd  0x10(%rsp),%xmm6
  comisd %xmm6,%xmm1
  ja     L868
  movsd  0x10(%rsp),%xmm1
  addsd  %xmm0,%xmm1
L646:
  movq   %r12,%xmm0
  divsd  %xmm1,%xmm0
  movsd  0x18(%rsp),%xmm7
  subsd  %xmm7,%xmm0
  movsd  0x20(%rsp),%xmm6
  divsd  %xmm6,%xmm7
  mulsd  %xmm7,%xmm0
  movsd  0x8(%rsp),%xmm5
  movapd %xmm5,%xmm1
  divsd  %xmm6,%xmm1
  mulsd  %xmm5,%xmm1
  subsd  %xmm1,%xmm6
  addsd  %xmm6,%xmm0
  movsd  %xmm0,0x18(%rsp)
  lea    0x1(%r15),%r12d
  cmp    0x3c(%rsp),%r12d
  jg     L835
  movslq %r12d,%r12
  mov    0x50(%rsp),%rax
  lea    0x8(%rax,%r14,1),%r14
  movsd  D283(%rip),%xmm6
  movsd  %xmm6,0x10(%rsp)
  movsd  %xmm6,0x8(%rsp)
  mov    0x80(%rsp),%r15
  mov    %r13,0x78(%rsp)
  mov    0x58(%rsp),%r13
  jmp    L793
L868:
  subsd  %xmm0,%xmm6
  movapd %xmm6,%xmm1
  jmp    L646
L1312:
  movsd  0x18(%rsp),%xmm7
  divsd  %xmm0,%xmm7
  movsd  %xmm7,0x10(%rsp)
  movsd  0x20(%rsp),%xmm7
  divsd  %xmm0,%xmm7
  movsd  %xmm7,0x8(%rsp)
L818:
  movsd  0x10(%rsp),%xmm7
  movapd %xmm7,%xmm1
  movsd  0x30(%rsp),%xmm6
  mulsd  %xmm6,%xmm1
  movsd  0x8(%rsp),%xmm5
  movapd %xmm5,%xmm0
  movsd  0x28(%rsp),%xmm4
  mulsd  %xmm4,%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rsp)
  mulsd  %xmm7,%xmm4
  movapd %xmm4,%xmm1
  mulsd  %xmm5,%xmm6
  subsd  %xmm6,%xmm1
  movsd  %xmm1,0x20(%rsp)
  test   %ebx,%ebx
  jle    L684
  mov    0x40(%rsp),%rax
  lea    (%rax,%r12,8),%rax
  mov    $0x0,%edx
L473:
  movsd  -0x8(%rax),%xmm1
  movsd  (%rax),%xmm0
  movsd  0x10(%rsp),%xmm5
  movapd %xmm5,%xmm2
  mulsd  %xmm1,%xmm2
  movsd  0x8(%rsp),%xmm4
  movapd %xmm4,%xmm3
  mulsd  %xmm0,%xmm3
  addsd  %xmm3,%xmm2
  movsd  %xmm2,-0x8(%rax)
  mulsd  %xmm5,%xmm0
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edx
  add    %r15,%rax
  cmp    %edx,%ebx
  jne    L473
L684:
  add    $0x1,%r12
  add    $0x8,%r14
  cmp    %r12d,0x3c(%rsp)
  jl     L614
L793:
  movsd  (%r14),%xmm0
  movsd  0x0(%r13,%r12,8),%xmm7
  movsd  %xmm7,0x28(%rsp)
  movsd  0x8(%rsp),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rsp)
  mulsd  0x10(%rsp),%xmm0
  movsd  %xmm0,0x30(%rsp)
  movsd  0x18(%rsp),%xmm0
  call   <hypot@plt>
  movsd  %xmm0,-0x8(%r14)
  movsd  0x18(%rsp),%xmm6
  divsd  %xmm0,%xmm6
  movsd  %xmm6,0x10(%rsp)
  movsd  0x8(%rsp),%xmm4
  divsd  %xmm0,%xmm4
  movsd  %xmm4,0x8(%rsp)
  movapd %xmm6,%xmm1
  movsd  0x20(%rsp),%xmm5
  mulsd  %xmm5,%xmm1
  movsd  0x30(%rsp),%xmm7
  movapd %xmm7,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rsp)
  mulsd  %xmm6,%xmm7
  movapd %xmm7,%xmm0
  mulsd  %xmm4,%xmm5
  subsd  %xmm5,%xmm0
  movsd  %xmm0,0x30(%rsp)
  movsd  0x28(%rsp),%xmm7
  movapd %xmm7,%xmm5
  mulsd  %xmm4,%xmm5
  movsd  %xmm5,0x20(%rsp)
  mulsd  %xmm6,%xmm7
  movsd  %xmm7,0x28(%rsp)
  test   %ebp,%ebp
  jle    L117
  mov    0x48(%rsp),%rax
  lea    (%rax,%r12,8),%rax
  mov    $0x0,%edx
L1197:
  movsd  -0x8(%rax),%xmm1
  movsd  (%rax),%xmm0
  movsd  0x10(%rsp),%xmm6
  movapd %xmm6,%xmm2
  mulsd  %xmm1,%xmm2
  movsd  0x8(%rsp),%xmm7
  movapd %xmm7,%xmm3
  mulsd  %xmm0,%xmm3
  addsd  %xmm3,%xmm2
  movsd  %xmm2,-0x8(%rax)
  mulsd  %xmm6,%xmm0
  mulsd  %xmm7,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edx
  add    %r15,%rax
  cmp    %edx,%ebp
  jne    L1197
L117:
  movsd  0x20(%rsp),%xmm1
  movsd  0x18(%rsp),%xmm0
  call   <hypot@plt>
  movsd  %xmm0,-0x8(%r13,%r12,8)
  pxor   %xmm7,%xmm7
  ucomisd %xmm7,%xmm0
  jp     L1312
  je     L818
  jmp    L1312
L614:
  mov    0x78(%rsp),%r13
L835:
  mov    0x50(%rsp),%rax
  movq   $0x0,(%rax,%r13,8)
  mov    0x70(%rsp),%rax
  movsd  0x18(%rsp),%xmm7
  movsd  %xmm7,(%rax)
  mov    0x90(%rsp),%rax
  movsd  0x20(%rsp),%xmm7
  movsd  %xmm7,(%rax)
  subl   $0x1,0x88(%rsp)
  je     L637
L552:
  mov    0x68(%rsp),%rax
  mov    0x50(%rsp),%rcx
  add    %rcx,%rax
  mov    0x3c(%rsp),%edi
  mov    %edi,%r15d
  mov    0x58(%rsp),%rdx
  sub    %rcx,%rdx
  movsd  0x60(%rsp),%xmm1
  test   %edi,%edi
  js     L276
L450:
  movsd  (%rax),%xmm0
  andpd  D232(%rip),%xmm0
  comisd %xmm0,%xmm1
  jae    L116
  movsd  -0x8(%rdx,%rax,1),%xmm0
  andpd  D232(%rip),%xmm0
  comisd %xmm0,%xmm1
  jae    L745
  sub    $0x1,%r15d
  sub    $0x8,%rax
  cmp    $0xffffffff,%r15d
  jne    L450
L276:
  movslq %r15d,%rax
  mov    0x50(%rsp),%rcx
  lea    (%rcx,%rax,8),%r14
  mov    $0x0,%r13d
  pxor   %xmm3,%xmm3
  movsd  D283(%rip),%xmm4
  mov    %r15d,%eax
  mov    0x58(%rsp),%r12
  sub    %rcx,%r12
  mov    %r15d,0x18(%rsp)
  mov    0x80(%rsp),%r15
  mov    %ebp,0x20(%rsp)
  mov    %eax,%ebp
  jmp    L307
L1091:
  mov    %ebp,%r15d
  pxor   %xmm0,%xmm0
  comisd 0x8(%rsp),%xmm0
  ja     L622
L570:
  subl   $0x1,0x3c(%rsp)
  mov    0x3c(%rsp),%eax
  subq   $0x8,0x68(%rsp)
  cmp    $0xffffffff,%eax
  je     L542
L768:
  mov    0x58(%rsp),%rax
  add    0x68(%rsp),%rax
  mov    %rax,0x90(%rsp)
  movl   $0x32,0x88(%rsp)
  mov    %r15d,%ebp
  jmp    L552
L622:
  movsd  0x8(%rsp),%xmm0
  xorpd  D166(%rip),%xmm0
  mov    0x58(%rsp),%rax
  mov    0x68(%rsp),%rdi
  movsd  %xmm0,(%rax,%rdi,1)
  test   %ebp,%ebp
  jle    L570
  mov    0x48(%rsp),%rax
  add    %rdi,%rax
  mov    $0x0,%edx
  movq   D166(%rip),%xmm1
L165:
  movsd  (%rax),%xmm0
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edx
  add    0x80(%rsp),%rax
  cmp    %edx,%r15d
  jne    L165
  jmp    L570
L542:
  mov    %ebx,%r14d
L121:
  mov    0x58(%rsp),%r8
  mov    0x48(%rsp),%rcx
  mov    %r15d,%edx
  mov    %r14d,%esi
  mov    0x40(%rsp),%rdi
  call   <svd_sort@plt>
  mov    0x50(%rsp),%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L470
L745:
  cmp    %r15d,0x3c(%rsp)
  jge    L276
  mov    0x58(%rsp),%rax
  mov    0x68(%rsp),%rsi
  movsd  (%rax,%rsi,1),%xmm7
  movsd  %xmm7,0x8(%rsp)
  jmp    L505
L994:
  movsd  0xc0(%rsp),%xmm7
  mulsd  0x20(%rsp),%xmm7
  movsd  %xmm7,0x60(%rsp)
  lea    -0x8(%rbp),%rax
  mov    %rax,0x68(%rsp)
  mov    %rbp,0x80(%rsp)
  mov    %r14d,%ebx
  jmp    L768
L689:
  mov    0x30(%rsp),%rax
  movsd  (%rax),%xmm0
  movq   D232(%rip),%xmm2
  andpd  %xmm2,%xmm0
  mov    0x78(%rsp),%rax
  movsd  (%rax),%xmm1
  andpd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  maxsd  0x20(%rsp),%xmm0
  movsd  %xmm0,0x20(%rsp)
  jmp    L847
L1228:
  movslq 0x68(%rsp),%rax
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%r13
  movsd  0x0(%r13),%xmm6
  movsd  %xmm6,0x98(%rsp)
  pxor   %xmm0,%xmm0
  comisd %xmm6,%xmm0
  ja     L250
  movsd  %xmm0,0x8(%rsp)
  jmp    L483
L986:
  ucomisd D60(%rip),%xmm2
  jp     L1307
  je     L1045
  jmp    L1307
```

tool_calls: name: parse_data
arguments: data_tag: D101
type_guessed: string
name: parse_data
arguments: data_tag: D246
type_guessed: string
name: parse_data
arguments: data_tag: D166
type_guessed: f32[4]
name: parse_data
arguments: data_tag: D232
type_guessed: qword[2]
name: parse_data
arguments: data_tag: D60
type_guessed: f32[2]
name: parse_data
arguments: data_tag: D283
type_guessed: f64
name: parse_data
arguments: data_tag: D154
type_guessed: string
name: parse_data
arguments: data_tag: D146
type_guessed: f64

tool: D101: Rows (M) should be greater than Columns (B) 


tool: D246: Retry By Transposing the Input Matrix

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

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

tool: {"D60": [0.0,0.0]}

tool: D283: 1

tool: D154: Convergence Not Achieved 


tool: D146: 0.5

assistant: ```c
int svd(double *A, int M, int N, double *U, double *V, double *q) {
  int i, j, k, l, t, t2, ierr, cancel, iter, l1;
  double eps, g, x, s, temp, f, h, c, y, z, scale;
  double *e;
  if (M < N) {
    printf("Rows (M) should be greater than Columns (B) \n");
    printf("Retry By Transposing the Input Matrix");
    return -1;
  }
  e = (double *)malloc(sizeof(double) * N);
  ierr = 0;
  eps = macheps();
  g = scale = x = 0.0;
  for (i = 0; i < M * N; ++i) {
    U[i] = A[i];
  }
  for (i = 0; i < N; ++i) {
    l = i + 1;
    e[i] = scale * g;
    g = 0.0;
    s = 0.0;
    scale = 0.0;
    if (i < M) {
      for (k = i; k < M; ++k) {
        scale += fabs(U[k * N + i]);
      }
      if (scale != 0.0) {
        for (k = i; k < M; ++k) {
          t = k * N;
          U[t + i] /= scale;
          temp = U[t + i];
          s += temp * temp;
        }
        f = U[i * N + i];
        g = (f < 0) ? sqrt(s) : -sqrt(s);
        h = f * g - s;
        U[i * N + i] = f - g;
        if (i < N - 1) {
          for (j = l; j < N; ++j) {
            s = 0.0;
            for (k = i; k < M; ++k) {
              t = k * N;
              s += U[t + i] * U[t + j];
            }
            f = s / h;
            for (k = i; k < M; ++k) {
              t = k * N;
              U[t + j] += f * U[t + i];
            }
          }
        }
        for (k = i; k < M; ++k) {
          t = k * N;
          U[t + i] *= scale;
        }
      }
    }
    q[i] = scale * g;
    g = 0.0;
    s = 0.0;
    scale = 0.0;
    if (i < M && i != N - 1) {
      t = i * N;
      for (k = l; k < M; ++k) {
        scale += fabs(U[t + k]);
      }
      if (scale != 0.0) {
        for (k = l; k < N; ++k) {
          U[t + k] /= scale;
          temp = U[t + k];
          s = s + temp * temp;
        }
        f = U[t + l];
        g = (f < 0) ? sqrt(s) : -sqrt(s);
        h = f * g - s;
        U[t + l] = f - g;
        for (k = l; k < N; ++k) {
          e[k] = U[t + k] / h;
        }
        for (j = l; j < M; j++) {
          s = 0.0;
          t2 = j * N;
          for (k = l; k < N; k++) {
            s += U[t2 + k] * U[t + k];
          }
          for (k = l; k < N; k++) {
            U[t2 + k] += s * e[k];
          }
        }
        for (k = l; k < N; k++)
          U[t + k] *= scale;
      }
    }
    temp = fabs(q[i]) + fabs(e[i]);
    if (x < temp) {
      x = temp;
    }
  }
  for (i = N - 1; i >= 0; --i) {
    t = i * N;
    if (i < N - 1) {
      if (g != 0.0) {
        h = U[t + i + 1] * g;
        for (j = l; j < N; ++j) {
          V[j * N + i] = U[t + j] / h;
        }
        for (j = l; j < N; ++j) {
          s = 0.0;
          for (k = l; k < N; ++k) {
            s += U[t + k] * V[k * N + j];
          }
          for (k = l; k < N; ++k) {
            V[k * N + j] += (s * V[k * N + i]);
          }
        }
      }
      for (j = l; j < N; ++j) {
        V[t + j] = V[j * N + i] = 0.0;
      }
    }
    V[t + i] = 1.0;
    g = e[i];
    l = i;
  }
  for (i = N - 1; i >= 0; --i) {
    t = i * N;
    l = i + 1;
    g = q[i];
    if (i < N - 1) {
      for (j = l; j < N; ++j) {
        U[t + j] = 0.0;
      }
    }
    if (g != 0.0) {
      if (i != N - 1) {
        for (j = l; j < N; ++j) {
          s = 0.0;
          for (k = l; k < M; ++k) {
            s += (U[k * N + i] * U[k * N + j]);
          }
          f = (s / U[t + i]) / g;
          for (k = i; k < M; ++k) {
            U[k * N + j] += (f * U[k * N + i]);
          }
        }
      }
      for (j = i; j < M; ++j) {
        U[j * N + i] = U[j * N + i] / g;
      }
    } else {
      for (j = i; j < M; ++j) {
        U[j * N + i] = 0.0;
      }
    }
    U[t + i] += 1.0;
  }
  eps = eps * x;
  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 = 0; j < M; ++j) {
            t = j * N;
            y = U[t + l1];
            z = U[t + i];
            U[t + l1] = y * c + z * s;
            U[t + i] = 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 * N;
            x = V[t + i - 1];
            z = V[t + i];
            V[t + i - 1] = x * c + z * s;
            V[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 = 0; j < M; ++j) {
            t = j * N;
            y = U[t + i - 1];
            z = U[t + i];
            U[t + i - 1] = y * c + z * s;
            U[t + i] = 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 * N;
            V[t + k] = -V[t + k];
          }
        }
        break;
      }
    }
  }
  svd_sort(U, M, N, V, q);
  free(e);
  return ierr;
}
```