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

```asm
<fn_invFDaubechiesWT2p2_NoaK>:
  endbr64
  push   %rbp
  mov    %rsi,%r11
  mov    %rdi,%r10
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  mov    %edx,%ebx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %edx,%eax
  mov    %rsp,%rdx
  lea    0xf(,%rax,4),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rsi
  and    $0xfffffffffffff000,%rsi
  sub    %rsi,%rdx
  cmp    %rdx,%rsp
  je     L9
L61:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdx,%rsp
  jne    L61
L9:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L150
  mov    %rsp,%rsi
  test   %ecx,%ecx
  je     L27
L76:
  cmp    $0x1,%ecx
  jne    L103
  test   %ebx,%ebx
  je     L27
  mov    0x8(%r11),%rsi
  mov    (%r11),%rdi
  xor    %edx,%edx
  movsd  D11(%rip),%xmm1
  cs nopw 0x0(%rax,%rax,1)
L88:
  mov    %edx,%eax
  pxor   %xmm0,%xmm0
  pxor   %xmm2,%xmm2
  mov    %edx,%ecx
  shr    %eax
  lea    (%r10,%rcx,4),%r8
  lea    0x1(%rdx),%ecx
  add    $0x2,%edx
  shl    $0x2,%rax
  lea    (%r10,%rcx,4),%rcx
  lea    (%rsi,%rax,1),%r9
  add    %rdi,%rax
  cvtss2sd (%r9),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%r8)
  pxor   %xmm0,%xmm0
  cvtss2sd (%r9),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rcx)
  pxor   %xmm0,%xmm0
  cvtss2sd (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  cvtss2sd (%r8),%xmm2
  addsd  %xmm2,%xmm0
  pxor   %xmm2,%xmm2
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%r8)
  pxor   %xmm0,%xmm0
  cvtss2sd (%rax),%xmm2
  mulsd  %xmm1,%xmm2
  cvtss2sd (%rcx),%xmm0
  subsd  %xmm2,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rcx)
  cmp    %edx,%ebx
  ja     L88
L27:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L188
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  cs nopw 0x0(%rax,%rax,1)
L103:
  mov    %ebx,%edi
  lea    -0x1(%rcx),%r12d
  shr    %cl,%edi
  add    %edi,%edi
  je     L178
  mov    %ecx,%eax
  movsd  D11(%rip),%xmm1
  mov    (%r11,%rax,8),%r8
  mov    %r12d,%eax
  mov    (%r11,%rax,8),%rdx
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L100:
  mov    %eax,%r9d
  pxor   %xmm0,%xmm0
  pxor   %xmm2,%xmm2
  shr    %r9d
  cvtss2sd (%r8,%r9,4),%xmm0
  mulsd  %xmm1,%xmm0
  cvtss2sd (%rdx,%r9,4),%xmm2
  mulsd  %xmm1,%xmm2
  cvtsd2ss %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  movapd %xmm0,%xmm3
  addsd  %xmm2,%xmm3
  subsd  %xmm2,%xmm0
  cvtsd2ss %xmm3,%xmm3
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm3,(%rsi,%rax,4)
  movss  %xmm0,0x4(%rsi,%rax,4)
  add    $0x2,%rax
  cmp    %eax,%edi
  ja     L100
L178:
  mov    %rsi,%r8
  mov    $0x1,%eax
  cmp    $0x1,%r12d
  je     L132
  mov    %ebx,%eax
  movsd  D11(%rip),%xmm2
  lea    -0x2(%rcx),%r9d
  shr    %eax
  lea    (%rsi,%rax,4),%rsi
  nop
L59:
  add    %edi,%edi
  je     L148
  mov    %r9d,%eax
  mov    (%r11,%rax,8),%rcx
  xor    %eax,%eax
  nopl   0x0(%rax)
L2:
  mov    %eax,%r14d
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    %eax,%edx
  shr    %r14d
  lea    (%rsi,%rdx,4),%r13
  lea    0x1(%rax),%edx
  add    $0x2,%eax
  lea    (%r8,%r14,4),%r15
  cvtss2sd (%rcx,%r14,4),%xmm1
  mulsd  %xmm2,%xmm1
  lea    (%rsi,%rdx,4),%rdx
  cvtss2sd (%r15),%xmm0
  mulsd  %xmm2,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x0(%r13)
  pxor   %xmm0,%xmm0
  cvtss2sd (%r15),%xmm0
  mulsd  %xmm2,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rdx)
  pxor   %xmm0,%xmm0
  cvtss2sd 0x0(%r13),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x0(%r13)
  pxor   %xmm0,%xmm0
  cvtss2sd (%rdx),%xmm0
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rdx)
  cmp    %eax,%edi
  ja     L2
L148:
  sub    $0x1,%r9d
  je     L134
  mov    %r8,%rax
  mov    %rsi,%r8
  mov    %rax,%rsi
  jmp    L59
  nopl   0x0(%rax)
L134:
  mov    %r12d,%eax
L132:
  test   %ebx,%ebx
  je     L27
  sub    %eax,%r12d
  movsd  D11(%rip),%xmm1
  xor    %eax,%eax
  mov    (%r11,%r12,8),%rdx
  nopl   0x0(%rax)
L106:
  mov    %eax,%ecx
  pxor   %xmm0,%xmm0
  pxor   %xmm2,%xmm2
  mov    %eax,%edi
  shr    %ecx
  lea    (%r10,%rdi,4),%r8
  lea    0x1(%rax),%edi
  add    $0x2,%eax
  cvtss2sd (%rsi,%rcx,4),%xmm0
  mulsd  %xmm1,%xmm0
  lea    (%r10,%rdi,4),%rdi
  lea    (%rdx,%rcx,4),%rcx
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%r8)
  movss  %xmm0,(%rdi)
  cvtss2sd %xmm0,%xmm0
  cvtss2sd (%rcx),%xmm2
  mulsd  %xmm1,%xmm2
  addsd  %xmm0,%xmm2
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm2,%xmm2
  movss  %xmm2,(%r8)
  pxor   %xmm2,%xmm2
  cvtss2sd (%rcx),%xmm2
  mulsd  %xmm1,%xmm2
  cvtss2sd (%rdi),%xmm0
  subsd  %xmm2,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rdi)
  cmp    %eax,%ebx
  ja     L106
  jmp    L27
L150:
  orq    $0x0,-0x8(%rsp,%rax,1)
  mov    %rsp,%rsi
  test   %ecx,%ecx
  jne    L76
  jmp    L27
L188:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D11
type_guessed: f64

tool: D11: 0.707106781

assistant: ```c
void fn_invFDaubechiesWT2p2_NoaK(float *a_da, float *a4p_ka[], const unsigned int const cuci_N, unsigned int cuic_w) {
  float ai_buff[cuci_N];
  unsigned int ui_j;
  unsigned int ui_i;
  unsigned int ui_ord = cuci_N;
  float *p_p1 = &ai_buff[0];
  float *p_p2 = &ai_buff[cuci_N >> 1];
  float *p_temp;
  switch (cuic_w) {
  case 0:
    break;
  case 1:
    for (ui_j = 0; ui_j < cuci_N; ui_j = ui_j + 2) {
      a_da[ui_j] = (*(a4p_ka[1] + (ui_j >> 1))) * 0.707106781;
      a_da[ui_j + 1] = (*(a4p_ka[1] + (ui_j >> 1))) * 0.707106781;
      a_da[ui_j] = a_da[ui_j] + (*(a4p_ka[0] + (ui_j >> 1))) * 0.707106781;
      a_da[ui_j + 1] = a_da[ui_j + 1] - (*(a4p_ka[0] + (ui_j >> 1))) * 0.707106781;
    }
    break;
  default:
    ui_ord >>= cuic_w;
    ui_ord <<= 1;
    for (ui_j = 0; ui_j < ui_ord; ui_j = ui_j + 2) {
      ai_buff[ui_j] = (*(a4p_ka[cuic_w] + (ui_j >> 1))) * 0.707106781;
      ai_buff[ui_j + 1] = (*(a4p_ka[cuic_w] + (ui_j >> 1))) * 0.707106781;
      ai_buff[ui_j] = ai_buff[ui_j] + (*(a4p_ka[cuic_w - 1] + (ui_j >> 1))) * 0.707106781;
      ai_buff[ui_j + 1] = ai_buff[ui_j + 1] - (*(a4p_ka[cuic_w - 1] + (ui_j >> 1))) * 0.707106781;
    }
    for (ui_i = 1; ui_i < (cuic_w - 1); ui_i++) {
      ui_ord <<= 1;
      for (ui_j = 0; ui_j < ui_ord; ui_j = ui_j + 2) {
        p_p2[ui_j] = (p_p1[ui_j >> 1]) * 0.707106781;
        p_p2[ui_j + 1] = (p_p1[ui_j >> 1]) * 0.707106781;
        p_p2[ui_j] = p_p2[ui_j] + (*(a4p_ka[cuic_w - ui_i - 1] + (ui_j >> 1))) * 0.707106781;
        p_p2[ui_j + 1] = p_p2[ui_j + 1] - (*(a4p_ka[cuic_w - ui_i - 1] + (ui_j >> 1))) * 0.707106781;
      }
      p_temp = p_p1;
      p_p1 = p_p2;
      p_p2 = p_temp;
    }
    for (ui_j = 0; ui_j < cuci_N; ui_j = ui_j + 2) {
      a_da[ui_j] = (p_p1[ui_j >> 1]) * 0.707106781;
      a_da[ui_j + 1] = (p_p1[ui_j >> 1]) * 0.707106781;
      a_da[ui_j] = a_da[ui_j] + (*(a4p_ka[cuic_w - ui_i - 1] + (ui_j >> 1))) * 0.707106781;
      a_da[ui_j + 1] = a_da[ui_j + 1] - (*(a4p_ka[cuic_w - ui_i - 1] + (ui_j >> 1))) * 0.707106781;
    }
    break;
  }
  return;
}
```