user: What is the c source code of the assembly code below:

```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     L1246
  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    L501
  mov    %edx,%edx
  mov    $0x0,%eax
  mov    0x40(%rsp),%rcx
L894:
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L894
L501:
  test   %r15d,%r15d
  jle    L1055
  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    L59
L1246:
  lea    D136(%rip),%rdi
  call   <printf@plt>
  lea    D110(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L516
L333:
  mov    %r13,%rax
  mov    0x30(%rsp),%edx
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x18(%rsp)
L806:
  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    L806
  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     L1282
  pxor   %xmm0,%xmm0
  movsd  0x18(%rsp),%xmm7
  ucomisd %xmm7,%xmm0
  ja     L122
  sqrtsd %xmm7,%xmm7
  movapd %xmm7,%xmm0
L57:
  xorpd  D170(%rip),%xmm0
L567:
  movsd  0x88(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  mov    0xa0(%rsp),%rax
  movsd  %xmm1,(%rax)
  lea    -0x1(%r15),%eax
  cmp    0x80(%rsp),%eax
  jg     L29
  mov    0x30(%rsp),%eax
L1212:
  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    L1212
  jmp    L881
L1282:
  movsd  0x18(%rsp),%xmm5
  ucomisd %xmm5,%xmm0
  ja     L394
  sqrtsd %xmm5,%xmm5
  movapd %xmm5,%xmm0
  jmp    L567
L394:
  movsd  0x18(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L567
L122:
  movsd  0x18(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L57
L29:
  mov    0x28(%rsp),%rsi
  cmp    %esi,%r15d
  jle    L431
  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    L1304
L82:
  add    $0x8,%rdi
  sub    $0x1,%rdx
  add    $0x1,%rcx
  cmp    %rsi,%rdx
  je     L788
L1304:
  mov    0xa8(%rsp),%rax
  mov    0x30(%rsp),%r8d
  pxor   %xmm1,%xmm1
L745:
  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    L745
  divsd  %xmm3,%xmm1
  mov    %rdi,%rax
  mov    0x30(%rsp),%r8d
L1222:
  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    L1222
  jmp    L82
L431:
  mov    0x30(%rsp),%eax
  jmp    L1212
L788:
  mov    0x30(%rsp),%eax
  jmp    L1212
L213:
  mov    0x70(%rsp),%rax
  mov    %rax,0x30(%rsp)
  movq   $0x0,(%rax)
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x18(%rsp)
L514:
  mov    0x30(%rsp),%rax
  movsd  (%rax),%xmm0
  andpd  D259(%rip),%xmm0
  mov    0x78(%rsp),%rax
  movsd  (%rax),%xmm1
  andpd  D259(%rip),%xmm1
  addsd  %xmm1,%xmm0
  maxsd  0x20(%rsp),%xmm0
  movsd  %xmm0,0x20(%rsp)
  cmp    0x28(%rsp),%r15d
  jle    L467
  pxor   %xmm2,%xmm2
L20:
  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
L59:
  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    L213
  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)
L568:
  movsd  (%rdx),%xmm0
  andpd  D259(%rip),%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  mov    %eax,%ebx
  add    $0x1,%eax
  add    0x10(%rsp),%rdx
  cmp    %eax,%r14d
  jne    L568
  ucomisd D162(%rip),%xmm0
  jp     L333
  pxor   %xmm0,%xmm0
  jne    L333
L881:
  mov    0x70(%rsp),%rax
  mov    %rax,0x30(%rsp)
  mulsd  0x8(%rsp),%xmm0
  movsd  %xmm0,(%rax)
  lea    -0x1(%r15),%eax
  cmp    0x80(%rsp),%eax
  jne    L166
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x18(%rsp)
  jmp    L514
L166:
  mov    0x28(%rsp),%rdi
  mov    %edi,0x88(%rsp)
  cmp    %edi,%r14d
  jle    L446
  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
L461:
  movsd  (%rax),%xmm0
  andpd  D259(%rip),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L461
  movsd  %xmm1,0x18(%rsp)
  ucomisd D162(%rip),%xmm1
  jp     L632
  je     L514
L632:
  cmp    0x88(%rsp),%r15d
  jle    L565
  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)
L1070:
  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    L1070
  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     L303
  pxor   %xmm0,%xmm0
  ucomisd 0x8(%rsp),%xmm0
  ja     L21
L856:
  movsd  0x8(%rsp),%xmm2
  sqrtsd %xmm2,%xmm2
L443:
  xorpd  D170(%rip),%xmm2
L204:
  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    L355
L39:
  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
L873:
  movsd  (%rdx,%rax,1),%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L873
L355:
  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
L3:
  cmp    0x88(%rsp),%r15d
  jle    L868
  lea    (%rdx,%r12,1),%rax
  pxor   %xmm1,%xmm1
L1044:
  movsd  (%rax),%xmm0
  mulsd  (%rax,%rsi,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L1044
  mov    %r12,%rax
L723:
  movapd %xmm1,%xmm0
  mulsd  (%rax),%xmm0
  addsd  (%rdx,%rax,1),%xmm0
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    %rdi,%rax
  jne    L723
L868:
  add    $0x1,%r8d
  mov    0x10(%rsp),%rax
  add    %rax,%rdx
  sub    0x90(%rsp),%rsi
  add    %rax,%rcx
  cmp    %r8d,%r14d
  jne    L3
  cmp    0x88(%rsp),%r15d
  jle    L840
  mov    0x3c(%rsp),%eax
  add    0x80(%rsp),%rax
  add    %rbp,%rax
  mov    0xa0(%rsp),%rsi
  lea    (%rsi,%rax,8),%rax
L1203:
  movsd  0x18(%rsp),%xmm0
  mulsd  (%rbx),%xmm0
  movsd  %xmm0,(%rbx)
  add    $0x8,%rbx
  cmp    %rax,%rbx
  jne    L1203
  mov    0x30(%rsp),%rax
  movsd  (%rax),%xmm0
  andpd  D259(%rip),%xmm0
  mov    0x78(%rsp),%rax
  movsd  (%rax),%xmm1
  andpd  D259(%rip),%xmm1
  addsd  %xmm1,%xmm0
  maxsd  0x20(%rsp),%xmm0
  movsd  %xmm0,0x20(%rsp)
  jmp    L20
L303:
  ucomisd 0x8(%rsp),%xmm0
  ja     L789
L1035:
  movsd  0x8(%rsp),%xmm2
  sqrtsd %xmm2,%xmm2
  jmp    L204
L1085:
  pxor   %xmm5,%xmm5
  movsd  %xmm5,0x8(%rsp)
  jmp    L1035
L789:
  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    L39
L21:
  movsd  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm2
  jmp    L443
L446:
  pxor   %xmm5,%xmm5
  movsd  %xmm5,0x18(%rsp)
  jmp    L514
L1055:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x20(%rsp)
L467:
  mov    %r15d,%eax
  sub    $0x1,%eax
  mov    %eax,0x3c(%rsp)
  js     L293
  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  D76(%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    L179
L638:
  add    $0x8,%rsi
  sub    $0x1,%rdx
  cmp    0x78(%rsp),%rdx
  je     L530
L52:
  mov    %rsi,%r10
  mov    %r12,%rax
  pxor   %xmm1,%xmm1
L359:
  movsd  (%rax),%xmm0
  mulsd  (%r10),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  add    %r11,%r10
  cmp    %rcx,%rax
  jne    L359
  mov    %rsi,%rax
  mov    %ebx,%r10d
L385:
  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    L385
  jmp    L638
L530:
  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
L618:
  movq   $0x0,(%rdx)
  movq   $0x0,(%rax)
  add    %r11,%rdx
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L618
L366:
  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
L179:
  mov    0x8(%rsp),%eax
  add    %ebx,%eax
  cltq
  movsd  %xmm2,(%r14,%rax,8)
  lea    -0x1(%rbx),%edi
  test   %ebx,%ebx
  je     L465
  mov    0x30(%rsp),%eax
  mov    %eax,0x8(%rsp)
  cmp    %r9d,%r15d
  jle    L366
  movsd  0x0(%r13),%xmm1
  ucomisd D162(%rip),%xmm1
  jp     L1306
  je     L530
L1306:
  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
L291:
  movsd  (%rax),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x8,%rax
  add    %r11,%rdx
  cmp    %rcx,%rax
  jne    L291
  add    %r9,%rsi
  lea    (%r14,%rsi,8),%rsi
  not    %r10
  mov    %r10,0x78(%rsp)
  mov    $0x0,%edx
  jmp    L52
L465:
  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  D76(%rip),%xmm3
  jmp    L1241
L520:
  cmp    %r8d,%r15d
  jle    L592
  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
L387:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L387
  ucomisd D162(%rip),%xmm2
  jp     L549
  je     L1312
L549:
  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    L285
L120:
  cmp    %r9d,0x3c(%rsp)
  jne    L400
  mov    %r9d,%edx
L616:
  cmp    %edx,%r14d
  jle    L1228
  mov    %r15d,%eax
  imul   %edx,%eax
  cltq
  add    %r12,%rax
  mov    0x40(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
L324:
  movsd  (%rax),%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edx
  add    %rbp,%rax
  cmp    %edx,%r14d
  jne    L324
L1228:
  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     L95
L1241:
  mov    %r12d,%edx
  mov    0x10(%rsp),%r8d
  mov    0x58(%rsp),%rax
  movsd  (%rax,%r12,8),%xmm2
  mov    %r12d,%r9d
  cmp    %r12d,0x3c(%rsp)
  jg     L520
  ucomisd D162(%rip),%xmm2
  jp     L120
  jne    L120
L1312:
  cmp    %r9d,%r14d
  jle    L1228
  movslq 0x60(%rsp),%rax
  add    %r12,%rax
  mov    0x40(%rsp),%rcx
  lea    (%rcx,%rax,8),%rax
L527:
  movq   $0x0,(%rax)
  add    $0x1,%edx
  add    %rbp,%rax
  cmp    %edx,%r14d
  jne    L527
  jmp    L1228
L400:
  cmp    %r8d,%r15d
  jg     L549
  jmp    L616
L934:
  mov    0x8(%rsp),%rax
  mov    %r8d,%ebx
  pxor   %xmm1,%xmm1
L343:
  movsd  (%rax),%xmm0
  mulsd  (%rax,%rcx,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x1,%ebx
  add    %rbp,%rax
  cmp    %ebx,%r14d
  jne    L343
L344:
  divsd  (%r11),%xmm1
  divsd  %xmm2,%xmm1
  cmp    %r9d,%r14d
  jle    L453
  mov    %rdi,%rax
  mov    %edx,%ebx
L1316:
  movapd %xmm1,%xmm0
  mulsd  (%rax,%rsi,8),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%ebx
  add    %rbp,%rax
  cmp    %ebx,%r14d
  jne    L1316
L453:
  add    $0x1,%rcx
  add    $0x8,%rdi
  sub    $0x1,%rsi
  cmp    %r10,%rcx
  je     L616
L285:
  pxor   %xmm1,%xmm1
  cmp    %r8d,%r14d
  jg     L934
  jmp    L344
L668:
  lea    D141(%rip),%rdi
  call   <printf@plt>
  mov    $0xf,%eax
L516:
  add    $0xd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1169:
  add    $0x8,%r14
  sub    $0x1,%r13
  mov    %ebp,%eax
  sub    %r13d,%eax
  cmp    0x3c(%rsp),%eax
  jg     L1114
L877:
  movsd  (%r14),%xmm0
  movapd %xmm4,%xmm7
  mulsd  %xmm0,%xmm7
  movsd  %xmm7,0x8(%rsp)
  mulsd  %xmm3,%xmm0
  movsd  %xmm0,(%r14)
  movapd %xmm7,%xmm0
  andpd  D259(%rip),%xmm0
  movsd  0x60(%rsp),%xmm5
  comisd %xmm0,%xmm5
  jae    L924
  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  D170(%rip),%xmm4
  divsd  %xmm0,%xmm4
  test   %ebx,%ebx
  jle    L1169
  mov    0x40(%rsp),%rax
  sub    0x50(%rsp),%rax
  add    %r14,%rax
  mov    $0x0,%edx
L1058:
  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    L1058
  jmp    L1169
L1114:
  mov    0x18(%rsp),%r15d
  mov    0x20(%rsp),%ebp
  jmp    L775
L924:
  mov    0x18(%rsp),%r15d
  mov    0x20(%rsp),%ebp
L775:
  mov    0x58(%rsp),%rax
  mov    0x68(%rsp),%rdi
  movsd  (%rax,%rdi,1),%xmm5
  movsd  %xmm5,0x8(%rsp)
  cmp    0x3c(%rsp),%r15d
  je     L1154
L965:
  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  D53(%rip),%xmm0
  movsd  D76(%rip),%xmm1
  movsd  %xmm0,0x10(%rsp)
  call   <hypot@plt>
  pxor   %xmm1,%xmm1
  movsd  0x10(%rsp),%xmm6
  comisd %xmm6,%xmm1
  ja     L392
  movsd  0x10(%rsp),%xmm1
  addsd  %xmm0,%xmm1
L1225:
  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     L87
  movslq %r12d,%r12
  mov    0x50(%rsp),%rax
  lea    0x8(%rax,%r14,1),%r14
  movsd  D76(%rip),%xmm6
  movsd  %xmm6,0x10(%rsp)
  movsd  %xmm6,0x8(%rsp)
  mov    0x80(%rsp),%r15
  mov    %r13,0x78(%rsp)
  mov    0x58(%rsp),%r13
  jmp    L1233
L392:
  subsd  %xmm0,%xmm6
  movapd %xmm6,%xmm1
  jmp    L1225
L364:
  movsd  0x18(%rsp),%xmm7
  divsd  %xmm0,%xmm7
  movsd  %xmm7,0x10(%rsp)
  movsd  0x20(%rsp),%xmm7
  divsd  %xmm0,%xmm7
  movsd  %xmm7,0x8(%rsp)
L983:
  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    L356
  mov    0x40(%rsp),%rax
  lea    (%rax,%r12,8),%rax
  mov    $0x0,%edx
L1296:
  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    L1296
L356:
  add    $0x1,%r12
  add    $0x8,%r14
  cmp    %r12d,0x3c(%rsp)
  jl     L803
L1233:
  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    L15
  mov    0x48(%rsp),%rax
  lea    (%rax,%r12,8),%rax
  mov    $0x0,%edx
L1163:
  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    L1163
L15:
  movsd  0x20(%rsp),%xmm1
  movsd  0x18(%rsp),%xmm0
  call   <hypot@plt>
  movsd  %xmm0,-0x8(%r13,%r12,8)
  pxor   %xmm7,%xmm7
  ucomisd %xmm7,%xmm0
  jp     L364
  je     L983
  jmp    L364
L803:
  mov    0x78(%rsp),%r13
L87:
  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     L668
L1157:
  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     L277
L1039:
  movsd  (%rax),%xmm0
  andpd  D259(%rip),%xmm0
  comisd %xmm0,%xmm1
  jae    L775
  movsd  -0x8(%rdx,%rax,1),%xmm0
  andpd  D259(%rip),%xmm0
  comisd %xmm0,%xmm1
  jae    L338
  sub    $0x1,%r15d
  sub    $0x8,%rax
  cmp    $0xffffffff,%r15d
  jne    L1039
L277:
  movslq %r15d,%rax
  mov    0x50(%rsp),%rcx
  lea    (%rcx,%rax,8),%r14
  mov    $0x0,%r13d
  pxor   %xmm3,%xmm3
  movsd  D76(%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    L877
L1154:
  mov    %ebp,%r15d
  pxor   %xmm0,%xmm0
  comisd 0x8(%rsp),%xmm0
  ja     L33
L968:
  subl   $0x1,0x3c(%rsp)
  mov    0x3c(%rsp),%eax
  subq   $0x8,0x68(%rsp)
  cmp    $0xffffffff,%eax
  je     L686
L182:
  mov    0x58(%rsp),%rax
  add    0x68(%rsp),%rax
  mov    %rax,0x90(%rsp)
  movl   $0x32,0x88(%rsp)
  mov    %r15d,%ebp
  jmp    L1157
L33:
  movsd  0x8(%rsp),%xmm0
  xorpd  D170(%rip),%xmm0
  mov    0x58(%rsp),%rax
  mov    0x68(%rsp),%rdi
  movsd  %xmm0,(%rax,%rdi,1)
  test   %ebp,%ebp
  jle    L968
  mov    0x48(%rsp),%rax
  add    %rdi,%rax
  mov    $0x0,%edx
  movq   D170(%rip),%xmm1
L388:
  movsd  (%rax),%xmm0
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edx
  add    0x80(%rsp),%rax
  cmp    %edx,%r15d
  jne    L388
  jmp    L968
L686:
  mov    %ebx,%r14d
L293:
  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    L516
L338:
  cmp    %r15d,0x3c(%rsp)
  jge    L277
  mov    0x58(%rsp),%rax
  mov    0x68(%rsp),%rsi
  movsd  (%rax,%rsi,1),%xmm7
  movsd  %xmm7,0x8(%rsp)
  jmp    L965
L95:
  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    L182
L840:
  mov    0x30(%rsp),%rax
  movsd  (%rax),%xmm0
  movq   D259(%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    L467
L565:
  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     L1085
  movsd  %xmm0,0x8(%rsp)
  jmp    L856
L592:
  ucomisd D162(%rip),%xmm2
  jp     L616
  je     L1312
  jmp    L616
```

tool_calls: name: read_data
arguments: tag: D136
type: string
name: read_data
arguments: tag: D110
type: string
name: read_data
arguments: tag: D170
type: f32[4]
name: read_data
arguments: tag: D259
type: qword[2]
name: read_data
arguments: tag: D162
type: f32[2]
name: read_data
arguments: tag: D76
type: f64
name: read_data
arguments: tag: D141
type: string
name: read_data
arguments: tag: D53
type: f64

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


tool: D110: Retry By Transposing the Input Matrix

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

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

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

tool: D76: 1

tool: D141: Convergence Not Achieved 


tool: D53: 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;
}
```