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

```asm
<c_srev>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x28(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  jle    L32
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0xc(%rbp)
  cmpl   $0x1,-0x28(%rbp)
  jne    L130
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x55555556,%rdx,%rdx
  shr    $0x20,%rdx
  mov    %eax,%esi
  sar    $0x1f,%esi
  mov    %edx,%ecx
  sub    %esi,%ecx
  mov    %ecx,%edx
  add    %edx,%edx
  add    %ecx,%edx
  sub    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jle    L90
  movl   $0x0,-0x18(%rbp)
  jmp    L85
L14:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
  subl   $0x1,-0x14(%rbp)
  addl   $0x1,-0x18(%rbp)
L85:
  mov    -0x18(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L14
L90:
  cmpl   $0x2,-0xc(%rbp)
  jle    L102
  mov    -0x4(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  jmp    L0
L132:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
  subl   $0x3,-0x14(%rbp)
  addl   $0x3,-0x18(%rbp)
L0:
  mov    -0x18(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L132
  jmp    L49
L130:
  cmpl   $0x0,-0x28(%rbp)
  jns    L88
  mov    $0x1,%eax
  sub    -0x24(%rbp),%eax
  mov    -0x28(%rbp),%edx
  imul   %edx,%eax
  mov    %eax,-0x18(%rbp)
  jmp    L76
L88:
  movl   $0x0,-0x18(%rbp)
L76:
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x28(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L78
L120:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x28(%rbp),%eax
  add    %eax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  sub    %eax,-0x14(%rbp)
  addl   $0x1,-0x10(%rbp)
L78:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L120
  jmp    L49
L32:
  nop
  jmp    L49
L102:
  nop
L49:
  pop    %rbp
  ret
```

assistant: ```c
void c_srev(const int64_t N, float *X, const int64_t stride) {
  int64_t ix;
  int64_t iy;
  int64_t m;
  int64_t n;
  int64_t i;
  float tmp;
  if (N <= 0) {
    return;
  }
  n = N / 2;
  if (stride == 1) {
    m = n % 3;
    iy = N - 1;
    if (m > 0) {
      for (ix = 0; ix < m; ix++) {
        tmp = X[ix];
        X[ix] = X[iy];
        X[iy] = tmp;
        iy -= 1;
      }
    }
    if (n < 3) {
      return;
    }
    for (ix = m; ix < n; ix += 3) {
      tmp = X[ix];
      X[ix] = X[iy];
      X[iy] = tmp;
      tmp = X[ix + 1];
      X[ix + 1] = X[iy - 1];
      X[iy - 1] = tmp;
      tmp = X[ix + 2];
      X[ix + 2] = X[iy - 2];
      X[iy - 2] = tmp;
      iy -= 3;
    }
    return;
  }
  if (stride < 0) {
    ix = (1 - N) * stride;
  } else {
    ix = 0;
  }
  iy = ix + ((N - 1) * stride);
  for (i = 0; i < n; i++) {
    tmp = X[ix];
    X[ix] = X[iy];
    X[iy] = tmp;
    ix += stride;
    iy -= stride;
  }
  return;
}
```