user: What is the c source code of the assembly code below?

```asm
<sinft>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %esi,-0x5c(%rbp)
  mov    -0x5c(%rbp),%eax
  add    $0x2,%eax
  mov    %eax,-0x3c(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  D51(%rip),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x5c(%rbp),%xmm1
  movsd  D33(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x20(%rbp),%xmm1
  movsd  D15(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm1
  movsd  D13(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x4,%rax
  pxor   %xmm0,%xmm0
  movss  %xmm0,(%rax)
  movl   $0x2,-0x44(%rbp)
  jmp    L27
L25:
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  -0x30(%rbp),%xmm1
  mulsd  -0x8(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0x28(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x30(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x10(%rbp),%xmm1
  movsd  -0x18(%rbp),%xmm0
  mulsd  -0x8(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x30(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x3c(%rbp),%eax
  sub    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  addss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x38(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x3c(%rbp),%eax
  sub    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm2
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  movss  D28(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x34(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  -0x38(%rbp),%xmm0
  addss  -0x34(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x3c(%rbp),%eax
  sub    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  -0x38(%rbp),%xmm0
  subss  -0x34(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x44(%rbp)
L27:
  mov    -0x5c(%rbp),%eax
  sar    %eax
  add    $0x1,%eax
  cmp    %eax,-0x44(%rbp)
  jle    L25
  mov    -0x5c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x58(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <realft@plt>
  mov    -0x58(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x4,%rax
  movss  D28(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  pxor   %xmm0,%xmm0
  movss  %xmm0,(%rax)
  movss  (%rax),%xmm0
  movss  %xmm0,-0x40(%rbp)
  movl   $0x1,-0x44(%rbp)
  jmp    L2
L37:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  -0x40(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x40(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x44(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movss  -0x40(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x2,-0x44(%rbp)
L2:
  mov    -0x5c(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jg     L37
  nop
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D51
data_type: f64
name: read_data
arguments: data_tag: D33
data_type: f64
name: read_data
arguments: data_tag: D15
data_type: f64
name: read_data
arguments: data_tag: D13
data_type: f32[2]
name: read_data
arguments: data_tag: D28
data_type: byte[4]

tool: D51: 1

tool: D33: 3.14159265358979

tool: D15: 0.5

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

tool: {"D28": [0x00,0x00,0x00,0x3f]}

assistant: ```c
void sinft(float y[], int n) {
  void realft(float data[], unsigned long n, int isign);
  int j, n2 = n + 2;
  float sum, y1, y2;
  double theta, wi = 0.0, wr = 1.0, wpi, wpr, wtemp;
  theta = 3.14159265358979 / (double)n;
  wtemp = sin(0.5 * theta);
  wpr = -2.0 * wtemp * wtemp;
  wpi = sin(theta);
  y[1] = 0.0;
  for (j = 2; j <= (n >> 1) + 1; j++) {
    wr = (wtemp = wr) * wpr - wi * wpi + wr;
    wi = wi * wpr + wtemp * wpi + wi;
    y1 = wi * (y[j] + y[n2 - j]);
    y2 = 0.5 * (y[j] - y[n2 - j]);
    y[j] = y1 + y2;
    y[n2 - j] = y1 - y2;
  }
  realft(y, n, 1);
  y[1] *= 0.5;
  sum = y[2] = 0.0;
  for (j = 1; j <= n - 1; j += 2) {
    sum += y[j];
    y[j] = y[j + 1];
    y[j + 1] = sum;
  }
}
```