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

```asm
<cosft2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %esi,-0x6c(%rbp)
  mov    %edx,-0x70(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  D44(%rip),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x6c(%rbp),%xmm1
  movsd  D69(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x38(%rbp)
  movsd  -0x38(%rbp),%xmm1
  movsd  D64(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x10(%rbp)
  cmpl   $0x1,-0x70(%rbp)
  jne    L28
  movl   $0x1,-0x58(%rbp)
  jmp    L23
L111:
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x6c(%rbp),%eax
  sub    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  addss  %xmm0,%xmm1
  movss  D10(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x4c(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x6c(%rbp),%eax
  sub    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  -0x38(%rbp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x48(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  -0x4c(%rbp),%xmm0
  addss  -0x48(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x6c(%rbp),%eax
  sub    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  -0x4c(%rbp),%xmm0
  subss  -0x48(%rbp),%xmm0
  movss  %xmm0,(%rax)
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  -0x10(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0x28(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x38(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x18(%rbp),%xmm1
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x38(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  addl   $0x1,-0x58(%rbp)
L23:
  mov    -0x6c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0x58(%rbp)
  jle    L111
  mov    -0x6c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x68(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <realft@plt>
  movl   $0x3,-0x58(%rbp)
  jmp    L128
L49:
  movsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  -0x40(%rbp),%xmm1
  mulsd  -0x10(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0x30(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x40(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x18(%rbp),%xmm1
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x40(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  mov    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  cvtss2sd %xmm1,%xmm1
  mulsd  -0x40(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x4c(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x30(%rbp),%xmm1
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  -0x40(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x48(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  -0x4c(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  -0x48(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x2,-0x58(%rbp)
L128:
  mov    -0x58(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jle    L49
  mov    -0x68(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  movss  D10(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x54(%rbp)
  mov    -0x6c(%rbp),%eax
  mov    %eax,-0x58(%rbp)
  jmp    L140
L42:
  movss  -0x54(%rbp),%xmm0
  movss  %xmm0,-0x44(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  -0x54(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x54(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  -0x44(%rbp),%xmm0
  movss  %xmm0,(%rax)
  subl   $0x2,-0x58(%rbp)
L140:
  cmpl   $0x1,-0x58(%rbp)
  jg     L42
  jmp    L55
L28:
  cmpl   $0xffffffff,-0x70(%rbp)
  jne    L55
  mov    -0x6c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x50(%rbp)
  mov    -0x6c(%rbp),%eax
  mov    %eax,-0x58(%rbp)
  jmp    L64
L16:
  mov    -0x58(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  subss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  subl   $0x2,-0x58(%rbp)
L64:
  cmpl   $0x3,-0x58(%rbp)
  jg     L16
  mov    -0x68(%rbp),%rax
  add    $0x8,%rax
  movss  -0x50(%rbp),%xmm0
  addss  %xmm0,%xmm0
  movss  %xmm0,(%rax)
  movl   $0x3,-0x58(%rbp)
  jmp    L116
L101:
  movsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  -0x40(%rbp),%xmm1
  mulsd  -0x10(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0x30(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x40(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x18(%rbp),%xmm1
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x40(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x30(%rbp),%xmm1
  mov    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  -0x40(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x4c(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  cvtss2sd %xmm1,%xmm1
  mulsd  -0x40(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x48(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  -0x4c(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  -0x48(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x2,-0x58(%rbp)
L116:
  mov    -0x58(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jle    L101
  mov    -0x6c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x68(%rbp),%rax
  mov    $0xffffffff,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <realft@plt>
  movl   $0x1,-0x58(%rbp)
  jmp    L60
L34:
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x6c(%rbp),%eax
  sub    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movsd  D76(%rip),%xmm0
  movapd %xmm0,%xmm1
  divsd  -0x38(%rbp),%xmm1
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x6c(%rbp),%eax
  sub    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm2
  subss  %xmm2,%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x48(%rbp)
  movss  -0x4c(%rbp),%xmm0
  movaps %xmm0,%xmm1
  addss  -0x48(%rbp),%xmm1
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  D10(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  movss  -0x4c(%rbp),%xmm0
  movaps %xmm0,%xmm1
  subss  -0x48(%rbp),%xmm1
  mov    -0x6c(%rbp),%eax
  sub    -0x58(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  D10(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  -0x10(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0x28(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x38(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x18(%rbp),%xmm1
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x38(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  addl   $0x1,-0x58(%rbp)
L60:
  mov    -0x6c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0x58(%rbp)
  jle    L34
L55:
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D44
type_guessed: f64
name: read_data
arguments: data_label: D69
type_guessed: byte[8]
name: read_data
arguments: data_label: D64
type_guessed: f32[2]
name: read_data
arguments: data_label: D10
type_guessed: f32
name: read_data
arguments: data_label: D76
type_guessed: f32[2]

tool: D44: 1

tool: {"D69": [0x18,0x2d,0x44,0x54,0xfb,0x21,0xf9,0x3f]}

tool: {"D64": [0.0,-2.0]}

tool: D10: 0.5

tool: {"D76": [0.0,1.75]}

assistant: ```c
void cosft2(float y[], int n, int isign) {
  void realft(float data[], unsigned long n, int isign);
  int i;
  float sum, sum1, y1, y2, ytemp;
  double theta, wi = 0.0, wi1, wpi, wpr, wr = 1.0, wr1, wtemp;
  theta = 0.5 * 3.141592653589793 / n;
  wr1 = cos(theta);
  wi1 = sin(theta);
  wpr = -2.0 * wi1 * wi1;
  wpi = sin(2.0 * theta);
  if (isign == 1) {
    for (i = 1; i <= n / 2; i++) {
      y1 = 0.5 * (y[i] + y[n - i + 1]);
      y2 = wi1 * (y[i] - y[n - i + 1]);
      y[i] = y1 + y2;
      y[n - i + 1] = y1 - y2;
      wr1 = (wtemp = wr1) * wpr - wi1 * wpi + wr1;
      wi1 = wi1 * wpr + wtemp * wpi + wi1;
    }
    realft(y, n, 1);
    for (i = 3; i <= n; i += 2) {
      wr = (wtemp = wr) * wpr - wi * wpi + wr;
      wi = wi * wpr + wtemp * wpi + wi;
      y1 = y[i] * wr - y[i + 1] * wi;
      y2 = y[i + 1] * wr + y[i] * wi;
      y[i] = y1;
      y[i + 1] = y2;
    }
    sum = 0.5 * y[2];
    for (i = n; i >= 2; i -= 2) {
      sum1 = sum;
      sum += y[i];
      y[i] = sum1;
    }
  } else if (isign == -1) {
    ytemp = y[n];
    for (i = n; i >= 4; i -= 2)
      y[i] = y[i - 2] - y[i];
    y[2] = 2.0 * ytemp;
    for (i = 3; i <= n; i += 2) {
      wr = (wtemp = wr) * wpr - wi * wpi + wr;
      wi = wi * wpr + wtemp * wpi + wi;
      y1 = y[i] * wr + y[i + 1] * wi;
      y2 = y[i + 1] * wr - y[i] * wi;
      y[i] = y1;
      y[i + 1] = y2;
    }
    realft(y, n, -1);
    for (i = 1; i <= n / 2; i++) {
      y1 = y[i] + y[n - i + 1];
      y2 = (0.5 / wi1) * (y[i] - y[n - i + 1]);
      y[i] = 0.5 * (y1 + y2);
      y[n - i + 1] = 0.5 * (y1 - y2);
      wr1 = (wtemp = wr1) * wpr - wi1 * wpi + wr1;
      wi1 = wi1 * wpr + wtemp * wpi + wi1;
    }
  }
}
```