user: What would the C source look like for the assembly code provided here:

```asm
<cftbsub>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  cmp    $0x8,%edi
  jg     L47
  mov    $0x2,%ebp
  je     L105
L120:
  movslq %ebp,%rax
  movq   D10(%rip),%xmm5
  xor    %ecx,%ecx
  lea    (%rbx,%rax,8),%rdx
  lea    0x8(%rbx),%rax
L28:
  movsd  -0x8(%rax),%xmm1
  movsd  (%rdx),%xmm3
  add    $0x2,%ecx
  add    $0x10,%rdx
  movsd  (%rax),%xmm0
  movsd  -0x8(%rdx),%xmm2
  add    $0x10,%rax
  movapd %xmm1,%xmm4
  subsd  %xmm3,%xmm1
  addsd  %xmm3,%xmm4
  subsd  %xmm0,%xmm2
  xorpd  %xmm5,%xmm0
  movsd  %xmm4,-0x18(%rax)
  subsd  -0x8(%rdx),%xmm0
  movsd  %xmm0,-0x10(%rax)
  movsd  %xmm1,-0x10(%rdx)
  movsd  %xmm2,-0x8(%rdx)
  cmp    %ebp,%ecx
  jl     L28
L72:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L47:
  mov    %edi,%r12d
  call   <cft1st@plt>
  cmp    $0x20,%r12d
  jle    L55
  mov    $0x8,%esi
  mov    $0x20,%ebp
  jmp    L86
  cs nopw 0x0(%rax,%rax,1)
L7:
  mov    %eax,%ebp
L86:
  mov    %rbx,%rdx
  mov    %r12d,%edi
  call   <cftmdl@plt>
  lea    0x0(,%rbp,4),%eax
  mov    %ebp,%esi
  cmp    %r12d,%eax
  jl     L7
  jne    L17
  test   %ebp,%ebp
  jle    L72
L105:
  movslq %ebp,%rdx
  movq   D10(%rip),%xmm5
  xor    %eax,%eax
  shl    $0x3,%rdx
  lea    (%rbx,%rdx,1),%rsi
  lea    (%rsi,%rdx,1),%rcx
  add    %rcx,%rdx
  nopl   0x0(%rax)
L18:
  movsd  0x8(%rbx,%rax,8),%xmm3
  movsd  (%rsi),%xmm4
  add    $0x10,%rcx
  add    $0x10,%rsi
  movsd  -0x8(%rsi),%xmm0
  movsd  (%rbx,%rax,8),%xmm1
  add    $0x10,%rdx
  movapd %xmm3,%xmm2
  movsd  -0x10(%rdx),%xmm10
  movsd  -0x8(%rdx),%xmm9
  xorpd  %xmm5,%xmm2
  movapd %xmm1,%xmm6
  subsd  %xmm4,%xmm1
  subsd  %xmm0,%xmm2
  subsd  %xmm3,%xmm0
  movsd  -0x10(%rcx),%xmm3
  addsd  %xmm4,%xmm6
  movsd  -0x8(%rcx),%xmm4
  movapd %xmm3,%xmm8
  subsd  %xmm10,%xmm3
  addsd  %xmm10,%xmm8
  movapd %xmm4,%xmm7
  subsd  %xmm9,%xmm4
  addsd  %xmm9,%xmm7
  movapd %xmm6,%xmm9
  addsd  %xmm8,%xmm9
  subsd  %xmm8,%xmm6
  movsd  %xmm9,(%rbx,%rax,8)
  movapd %xmm2,%xmm9
  addsd  %xmm7,%xmm2
  subsd  %xmm7,%xmm9
  movsd  %xmm9,0x8(%rbx,%rax,8)
  add    $0x2,%rax
  movsd  %xmm2,-0x8(%rcx)
  movapd %xmm1,%xmm2
  addsd  %xmm4,%xmm1
  subsd  %xmm4,%xmm2
  movsd  %xmm6,-0x10(%rcx)
  movsd  %xmm2,-0x10(%rsi)
  movapd %xmm0,%xmm2
  addsd  %xmm3,%xmm0
  subsd  %xmm3,%xmm2
  movsd  %xmm2,-0x8(%rsi)
  movsd  %xmm1,-0x10(%rdx)
  movsd  %xmm0,-0x8(%rdx)
  cmp    %eax,%ebp
  jg     L18
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L17:
  test   %ebp,%ebp
  jg     L120
  jmp    L72
L55:
  mov    $0x8,%ebp
  jne    L120
  jmp    L105
```

tool_calls: name: disassemble_data
arguments: label: D10
datatype: byte[8]

tool: {"D10": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

assistant: ```c
void cftbsub(int n, double *a) {
  void cft1st(int n, double *a);
  void cftmdl(int n, int l, double *a);
  int j, j1, j2, j3, l;
  double x0r, x0i, x1r, x1i, x2r, x2i, x3r, x3i;
  l = 2;
  if (n > 8) {
    cft1st(n, a);
    l = 8;
    while ((l << 2) < n) {
      cftmdl(n, l, a);
      l <<= 2;
    }
  }
  if ((l << 2) == n) {
    for (j = 0; j < l; j += 2) {
      j1 = j + l;
      j2 = j1 + l;
      j3 = j2 + l;
      x0r = a[j] + a[j1];
      x0i = -a[j + 1] - a[j1 + 1];
      x1r = a[j] - a[j1];
      x1i = -a[j + 1] + a[j1 + 1];
      x2r = a[j2] + a[j3];
      x2i = a[j2 + 1] + a[j3 + 1];
      x3r = a[j2] - a[j3];
      x3i = a[j2 + 1] - a[j3 + 1];
      a[j] = x0r + x2r;
      a[j + 1] = x0i - x2i;
      a[j2] = x0r - x2r;
      a[j2 + 1] = x0i + x2i;
      a[j1] = x1r - x3i;
      a[j1 + 1] = x1i - x3r;
      a[j3] = x1r + x3i;
      a[j3 + 1] = x1i + x3r;
    }
  } else {
    for (j = 0; j < l; j += 2) {
      j1 = j + l;
      x0r = a[j] - a[j1];
      x0i = -a[j + 1] + a[j1 + 1];
      a[j] += a[j1];
      a[j + 1] = -a[j + 1] - a[j1 + 1];
      a[j1] = x0r;
      a[j1 + 1] = x0i;
    }
  }
}
```