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

```asm
<Double_QR_Step>:
  endbr64
  movslq %ecx,%rcx
  push   %r15
  mov    %ecx,%eax
  push   %r14
  mov    %rcx,%r10
  shl    $0x3,%rcx
  imul   %r9d,%eax
  push   %r13
  push   %r12
  lea    -0x1(%rdx),%r12d
  push   %rbp
  push   %rbx
  cltq
  lea    (%rdi,%rax,8),%r15
  lea    (%r10,%r9,1),%eax
  sub    $0x68,%rsp
  movq   D3(%rip),%xmm6
  mov    %r8,0x20(%rsp)
  lea    (%r15,%rcx,1),%r8
  movsd  (%r8),%xmm3
  mov    %esi,0x50(%rsp)
  mov    %edx,%esi
  movslq %eax,%rdx
  add    %r9d,%eax
  mov    %rdi,0x18(%rsp)
  lea    (%r9,%r9,1),%edi
  movapd %xmm3,%xmm4
  cltq
  mov    %edi,0xc(%rsp)
  subsd  %xmm0,%xmm4
  mulsd  %xmm3,%xmm4
  addsd  0x8(%r15,%rdx,8),%xmm3
  subsd  %xmm0,%xmm3
  addsd  %xmm4,%xmm1
  divsd  (%r15,%rdx,8),%xmm1
  addsd  0x8(%r15,%rcx,1),%xmm1
  movsd  0x8(%r15,%rax,8),%xmm4
  movapd %xmm3,%xmm5
  andpd  %xmm6,%xmm5
  movapd %xmm1,%xmm0
  andpd  %xmm6,%xmm0
  addsd  %xmm5,%xmm0
  movapd %xmm4,%xmm5
  andpd  %xmm6,%xmm5
  addsd  %xmm5,%xmm0
  divsd  %xmm0,%xmm1
  divsd  %xmm0,%xmm3
  divsd  %xmm0,%xmm4
  cmp    %r10d,%r12d
  jl     L37
  movslq %r9d,%r13
  mov    %r10d,0x8(%rsp)
  mov    %r10d,%ebp
  lea    0x8(%rcx),%rbx
  movq   D9(%rip),%xmm8
  pxor   %xmm7,%xmm7
  lea    (%r9,%rdi,1),%r11d
  mov    %esi,%r10d
  lea    0x0(,%r13,8),%r14
  lea    0x8(%r14),%rax
  movapd %xmm8,%xmm9
  movapd %xmm8,%xmm10
  mov    %rax,0x10(%rsp)
  jmp    L58
  nopl   (%rax)
L87:
  add    $0x1,%ebp
  add    %r14,%r15
  add    0x10(%rsp),%r8
  mov    %rdx,%rbx
  cmp    %ebp,%r10d
  je     L37
L58:
  cmp    %ebp,0x8(%rsp)
  jge    L143
  cmp    %ebp,%r12d
  je     L105
  mov    0xc(%rsp),%eax
  add    %ebp,%eax
  cltq
  movsd  -0x8(%r15,%rax,8),%xmm4
  movapd %xmm4,%xmm12
  andpd  %xmm6,%xmm12
L83:
  lea    0x0(%rbp,%r9,1),%eax
  movsd  -0x8(%r8),%xmm5
  cltq
  movsd  -0x8(%r15,%rax,8),%xmm0
  movapd %xmm5,%xmm2
  andpd  %xmm6,%xmm2
  movapd %xmm0,%xmm11
  andpd  %xmm6,%xmm11
  addsd  %xmm11,%xmm2
  addsd  %xmm12,%xmm2
  ucomisd %xmm7,%xmm2
  jp     L6
  lea    0x8(%rbx),%rdx
  je     L87
L6:
  divsd  %xmm2,%xmm5
  movapd %xmm0,%xmm3
  divsd  %xmm2,%xmm3
  movapd %xmm5,%xmm1
  divsd  %xmm2,%xmm4
L143:
  movapd %xmm3,%xmm5
  movapd %xmm1,%xmm0
  mulsd  %xmm3,%xmm5
  mulsd  %xmm1,%xmm0
  addsd  %xmm5,%xmm0
  movapd %xmm4,%xmm5
  mulsd  %xmm4,%xmm5
  addsd  %xmm5,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L56
  sqrtsd %xmm0,%xmm0
L136:
  comisd %xmm1,%xmm7
  jbe    L199
  xorpd  %xmm10,%xmm0
L199:
  cmp    %ebp,0x8(%rsp)
  jge    L184
  movapd %xmm0,%xmm5
  xorpd  %xmm9,%xmm5
  mulsd  %xmm5,%xmm2
  movsd  %xmm2,-0x8(%r8)
L24:
  addsd  %xmm0,%xmm1
  movapd %xmm3,%xmm5
  movapd %xmm4,%xmm11
  divsd  %xmm0,%xmm5
  movapd %xmm1,%xmm2
  divsd  %xmm0,%xmm2
  divsd  %xmm0,%xmm11
  divsd  %xmm1,%xmm3
  divsd  %xmm1,%xmm4
  cmp    %ebp,%r9d
  jle    L145
  mov    0xc(%rsp),%eax
  lea    0x0(%rbp,%rax,1),%edx
  mov    %r8,%rax
  nopw   0x0(%rax,%rax,1)
L196:
  movsd  (%rax,%r13,8),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm3,%xmm1
  addsd  (%rax),%xmm1
  cmp    %ebp,%r12d
  je     L210
  movslq %edx,%rcx
  lea    (%r15,%rcx,8),%rcx
  movsd  (%rcx),%xmm0
  movapd %xmm0,%xmm12
  mulsd  %xmm4,%xmm12
  addsd  %xmm12,%xmm1
  movapd %xmm11,%xmm12
  mulsd  %xmm1,%xmm12
  subsd  %xmm12,%xmm0
  movsd  %xmm0,(%rcx)
  movsd  (%rax,%r13,8),%xmm0
L210:
  movapd %xmm1,%xmm12
  add    $0x1,%edx
  mulsd  %xmm5,%xmm12
  subsd  %xmm12,%xmm0
  movapd %xmm1,%xmm12
  mulsd  %xmm2,%xmm12
  movsd  %xmm0,(%rax,%r13,8)
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  subsd  %xmm12,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %edx,%r11d
  jne    L196
L145:
  lea    0x3(%rbp),%edi
  lea    0x8(%rbx),%rdx
  cmp    %r10d,%edi
  cmovg  %r10d,%edi
  test   %edi,%edi
  js     L130
  mov    0x18(%rsp),%rax
  lea    -0x8(%rbx),%rsi
  lea    0x8(%rbx),%rdx
  add    $0x1,%edi
  xor    %ecx,%ecx
  nop
L186:
  movsd  (%rax,%rbx,1),%xmm0
  movsd  (%rax,%rsi,1),%xmm1
  mulsd  %xmm2,%xmm1
  movapd %xmm0,%xmm12
  mulsd  %xmm5,%xmm12
  addsd  %xmm12,%xmm1
  cmp    %ebp,%r12d
  je     L69
  movsd  (%rax,%rdx,1),%xmm0
  movapd %xmm0,%xmm12
  mulsd  %xmm11,%xmm12
  addsd  %xmm12,%xmm1
  movapd %xmm4,%xmm12
  mulsd  %xmm1,%xmm12
  subsd  %xmm12,%xmm0
  movsd  %xmm0,(%rax,%rdx,1)
  movsd  (%rax,%rbx,1),%xmm0
L69:
  movapd %xmm1,%xmm12
  add    $0x1,%ecx
  mulsd  %xmm3,%xmm12
  subsd  %xmm12,%xmm0
  movsd  %xmm0,(%rax,%rbx,1)
  movsd  (%rax,%rsi,1),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax,%rsi,1)
  add    %r14,%rax
  cmp    %edi,%ecx
  jne    L186
L130:
  test   %r9d,%r9d
  jle    L87
  mov    0x20(%rsp),%rax
  lea    -0x8(%rbx),%rsi
  xor    %ecx,%ecx
  nop
L107:
  movsd  (%rax,%rbx,1),%xmm0
  movsd  (%rax,%rsi,1),%xmm1
  mulsd  %xmm2,%xmm1
  movapd %xmm0,%xmm12
  mulsd  %xmm5,%xmm12
  addsd  %xmm12,%xmm1
  cmp    %ebp,%r12d
  je     L197
  movsd  (%rax,%rdx,1),%xmm0
  movapd %xmm0,%xmm12
  mulsd  %xmm11,%xmm12
  addsd  %xmm12,%xmm1
  movapd %xmm4,%xmm12
  mulsd  %xmm1,%xmm12
  subsd  %xmm12,%xmm0
  movsd  %xmm0,(%rax,%rdx,1)
  movsd  (%rax,%rbx,1),%xmm0
L197:
  movapd %xmm1,%xmm12
  add    $0x1,%ecx
  mulsd  %xmm3,%xmm12
  subsd  %xmm12,%xmm0
  movsd  %xmm0,(%rax,%rbx,1)
  movsd  (%rax,%rsi,1),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax,%rsi,1)
  add    %r14,%rax
  cmp    %ecx,%r9d
  jne    L107
  jmp    L87
  nopl   0x0(%rax)
L105:
  movapd %xmm7,%xmm4
  movapd %xmm7,%xmm12
  jmp    L83
  cs nopw 0x0(%rax,%rax,1)
L184:
  mov    0x50(%rsp),%edi
  cmp    %edi,0x8(%rsp)
  je     L24
  movsd  -0x8(%r8),%xmm2
  xorpd  %xmm8,%xmm2
  movsd  %xmm2,-0x8(%r8)
  jmp    L24
  nopl   0x0(%rax)
L37:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L56:
  mov    %r11d,0x5c(%rsp)
  mov    %r9d,0x58(%rsp)
  mov    %r10d,0x54(%rsp)
  mov    %r8,0x48(%rsp)
  movsd  %xmm4,0x40(%rsp)
  movsd  %xmm3,0x38(%rsp)
  movsd  %xmm1,0x30(%rsp)
  movsd  %xmm2,0x28(%rsp)
  call   <sqrt@plt>
  mov    0x5c(%rsp),%r11d
  mov    0x58(%rsp),%r9d
  pxor   %xmm7,%xmm7
  movq   D9(%rip),%xmm10
  mov    0x54(%rsp),%r10d
  mov    0x48(%rsp),%r8
  movq   D3(%rip),%xmm6
  movsd  0x40(%rsp),%xmm4
  movapd %xmm10,%xmm9
  movapd %xmm10,%xmm8
  movsd  0x38(%rsp),%xmm3
  movsd  0x30(%rsp),%xmm1
  movsd  0x28(%rsp),%xmm2
  jmp    L136
```

tool_calls: name: unpack_data
arguments: data_tag: D3
data_type: qword
name: unpack_data
arguments: data_tag: D9
data_type: f32[2]

tool: D3: 9223372036854775807

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

assistant: ```c
void Double_QR_Step(double *H, int min_row, int max_row, int min_col, double trace, double det, double *S, int n) {
  double s, x, y, z;
  double a, b, c;
  double *pH;
  double *tH;
  double *pS;
  int i, j, k;
  int last_test_row_col = max_row - 1;
  k = min_col;
  pH = H + min_col * n;
  a = (pH[k] * (pH[k] - trace) + det) / pH[n + k] + pH[k + 1];
  b = pH[k] + pH[n + k + 1] - trace;
  c = pH[n + n + k + 1];
  s = fabs(a) + fabs(b) + fabs(c);
  a /= s;
  b /= s;
  c /= s;
  for (; k <= last_test_row_col; k++, pH += n) {
    if (k > min_col) {
      c = (k == last_test_row_col) ? 0.0 : pH[n + n + k - 1];
      x = fabs(pH[k - 1]) + fabs(pH[n + k - 1]) + fabs(c);
      if (x == 0.0)
        continue;
      a = pH[k - 1] / x;
      b = pH[n + k - 1] / x;
      c /= x;
    }
    s = sqrt(a * a + b * b + c * c);
    if (a < 0.0)
      s = -s;
    if (k > min_col)
      pH[k - 1] = -s * x;
    else if (min_row != min_col)
      pH[k - 1] = -pH[k - 1];
    a += s;
    x = a / s;
    y = b / s;
    z = c / s;
    b /= a;
    c /= a;
    for (j = k; j < n; j++) {
      a = pH[j] + b * pH[n + j];
      if (k != last_test_row_col) {
        a += c * pH[n + n + j];
        pH[n + n + j] -= a * z;
      }
      pH[n + j] -= a * y;
      pH[j] -= a * x;
    }
    j = k + 3;
    if (j > max_row)
      j = max_row;
    for (i = 0, tH = H; i <= j; i++, tH += n) {
      a = x * tH[k] + y * tH[k + 1];
      if (k != last_test_row_col) {
        a += z * tH[k + 2];
        tH[k + 2] -= a * c;
      }
      tH[k + 1] -= a * b;
      tH[k] -= a;
    }
    for (i = 0, pS = S; i < n; pS += n, i++) {
      a = x * pS[k] + y * pS[k + 1];
      if (k != last_test_row_col) {
        a += z * pS[k + 2];
        pS[k + 2] -= a * c;
      }
      pS[k + 1] -= a * b;
      pS[k] -= a;
    }
  };
}
```