user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<sv2u1v>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x28(%rsp)
  mov    %edx,0x3c(%rsp)
  mov    %rcx,0x30(%rsp)
  cmp    %r8d,%edx
  jl     L125
  mov    %rdi,%r12
  lea    (%rdx,%r8,1),%edi
  mov    %rsi,%r15
  mov    $0x8,%esi
  movslq %edi,%rdi
  mov    %edx,%ebx
  mov    %r8d,%r13d
  call   <calloc@plt>
  mov    %rax,%rbp
  movslq %ebx,%rax
  mov    %rax,%rcx
  lea    0x0(%rbp,%rax,8),%rax
  mov    %rax,0x20(%rsp)
  test   %r13d,%r13d
  jle    L284
  movslq %r13d,%rbx
  mov    %r15,%rdi
  mov    %r12,0x8(%rsp)
  lea    -0x1(%rcx),%r14d
  shl    $0x3,%rbx
  mov    %r13d,0x40(%rsp)
  mov    %r13d,%r8d
  mov    %r12,%r10
  lea    0x8(%rbx),%rax
  movq   D86(%rip),%xmm7
  pxor   %xmm2,%xmm2
  movsd  D56(%rip),%xmm5
  mov    %rax,0x10(%rsp)
  movq   D23(%rip),%xmm6
  mov    %rax,%r15
  jmp    L296
  xchg   %ax,%ax
L624:
  lea    -0x1(%r14),%r14d
  jne    L697
  movsd  (%rdi),%xmm0
  movsd  %xmm0,(%r10)
L697:
  add    %r15,%rdi
  add    $0x8,%r10
  sub    $0x1,%r8d
  je     L222
L296:
  lea    0x1(%r14),%eax
  cmp    $0x1,%eax
  jle    L624
  mov    %r14d,%eax
  lea    0x8(%rbp),%r13
  movapd %xmm2,%xmm1
  mov    %rdi,%rdx
  lea    0x0(%r13,%rax,8),%r12
  mov    %rbp,%rax
  nopl   0x0(%rax,%rax,1)
L631:
  movsd  (%rdx),%xmm0
  add    $0x8,%rax
  add    %rbx,%rdx
  movsd  %xmm0,-0x8(%rax)
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  cmp    %rax,%r12
  jne    L631
  comisd %xmm2,%xmm1
  ja     L278
  mov    D86(%rip),%rax
  movapd %xmm2,%xmm4
  sub    $0x1,%r14d
  movq   %rax,%xmm8
L279:
  movsd  %xmm4,(%rdi)
  add    $0x8,%r10
  add    %r15,%rdi
  movsd  %xmm8,-0x8(%r10)
  sub    $0x1,%r8d
  jne    L296
L222:
  mov    0x40(%rsp),%esi
  mov    0x8(%rsp),%r11
  xor    %edx,%edx
  mov    0x30(%rsp),%rcx
  mov    0x28(%rsp),%rdi
  lea    -0x1(%rsi),%eax
  mov    0x18(%rsp),%r9
  mov    %rsi,%r13
  lea    0x0(,%rsi,8),%r8
  mov    %rax,0x40(%rsp)
  nop
L293:
  xor    %eax,%eax
  jmp    L301
  nopl   0x0(%rax)
L681:
  movsd  (%rdi,%rax,8),%xmm0
L219:
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rsi
  je     L665
L301:
  movapd %xmm2,%xmm0
  cmp    %eax,%edx
  jg     L219
  jne    L681
  movsd  (%r9,%rdx,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L301
  nopl   0x0(%rax)
L665:
  add    $0x1,%rdx
  add    %r8,%rcx
  add    %r8,%rdi
  cmp    %rdx,%rsi
  jne    L293
  mov    0x28(%rsp),%rdi
  mov    0x3c(%rsp),%esi
  mov    %r13d,%edx
  xor    %eax,%eax
  mov    %r11,0x48(%rsp)
  mov    %r13d,%r12d
  xor    %r15d,%r15d
  call   <atou1@plt>
  lea    -0x2(%r13),%eax
  mov    %r13d,%edi
  pxor   %xmm2,%xmm2
  movq   D86(%rip),%xmm7
  movq   D23(%rip),%xmm6
  mov    %eax,0x8(%rsp)
  imul   %r13d,%edi
  mov    0x30(%rsp),%r14
  mov    0x48(%rsp),%r11
  movapd %xmm7,%xmm9
  movapd %xmm6,%xmm8
  nopl   0x0(%rax)
L526:
  cmp    %r12d,%r13d
  je     L464
  cmp    $0x1,%r12d
  jg     L659
L464:
  cmp    $0x1,%r12d
  je     L652
  lea    -0x1(%r12),%r8d
  cmp    $0x1,%r8d
  jg     L249
L556:
  mov    0x10(%rsp),%rax
  lea    (%r14,%rax,1),%r9
  jne    L133
  movsd  0x8(%r14),%xmm0
  mov    0x20(%rsp),%rax
  mov    %r9,%r14
  sub    %r13d,%edi
  mov    $0x1,%r12d
  subl   $0x1,0x8(%rsp)
  movsd  %xmm0,(%rax,%r15,1)
  add    $0x8,%r15
  cmp    %r12d,%r13d
  je     L464
  cmp    $0x1,%r12d
  jle    L464
L659:
  mov    %r14,%rdx
  xor    %eax,%eax
  movapd %xmm2,%xmm1
  nopl   (%rax)
L446:
  movsd  (%rdx),%xmm0
  add    %rbx,%rdx
  movsd  %xmm0,0x0(%rbp,%rax,8)
  mulsd  %xmm0,%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm1
  cmp    %eax,%r12d
  jg     L446
  comisd %xmm2,%xmm1
  movapd %xmm2,%xmm4
  movsd  D86(%rip),%xmm10
  ja     L64
L303:
  mov    0x18(%rsp),%rax
  lea    -0x1(%r12),%r8d
  movsd  %xmm4,(%r14)
  movsd  %xmm10,(%rax,%r15,1)
  cmp    $0x1,%r8d
  jle    L556
L249:
  mov    0x8(%rsp),%esi
  lea    0x8(%r14),%rax
  movapd %xmm2,%xmm1
  lea    0x10(%r14,%rsi,8),%rdx
  nopl   (%rax)
L458:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  cmp    %rdx,%rax
  jne    L458
  comisd %xmm2,%xmm1
  ja     L481
  mov    0x10(%rsp),%rax
  movsd  D86(%rip),%xmm5
  movapd %xmm2,%xmm4
  lea    (%r14,%rax,1),%r9
L735:
  mov    0x20(%rsp),%rax
  movsd  %xmm4,0x8(%r14)
  movsd  %xmm5,(%rax,%r15,1)
L133:
  subl   $0x1,0x8(%rsp)
  mov    %r8d,%r12d
  mov    %r9,%r14
  sub    %r13d,%edi
  add    $0x8,%r15
  test   %r8d,%r8d
  jne    L526
  mov    0x30(%rsp),%r15
  mov    %r13d,%esi
  xor    %eax,%eax
  mov    %r11,0x8(%rsp)
  mov    %r15,%rdi
  call   <atovm@plt>
  mov    0x18(%rsp),%r14
  mov    0x3c(%rsp),%ecx
  xor    %eax,%eax
  mov    0x20(%rsp),%rsi
  mov    0x28(%rsp),%rdx
  mov    %r13d,%r9d
  mov    %r15,%r8
  mov    %r14,%rdi
  call   <qrbdu1@plt>
  mov    0x40(%rsp),%rdi
  mov    0x8(%rsp),%r11
  mov    %r15,%rcx
  movq   D86(%rip),%xmm1
  pxor   %xmm2,%xmm2
  lea    0x8(%r14,%rdi,8),%rsi
  jmp    L58
  nopw   0x0(%rax,%rax,1)
L60:
  add    $0x8,%r11
  add    $0x8,%rcx
  cmp    %r11,%rsi
  je     L505
L58:
  movsd  (%r11),%xmm0
  comisd %xmm0,%xmm2
  jbe    L60
  xorpd  %xmm1,%xmm0
  mov    %rcx,%rax
  xor    %edx,%edx
  movsd  %xmm0,(%r11)
  cs nopw 0x0(%rax,%rax,1)
L364:
  movsd  (%rax),%xmm0
  add    $0x1,%edx
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    %rbx,%rax
  cmp    %edx,%r13d
  jne    L364
  add    $0x8,%r11
  add    $0x8,%rcx
  cmp    %r11,%rsi
  jne    L58
  nopl   0x0(%rax)
L505:
  mov    %rbp,%rdi
  call   <free@plt>
  xor    %eax,%eax
L574:
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L652:
  mov    0x18(%rsp),%rax
  movsd  (%r14),%xmm0
  xor    %r8d,%r8d
  movsd  %xmm0,(%rax,%r15,1)
  mov    0x10(%rsp),%rax
  lea    (%r14,%rax,1),%r9
  jmp    L133
L278:
  ucomisd %xmm1,%xmm2
  ja     L212
  movapd %xmm1,%xmm4
  sqrtsd %xmm4,%xmm4
L633:
  movsd  (%rdi),%xmm0
  movapd %xmm4,%xmm8
  xorpd  %xmm7,%xmm8
  comisd %xmm0,%xmm2
  ja     L549
L190:
  movapd %xmm0,%xmm3
  movapd %xmm5,%xmm10
  movapd %xmm5,%xmm9
  divsd  %xmm4,%xmm0
  mulsd  %xmm4,%xmm3
  addsd  %xmm3,%xmm1
  movsd  0x0(%rbp),%xmm3
  addsd  %xmm4,%xmm3
  movsd  %xmm3,0x0(%rbp)
  divsd  %xmm1,%xmm10
  movapd %xmm0,%xmm4
  andpd  %xmm6,%xmm4
  addsd  %xmm5,%xmm4
  divsd  %xmm3,%xmm9
  cmp    $0x1,%r8d
  je     L239
  lea    -0x2(%r8),%eax
  lea    0x8(%rdi),%r9
  lea    0x10(%rdi,%rax,8),%r11
  nopl   0x0(%rax,%rax,1)
L14:
  mov    %r9,%rdx
  mov    %r13,%rcx
  mov    %r13,%rax
  mov    %r9,%rsi
  movapd %xmm3,%xmm0
  movapd %xmm2,%xmm1
  jmp    L727
  cs nopw 0x0(%rax,%rax,1)
L397:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
L727:
  mulsd  (%rsi),%xmm0
  add    %rbx,%rsi
  addsd  %xmm0,%xmm1
  cmp    %rax,%r12
  jne    L397
  mulsd  %xmm10,%xmm1
  movapd %xmm3,%xmm0
  movapd %xmm1,%xmm11
  jmp    L353
  nopl   0x0(%rax,%rax,1)
L76:
  movsd  (%rcx),%xmm0
  add    $0x8,%rcx
L353:
  mulsd  %xmm11,%xmm0
  movsd  (%rdx),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rdx)
  add    %rbx,%rdx
  cmp    %rcx,%rax
  jne    L76
  add    $0x8,%r9
  cmp    %r9,%r11
  jne    L14
L239:
  lea    -0x1(%r14),%eax
  mov    %rax,%r14
  lea    0x10(%rbp,%rax,8),%rdx
  mov    %rdi,%rax
  nopl   0x0(%rax)
L195:
  movsd  0x0(%r13),%xmm0
  add    %rbx,%rax
  add    $0x8,%r13
  mulsd  %xmm9,%xmm0
  movsd  %xmm0,(%rax)
  cmp    %r13,%rdx
  jne    L195
  jmp    L279
L481:
  ucomisd %xmm1,%xmm2
  ja     L637
  movapd %xmm1,%xmm3
  sqrtsd %xmm3,%xmm3
L589:
  movsd  0x8(%r14),%xmm0
  movapd %xmm3,%xmm5
  xorpd  %xmm7,%xmm5
  comisd %xmm0,%xmm2
  ja     L238
L435:
  movapd %xmm0,%xmm4
  movapd %xmm0,%xmm10
  addsd  %xmm3,%xmm0
  mov    %r13d,%r10d
  divsd  %xmm3,%xmm4
  mov    0x10(%rsp),%rax
  shl    $0x3,%rsi
  movsd  D56(%rip),%xmm11
  mulsd  %xmm3,%xmm10
  lea    (%r14,%rax,1),%r9
  movsd  %xmm0,0x8(%r14)
  mov    %r9,%rcx
  addsd  %xmm10,%xmm1
  movapd %xmm11,%xmm10
  divsd  %xmm1,%xmm10
  andpd  %xmm6,%xmm4
  addsd  %xmm11,%xmm4
  divsd  %xmm0,%xmm11
  cmp    %edi,%r13d
  jge    L85
  nopl   0x0(%rax)
L442:
  movapd %xmm0,%xmm1
  xor    %edx,%edx
  movapd %xmm2,%xmm3
  jmp    L710
  nopl   0x0(%rax)
L475:
  movsd  0x10(%r14,%rdx,1),%xmm1
  add    $0x8,%rdx
L710:
  mulsd  (%rcx,%rdx,1),%xmm1
  addsd  %xmm1,%xmm3
  cmp    %rdx,%rsi
  jne    L475
  mulsd  %xmm10,%xmm3
  xor    %eax,%eax
  jmp    L420
  nopw   0x0(%rax,%rax,1)
L626:
  movsd  0x10(%r14,%rax,1),%xmm0
  add    $0x8,%rax
L420:
  mulsd  %xmm3,%xmm0
  movsd  (%rcx,%rax,1),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rcx,%rax,1)
  cmp    %rax,%rdx
  jne    L626
  add    %r13d,%r10d
  add    %rbx,%rcx
  cmp    %edi,%r10d
  jge    L85
  movsd  0x8(%r14),%xmm0
  jmp    L442
L85:
  lea    -0x3(%r12),%edx
  lea    0x10(%r14),%rax
  lea    0x18(%r14,%rdx,8),%rdx
  nopl   0x0(%rax,%rax,1)
L718:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  mulsd  %xmm11,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rdx,%rax
  jne    L718
  jmp    L735
L238:
  movq   %xmm3,%rax
  movapd %xmm5,%xmm3
  movq   %rax,%xmm5
  jmp    L435
L549:
  movq   %xmm4,%rax
  movapd %xmm8,%xmm4
  movq   %rax,%xmm8
  jmp    L190
L64:
  ucomisd %xmm1,%xmm2
  ja     L137
  movapd %xmm1,%xmm4
  sqrtsd %xmm4,%xmm4
L27:
  movsd  (%r14),%xmm0
  movapd %xmm4,%xmm10
  xorpd  %xmm9,%xmm10
  comisd %xmm0,%xmm2
  jbe    L77
  movq   %xmm4,%rax
  movapd %xmm10,%xmm4
  movq   %rax,%xmm10
L77:
  movapd %xmm0,%xmm3
  mov    0x8(%rsp),%eax
  lea    0x8(%r14),%rcx
  movsd  D56(%rip),%xmm11
  mulsd  %xmm4,%xmm3
  divsd  %xmm4,%xmm0
  movapd %xmm11,%xmm5
  lea    0x10(%r14,%rax,8),%rsi
  addsd  %xmm3,%xmm1
  movsd  0x0(%rbp),%xmm3
  addsd  %xmm4,%xmm3
  movsd  %xmm3,0x0(%rbp)
  divsd  %xmm1,%xmm5
  movapd %xmm0,%xmm4
  andpd  %xmm8,%xmm4
  addsd  %xmm11,%xmm4
  nopl   0x0(%rax)
L426:
  mov    %rcx,%rax
  movapd %xmm3,%xmm0
  mov    %rcx,%r8
  xor    %edx,%edx
  movapd %xmm2,%xmm1
  jmp    L214
  nopw   0x0(%rax,%rax,1)
L306:
  movsd  0x0(%rbp,%rdx,8),%xmm0
L214:
  mulsd  (%r8),%xmm0
  add    $0x1,%rdx
  add    %rbx,%r8
  addsd  %xmm0,%xmm1
  cmp    %edx,%r12d
  jg     L306
  mulsd  %xmm5,%xmm1
  xor    %edx,%edx
  movapd %xmm1,%xmm11
  movapd %xmm3,%xmm1
  jmp    L444
  nopl   0x0(%rax)
L59:
  movsd  0x0(%rbp,%rdx,8),%xmm1
L444:
  mulsd  %xmm11,%xmm1
  movsd  (%rax),%xmm0
  add    $0x1,%rdx
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    %rbx,%rax
  cmp    %edx,%r12d
  jg     L59
  add    $0x8,%rcx
  cmp    %rcx,%rsi
  jne    L426
  mov    0x28(%rsp),%rax
  mov    0x3c(%rsp),%esi
  xor    %ecx,%ecx
  lea    (%rax,%r15,1),%rdx
  mov    0x3c(%rsp),%eax
  test   %eax,%eax
  jle    L303
  nop
L492:
  movapd %xmm3,%xmm0
  xor    %eax,%eax
  movapd %xmm2,%xmm1
  jmp    L15
  nopl   0x0(%rax)
L302:
  movsd  0x0(%rbp,%rax,8),%xmm0
L15:
  mulsd  (%rdx,%rax,8),%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm1
  cmp    %eax,%r12d
  jg     L302
  mulsd  %xmm5,%xmm1
  xor    %eax,%eax
  movapd %xmm1,%xmm11
  movapd %xmm3,%xmm1
  jmp    L427
  nopl   0x0(%rax)
L720:
  movsd  0x0(%rbp,%rax,8),%xmm1
L427:
  mulsd  %xmm11,%xmm1
  movsd  (%rdx,%rax,8),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r12d
  jg     L720
  add    $0x1,%ecx
  add    %rbx,%rdx
  cmp    %ecx,%esi
  jne    L492
  jmp    L303
L284:
  mov    0x3c(%rsp),%r14d
  mov    0x28(%rsp),%r15
  mov    %r13d,%edx
  xor    %eax,%eax
  mov    %r14d,%esi
  mov    %r15,%rdi
  call   <atou1@plt>
  mov    0x30(%rsp),%rbx
  mov    %r13d,%esi
  xor    %eax,%eax
  mov    %rbx,%rdi
  call   <atovm@plt>
  mov    0x20(%rsp),%rsi
  mov    %r13d,%r9d
  mov    %rbx,%r8
  mov    0x18(%rsp),%rdi
  mov    %r14d,%ecx
  mov    %r15,%rdx
  xor    %eax,%eax
  call   <qrbdu1@plt>
  jmp    L505
L125:
  mov    $0xffffffff,%eax
  jmp    L574
L212:
  movapd %xmm1,%xmm0
  mov    %rdi,0x60(%rsp)
  mov    %r10,0x58(%rsp)
  mov    %r8d,0x50(%rsp)
  movsd  %xmm1,0x48(%rsp)
  call   <sqrt@plt>
  mov    D56(%rip),%rax
  mov    0x60(%rsp),%rdi
  pxor   %xmm2,%xmm2
  mov    0x58(%rsp),%r10
  mov    0x50(%rsp),%r8d
  movapd %xmm0,%xmm4
  movq   D23(%rip),%xmm6
  movsd  0x48(%rsp),%xmm1
  movq   %rax,%xmm5
  movq   D86(%rip),%xmm7
  jmp    L633
L137:
  movapd %xmm1,%xmm0
  mov    %r11,0x58(%rsp)
  mov    %edi,0x50(%rsp)
  movsd  %xmm1,0x48(%rsp)
  call   <sqrt@plt>
  mov    0x58(%rsp),%r11
  mov    0x50(%rsp),%edi
  pxor   %xmm2,%xmm2
  movq   D23(%rip),%xmm8
  movsd  0x48(%rsp),%xmm1
  movapd %xmm0,%xmm4
  movq   D86(%rip),%xmm9
  movapd %xmm8,%xmm6
  movapd %xmm9,%xmm7
  jmp    L27
L637:
  movapd %xmm1,%xmm0
  mov    %r11,0x68(%rsp)
  mov    %edi,0x60(%rsp)
  mov    %r8d,0x58(%rsp)
  mov    %rsi,0x50(%rsp)
  movsd  %xmm1,0x48(%rsp)
  call   <sqrt@plt>
  mov    0x68(%rsp),%r11
  mov    0x60(%rsp),%edi
  pxor   %xmm2,%xmm2
  mov    0x58(%rsp),%r8d
  mov    0x50(%rsp),%rsi
  movapd %xmm0,%xmm3
  movq   D23(%rip),%xmm8
  movsd  0x48(%rsp),%xmm1
  movq   D86(%rip),%xmm9
  movapd %xmm8,%xmm6
  movapd %xmm9,%xmm7
  jmp    L589
```

tool_calls: name: parse_data
arguments: data_tag: D86
datatype: f32[2]
name: parse_data
arguments: data_tag: D56
datatype: f64
name: parse_data
arguments: data_tag: D23
datatype: qword

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

tool: D56: 1

tool: D23: 9223372036854775807

assistant: ```c
int sv2u1v(double *d, double *a, int m, double *v, int n) {
  double *p, *p1, *q, *pp, *w, *e;
  double s, t, h, r, sv;
  int i, j, k, mm, nm, ms;
  if (m < n)
    return -1;
  w = (double *)calloc(m + n, sizeof(double));
  e = w + m;
  for (i = 0, mm = m, p = a; i < n; ++i, --mm, p += n + 1) {
    if (mm > 1) {
      sv = h = 0.;
      for (j = 0, q = p, s = 0.; j < mm; ++j, q += n) {
        w[j] = *q;
        s += *q * *q;
      }
      if (s > 0.) {
        h = sqrt(s);
        if (*p < 0.)
          h = -h;
        s += *p * h;
        s = 1. / s;
        t = 1. / (w[0] += h);
        sv = 1. + fabs(*p / h);
        for (k = 1, ms = n - i; k < ms; ++k) {
          for (j = 0, q = p + k, r = 0.; j < mm; q += n)
            r += w[j++] * *q;
          r = r * s;
          for (j = 0, q = p + k; j < mm; q += n)
            *q -= r * w[j++];
        }
        for (j = 1, q = p; j < mm;)
          *(q += n) = w[j++] * t;
      }
      *p = sv;
      d[i] = -h;
    }
    if (mm == 1)
      d[i] = *p;
  }
  for (i = 0, q = v, p = a; i < n; ++i) {
    for (j = 0; j < n; ++j, ++q, ++p) {
      if (j < i)
        *q = 0.;
      else if (j == i)
        *q = d[i];
      else
        *q = *p;
    }
  }
  atou1(a, m, n);
  for (i = 0, mm = n, nm = n - 1, p = v; i < n; ++i, --mm, --nm, p += n + 1) {
    if (i && mm > 1) {
      sv = h = 0.;
      for (j = 0, q = p, s = 0.; j < mm; ++j, q += n) {
        w[j] = *q;
        s += *q * *q;
      }
      if (s > 0.) {
        h = sqrt(s);
        if (*p < 0.)
          h = -h;
        s += *p * h;
        s = 1. / s;
        t = 1. / (w[0] += h);
        sv = 1. + fabs(*p / h);
        for (k = 1, ms = n - i; k < ms; ++k) {
          for (j = 0, q = p + k, r = 0.; j < mm; q += n)
            r += w[j++] * *q;
          for (j = 0, q = p + k, r *= s; j < mm; q += n)
            *q -= r * w[j++];
        }
        for (k = 0, p1 = a + i; k < m; ++k, p1 += n) {
          for (j = 0, q = p1, r = 0.; j < mm;)
            r += w[j++] * *q++;
          for (j = 0, q = p1, r *= s; j < mm;)
            *q++ -= r * w[j++];
        }
      }
      *p = sv;
      d[i] = -h;
    }
    if (mm == 1)
      d[i] = *p;
    p1 = p + 1;
    if (nm > 1) {
      sv = h = 0.;
      for (j = 0, q = p1, s = 0.; j < nm; ++j, ++q)
        s += *q * *q;
      if (s > 0.) {
        h = sqrt(s);
        if (*p1 < 0.)
          h = -h;
        sv = 1. + fabs(*p1 / h);
        s += *p1 * h;
        s = 1. / s;
        t = 1. / (*p1 += h);
        for (k = n, ms = n * (n - i); k < ms; k += n) {
          for (j = 0, q = p1, pp = p1 + k, r = 0.; j < nm; ++j)
            r += *q++ * *pp++;
          for (j = 0, q = p1, pp = p1 + k, r *= s; j < nm; ++j)
            *pp++ -= r * *q++;
        }
        for (j = 1, q = p1 + 1; j < nm; ++j)
          *q++ *= t;
      }
      *p1 = sv;
      e[i] = -h;
    }
    if (nm == 1)
      e[i] = *p1;
  }
  atovm(v, n);
  qrbdu1(d, e, a, m, v, n);
  for (i = 0; i < n; ++i) {
    if (d[i] < 0.) {
      d[i] = -d[i];
      for (j = 0, p = v + i; j < n; ++j, p += n)
        *p = -*p;
    }
  }
  free(w);
  return 0;
}
```