user: Translate the below assembly code into C programming language:

```asm
<FFT>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %edx,-0x64(%rbp)
  mov    -0x60(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x10(%rbp)
  movq   $0x1,-0x20(%rbp)
  movq   $0x1,-0x18(%rbp)
  jmp    L34
L99:
  mov    -0x20(%rbp),%rax
  cmp    -0x18(%rbp),%rax
  jbe    L114
  mov    -0x20(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x38(%rbp)
  mov    -0x18(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  -0x38(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x20(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x38(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  -0x38(%rbp),%xmm0
  movss  %xmm0,(%rax)
L114:
  mov    -0x10(%rbp),%rax
  shr    %rax
  mov    %rax,-0x28(%rbp)
  jmp    L17
L130:
  mov    -0x28(%rbp),%rax
  sub    %rax,-0x20(%rbp)
  shrq   -0x28(%rbp)
L17:
  cmpq   $0x1,-0x28(%rbp)
  jbe    L120
  mov    -0x20(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  ja     L130
L120:
  mov    -0x28(%rbp),%rax
  add    %rax,-0x20(%rbp)
  addq   $0x2,-0x18(%rbp)
L34:
  mov    -0x18(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jb     L99
  movq   $0x2,-0x30(%rbp)
  jmp    L66
L127:
  mov    -0x30(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x8(%rbp)
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x64(%rbp),%xmm2
  mov    -0x30(%rbp),%rax
  test   %rax,%rax
  js     L5
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L48
L5:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L48:
  movsd  D35(%rip),%xmm1
  divsd  %xmm0,%xmm1
  mulsd  %xmm1,%xmm2
  movapd %xmm2,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x48(%rbp)
  movss  -0x48(%rbp),%xmm1
  movss  D4(%rip),%xmm0
  mulss  %xmm0,%xmm1
  movd   %xmm1,%eax
  movd   %eax,%xmm0
  call   <sin@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x44(%rbp)
  pxor   %xmm1,%xmm1
  cvtss2sd -0x44(%rbp),%xmm1
  movsd  D38(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x44(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x40(%rbp)
  mov    -0x48(%rbp),%eax
  movd   %eax,%xmm0
  call   <sin@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x3c(%rbp)
  movss  D37(%rip),%xmm0
  movss  %xmm0,-0x50(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movq   $0x1,-0x28(%rbp)
  jmp    L70
L122:
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  jmp    L118
L106:
  mov    -0x18(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  -0x50(%rbp),%xmm0
  mov    -0x20(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mulss  -0x4c(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x38(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movaps %xmm0,%xmm1
  mulss  -0x50(%rbp),%xmm1
  mov    -0x20(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  -0x4c(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x34(%rbp)
  mov    -0x18(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x20(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  subss  -0x38(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x20(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  subss  -0x34(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x18(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  addss  -0x38(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x18(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  addss  -0x34(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x8(%rbp),%rax
  add    %rax,-0x18(%rbp)
L118:
  mov    -0x18(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jbe    L106
  movss  -0x50(%rbp),%xmm0
  movss  %xmm0,-0x44(%rbp)
  movss  -0x44(%rbp),%xmm0
  mulss  -0x40(%rbp),%xmm0
  movss  -0x4c(%rbp),%xmm1
  mulss  -0x3c(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  -0x50(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x50(%rbp)
  movss  -0x4c(%rbp),%xmm0
  movaps %xmm0,%xmm1
  mulss  -0x40(%rbp),%xmm1
  movss  -0x44(%rbp),%xmm0
  mulss  -0x3c(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  -0x4c(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x4c(%rbp)
  addq   $0x2,-0x28(%rbp)
L70:
  mov    -0x28(%rbp),%rax
  cmp    -0x30(%rbp),%rax
  jb     L122
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x30(%rbp)
L66:
  mov    -0x10(%rbp),%rax
  cmp    -0x30(%rbp),%rax
  ja     L127
  nop
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D35
data_type: byte[8]
name: read_data
arguments: label: D4
data_type: f32
name: read_data
arguments: label: D38
data_type: f32[2]
name: read_data
arguments: label: D37
data_type: f32

tool: {"D35": [0xfc,0x95,0xec,0x52,0xfb,0x21,0x19,0xc0]}

tool: D4: 0.5

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

tool: D37: 1

assistant: ```c
void FFT(float *data, unsigned long nn, int isign) {
  unsigned long n, mmax, m, j, istep, i;
  float wtemp, wr, wpr, wpi, wi, theta;
  float tempr, tempi;
  n = nn << 1;
  j = 1;
  for (i = 1; i < n; i += 2) {
    if (j > i) {
      tempr = (data[j - 1]);
      (data[j - 1]) = (data[i - 1]);
      (data[i - 1]) = tempr;
      tempr = (data[j]);
      (data[j]) = (data[i]);
      (data[i]) = tempr;
    }
    m = n >> 1;
    while ((m >= 2) && (j > m)) {
      j -= m;
      m >>= 1;
    }
    j += m;
  }
  mmax = 2;
  while (n > mmax) {
    istep = mmax << 1;
    theta = isign * (-2 * 3.14159264359 / mmax);
    wtemp = sin(0.5 * theta);
    wpr = -2.0 * wtemp * wtemp;
    wpi = sin(theta);
    wr = 1.0;
    wi = 0.0;
    for (m = 1; m < mmax; m += 2) {
      for (i = m; i <= n; i += istep) {
        j = i + mmax;
        tempr = wr * data[j - 1] - wi * data[j];
        tempi = wr * data[j] + wi * data[j - 1];
        data[j - 1] = data[i - 1] - tempr;
        data[j] = data[i] - tempi;
        data[i - 1] += tempr;
        data[i] += tempi;
      }
      wr = (wtemp = wr) * wpr - wi * wpi + wr;
      wi = wi * wpr + wtemp * wpi + wi;
    }
    mmax = istep;
  }
}
```