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

```asm
<ifrstage>:
  endbr64
  mov    $0x1,%eax
  mov    %rdi,%r9
  lea    -0x1(%rsi),%ecx
  mov    %esi,%r11d
  mov    %eax,%edi
  push   %r12
  mov    %rdx,%r10
  shl    %cl,%edi
  lea    -0x3(%rsi),%ecx
  push   %rbp
  mov    %edi,%esi
  mov    %edi,%edx
  push   %rbx
  mov    %eax,%ebx
  shl    $0x2,%rsi
  shr    %edx
  add    $0x1,%edi
  movss  (%r9),%xmm5
  lea    (%r9,%rsi,1),%r12
  lea    (%r9,%rdx,4),%rdx
  shl    %cl,%ebx
  shl    $0x2,%rdi
  lea    (%rdx,%rsi,1),%r8
  movss  (%rdx),%xmm0
  movslq %ebx,%rcx
  movss  0x4(%rdx),%xmm2
  movss  (%r12),%xmm1
  movss  (%r8),%xmm9
  lea    (%r9,%rdi,1),%rbp
  movss  (%r10,%rcx,4),%xmm4
  lea    (%rdx,%rdi,1),%rcx
  movaps %xmm2,%xmm3
  movss  0x4(%r9),%xmm7
  addss  %xmm1,%xmm1
  movss  (%rcx),%xmm8
  movss  0x0(%rbp),%xmm6
  addss  %xmm8,%xmm2
  subss  %xmm8,%xmm3
  movaps %xmm1,%xmm10
  movaps %xmm0,%xmm1
  subss  %xmm9,%xmm0
  addss  %xmm9,%xmm1
  mulss  %xmm4,%xmm2
  mulss  %xmm4,%xmm0
  movaps %xmm1,%xmm4
  addss  %xmm1,%xmm1
  subss  %xmm0,%xmm4
  addss  %xmm3,%xmm0
  addss  %xmm3,%xmm3
  subss  %xmm2,%xmm4
  subss  %xmm2,%xmm0
  movaps %xmm5,%xmm2
  addss  %xmm7,%xmm2
  subss  %xmm7,%xmm5
  subss  %xmm4,%xmm1
  movss  %xmm2,(%r9)
  movaps %xmm6,%xmm2
  xorps  D7(%rip),%xmm2
  movss  %xmm5,0x4(%r9)
  subss  %xmm6,%xmm2
  movss  %xmm10,(%r12)
  movss  %xmm2,0x0(%rbp)
  movss  %xmm0,0x4(%rdx)
  subss  %xmm3,%xmm0
  movss  %xmm4,(%rdx)
  movss  %xmm1,(%r8)
  movss  %xmm0,(%rcx)
  lea    -0x2(%r11),%ecx
  movss  0x4(%r10),%xmm7
  shl    %cl,%eax
  mov    %eax,%edx
  cltq
  lea    -0x2(%rdx,%rdx,1),%edx
  lea    -0x4(%r10,%rax,4),%rcx
  movslq %edx,%rdx
  movss  (%rcx),%xmm8
  lea    (%r9,%rdx,4),%rdx
  cmp    $0x3,%r11d
  je     L0
  lea    0x8(%r9),%rax
  lea    -0x2(%rbx),%r9d
  lea    0x4(%r10),%r8
  lea    0x8(%r10,%r9,4),%r9
  nopl   0x0(%rax)
L9:
  movss  (%rdx,%rsi,1),%xmm5
  movss  (%rax),%xmm1
  add    $0x4,%r8
  sub    $0x4,%rcx
  movss  0x4(%rax),%xmm2
  movss  (%rdx),%xmm0
  add    $0x8,%rax
  sub    $0x8,%rdx
  movaps %xmm1,%xmm4
  subss  %xmm5,%xmm1
  movss  0x8(%rdx,%rdi,1),%xmm3
  movss  -0x8(%rax,%rsi,1),%xmm12
  movaps %xmm2,%xmm6
  addss  %xmm5,%xmm4
  movss  -0x8(%rax,%rdi,1),%xmm10
  movss  0xc(%rdx),%xmm11
  subss  %xmm3,%xmm6
  addss  %xmm3,%xmm2
  movaps %xmm1,%xmm3
  movaps %xmm11,%xmm5
  addss  %xmm10,%xmm11
  mulss  %xmm8,%xmm3
  movaps %xmm4,%xmm9
  subss  %xmm10,%xmm5
  mulss  %xmm7,%xmm1
  addss  %xmm4,%xmm4
  subss  %xmm3,%xmm9
  movaps %xmm2,%xmm3
  mulss  %xmm7,%xmm3
  addss  %xmm6,%xmm1
  addss  %xmm6,%xmm6
  mulss  %xmm8,%xmm2
  subss  %xmm3,%xmm9
  movaps %xmm0,%xmm3
  subss  %xmm12,%xmm0
  subss  %xmm2,%xmm1
  addss  %xmm12,%xmm3
  movaps %xmm0,%xmm2
  subss  %xmm9,%xmm4
  movss  %xmm9,-0x8(%rax)
  mulss  %xmm7,%xmm0
  movaps %xmm3,%xmm10
  movss  %xmm1,-0x4(%rax)
  addss  %xmm3,%xmm3
  mulss  %xmm8,%xmm2
  subss  %xmm6,%xmm1
  movss  %xmm4,0x8(%rdx,%rsi,1)
  movss  %xmm1,0x8(%rdx,%rdi,1)
  subss  %xmm0,%xmm10
  movaps %xmm11,%xmm0
  mulss  %xmm8,%xmm0
  addss  %xmm5,%xmm2
  addss  %xmm5,%xmm5
  movss  (%rcx),%xmm8
  mulss  %xmm7,%xmm11
  movss  (%r8),%xmm7
  subss  %xmm0,%xmm10
  subss  %xmm11,%xmm2
  subss  %xmm10,%xmm3
  movss  %xmm10,0x8(%rdx)
  movss  %xmm2,0xc(%rdx)
  subss  %xmm5,%xmm2
  movss  %xmm3,-0x8(%rax,%rsi,1)
  movss  %xmm2,-0x8(%rax,%rdi,1)
  cmp    %r9,%r8
  jne    L9
L0:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D7
type: byte[16]

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

assistant: ```c
void ifrstage(float *ioptr, int M, float *Utbl) {
  unsigned int pos;
  unsigned int posi;
  unsigned int diffUcnt;
  float *p0r, *p1r;
  float *u0r, *u0i;
  float w0r, w0i;
  float f0r, f0i, f1r, f1i, f4r, f4i, f5r, f5i;
  float t0r, t0i, t1r, t1i;
  const float Two = 2.0;
  pos = ((uint32_t)1 << (M - 1));
  posi = pos + 1;
  p0r = ioptr;
  p1r = ioptr + pos / 2;
  u0r = Utbl + ((uint32_t)1 << (M - 3));
  w0r = *u0r;
  f0r = *(p0r);
  f0i = *(p0r + 1);
  f4r = *(p0r + pos);
  f4i = *(p0r + posi);
  f1r = *(p1r);
  f1i = *(p1r + 1);
  f5r = *(p1r + pos);
  f5i = *(p1r + posi);
  t0r = f0r + f0i;
  t0i = f0r - f0i;
  t1r = f4r + f4r;
  t1i = -f4i - f4i;
  f0r = f1r + f5r;
  f0i = f1i - f5i;
  f4r = f1r - f5r;
  f4i = f1i + f5i;
  f1r = f0r - w0r * f4r - w0r * f4i;
  f1i = f0i + w0r * f4r - w0r * f4i;
  f5r = Two * f0r - f1r;
  f5i = f1i - Two * f0i;
  *(p0r) = t0r;
  *(p0r + 1) = t0i;
  *(p0r + pos) = t1r;
  *(p0r + posi) = t1i;
  *(p1r) = f1r;
  *(p1r + 1) = f1i;
  *(p1r + pos) = f5r;
  *(p1r + posi) = f5i;
  u0r = Utbl + 1;
  u0i = Utbl + (((uint32_t)1 << (M - 2)) - 1);
  w0r = *u0r;
  w0i = *u0i;
  p0r = (ioptr + 2);
  p1r = (ioptr + (((uint32_t)1 << (M - 2)) - 1) * 2);
  for (diffUcnt = ((uint32_t)1 << (M - 3)) - 1; diffUcnt > 0; diffUcnt--) {
    f0r = *(p0r);
    f0i = *(p0r + 1);
    f5r = *(p1r + pos);
    f5i = *(p1r + posi);
    f1r = *(p1r);
    f1i = *(p1r + 1);
    f4r = *(p0r + pos);
    f4i = *(p0r + posi);
    t0r = f0r + f5r;
    t0i = f0i - f5i;
    t1r = f0r - f5r;
    t1i = f0i + f5i;
    f0r = t0r - w0i * t1r - w0r * t1i;
    f0i = t0i + w0r * t1r - w0i * t1i;
    f5r = Two * t0r - f0r;
    f5i = f0i - Two * t0i;
    t0r = f1r + f4r;
    t0i = f1i - f4i;
    t1r = f1r - f4r;
    t1i = f1i + f4i;
    f1r = t0r - w0r * t1r - w0i * t1i;
    f1i = t0i + w0i * t1r - w0r * t1i;
    f4r = Two * t0r - f1r;
    f4i = f1i - Two * t0i;
    *(p0r) = f0r;
    *(p0r + 1) = f0i;
    *(p1r + pos) = f5r;
    *(p1r + posi) = f5i;
    w0r = *++u0r;
    w0i = *--u0i;
    *(p1r) = f1r;
    *(p1r + 1) = f1i;
    *(p0r + pos) = f4r;
    *(p0r + posi) = f4i;
    p0r += 2;
    p1r -= 2;
  }
}
```