user: Demonstrate the C code that generates the assembly output below:

```asm
<d1updt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %edi,-0x54(%rbp)
  mov    %esi,-0x58(%rbp)
  mov    %rdx,-0x60(%rbp)
  mov    %rcx,-0x68(%rbp)
  mov    %r8,-0x70(%rbp)
  mov    %r9,-0x78(%rbp)
  mov    -0x58(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  movsd  D50(%rip),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x54(%rbp),%eax
  add    %eax,%eax
  sub    -0x58(%rbp),%eax
  add    $0x1,%eax
  imul   -0x58(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%ecx
  mov    -0x54(%rbp),%eax
  sub    -0x58(%rbp),%eax
  mov    %eax,%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  sub    $0x1,%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  jmp    L17
L26:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rax,%rdx
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x48(%rbp)
  addl   $0x1,-0x50(%rbp)
L17:
  mov    -0x50(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L26
  cmpl   $0x0,-0x3c(%rbp)
  jle    L76
  movl   $0x1,-0x40(%rbp)
  jmp    L87
L274:
  mov    -0x58(%rbp),%eax
  sub    -0x40(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x54(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  sub    %eax,-0x44(%rbp)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L187
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  je     L314
L187:
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L171
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  jmp    L104
L171:
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movq   D168(%rip),%xmm1
  xorpd  %xmm0,%xmm1
L104:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm2,%xmm2
  comisd %xmm2,%xmm0
  jb     L13
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  jmp    L295
L13:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movq   D168(%rip),%xmm2
  xorpd  %xmm2,%xmm0
L295:
  comisd %xmm1,%xmm0
  jbe    L343
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  D228(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D228(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  movsd  D39(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x30(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  D30(%rip),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x38(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L4
  movsd  -0x38(%rbp),%xmm0
  jmp    L35
L4:
  movsd  -0x38(%rbp),%xmm0
  movq   D168(%rip),%xmm1
  xorpd  %xmm1,%xmm0
L35:
  mulsd  -0x20(%rbp),%xmm0
  movsd  D30(%rip),%xmm1
  comisd %xmm1,%xmm0
  jbe    L27
  movsd  D30(%rip),%xmm0
  divsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  jmp    L27
L343:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  D228(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D228(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  movsd  D39(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x38(%rbp),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
L27:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x30(%rbp),%xmm1
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x38(%rbp),%xmm0
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  jmp    L7
L89:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x38(%rbp),%xmm0
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mulsd  -0x30(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x30(%rbp),%xmm1
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x38(%rbp),%xmm0
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x48(%rbp)
  addl   $0x1,-0x50(%rbp)
L7:
  mov    -0x50(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L89
  jmp    L72
L314:
  nop
L72:
  addl   $0x1,-0x40(%rbp)
L87:
  mov    -0x40(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jle    L274
L76:
  movl   $0x0,-0x50(%rbp)
  jmp    L105
L292:
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x50(%rbp)
L105:
  mov    -0x50(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L292
  cmpl   $0x0,-0x3c(%rbp)
  jle    L289
  movl   $0x0,-0x4c(%rbp)
  jmp    L59
L139:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L95
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  je     L41
L95:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L58
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  jmp    L28
L58:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movq   D168(%rip),%xmm1
  xorpd  %xmm0,%xmm1
L28:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm2,%xmm2
  comisd %xmm2,%xmm0
  jb     L351
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  jmp    L91
L351:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movq   D168(%rip),%xmm2
  xorpd  %xmm2,%xmm0
L91:
  comisd %xmm1,%xmm0
  jbe    L321
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  D228(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D228(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  movsd  D39(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x30(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  D30(%rip),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x38(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L309
  movsd  -0x38(%rbp),%xmm0
  jmp    L174
L309:
  movsd  -0x38(%rbp),%xmm0
  movq   D168(%rip),%xmm1
  xorpd  %xmm1,%xmm0
L174:
  mulsd  -0x20(%rbp),%xmm0
  movsd  D30(%rip),%xmm1
  comisd %xmm1,%xmm0
  jbe    L160
  movsd  D30(%rip),%xmm0
  divsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  jmp    L160
L321:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  D228(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D228(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  movsd  D39(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x38(%rbp),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
L160:
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  jmp    L32
L107:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x30(%rbp),%xmm0
  movq   D168(%rip),%xmm1
  xorpd  %xmm0,%xmm1
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x38(%rbp),%xmm0
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x48(%rbp)
  addl   $0x1,-0x50(%rbp)
L32:
  mov    -0x50(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L107
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,(%rax)
L41:
  mov    -0x54(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  add    %eax,-0x44(%rbp)
  addl   $0x1,-0x4c(%rbp)
L59:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L139
L289:
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  jmp    L73
L64:
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x60(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x48(%rbp)
  addl   $0x1,-0x50(%rbp)
L73:
  mov    -0x50(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L64
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D50
type: byte[8]
name: disassemble_data
arguments: tag: D168
type: f32[2]
name: disassemble_data
arguments: tag: D228
type: f64
name: disassemble_data
arguments: tag: D39
type: f64
name: disassemble_data
arguments: tag: D30
type: f64

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

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

tool: D228: 0.25

tool: D39: 0.5

tool: D30: 1

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