user: Please show me the C implementation that matches the assembly code listed below:

```asm
<cftmdl>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  mov    %rcx,%rsi
  push   %rbx
  lea    0x0(,%rbp,4),%ecx
  mov    %rdx,%rbx
  mov    %edi,-0x4(%rsp)
  test   %ebp,%ebp
  jle    L75
  mov    %rdx,%rax
  movslq %ebp,%rdx
  lea    -0x1(%rbp),%r9d
  shl    $0x3,%rdx
  shr    %r9d
  lea    (%rbx,%rdx,1),%r8
  shl    $0x4,%r9
  lea    (%r8,%rdx,1),%rdi
  lea    0x10(%rbx,%r9,1),%r9
  add    %rdi,%rdx
  xchg   %ax,%ax
L83:
  movsd  (%r8),%xmm5
  movsd  (%rax),%xmm2
  add    $0x10,%rax
  add    $0x10,%r8
  movsd  -0x8(%rax),%xmm0
  movsd  -0x8(%r8),%xmm1
  add    $0x10,%rdi
  add    $0x10,%rdx
  movapd %xmm2,%xmm4
  subsd  %xmm5,%xmm2
  movsd  -0x10(%rdx),%xmm8
  movsd  -0x8(%rdx),%xmm7
  movapd %xmm0,%xmm3
  subsd  %xmm1,%xmm0
  addsd  %xmm5,%xmm4
  addsd  %xmm1,%xmm3
  movsd  -0x10(%rdi),%xmm1
  movapd %xmm2,%xmm9
  movsd  -0x8(%rdi),%xmm2
  movapd %xmm1,%xmm6
  subsd  %xmm8,%xmm1
  addsd  %xmm8,%xmm6
  movapd %xmm2,%xmm5
  subsd  %xmm7,%xmm2
  addsd  %xmm7,%xmm5
  movapd %xmm4,%xmm7
  addsd  %xmm6,%xmm7
  subsd  %xmm6,%xmm4
  movsd  %xmm7,-0x10(%rax)
  movapd %xmm3,%xmm7
  subsd  %xmm5,%xmm3
  addsd  %xmm5,%xmm7
  movsd  %xmm7,-0x8(%rax)
  movsd  %xmm3,-0x8(%rdi)
  movapd %xmm9,%xmm3
  subsd  %xmm2,%xmm3
  movsd  %xmm4,-0x10(%rdi)
  addsd  %xmm9,%xmm2
  movsd  %xmm3,-0x10(%r8)
  movapd %xmm0,%xmm3
  subsd  %xmm1,%xmm0
  addsd  %xmm1,%xmm3
  movsd  %xmm3,-0x8(%r8)
  movsd  %xmm2,-0x10(%rdx)
  movsd  %xmm0,-0x8(%rdx)
  cmp    %rax,%r9
  jne    L83
L75:
  lea    0x0(%rbp,%rcx,1),%eax
  movsd  0x10(%rsi),%xmm7
  cmp    %eax,%ecx
  jge    L68
  movslq %ecx,%r9
  movslq %ebp,%rdx
  lea    (%rdx,%r9,1),%rdi
  lea    (%rdx,%rdx,1),%r10
  add    %r10,%rdx
  lea    (%rbx,%rdi,8),%r8
  lea    (%r9,%r10,1),%rdi
  lea    -0x1(%rbp),%r10d
  add    %r9,%rdx
  lea    (%rbx,%r9,8),%rax
  shr    %r10d
  lea    (%rbx,%rdi,8),%rdi
  lea    (%rbx,%rdx,8),%rdx
  lea    (%r9,%r10,2),%r9
  lea    0x10(%rbx,%r9,8),%r9
  xchg   %ax,%ax
L46:
  movsd  0x8(%rax),%xmm3
  movsd  0x8(%r8),%xmm1
  add    $0x10,%rax
  add    $0x10,%r8
  movsd  -0x10(%rax),%xmm0
  movsd  -0x10(%r8),%xmm2
  add    $0x10,%rdi
  add    $0x10,%rdx
  movapd %xmm3,%xmm9
  subsd  %xmm1,%xmm3
  movsd  -0x10(%rdx),%xmm11
  movsd  -0x8(%rdi),%xmm4
  addsd  %xmm1,%xmm9
  movsd  -0x10(%rdi),%xmm1
  movapd %xmm0,%xmm5
  movsd  -0x8(%rdx),%xmm10
  addsd  %xmm2,%xmm5
  subsd  %xmm2,%xmm0
  movapd %xmm4,%xmm6
  movapd %xmm1,%xmm8
  movapd %xmm1,%xmm2
  addsd  %xmm10,%xmm6
  addsd  %xmm11,%xmm8
  subsd  %xmm11,%xmm2
  movapd %xmm5,%xmm1
  subsd  %xmm10,%xmm4
  addsd  %xmm8,%xmm1
  subsd  %xmm8,%xmm5
  movsd  %xmm1,-0x10(%rax)
  movapd %xmm9,%xmm1
  addsd  %xmm6,%xmm1
  subsd  %xmm9,%xmm6
  movsd  %xmm1,-0x8(%rax)
  movapd %xmm0,%xmm1
  addsd  %xmm4,%xmm0
  movsd  %xmm6,-0x10(%rdi)
  movapd %xmm3,%xmm6
  subsd  %xmm4,%xmm1
  addsd  %xmm2,%xmm6
  movsd  %xmm5,-0x8(%rdi)
  subsd  %xmm3,%xmm2
  movapd %xmm1,%xmm5
  addsd  %xmm6,%xmm1
  subsd  %xmm6,%xmm5
  mulsd  %xmm7,%xmm1
  mulsd  %xmm7,%xmm5
  movsd  %xmm1,-0x8(%r8)
  movapd %xmm2,%xmm1
  subsd  %xmm0,%xmm2
  addsd  %xmm1,%xmm0
  movsd  %xmm5,-0x10(%r8)
  mulsd  %xmm7,%xmm2
  mulsd  %xmm7,%xmm0
  movsd  %xmm2,-0x10(%rdx)
  movsd  %xmm0,-0x8(%rdx)
  cmp    %rax,%r9
  jne    L46
L68:
  lea    (%rcx,%rcx,1),%r12d
  cmp    -0x4(%rsp),%r12d
  jge    L23
  movslq %ebp,%rax
  lea    (%rcx,%r12,1),%r9d
  movslq %r12d,%r13
  movslq %ecx,%rcx
  lea    (%rbx,%rax,8),%rdi
  mov    %rax,%rdx
  lea    (%rax,%rax,2),%rax
  mov    %r13,%r11
  lea    (%rbx,%rax,8),%rax
  shl    $0x4,%rdx
  mov    %rdi,-0x28(%rsp)
  lea    0x10(%rsi),%r10
  mov    %rax,-0x38(%rsp)
  lea    -0x1(%rbp),%eax
  lea    (%rbx,%rdx,1),%rdi
  add    $0x20,%rsi
  shr    %eax
  mov    %rdi,-0x30(%rsp)
  lea    (%rcx,%r13,1),%r8
  mov    %r12d,%edi
  add    %rax,%rax
  mov    %rax,-0x20(%rsp)
  lea    0x10(%rbx),%rax
  mov    %rax,-0x18(%rsp)
L44:
  movsd  0x8(%r10),%xmm4
  movsd  (%rsi),%xmm6
  lea    (%rdi,%rbp,1),%eax
  movsd  0x8(%rsi),%xmm7
  movsd  (%r10),%xmm2
  movapd %xmm4,%xmm5
  movapd %xmm6,%xmm8
  addsd  %xmm4,%xmm5
  movapd %xmm5,%xmm0
  mulsd  %xmm7,%xmm0
  mulsd  %xmm6,%xmm5
  subsd  %xmm0,%xmm8
  subsd  %xmm7,%xmm5
  cmp    %eax,%edi
  jge    L47
  lea    0x0(,%r11,8),%rdx
  mov    -0x28(%rsp),%rcx
  mov    -0x20(%rsp),%r15
  lea    (%rbx,%rdx,1),%rax
  mov    %rax,-0x10(%rsp)
  mov    -0x18(%rsp),%rax
  lea    (%rcx,%rdx,1),%r14
  add    %r11,%r15
  mov    -0x30(%rsp),%rcx
  lea    (%rax,%r15,8),%r15
  mov    -0x10(%rsp),%rax
  add    %rdx,%rcx
  add    -0x38(%rsp),%rdx
  xchg   %ax,%ax
L38:
  movsd  0x8(%rax),%xmm0
  movsd  0x8(%r14),%xmm10
  add    $0x10,%rax
  add    $0x10,%r14
  movsd  -0x10(%rax),%xmm3
  movsd  -0x10(%r14),%xmm11
  add    $0x10,%rcx
  add    $0x10,%rdx
  movapd %xmm0,%xmm1
  subsd  %xmm10,%xmm0
  movsd  -0x10(%rdx),%xmm15
  movsd  -0x8(%rdx),%xmm14
  addsd  %xmm10,%xmm1
  movsd  -0x10(%rcx),%xmm10
  movapd %xmm3,%xmm9
  subsd  %xmm11,%xmm3
  addsd  %xmm11,%xmm9
  movsd  -0x8(%rcx),%xmm11
  movapd %xmm10,%xmm13
  subsd  %xmm15,%xmm10
  addsd  %xmm15,%xmm13
  movapd %xmm11,%xmm12
  subsd  %xmm14,%xmm11
  addsd  %xmm14,%xmm12
  movapd %xmm9,%xmm14
  addsd  %xmm13,%xmm14
  subsd  %xmm13,%xmm9
  movapd %xmm4,%xmm13
  movsd  %xmm14,-0x10(%rax)
  movapd %xmm1,%xmm14
  subsd  %xmm12,%xmm1
  addsd  %xmm12,%xmm14
  movapd %xmm2,%xmm12
  mulsd  %xmm9,%xmm12
  mulsd  %xmm1,%xmm13
  mulsd  %xmm4,%xmm9
  movsd  %xmm14,-0x8(%rax)
  mulsd  %xmm2,%xmm1
  subsd  %xmm13,%xmm12
  movapd %xmm7,%xmm13
  addsd  %xmm9,%xmm1
  movapd %xmm3,%xmm9
  addsd  %xmm11,%xmm3
  subsd  %xmm11,%xmm9
  movsd  %xmm12,-0x10(%rcx)
  movapd %xmm6,%xmm12
  movsd  %xmm1,-0x8(%rcx)
  movapd %xmm0,%xmm1
  subsd  %xmm10,%xmm0
  addsd  %xmm10,%xmm1
  mulsd  %xmm9,%xmm12
  mulsd  %xmm7,%xmm9
  mulsd  %xmm1,%xmm13
  mulsd  %xmm6,%xmm1
  subsd  %xmm13,%xmm12
  addsd  %xmm9,%xmm1
  movapd %xmm5,%xmm9
  mulsd  %xmm0,%xmm9
  mulsd  %xmm8,%xmm0
  movsd  %xmm12,-0x10(%r14)
  movsd  %xmm1,-0x8(%r14)
  movapd %xmm3,%xmm1
  movapd %xmm8,%xmm3
  mulsd  %xmm1,%xmm3
  mulsd  %xmm5,%xmm1
  subsd  %xmm9,%xmm3
  addsd  %xmm1,%xmm0
  movsd  %xmm3,-0x10(%rdx)
  movsd  %xmm0,-0x8(%rdx)
  cmp    %rax,%r15
  jne    L38
L47:
  movapd %xmm2,%xmm5
  movsd  0x10(%rsi),%xmm6
  movsd  0x18(%rsi),%xmm7
  lea    0x0(%rbp,%r9,1),%eax
  addsd  %xmm2,%xmm5
  movapd %xmm6,%xmm8
  movapd %xmm5,%xmm0
  mulsd  %xmm7,%xmm0
  mulsd  %xmm6,%xmm5
  subsd  %xmm0,%xmm8
  subsd  %xmm7,%xmm5
  cmp    %eax,%r9d
  jge    L13
  lea    0x0(,%r8,8),%rdx
  mov    -0x28(%rsp),%rcx
  mov    -0x20(%rsp),%r15
  lea    (%rbx,%rdx,1),%rax
  xorpd  D2(%rip),%xmm4
  mov    %rax,-0x10(%rsp)
  mov    -0x18(%rsp),%rax
  lea    (%rcx,%rdx,1),%r14
  add    %r8,%r15
  mov    -0x30(%rsp),%rcx
  lea    (%rax,%r15,8),%r15
  mov    -0x10(%rsp),%rax
  add    %rdx,%rcx
  add    -0x38(%rsp),%rdx
L53:
  movsd  0x8(%rax),%xmm0
  movsd  0x8(%r14),%xmm10
  add    $0x10,%rax
  add    $0x10,%r14
  movsd  -0x10(%rax),%xmm3
  movsd  -0x10(%r14),%xmm11
  add    $0x10,%rcx
  add    $0x10,%rdx
  movapd %xmm0,%xmm1
  subsd  %xmm10,%xmm0
  movsd  -0x10(%rdx),%xmm15
  movsd  -0x8(%rdx),%xmm14
  addsd  %xmm10,%xmm1
  movsd  -0x10(%rcx),%xmm10
  movapd %xmm3,%xmm9
  subsd  %xmm11,%xmm3
  addsd  %xmm11,%xmm9
  movsd  -0x8(%rcx),%xmm11
  movapd %xmm10,%xmm13
  subsd  %xmm15,%xmm10
  addsd  %xmm15,%xmm13
  movapd %xmm11,%xmm12
  subsd  %xmm14,%xmm11
  addsd  %xmm14,%xmm12
  movapd %xmm9,%xmm14
  addsd  %xmm13,%xmm14
  subsd  %xmm13,%xmm9
  movapd %xmm2,%xmm13
  movsd  %xmm14,-0x10(%rax)
  movapd %xmm1,%xmm14
  subsd  %xmm12,%xmm1
  addsd  %xmm12,%xmm14
  movapd %xmm9,%xmm12
  mulsd  %xmm2,%xmm9
  mulsd  %xmm1,%xmm13
  mulsd  %xmm4,%xmm1
  movsd  %xmm14,-0x8(%rax)
  mulsd  %xmm4,%xmm12
  addsd  %xmm9,%xmm1
  movapd %xmm3,%xmm9
  addsd  %xmm11,%xmm3
  subsd  %xmm13,%xmm12
  subsd  %xmm11,%xmm9
  movapd %xmm7,%xmm13
  movsd  %xmm1,-0x8(%rcx)
  movapd %xmm0,%xmm1
  subsd  %xmm10,%xmm0
  addsd  %xmm10,%xmm1
  movsd  %xmm12,-0x10(%rcx)
  movapd %xmm6,%xmm12
  mulsd  %xmm9,%xmm12
  mulsd  %xmm7,%xmm9
  mulsd  %xmm1,%xmm13
  mulsd  %xmm6,%xmm1
  subsd  %xmm13,%xmm12
  addsd  %xmm9,%xmm1
  movapd %xmm5,%xmm9
  mulsd  %xmm0,%xmm9
  mulsd  %xmm8,%xmm0
  movsd  %xmm12,-0x10(%r14)
  movsd  %xmm1,-0x8(%r14)
  movapd %xmm3,%xmm1
  movapd %xmm8,%xmm3
  mulsd  %xmm1,%xmm3
  mulsd  %xmm5,%xmm1
  subsd  %xmm9,%xmm3
  addsd  %xmm1,%xmm0
  movsd  %xmm3,-0x10(%rdx)
  movsd  %xmm0,-0x8(%rdx)
  cmp    %r15,%rax
  jne    L53
L13:
  add    %r12d,%edi
  add    $0x10,%r10
  add    $0x20,%rsi
  add    %r12d,%r9d
  add    %r13,%r8
  add    %r13,%r11
  cmp    %edi,-0x4(%rsp)
  jg     L44
L23:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: data_label: D2
type_infered: byte[16]

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

assistant: ```c
void cftmdl(int n, int l, double *a, double const *w) {
  int j, j1, j2, j3, k, k1, k2, m, m2;
  double wk1r, wk1i, wk2r, wk2i, wk3r, wk3i;
  double x0r, x0i, x1r, x1i, x2r, x2i, x3r, x3i;
  m = l << 2;
  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;
  }
  wk1r = w[2];
  for (j = m; j < l + m; 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] = x2i - x0i;
    a[j2 + 1] = x0r - x2r;
    x0r = x1r - x3i;
    x0i = x1i + x3r;
    a[j1] = wk1r * (x0r - x0i);
    a[j1 + 1] = wk1r * (x0r + x0i);
    x0r = x3i + x1r;
    x0i = x3r - x1i;
    a[j3] = wk1r * (x0i - x0r);
    a[j3 + 1] = wk1r * (x0i + x0r);
  }
  k1 = 0;
  m2 = 2 * m;
  for (k = m2; k < n; k += m2) {
    k1 += 2;
    k2 = 2 * k1;
    wk2r = w[k1];
    wk2i = w[k1 + 1];
    wk1r = w[k2];
    wk1i = w[k2 + 1];
    wk3r = wk1r - 2 * wk2i * wk1i;
    wk3i = 2 * wk2i * wk1r - wk1i;
    for (j = k; j < l + k; 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;
      x0r -= x2r;
      x0i -= x2i;
      a[j2] = wk2r * x0r - wk2i * x0i;
      a[j2 + 1] = wk2r * x0i + wk2i * x0r;
      x0r = x1r - x3i;
      x0i = x1i + x3r;
      a[j1] = wk1r * x0r - wk1i * x0i;
      a[j1 + 1] = wk1r * x0i + wk1i * x0r;
      x0r = x1r + x3i;
      x0i = x1i - x3r;
      a[j3] = wk3r * x0r - wk3i * x0i;
      a[j3 + 1] = wk3r * x0i + wk3i * x0r;
    }
    wk1r = w[k2 + 2];
    wk1i = w[k2 + 3];
    wk3r = wk1r - 2 * wk2r * wk1i;
    wk3i = 2 * wk2r * wk1r - wk1i;
    for (j = k + m; j < l + (k + m); 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;
      x0r -= x2r;
      x0i -= x2i;
      a[j2] = -wk2i * x0r - wk2r * x0i;
      a[j2 + 1] = -wk2i * x0i + wk2r * x0r;
      x0r = x1r - x3i;
      x0i = x1i + x3r;
      a[j1] = wk1r * x0r - wk1i * x0i;
      a[j1 + 1] = wk1r * x0i + wk1i * x0r;
      x0r = x1r + x3i;
      x0i = x1i - x3r;
      a[j3] = wk3r * x0r - wk3i * x0i;
      a[j3 + 1] = wk3r * x0i + wk3i * x0r;
    }
  }
}
```