user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<tqli>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,%r14
  mov    %rsi,%rbx
  mov    %edx,%r15d
  mov    %ecx,0x5c(%rsp)
  mov    %r8,0x38(%rsp)
  cmp    $0x1,%edx
  jle    L55
  mov    %rsi,%rax
  lea    -0x2(%rdx),%edx
  lea    0x8(%rsi,%rdx,8),%rdx
L8:
  movsd  0x8(%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L8
  movslq %r15d,%rax
  movq   $0x0,-0x8(%rbx,%rax,8)
L26:
  movq   $0x1,0x40(%rsp)
  mov    %rbx,%r12
  mov    %r15d,%ebx
  mov    %r14,%r15
  jmp    L136
L55:
  movslq %edx,%rax
  movq   $0x0,-0x8(%rsi,%rax,8)
  je     L26
L58:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L146:
  xorpd  D22(%rip),%xmm0
  jmp    L90
L56:
  add    %r15,%rax
  movsd  (%rax),%xmm0
  subsd  0x10(%rsp),%xmm0
  movsd  %xmm0,(%rax)
  mov    0x48(%rsp),%rax
  movq   $0x0,-0x8(%r12,%rax,1)
  jmp    L135
L188:
  sub    $0x1,%r13
  mov    0x30(%rsp),%rax
  add    %rax,%r14
  add    %rax,%rbp
  cmp    %r13d,0x2c(%rsp)
  jg     L7
L53:
  movsd  -0x8(%r12,%r13,8),%xmm0
  movapd %xmm3,%xmm5
  mulsd  %xmm0,%xmm5
  movsd  %xmm5,0x18(%rsp)
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,0x20(%rsp)
  movsd  0x8(%rsp),%xmm1
  movapd %xmm5,%xmm0
  call   <pythag@plt>
  lea    0x0(,%r13,8),%rax
  movsd  %xmm0,(%r12,%r13,8)
  pxor   %xmm5,%xmm5
  ucomisd %xmm5,%xmm0
  jp     L25
  je     L56
L25:
  movsd  0x18(%rsp),%xmm3
  divsd  %xmm0,%xmm3
  movsd  0x8(%rsp),%xmm2
  divsd  %xmm0,%xmm2
  movsd  (%r15,%r13,8),%xmm1
  subsd  0x10(%rsp),%xmm1
  movsd  -0x8(%r15,%r13,8),%xmm0
  subsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm0
  movapd %xmm2,%xmm4
  addsd  %xmm2,%xmm4
  movsd  0x20(%rsp),%xmm7
  mulsd  %xmm7,%xmm4
  addsd  %xmm4,%xmm0
  movapd %xmm3,%xmm6
  mulsd  %xmm0,%xmm6
  movsd  %xmm6,0x10(%rsp)
  addsd  %xmm6,%xmm1
  movsd  %xmm1,(%r15,%r13,8)
  mulsd  %xmm2,%xmm0
  subsd  %xmm7,%xmm0
  movsd  %xmm0,0x8(%rsp)
  mov    0x38(%rsp),%rax
  lea    (%rax,%rbp,8),%rax
  mov    $0x1,%edx
  mov    %r14,%rcx
  sub    %rbp,%rcx
L24:
  movsd  (%rax,%rcx,8),%xmm0
  movapd %xmm3,%xmm1
  mulsd  (%rax),%xmm1
  movapd %xmm2,%xmm4
  mulsd  %xmm0,%xmm4
  addsd  %xmm4,%xmm1
  movsd  %xmm1,(%rax,%rcx,8)
  movapd %xmm2,%xmm1
  mulsd  (%rax),%xmm1
  mulsd  %xmm3,%xmm0
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  add    $0x1,%edx
  add    $0x8,%rax
  cmp    %edx,%ebx
  jge    L24
  jmp    L188
L61:
  pxor   %xmm5,%xmm5
  movsd  %xmm5,0x10(%rsp)
L7:
  mov    0x40(%rsp),%rax
  movsd  -0x8(%r15,%rax,8),%xmm0
  subsd  0x10(%rsp),%xmm0
  movsd  %xmm0,-0x8(%r15,%rax,8)
  movsd  0x8(%rsp),%xmm6
  movsd  %xmm6,-0x8(%r12,%rax,8)
  mov    0x48(%rsp),%rax
  movq   $0x0,-0x8(%r12,%rax,1)
L135:
  mov    0x40(%rsp),%rax
L127:
  mov    %eax,%ebp
  cmp    %eax,%ebx
  jle    L65
  movsd  -0x8(%r15,%rax,8),%xmm0
  andpd  D14(%rip),%xmm0
  movsd  (%r15,%rax,8),%xmm1
  andpd  D14(%rip),%xmm1
  addsd  %xmm1,%xmm0
  movsd  -0x8(%r12,%rax,8),%xmm1
  andpd  D14(%rip),%xmm1
  addsd  %xmm0,%xmm1
  add    $0x1,%rax
  ucomisd %xmm0,%xmm1
  jp     L127
  jne    L127
L65:
  mov    0x40(%rsp),%r14
  mov    %r14d,0x2c(%rsp)
  cmp    %r14d,%ebp
  je     L147
  mov    0x58(%rsp),%r13d
  cmp    $0x1d,%r13d
  setle  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  add    $0x1,%r13d
  mov    %r13d,0x58(%rsp)
  mov    0x50(%rsp),%rax
  movsd  (%rax),%xmm0
  subsd  -0x8(%r15,%r14,8),%xmm0
  movapd %xmm0,%xmm1
  movsd  -0x8(%r12,%r14,8),%xmm0
  addsd  %xmm0,%xmm0
  divsd  %xmm0,%xmm1
  movapd %xmm1,%xmm6
  movsd  D51(%rip),%xmm1
  movsd  %xmm6,0x8(%rsp)
  movapd %xmm6,%xmm0
  call   <pythag@plt>
  movslq %ebp,%rax
  shl    $0x3,%rax
  mov    %rax,0x48(%rsp)
  movsd  -0x8(%r15,%rax,1),%xmm2
  subsd  -0x8(%r15,%r14,8),%xmm2
  movsd  -0x8(%r12,%r14,8),%xmm1
  pxor   %xmm3,%xmm3
  comisd 0x8(%rsp),%xmm3
  ja     L146
L90:
  addsd  0x8(%rsp),%xmm0
  divsd  %xmm0,%xmm1
  addsd  %xmm1,%xmm2
  movsd  %xmm2,0x8(%rsp)
  sub    $0x1,%ebp
  cmp    0x2c(%rsp),%ebp
  jl     L61
  movslq %ebp,%r13
  mov    0x5c(%rsp),%esi
  imul   %esi,%ebp
  mov    %esi,%eax
  neg    %eax
  cltq
  mov    %rax,0x30(%rsp)
  movslq %ebp,%r14
  sub    %esi,%ebp
  movslq %ebp,%rbp
  movsd  D51(%rip),%xmm3
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x10(%rsp)
  movapd %xmm3,%xmm2
  jmp    L53
L147:
  addq   $0x1,0x40(%rsp)
  mov    0x40(%rsp),%rax
  cmp    %eax,%ebx
  jl     L58
L136:
  mov    0x40(%rsp),%eax
  add    $0x1,%eax
  cltq
  lea    -0x8(%r15,%rax,8),%rax
  mov    %rax,0x50(%rsp)
  movl   $0x0,0x58(%rsp)
  jmp    L135
```

tool_calls: name: unpack_data
arguments: tag: D22
type_infered: f32[4]
name: unpack_data
arguments: tag: D14
type_infered: qword[2]
name: unpack_data
arguments: tag: D51
type_infered: f64

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

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

tool: D51: 1

assistant: ```c
void tqli(double *d, double *e, int n, int np, double *z) {
  int i = 0, iter = 0, k = 0, l = 0, m = 0;
  double b = 0, c = 0, dd = 0, f = 0, g = 0, p = 0, r = 0, s = 0;
  for (i = 2; i <= n; i++)
    e[i - 1 - 1] = e[i - 1];
  e[n - 1] = 0;
  for (l = 1; l <= n; l++) {
    iter = 0;
  labelExtra:
    for (m = l; (m < n); m++) {
      dd = fabs(d[m - 1]) + fabs(d[m + 1 - 1]);
      if (fabs(e[m - 1]) + dd == dd)
        break;
    }
    if (m != l) {
      assert(iter < 30);
      iter++;
      g = (d[l + 1 - 1] - d[l - 1]) / (2 * e[l - 1]);
      r = pythag(g, 1.);
      g = d[m - 1] - d[l - 1] + e[l - 1] / (g + (g < 0 ? -r : r));
      s = 1;
      c = 1;
      p = 0;
      for (i = m - 1; i >= l; i--) {
        f = s * e[i - 1];
        b = c * e[i - 1];
        r = pythag(f, g);
        e[i + 1 - 1] = r;
        if (r == 0) {
          d[i + 1 - 1] -= p;
          e[m - 1] = 0;
          goto labelExtra;
        }
        s = f / r;
        c = g / r;
        g = d[i + 1 - 1] - p;
        r = (d[i - 1] - g) * s + 2 * c * b;
        p = s * r;
        d[i + 1 - 1] = g + p;
        g = c * r - b;
        for (k = 1; k <= n; k++) {
          f = z[(i + 1 - 1) * np + (k - 1)];
          z[(i + 1 - 1) * np + (k - 1)] = s * z[(i - 1) * np + (k - 1)] + c * f;
          z[(i - 1) * np + (k - 1)] = c * z[(i - 1) * np + (k - 1)] - s * f;
        }
      }
      d[l - 1] -= p;
      e[l - 1] = g;
      e[m - 1] = 0;
      goto labelExtra;
    }
  }
  return;
}
```