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

```asm
<symeigen>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,%r15
  mov    %edx,%ebx
  test   %edx,%edx
  jle    L98
  mov    %rdi,%rcx
  movslq %edx,%rdi
  shl    $0x3,%rdi
  mov    $0x0,%edx
  mov    %ebx,%esi
  movsd  D17(%rip),%xmm1
  pxor   %xmm2,%xmm2
  jmp    L96
L160:
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rsi,%rax
  je     L18
L104:
  movapd %xmm1,%xmm0
  cmp    %eax,%edx
  je     L160
  movapd %xmm2,%xmm0
  jmp    L160
L18:
  add    $0x1,%edx
  add    %rdi,%rcx
  cmp    %edx,%ebx
  je     L98
L96:
  mov    $0x0,%eax
  jmp    L104
L98:
  movslq %ebx,%r13
  shl    $0x3,%r13
  jmp    L62
L6:
  add    $0x1,%rax
  cmp    %eax,%ebx
  jle    L143
L185:
  movsd  (%rdx,%rax,8),%xmm0
  andpd  D27(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L6
  movapd %xmm0,%xmm1
  mov    %eax,%ebp
  mov    %ecx,%r12d
  jmp    L6
L143:
  add    $0x1,%rsi
  add    %r13,%rdx
L166:
  lea    -0x1(%rsi),%ecx
  cmp    %rdi,%rsi
  je     L97
  mov    %rsi,%rax
  jmp    L185
L97:
  movsd  D1(%rip),%xmm7
  comisd %xmm1,%xmm7
  ja     L25
  mov    %ebx,%r14d
  imul   %r12d,%r14d
  mov    %ebx,%eax
  imul   %ebp,%eax
  mov    %eax,0x4(%rsp)
  lea    (%r14,%r12,1),%edx
  movslq %edx,%rdx
  add    %ebp,%eax
  cltq
  movsd  (%r15,%rdx,8),%xmm0
  subsd  (%r15,%rax,8),%xmm0
  lea    (%r14,%rbp,1),%eax
  cltq
  movsd  (%r15,%rax,8),%xmm1
  addsd  %xmm1,%xmm1
  cvttsd2si %xmm1,%edi
  call   <atan2@plt>
  lea    0x18(%rsp),%rdi
  lea    0x10(%rsp),%rsi
  mulsd  D32(%rip),%xmm0
  call   <sincos@plt>
  movsd  0x10(%rsp),%xmm1
  movsd  0x18(%rsp),%xmm3
  movslq %r12d,%r12
  lea    (%r15,%r12,8),%rax
  mov    $0x0,%edx
  movslq %ebp,%rbp
  sub    %r12,%rbp
  movapd %xmm3,%xmm4
  xorpd  D43(%rip),%xmm4
L179:
  movsd  (%rax),%xmm0
  movsd  (%rax,%rbp,8),%xmm2
  movapd %xmm0,%xmm5
  mulsd  %xmm4,%xmm5
  movapd %xmm2,%xmm6
  mulsd  %xmm1,%xmm6
  addsd  %xmm6,%xmm5
  movsd  %xmm5,(%rax,%rbp,8)
  mulsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm2
  addsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  mov    %edx,%ecx
  add    $0x1,%edx
  add    %r13,%rax
  cmp    %edx,%ebx
  jne    L179
  movslq %r14d,%r14
  lea    0x0(,%r14,8),%rax
  lea    (%r15,%rax,1),%rdx
  mov    %ecx,%esi
  add    %r14,%rsi
  shl    $0x3,%rsi
  lea    0x8(%r15,%rsi,1),%rdi
  movslq 0x4(%rsp),%rcx
  sub    %r14,%rcx
L176:
  movsd  (%rdx),%xmm0
  movsd  (%rdx,%rcx,8),%xmm2
  movapd %xmm4,%xmm5
  mulsd  %xmm0,%xmm5
  movapd %xmm2,%xmm6
  mulsd  %xmm1,%xmm6
  addsd  %xmm6,%xmm5
  movsd  %xmm5,(%rdx,%rcx,8)
  mulsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm2
  addsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x8,%rdx
  cmp    %rdi,%rdx
  jne    L176
  mov    0x8(%rsp),%rdi
  add    %rdi,%rax
  lea    0x8(%rdi,%rsi,1),%rdx
L161:
  movsd  (%rax),%xmm0
  movsd  (%rax,%rcx,8),%xmm2
  movapd %xmm4,%xmm5
  mulsd  %xmm0,%xmm5
  movapd %xmm2,%xmm6
  mulsd  %xmm1,%xmm6
  addsd  %xmm6,%xmm5
  movsd  %xmm5,(%rax,%rcx,8)
  mulsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm2
  addsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L161
L62:
  test   %ebx,%ebx
  jle    L25
  mov    %ebx,%edi
  mov    %r15,%rdx
  mov    $0x1,%esi
  pxor   %xmm1,%xmm1
  mov    $0x0,%ebp
  mov    $0x0,%r12d
  jmp    L166
L25:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: label: D17
type: f32[2]
name: parse_data
arguments: label: D27
type: qword[2]
name: parse_data
arguments: label: D1
type: byte[8]
name: parse_data
arguments: label: D32
type: f64
name: parse_data
arguments: label: D43
type: f32[4]

tool: {"D17": [0.0,1.875]}

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

tool: {"D1": [0x95,0x64,0x79,0xe1,0x7f,0xfd,0xa5,0x3d]}

tool: D32: 0.5

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

assistant: ```c
void symeigen(double *out, double *cov, int support) {
  int i;
  int j;
  int k;
  for (i = 0; i < support; i++)
    for (j = 0; j < support; j++)
      out[i * support + j] = i == j;
  for (;;) {
    double mod = 0.;
    for (i = 0, j = 0, k = 0; k < support; k++) {
      int m;
      for (m = k + 1; m < support; m++) {
        double q;
        q = fabs(cov[k * support + m]);
        if (q > mod) {
          mod = q;
          i = k;
          j = m;
        }
      }
    }
    if (mod < 1E-11)
      break;
    {
      double th = 0.5 * atan2(2 * cov[i * support + j], cov[i * support + i] - cov[j * support + j]);
      double c = cos(th);
      double s = sin(th);
      for (k = 0; k < support; k++) {
        double t;
        t = c * cov[k * support + i] + s * cov[k * support + j];
        cov[k * support + j] = -s * cov[k * support + i] + c * cov[k * support + j];
        cov[k * support + i] = t;
      }
      for (k = 0; k < support; k++) {
        double t;
        t = c * cov[i * support + k] + s * cov[j * support + k];
        cov[j * support + k] = -s * cov[i * support + k] + c * cov[j * support + k];
        cov[i * support + k] = t;
      }
      for (k = 0; k < support; k++) {
        double t;
        t = c * out[i * support + k] + s * out[j * support + k];
        out[j * support + k] = -s * out[i * support + k] + c * out[j * support + k];
        out[i * support + k] = t;
      }
    }
  }
}
```