user: 请将以下的汇编代码转换成C语言代码:

```asm
<rdft>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  mov    %rcx,-0x28(%rbp)
  mov    %r8,-0x30(%rbp)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  cmp    %eax,-0x14(%rbp)
  jle    L40
  mov    -0x14(%rbp),%eax
  sar    $0x2,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x30(%rbp),%rdx
  mov    -0x28(%rbp),%rcx
  mov    -0xc(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <makewt@plt>
L40:
  mov    -0x28(%rbp),%rax
  mov    0x4(%rax),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  shl    $0x2,%eax
  cmp    %eax,-0x14(%rbp)
  jle    L74
  mov    -0x14(%rbp),%eax
  sar    $0x2,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x28(%rbp),%rcx
  mov    -0x8(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <makect@plt>
L74:
  cmpl   $0x0,-0x18(%rbp)
  js     L72
  cmpl   $0x4,-0x14(%rbp)
  jle    L18
  mov    -0x28(%rbp),%rax
  lea    0x8(%rax),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0x14(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <bitrv2@plt>
  mov    -0x30(%rbp),%rdx
  mov    -0x20(%rbp),%rcx
  mov    -0x14(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <cftfsub@plt>
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%edx
  mov    -0x20(%rbp),%rsi
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <rftfsub@plt>
  jmp    L43
L18:
  cmpl   $0x4,-0x14(%rbp)
  jne    L43
  mov    -0x30(%rbp),%rdx
  mov    -0x20(%rbp),%rcx
  mov    -0x14(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <cftfsub@plt>
L43:
  mov    -0x20(%rbp),%rax
  movss  (%rax),%xmm0
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbp)
  mov    -0x20(%rbp),%rax
  movss  (%rax),%xmm1
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  addss  %xmm1,%xmm0
  mov    -0x20(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  movss  -0x4(%rbp),%xmm0
  movss  %xmm0,(%rax)
  jmp    L9
L72:
  mov    -0x20(%rbp),%rax
  movss  (%rax),%xmm0
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm2
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  movss  D8(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x20(%rbp),%rax
  movss  (%rax),%xmm0
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  mov    -0x20(%rbp),%rax
  movss  %xmm0,(%rax)
  cmpl   $0x4,-0x14(%rbp)
  jle    L65
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%edx
  mov    -0x20(%rbp),%rsi
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <rftbsub@plt>
  mov    -0x28(%rbp),%rax
  lea    0x8(%rax),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0x14(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <bitrv2@plt>
  mov    -0x30(%rbp),%rdx
  mov    -0x20(%rbp),%rcx
  mov    -0x14(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <cftbsub@plt>
  jmp    L9
L65:
  cmpl   $0x4,-0x14(%rbp)
  jne    L9
  mov    -0x30(%rbp),%rdx
  mov    -0x20(%rbp),%rcx
  mov    -0x14(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <cftfsub@plt>
L9:
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D8
type_infered: f32

tool: D8: 0.5

assistant: ```c
void rdft(int n, int isgn, float *a, int *ip, float *w) {
  void makewt(int nw, int *ip, float *w);
  void makect(int nc, int *ip, float *c);
  void bitrv2(int n, int *ip, float *a);
  void cftfsub(int n, float *a, float *w);
  void cftbsub(int n, float *a, float *w);
  void rftfsub(int n, float *a, int nc, float *c);
  void rftbsub(int n, float *a, int nc, float *c);
  int nw, nc;
  float xi;
  nw = ip[0];
  if (n > (nw << 2)) {
    nw = n >> 2;
    makewt(nw, ip, w);
  }
  nc = ip[1];
  if (n > (nc << 2)) {
    nc = n >> 2;
    makect(nc, ip, w + nw);
  }
  if (isgn >= 0) {
    if (n > 4) {
      bitrv2(n, ip + 2, a);
      cftfsub(n, a, w);
      rftfsub(n, a, nc, w + nw);
    } else if (n == 4) {
      cftfsub(n, a, w);
    }
    xi = a[0] - a[1];
    a[0] += a[1];
    a[1] = xi;
  } else {
    a[1] = 0.5 * (a[0] - a[1]);
    a[0] -= a[1];
    if (n > 4) {
      rftbsub(n, a, nc, w + nw);
      bitrv2(n, ip + 2, a);
      cftbsub(n, a, w);
    } else if (n == 4) {
      cftfsub(n, a, w);
    }
  }
}
```