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

```asm
<dfst>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x38,%rsp
  mov    (%rcx),%eax
  mov    %edi,0x10(%rsp)
  mov    %eax,0x14(%rsp)
  shl    $0x3,%eax
  mov    %rcx,0x8(%rsp)
  mov    %r8,0x18(%rsp)
  cmp    %edi,%eax
  jl     L149
L188:
  mov    0x8(%rsp),%rax
  mov    0x4(%rax),%r14d
  lea    (%r14,%r14,1),%eax
  cmp    0x10(%rsp),%eax
  jl     L105
L245:
  movslq 0x10(%rsp),%rax
  cmp    $0x2,%eax
  jle    L180
  mov    %eax,%r13d
  mov    %eax,%ebp
  sar    %r13d
  sar    $0x2,%ebp
  cmp    $0x7,%eax
  jle    L29
  movslq 0x10(%rsp),%rax
  movslq %r13d,%r9
  movslq %ebp,%r8
  lea    -0x8(,%r9,8),%rcx
  mov    %rax,%rdx
  sub    %r9,%rdx
  lea    (%r12,%rdx,8),%rsi
  mov    $0x1,%edx
  nopw   0x0(%rax,%rax,1)
L78:
  movsd  (%r12,%rdx,8),%xmm2
  movsd  (%rsi,%rcx,1),%xmm5
  movsd  (%r12,%rcx,1),%xmm1
  movsd  (%rsi,%rdx,8),%xmm4
  movapd %xmm2,%xmm0
  addsd  %xmm5,%xmm2
  subsd  %xmm5,%xmm0
  movapd %xmm1,%xmm3
  addsd  %xmm4,%xmm1
  subsd  %xmm4,%xmm3
  movsd  %xmm2,(%r12,%rdx,8)
  movsd  %xmm1,(%r12,%rcx,1)
  movapd %xmm0,%xmm1
  addsd  %xmm3,%xmm1
  subsd  %xmm3,%xmm0
  movsd  %xmm1,(%rbx,%rdx,8)
  add    $0x1,%rdx
  movsd  %xmm0,(%rbx,%rcx,1)
  sub    $0x8,%rcx
  cmp    %rdx,%r8
  jne    L78
L3:
  mov    0x10(%rsp),%ecx
  lea    (%r12,%r8,8),%rdx
  mov    %rax,(%rsp)
  mov    %r12,%rsi
  movsd  (%rdx),%xmm0
  mov    0x18(%rsp),%rax
  mov    %r13d,%edi
  sub    %ebp,%ecx
  movslq %ecx,%rcx
  lea    (%r12,%rcx,8),%rcx
  subsd  (%rcx),%xmm0
  movsd  %xmm0,(%rbx)
  movsd  (%rdx),%xmm0
  addsd  (%rcx),%xmm0
  movsd  %xmm0,(%rdx)
  movslq 0x14(%rsp),%rdx
  movsd  (%r12,%r9,8),%xmm0
  lea    (%rax,%rdx,8),%r15
  movsd  %xmm0,(%r12)
  mov    %r14d,%edx
  mov    %r15,%rcx
  call   <dstsub@plt>
  mov    (%rsp),%rax
  lea    -0x8(%r12,%rax,8),%r9
  lea    -0x2(%r13),%eax
  cmp    $0x4,%r13d
  jg     L238
  je     L243
  movsd  0x8(%r12),%xmm0
  subsd  (%r12),%xmm0
  movsd  %xmm0,(%r9)
  movsd  0x8(%r12),%xmm0
  addsd  (%r12),%xmm0
  movsd  %xmm0,0x8(%r12)
  cmp    $0x1,%eax
  jle    L150
L113:
  movslq %eax,%rdx
  lea    0x1(%rax,%rax,1),%eax
  movq   D7(%rip),%xmm1
  cltq
  lea    (%r12,%rax,8),%rax
  nopw   0x0(%rax,%rax,1)
L234:
  movsd  (%r12,%rdx,8),%xmm0
  subsd  0x8(%r12,%rdx,8),%xmm0
  sub    $0x20,%rax
  movsd  %xmm0,0x20(%rax)
  movsd  (%r12,%rdx,8),%xmm0
  xorpd  %xmm1,%xmm0
  subsd  0x8(%r12,%rdx,8),%xmm0
  sub    $0x2,%rdx
  movsd  %xmm0,0x10(%rax)
  cmp    $0x1,%edx
  jg     L234
L150:
  mov    $0x2,%r13d
  cmp    $0x1,%ebp
  jle    L174
  mov    %r14d,(%rsp)
  nopl   0x0(%rax,%rax,1)
L208:
  mov    (%rsp),%edx
  mov    %r15,%rcx
  mov    %rbx,%rsi
  mov    %ebp,%edi
  movslq %r13d,%r14
  call   <dstsub@plt>
  mov    0x10(%rsp),%edx
  lea    (%r12,%r14,8),%r10
  movq   D7(%rip),%xmm1
  sub    %r13d,%edx
  cmp    $0x4,%ebp
  movslq %edx,%rdx
  lea    (%r12,%rdx,8),%r11
  jg     L151
  je     L213
  movsd  0x8(%rbx),%xmm0
  subsd  (%rbx),%xmm0
  movsd  %xmm0,(%r11)
  movsd  (%rbx),%xmm0
  addsd  0x8(%rbx),%xmm0
  movsd  %xmm0,(%r10)
  cmp    $0x3,%ebp
  jne    L201
L142:
  lea    0x0(,%r13,4),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rdi
  sub    %r14,%rdx
  shl    $0x4,%r14
  lea    (%r12,%rdx,8),%rcx
  mov    $0x2,%edx
  nopl   0x0(%rax)
L199:
  movsd  (%rbx,%rdx,8),%xmm0
  xorpd  %xmm1,%xmm0
  subsd  0x8(%rbx,%rdx,8),%xmm0
  movsd  %xmm0,(%rcx)
  movsd  (%rbx,%rdx,8),%xmm0
  subsd  0x8(%rbx,%rdx,8),%xmm0
  add    $0x2,%rdx
  movsd  %xmm0,(%rcx,%r14,1)
  add    %rdi,%rcx
  cmp    %edx,%ebp
  jg     L199
  mov    %ebp,%r8d
  add    %r13d,%r13d
  sar    %r8d
  cmp    $0x1,%r8d
  je     L194
  movslq %ebp,%r11
  lea    -0x2(%r8),%r10d
  mov    %r11,%rcx
  lea    0x0(,%r11,8),%rdi
  add    %r11,%r10
  shl    $0x4,%rcx
  lea    (%rbx,%rdi,1),%rdx
  lea    0x8(%rbx,%r10,8),%r10
  neg    %rdi
  add    %rbx,%rcx
  xchg   %ax,%ax
L232:
  movsd  -0x8(%rcx),%xmm0
  addsd  0x8(%rdx),%xmm0
  add    $0x8,%rdx
  sub    $0x8,%rcx
  movsd  %xmm0,(%rdx,%rdi,1)
  movsd  (%rcx),%xmm0
  subsd  (%rdx),%xmm0
  movsd  %xmm0,(%rcx,%rdi,1)
  cmp    %rdx,%r10
  jne    L232
  add    %r8d,%ebp
  movslq %ebp,%rbp
  movsd  (%rbx,%rbp,8),%xmm0
  mov    %r8d,%ebp
  movsd  %xmm0,(%rbx)
  jmp    L208
L201:
  add    %r13d,%r13d
  mov    $0x2,%ebp
L194:
  lea    0x1(%rbp),%eax
  cltq
  movsd  (%rbx,%rax,8),%xmm0
  movslq %r13d,%rax
  shl    $0x3,%rax
  movsd  %xmm0,(%rbx)
L103:
  movsd  %xmm0,(%r12,%rax,1)
L180:
  movq   $0x0,(%r12)
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L151:
  mov    0x8(%rsp),%rax
  mov    0x18(%rsp),%r8
  mov    %rbx,%rsi
  mov    %ebp,%edi
  mov    0x14(%rsp),%ecx
  mov    %r10,0x28(%rsp)
  lea    0x8(%rax),%rdx
  mov    %r11,0x20(%rsp)
  call   <cftfsub@plt>
  mov    (%rsp),%edx
  mov    %r15,%rcx
  mov    %rbx,%rsi
  mov    %ebp,%edi
  call   <rftfsub@plt>
  mov    0x20(%rsp),%r11
  mov    0x28(%rsp),%r10
  movq   D7(%rip),%xmm1
L175:
  movsd  0x8(%rbx),%xmm0
  subsd  (%rbx),%xmm0
  movsd  %xmm0,(%r11)
  movsd  (%rbx),%xmm0
  addsd  0x8(%rbx),%xmm0
  movsd  %xmm0,(%r10)
  jmp    L142
  nopl   0x0(%rax)
L213:
  mov    0x8(%rsp),%rax
  mov    0x18(%rsp),%r8
  mov    %rbx,%rsi
  mov    $0x4,%edi
  mov    0x14(%rsp),%ecx
  mov    %r10,0x28(%rsp)
  lea    0x8(%rax),%rdx
  mov    %r11,0x20(%rsp)
  call   <cftfsub@plt>
  mov    0x20(%rsp),%r11
  mov    0x28(%rsp),%r10
  movq   D7(%rip),%xmm1
  jmp    L175
L105:
  mov    0x18(%rsp),%rsi
  mov    0x10(%rsp),%r14d
  movslq 0x14(%rsp),%rax
  sar    %r14d
  lea    (%rsi,%rax,8),%rdx
  mov    0x8(%rsp),%rsi
  mov    %r14d,%edi
  call   <makect@plt>
  jmp    L245
L149:
  mov    %edi,%eax
  mov    %r8,%rdx
  mov    %rcx,%rsi
  sar    $0x3,%eax
  mov    %eax,%edi
  mov    %eax,0x14(%rsp)
  call   <makewt@plt>
  jmp    L188
L29:
  movslq %ebp,%r8
  movslq %r13d,%r9
  jmp    L3
L238:
  mov    %eax,0x20(%rsp)
  mov    0x8(%rsp),%rax
  mov    %r12,%rsi
  mov    %r13d,%edi
  mov    0x18(%rsp),%r8
  mov    0x14(%rsp),%ecx
  mov    %r9,(%rsp)
  lea    0x8(%rax),%rdx
  call   <cftfsub@plt>
  mov    %r15,%rcx
  mov    %r14d,%edx
  mov    %r12,%rsi
  mov    %r13d,%edi
  call   <rftfsub@plt>
  mov    (%rsp),%r9
  mov    0x20(%rsp),%eax
L102:
  movsd  0x8(%r12),%xmm0
  subsd  (%r12),%xmm0
  movsd  %xmm0,(%r9)
  movsd  0x8(%r12),%xmm0
  addsd  (%r12),%xmm0
  movsd  %xmm0,0x8(%r12)
  jmp    L113
L243:
  mov    %eax,0x20(%rsp)
  mov    0x14(%rsp),%ecx
  mov    %r12,%rsi
  mov    $0x4,%edi
  mov    0x8(%rsp),%rax
  mov    0x18(%rsp),%r8
  mov    %r9,(%rsp)
  lea    0x8(%rax),%rdx
  call   <cftfsub@plt>
  mov    (%rsp),%r9
  mov    0x20(%rsp),%eax
  jmp    L102
L174:
  movsd  (%rbx),%xmm0
  mov    $0x10,%eax
  jmp    L103
```

tool_calls: name: parse_data
arguments: data_label: D7
datatype: byte[8]

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

assistant: ```c
void dfst(int n, double *a, double *t, int *ip, double *w) {
  void makewt(int nw, int *ip, double *w);
  void makect(int nc, int *ip, double *c);
  void cftfsub(int n, double *a, int *ip, int nw, double *w);
  void rftfsub(int n, double *a, int nc, double *c);
  void dstsub(int n, double *a, int nc, double *c);
  int j, k, l, m, mh, nw, nc;
  double xr, xi, yr, yi;
  nw = ip[0];
  if (n > (nw << 3)) {
    nw = n >> 3;
    makewt(nw, ip, w);
  }
  nc = ip[1];
  if (n > (nc << 1)) {
    nc = n >> 1;
    makect(nc, ip, w + nw);
  }
  if (n > 2) {
    m = n >> 1;
    mh = m >> 1;
    for (j = 1; j < mh; j++) {
      k = m - j;
      xr = a[j] + a[n - j];
      xi = a[j] - a[n - j];
      yr = a[k] + a[n - k];
      yi = a[k] - a[n - k];
      a[j] = xr;
      a[k] = yr;
      t[j] = xi + yi;
      t[k] = xi - yi;
    }
    t[0] = a[mh] - a[n - mh];
    a[mh] += a[n - mh];
    a[0] = a[m];
    dstsub(m, a, nc, w + nw);
    if (m > 4) {
      cftfsub(m, a, ip + 2, nw, w);
      rftfsub(m, a, nc, w + nw);
    } else if (m == 4) {
      cftfsub(m, a, ip + 2, nw, w);
    }
    a[n - 1] = a[1] - a[0];
    a[1] = a[0] + a[1];
    for (j = m - 2; j >= 2; j -= 2) {
      a[2 * j + 1] = a[j] - a[j + 1];
      a[2 * j - 1] = -a[j] - a[j + 1];
    }
    l = 2;
    m = mh;
    while (m >= 2) {
      dstsub(m, t, nc, w + nw);
      if (m > 4) {
        cftfsub(m, t, ip + 2, nw, w);
        rftfsub(m, t, nc, w + nw);
      } else if (m == 4) {
        cftfsub(m, t, ip + 2, nw, w);
      }
      a[n - l] = t[1] - t[0];
      a[l] = t[0] + t[1];
      k = 0;
      for (j = 2; j < m; j += 2) {
        k += l << 2;
        a[k - l] = -t[j] - t[j + 1];
        a[k + l] = t[j] - t[j + 1];
      }
      l <<= 1;
      mh = m >> 1;
      for (j = 1; j < mh; j++) {
        k = m - j;
        t[j] = t[m + k] + t[m + j];
        t[k] = t[m + k] - t[m + j];
      }
      t[0] = t[m + mh];
      m = mh;
    }
    a[l] = t[0];
  }
  a[0] = 0;
}
```