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

```asm
<four1>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  lea    (%rsi,%rsi,1),%ebp
  push   %rbx
  sub    $0x28,%rsp
  cmp    $0x1,%ebp
  jle    L95
  cmp    $0x1,%esi
  mov    %edx,%r9d
  mov    %rdi,%r12
  mov    $0x3,%ecx
  setg   %r8b
  mov    $0x1,%edx
  nopl   0x0(%rax)
L62:
  mov    %esi,%eax
  cmp    %esi,%edx
  jle    L135
  test   %r8b,%r8b
  jne    L15
  jmp    L135
  nopl   (%rax)
L99:
  cmp    %eax,%edx
  jle    L135
L15:
  sub    %eax,%edx
  sar    %eax
  cmp    $0x1,%eax
  jg     L99
L135:
  add    %eax,%edx
  cmp    %ecx,%ebp
  jle    L86
  cmp    %ecx,%edx
  jle    L81
  movslq %edx,%rax
  movsd  -0x8(%r12,%rcx,8),%xmm1
  shl    $0x3,%rax
  lea    -0x8(%r12,%rax,1),%rdi
  add    %r12,%rax
  movsd  (%rdi),%xmm0
  movsd  %xmm1,(%rdi)
  movsd  (%r12,%rcx,8),%xmm1
  movsd  %xmm0,-0x8(%r12,%rcx,8)
  movsd  (%rax),%xmm0
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%r12,%rcx,8)
L81:
  add    $0x2,%rcx
  jmp    L62
  xchg   %ax,%ax
L43:
  cmp    %ebx,%ebp
  jg     L1
L95:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L86:
  cmp    $0x2,%ebp
  jle    L95
  pxor   %xmm6,%xmm6
  mov    $0x2,%ebx
  cvtsi2sd %r9d,%xmm6
  movsd  %xmm6,0x18(%rsp)
  nopl   0x0(%rax,%rax,1)
L1:
  movslq %ebx,%r13
  pxor   %xmm0,%xmm0
  movsd  D23(%rip),%xmm1
  add    %ebx,%ebx
  cvtsi2sd %r13d,%xmm0
  divsd  %xmm0,%xmm1
  movsd  D10(%rip),%xmm0
  mulsd  0x18(%rsp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm1,0x10(%rsp)
  call   <sin@plt>
  movsd  D17(%rip),%xmm5
  movsd  0x10(%rsp),%xmm1
  mulsd  %xmm0,%xmm5
  mulsd  %xmm0,%xmm5
  movapd %xmm1,%xmm0
  movsd  %xmm5,0x8(%rsp)
  call   <sin@plt>
  cmp    $0x1,%r13d
  movsd  0x8(%rsp),%xmm5
  movapd %xmm0,%xmm6
  jle    L43
  lea    -0x1(%r13),%r9d
  movslq %ebx,%rsi
  pxor   %xmm4,%xmm4
  mov    $0x1,%edi
  mov    D36(%rip),%rax
  cmp    %ebp,%r9d
  lea    0x8(%r12),%r8
  lea    -0x8(,%r13,8),%r10
  cmovg  %ebp,%r9d
  shl    $0x3,%rsi
  movq   %rax,%xmm3
  nopl   0x0(%rax)
L49:
  lea    (%r10,%r8,1),%rdx
  mov    %r8,%rax
  mov    %edi,%ecx
  nopl   0x0(%rax)
L80:
  movsd  (%rdx),%xmm2
  movsd  0x8(%rdx),%xmm0
  add    %ebx,%ecx
  movapd %xmm2,%xmm1
  movapd %xmm0,%xmm7
  mulsd  %xmm3,%xmm1
  mulsd  %xmm4,%xmm7
  mulsd  %xmm4,%xmm2
  mulsd  %xmm3,%xmm0
  subsd  %xmm7,%xmm1
  addsd  %xmm2,%xmm0
  movsd  -0x8(%rax),%xmm2
  subsd  %xmm1,%xmm2
  movsd  %xmm2,(%rdx)
  movsd  (%rax),%xmm2
  subsd  %xmm0,%xmm2
  movsd  %xmm2,0x8(%rdx)
  addsd  -0x8(%rax),%xmm1
  addsd  (%rax),%xmm0
  add    %rsi,%rdx
  movsd  %xmm1,-0x8(%rax)
  movsd  %xmm0,(%rax)
  add    %rsi,%rax
  cmp    %ecx,%ebp
  jge    L80
  movapd %xmm5,%xmm0
  movapd %xmm6,%xmm1
  add    $0x2,%edi
  add    $0x10,%r8
  mulsd  %xmm4,%xmm1
  mulsd  %xmm3,%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm5,%xmm1
  mulsd  %xmm4,%xmm1
  addsd  %xmm3,%xmm0
  mulsd  %xmm6,%xmm3
  addsd  %xmm1,%xmm3
  addsd  %xmm3,%xmm4
  cmp    %r9d,%edi
  jg     L43
  movapd %xmm0,%xmm3
  jmp    L49
```

tool_calls: name: parse_data
arguments: data_label: D23
type_infered: f64
name: parse_data
arguments: data_label: D10
type_infered: f64
name: parse_data
arguments: data_label: D17
type_infered: f32[2]
name: parse_data
arguments: data_label: D36
type_infered: f64

tool: D23: 6.28318530717959

tool: D10: 0.5

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

tool: D36: 1

assistant: ```c
void four1(double *data, int nn, int isign) {
  int n, mmax, m, j, istep, i;
  double wtemp, wr, wpr, wpi, wi, theta;
  double 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 = nn;
    while (m >= 2 && j > m) {
      j -= m;
      m >>= 1;
    }
    j += m;
  }
  mmax = 2;
  while (n > mmax) {
    istep = mmax << 1;
    theta = isign * (6.28318530717959 / 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;
  }
}
```