user: Converte this assembly snippet into its equivalent C code:

```asm
<scbitrevR2>:
  endbr64
  push   %r15
  mov    %esi,%eax
  push   %r14
  mov    %rdx,%r14
  lea    0x3(%rsi),%edx
  push   %r13
  mov    %edx,%ecx
  push   %r12
  shr    $0x1f,%ecx
  push   %rbp
  add    %edx,%ecx
  mov    $0x1,%edx
  push   %rbx
  sar    %ecx
  mov    %rdx,%r10
  mov    %rdi,%rbx
  shl    %cl,%r10
  mov    %esi,%ecx
  shr    $0x1f,%esi
  add    %eax,%esi
  add    $0x1,%eax
  sub    $0x10,%rsp
  sar    %esi
  mov    %rdi,-0x48(%rsp)
  mov    %rdx,%rdi
  shl    %cl,%rdi
  mov    %edi,%ecx
  sub    %r10d,%ecx
  mov    %r10d,%r10d
  mov    %ecx,0xc(%rsp)
  lea    -0x1(%rsi),%ecx
  shl    %cl,%rdx
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  lea    -0x1(%rdx),%r11d
  add    %ecx,%eax
  mov    %r11d,-0x30(%rsp)
  sar    %eax
  add    $0x1,%eax
  mov    %eax,-0x2c(%rsp)
  lea    0x0(,%r10,4),%rax
  lea    (%rbx,%rax,1),%r10
  mov    %r10,-0x8(%rsp)
  cmp    %r10,%rbx
  jae    L64
  lea    0x3(%rdi),%ecx
  lea    0x1(%rdi),%r9d
  mov    %rax,%r12
  movslq %r11d,%rbx
  lea    0x2(%rdi),%r8d
  mov    %edi,%edi
  neg    %r12
  mov    %r14,-0x58(%rsp)
  lea    0x0(,%rdi,4),%r13
  mov    $0x4,%edi
  mov    %rbx,-0x28(%rsp)
  lea    0x0(,%rcx,4),%rbp
  lea    0x1(%rsi),%ecx
  lea    0x0(,%r9,4),%r15
  movaps %xmm0,%xmm10
  shl    %cl,%rdi
  lea    -0x2(%rdx),%ecx
  lea    (%r14,%rbx,2),%rbx
  mov    %ecx,0x8(%rsp)
  mov    %r13,%rcx
  sub    %rax,%rcx
  mov    %rdi,-0x10(%rsp)
  mov    %rcx,-0x20(%rsp)
  mov    %r15,%rcx
  sub    %rax,%rcx
  mov    %r12,%rax
  mov    %rbx,(%rsp)
  mov    %r13,%r12
  mov    %rcx,-0x18(%rsp)
  lea    0x0(,%r8,4),%rbx
  mov    %rax,%r13
  nop
L68:
  mov    -0x30(%rsp),%eax
  test   %eax,%eax
  js     L0
  mov    (%rsp),%rax
  movl   $0xffffffff,-0x60(%rsp)
  movswl (%rax),%eax
  lea    0x0(,%rax,4),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    %rcx,-0x40(%rsp)
  mov    0xc(%rsp),%ecx
  mov    %rcx,-0x38(%rsp)
  mov    -0x28(%rsp),%rcx
  mov    %rcx,-0x68(%rsp)
  nopl   (%rax)
L31:
  mov    -0x68(%rsp),%rsi
  mov    -0x48(%rsp),%rdi
  shl    $0x2,%eax
  movzbl -0x2c(%rsp),%ecx
  cltq
  add    -0x38(%rsp),%rax
  lea    (%rdi,%rax,4),%r10
  mov    %esi,%eax
  mov    %esi,-0x5c(%rsp)
  shl    %cl,%eax
  lea    (%r10,%r12,1),%rcx
  mov    %esi,-0x6c(%rsp)
  movss  (%r10),%xmm1
  cltq
  movss  0x4(%r10),%xmm0
  movss  (%rcx),%xmm8
  lea    (%rdi,%rax,4),%r11
  mov    -0x40(%rsp),%rax
  lea    (%r11,%rax,1),%rdx
  lea    (%r10,%r15,1),%rax
  movss  (%rax),%xmm9
  cmp    %esi,-0x30(%rsp)
  jle    L59
  mov    %r10,-0x50(%rsp)
  mov    %r10,%rax
  mov    -0x28(%rsp),%rcx
  mov    -0x58(%rsp),%r10
  movss  %xmm1,-0x74(%rsp)
  nop
L1:
  lea    (%rdx,%rbp,1),%rsi
  lea    (%rdx,%r12,1),%r9
  movss  (%rax,%rbx,1),%xmm15
  movss  (%rax,%rbp,1),%xmm14
  movss  (%rsi),%xmm1
  lea    (%rdx,%r15,1),%r8
  lea    (%rdx,%rbx,1),%rdi
  movss  (%rdx),%xmm5
  movss  (%r9),%xmm13
  movss  (%r8),%xmm12
  movss  %xmm1,-0x70(%rsp)
  movss  -0x74(%rsp),%xmm1
  movss  (%rdi),%xmm11
  movss  0x8(%rax),%xmm7
  movss  0xc(%rax),%xmm6
  addss  %xmm8,%xmm1
  movss  0x4(%rdx),%xmm4
  movss  0xc(%rdx),%xmm2
  movss  0x8(%rdx),%xmm3
  mulss  %xmm10,%xmm1
  movss  %xmm1,(%rdx)
  movaps %xmm9,%xmm1
  addss  %xmm0,%xmm1
  subss  %xmm9,%xmm0
  mulss  %xmm10,%xmm1
  mulss  %xmm10,%xmm0
  movss  %xmm1,0x4(%rdx)
  movss  -0x74(%rsp),%xmm1
  movss  %xmm0,0xc(%rdx)
  movaps %xmm7,%xmm0
  subss  %xmm15,%xmm7
  subss  %xmm8,%xmm1
  addss  %xmm15,%xmm0
  mulss  %xmm10,%xmm7
  mulss  %xmm10,%xmm0
  mulss  %xmm10,%xmm1
  movss  %xmm1,0x8(%rdx)
  movss  %xmm0,(%r9)
  movaps %xmm6,%xmm0
  subss  %xmm14,%xmm6
  addss  %xmm14,%xmm0
  mulss  %xmm10,%xmm6
  mulss  %xmm10,%xmm0
  movss  %xmm0,(%r8)
  movaps %xmm5,%xmm0
  subss  %xmm13,%xmm5
  addss  %xmm13,%xmm0
  movss  %xmm7,(%rdi)
  movss  -0x70(%rsp),%xmm7
  movss  %xmm6,(%rsi)
  mulss  %xmm10,%xmm5
  mulss  %xmm10,%xmm0
  movss  %xmm5,0x8(%rax)
  movss  %xmm0,(%rax)
  movaps %xmm4,%xmm0
  subss  %xmm12,%xmm4
  addss  %xmm12,%xmm0
  mulss  %xmm10,%xmm4
  mulss  %xmm10,%xmm0
  movss  %xmm4,0xc(%rax)
  movss  %xmm0,0x4(%rax)
  movaps %xmm3,%xmm0
  subss  %xmm11,%xmm3
  addss  %xmm11,%xmm0
  mulss  %xmm10,%xmm3
  mulss  %xmm10,%xmm0
  movss  %xmm0,(%rax,%r12,1)
  movaps %xmm7,%xmm0
  addss  %xmm2,%xmm0
  subss  %xmm7,%xmm2
  mulss  %xmm10,%xmm0
  mulss  %xmm10,%xmm2
  movss  %xmm0,(%rax,%r15,1)
  movss  %xmm3,(%rax,%rbx,1)
  movss  %xmm2,(%rax,%rbp,1)
  add    %r13,%rax
  movss  (%rax),%xmm4
  movswl -0x2(%r10,%rcx,2),%edx
  sub    $0x1,%rcx
  movss  0x4(%rax),%xmm0
  movss  (%rax,%r12,1),%xmm8
  shl    $0x2,%edx
  movss  (%rax,%r15,1),%xmm9
  movss  %xmm4,-0x74(%rsp)
  movslq %edx,%rdx
  lea    (%r11,%rdx,4),%rdx
  cmp    %ecx,-0x6c(%rsp)
  jl     L1
  mov    -0x5c(%rsp),%esi
  mov    0x8(%rsp),%edi
  xor    %eax,%eax
  movaps %xmm4,%xmm1
  mov    -0x60(%rsp),%edx
  mov    -0x20(%rsp),%rcx
  cmp    %edi,%esi
  mov    -0x50(%rsp),%r10
  cmovle %rdx,%rax
  add    $0x1,%rdx
  imul   %r13,%rax
  add    %rax,%rcx
  add    -0x18(%rsp),%rax
  add    %r10,%rcx
  add    %r10,%rax
  cmp    %edi,%esi
  mov    $0x1,%esi
  cmovg  %rsi,%rdx
  imul   %r13,%rdx
  add    %rdx,%r10
L59:
  movaps %xmm1,%xmm6
  lea    (%r10,%rbx,1),%rsi
  lea    (%r10,%rbp,1),%rdx
  addl   $0x1,-0x60(%rsp)
  addss  %xmm8,%xmm6
  movss  (%rsi),%xmm5
  movss  (%rdx),%xmm4
  subss  %xmm8,%xmm1
  movss  0x8(%r10),%xmm3
  movss  0xc(%r10),%xmm2
  subq   $0x1,-0x68(%rsp)
  mulss  %xmm10,%xmm6
  mulss  %xmm10,%xmm1
  movss  %xmm6,(%r10)
  movaps %xmm0,%xmm6
  subss  %xmm9,%xmm0
  addss  %xmm9,%xmm6
  movss  %xmm1,0x8(%r10)
  mulss  %xmm10,%xmm0
  mulss  %xmm10,%xmm6
  movss  %xmm0,0xc(%r10)
  movaps %xmm3,%xmm0
  subss  %xmm5,%xmm3
  addss  %xmm5,%xmm0
  movss  %xmm6,0x4(%r10)
  mulss  %xmm10,%xmm3
  mulss  %xmm10,%xmm0
  movss  %xmm0,(%rcx)
  movaps %xmm2,%xmm0
  subss  %xmm4,%xmm2
  addss  %xmm4,%xmm0
  mulss  %xmm10,%xmm2
  mulss  %xmm10,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x68(%rsp),%rax
  movss  %xmm3,(%rsi)
  movss  %xmm2,(%rdx)
  test   %eax,%eax
  js     L0
  mov    -0x58(%rsp),%rcx
  movswl (%rcx,%rax,2),%eax
  jmp    L31
  nopw   0x0(%rax,%rax,1)
L0:
  mov    -0x10(%rsp),%rcx
  add    %rcx,-0x48(%rsp)
  mov    -0x48(%rsp),%rax
  cmp    %rax,-0x8(%rsp)
  ja     L68
L64:
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void scbitrevR2(float *ioptr, int M, short *BRLow, float scale) {
  float f0r;
  float f0i;
  float f1r;
  float f1i;
  float f2r;
  float f2i;
  float f3r;
  float f3i;
  float f4r;
  float f4i;
  float f5r;
  float f5i;
  float f6r;
  float f6i;
  float f7r;
  float f7i;
  float t0r;
  float t0i;
  float t1r;
  float t1i;
  float *p0r;
  float *p1r;
  float *IOP;
  float *iolimit;
  int Colstart;
  int iCol;
  unsigned int posA;
  unsigned int posAi;
  unsigned int posB;
  unsigned int posBi;
  const unsigned int Nrems2 = ((unsigned long)1 << ((M + 3) / 2));
  const unsigned int Nroot_1_ColInc = ((unsigned long)1 << (M)) - Nrems2;
  const unsigned int Nroot_1 = ((unsigned long)1 << (M / 2 - 1)) - 1;
  const unsigned int ColstartShift = (M + 1) / 2 + 1;
  posA = ((unsigned long)1 << (M));
  posAi = posA + 1;
  posB = posA + 2;
  posBi = posB + 1;
  iolimit = ioptr + Nrems2;
  for (; ioptr < iolimit; ioptr += ((unsigned long)1 << (M / 2 + 1))) {
    for (Colstart = Nroot_1; Colstart >= 0; Colstart--) {
      iCol = Nroot_1;
      p0r = ioptr + Nroot_1_ColInc + BRLow[Colstart] * 4;
      IOP = ioptr + (Colstart << ColstartShift);
      p1r = IOP + BRLow[iCol] * 4;
      f0r = *(p0r);
      f0i = *(p0r + 1);
      f1r = *(p0r + posA);
      f1i = *(p0r + posAi);
      for (; iCol > Colstart;) {
        f2r = *(p0r + 2);
        f2i = *(p0r + (2 + 1));
        f3r = *(p0r + posB);
        f3i = *(p0r + posBi);
        f4r = *(p1r);
        f4i = *(p1r + 1);
        f5r = *(p1r + posA);
        f5i = *(p1r + posAi);
        f6r = *(p1r + 2);
        f6i = *(p1r + (2 + 1));
        f7r = *(p1r + posB);
        f7i = *(p1r + posBi);
        t0r = f0r + f1r;
        t0i = f0i + f1i;
        f1r = f0r - f1r;
        f1i = f0i - f1i;
        t1r = f2r + f3r;
        t1i = f2i + f3i;
        f3r = f2r - f3r;
        f3i = f2i - f3i;
        f0r = f4r + f5r;
        f0i = f4i + f5i;
        f5r = f4r - f5r;
        f5i = f4i - f5i;
        f2r = f6r + f7r;
        f2i = f6i + f7i;
        f7r = f6r - f7r;
        f7i = f6i - f7i;
        *(p1r) = scale * t0r;
        *(p1r + 1) = scale * t0i;
        *(p1r + 2) = scale * f1r;
        *(p1r + (2 + 1)) = scale * f1i;
        *(p1r + posA) = scale * t1r;
        *(p1r + posAi) = scale * t1i;
        *(p1r + posB) = scale * f3r;
        *(p1r + posBi) = scale * f3i;
        *(p0r) = scale * f0r;
        *(p0r + 1) = scale * f0i;
        *(p0r + 2) = scale * f5r;
        *(p0r + (2 + 1)) = scale * f5i;
        *(p0r + posA) = scale * f2r;
        *(p0r + posAi) = scale * f2i;
        *(p0r + posB) = scale * f7r;
        *(p0r + posBi) = scale * f7i;
        p0r -= Nrems2;
        f0r = *(p0r);
        f0i = *(p0r + 1);
        f1r = *(p0r + posA);
        f1i = *(p0r + posAi);
        iCol -= 1;
        p1r = IOP + BRLow[iCol] * 4;
      };
      f2r = *(p0r + 2);
      f2i = *(p0r + (2 + 1));
      f3r = *(p0r + posB);
      f3i = *(p0r + posBi);
      t0r = f0r + f1r;
      t0i = f0i + f1i;
      f1r = f0r - f1r;
      f1i = f0i - f1i;
      t1r = f2r + f3r;
      t1i = f2i + f3i;
      f3r = f2r - f3r;
      f3i = f2i - f3i;
      *(p0r) = scale * t0r;
      *(p0r + 1) = scale * t0i;
      *(p0r + 2) = scale * f1r;
      *(p0r + (2 + 1)) = scale * f1i;
      *(p0r + posA) = scale * t1r;
      *(p0r + posAi) = scale * t1i;
      *(p0r + posB) = scale * f3r;
      *(p0r + posBi) = scale * f3i;
    };
  };
}
```