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

```asm
<qrupdate>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%rbp
  mov    %esi,%r13d
  mov    %rdx,%r15
  mov    %rcx,0x10(%rsp)
  lea    -0x1(%rsi),%ecx
  mov    %ecx,0x8(%rsp)
  movslq %ecx,%rax
  lea    0x0(,%rax,8),%rsi
  mov    %rsi,0x18(%rsp)
  pxor   %xmm0,%xmm0
  ucomisd (%rdx,%rax,8),%xmm0
  setnp  %al
  mov    $0x0,%edx
  cmovne %edx,%eax
  test   %al,%al
  je     L1
  test   %ecx,%ecx
  jle    L1
  lea    -0x2(%r13),%eax
  cltq
  mov    $0x0,%esi
L135:
  mov    %eax,0x8(%rsp)
  ucomisd (%r15,%rax,8),%xmm0
  setnp  %dl
  cmovne %esi,%edx
  test   %eax,%eax
  setg   %cl
  sub    $0x1,%rax
  test   %cl,%dl
  jne    L135
L1:
  mov    0x8(%rsp),%eax
  mov    %eax,%r12d
  sub    $0x1,%r12d
  js     L31
  cltq
  lea    (%r15,%rax,8),%rbx
  jmp    L45
L21:
  movsd  (%r14),%xmm1
  mulsd  %xmm0,%xmm0
  mulsd  %xmm1,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm3,%xmm3
  ucomisd %xmm0,%xmm3
  ja     L105
  sqrtsd %xmm0,%xmm0
L72:
  movsd  %xmm0,-0x8(%r14)
  sub    $0x1,%r12d
  sub    $0x8,%rbx
  cmp    $0xffffffff,%r12d
  je     L31
L45:
  mov    %rbx,%r14
  movsd  (%rbx),%xmm1
  xorpd  D20(%rip),%xmm1
  movsd  -0x8(%rbx),%xmm0
  mov    %r12d,%edx
  mov    %r13d,%esi
  mov    %rbp,%rdi
  call   <jrotate@plt>
  movsd  -0x8(%rbx),%xmm0
  pxor   %xmm2,%xmm2
  ucomisd %xmm2,%xmm0
  jp     L21
  jne    L21
  movsd  (%rbx),%xmm0
  andpd  D29(%rip),%xmm0
  jmp    L72
L105:
  call   <sqrt@plt>
  jmp    L72
L31:
  test   %r13d,%r13d
  jle    L35
  mov    %r13d,%edx
  mov    $0x0,%eax
L128:
  movsd  (%r15),%xmm0
  mov    0x10(%rsp),%rdi
  mulsd  (%rdi,%rax,8),%xmm0
  addsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L128
L35:
  cmpl   $0x0,0x8(%rsp)
  jle    L122
  mov    0x18(%rsp),%rax
  lea    0x10(%rax),%rsi
  mov    %rsi,0x8(%rsp)
  lea    0x8(%rbp,%rax,1),%r12
  movslq %r13d,%r15
  neg    %r15
  shl    $0x3,%r15
  mov    %r13d,%r14d
  mov    $0x0,%ebx
L8:
  movsd  (%r12),%xmm1
  xorpd  D20(%rip),%xmm1
  movsd  (%r12,%r15,1),%xmm0
  mov    %ebx,%edx
  mov    %r13d,%esi
  mov    %rbp,%rdi
  call   <jrotate@plt>
  add    $0x1,%ebx
  add    0x8(%rsp),%r12
  mov    %r14d,%eax
  add    %r13d,%r14d
  cmp    %eax,%ebx
  jl     L8
L122:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D20
type: byte[16]
name: disassemble_data
arguments: data_label: D29
type: qword[2]

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

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

assistant: ```c
void qrupdate(double *R, int N, double *u, double *v) {
  int i, j, k;
  k = N - 1;
  while (u[k] == 0 && k > 0) {
    k--;
  }
  for (i = k - 1; i >= 0; --i) {
    jrotate(R, N, u[i], -u[i + 1], i);
    if (u[i] == 0) {
      u[i] = fabs(u[i + 1]);
    } else {
      u[i] = sqrt(u[i] * u[i] + u[i + 1] * u[i + 1]);
    }
  }
  for (i = 0; i < N; ++i) {
    R[i] += u[0] * v[i];
  }
  for (i = 0; i <= k - 1; ++i) {
    j = i * N;
    k = j + N;
    jrotate(R, N, R[j + i], -R[k + i], i);
  }
}
```