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

```asm
<stdlib_strided_snanmskmax>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x18,%rsp
  test   %rdi,%rdi
  jle    L149
  mov    %rdx,%rdi
  mov    %rcx,%r9
  test   %rdx,%rdx
  js     L213
  test   %r8,%r8
  js     L245
  cmp    $0x1,%r8
  jne    L169
  cmp    $0x1,%rdx
  jne    L169
  xor    %edx,%edx
  xor    %ecx,%ecx
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L255:
  movss  (%rsi,%rax,4),%xmm1
  ucomiss %xmm1,%xmm1
  jp     L217
  cmpq   $0x0,(%r9,%rcx,8)
  je     L56
L217:
  add    $0x1,%rdx
  add    $0x1,%rax
  add    $0x1,%rcx
  cmp    %rdx,%rbp
  jne    L255
L149:
  pxor   %xmm1,%xmm1
  divss  %xmm1,%xmm1
L144:
  add    $0x18,%rsp
  movaps %xmm1,%xmm0
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L213:
  mov    $0x1,%eax
  sub    %rbp,%rax
  imul   %rdx,%rax
  test   %r8,%r8
  jns    L65
L274:
  mov    $0x1,%ecx
  sub    %rbp,%rcx
  imul   %r8,%rcx
L275:
  xor    %edx,%edx
  nopl   0x0(%rax,%rax,1)
L100:
  movss  (%rsi,%rax,4),%xmm1
  ucomiss %xmm1,%xmm1
  jp     L97
  cmpq   $0x0,(%r9,%rcx,8)
  je     L56
L97:
  add    $0x1,%rdx
  add    %rdi,%rax
  add    %r8,%rcx
  cmp    %rdx,%rbp
  jne    L100
  jmp    L149
  nopw   0x0(%rax,%rax,1)
L56:
  cmp    %rdx,%rbp
  je     L149
  lea    0x1(%rdx),%rbx
  cmp    %rbx,%rbp
  jle    L144
  lea    0x0(,%r8,8),%r15
  lea    0x0(,%rdi,4),%r14
  add    %rcx,%r8
  add    %rax,%rdi
  lea    (%r9,%r8,8),%r12
  lea    (%rsi,%rdi,4),%r13
  jmp    L1
  xchg   %ax,%ax
L214:
  ucomiss %xmm0,%xmm1
  jp     L94
  je     L268
  nopw   0x0(%rax,%rax,1)
L94:
  add    $0x1,%rbx
  add    %r15,%r12
  add    %r14,%r13
  cmp    %rbx,%rbp
  je     L144
L1:
  cmpq   $0x0,(%r12)
  jne    L94
  movss  0x0(%r13),%xmm0
  movss  %xmm1,0x8(%rsp)
  movss  %xmm0,0xc(%rsp)
  call   <stdlib_base_is_nanf@plt>
  movss  0x8(%rsp),%xmm1
  test   %rax,%rax
  jne    L94
  movss  0xc(%rsp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L214
  movaps %xmm0,%xmm1
  jmp    L94
  nopl   0x0(%rax)
L268:
  call   <stdlib_base_is_positive_zerof@plt>
  movss  0x8(%rsp),%xmm1
  test   %rax,%rax
  je     L94
  movss  0xc(%rsp),%xmm0
  movaps %xmm0,%xmm1
  jmp    L94
L245:
  xor    %eax,%eax
  jmp    L274
L169:
  xor    %ecx,%ecx
  xor    %eax,%eax
  jmp    L275
L65:
  xor    %ecx,%ecx
  jmp    L275
```

assistant: ```c
float stdlib_strided_snanmskmax(const int64_t N, const float *X, const int64_t strideX, const uint8_t *Mask, const int64_t strideMask) {
  int64_t ix;
  int64_t im;
  int64_t i;
  float max;
  float v;
  if (N <= 0) {
    return 0.0f / 0.0f;
  }
  if (strideX < 0) {
    ix = (1 - N) * strideX;
  } else {
    ix = 0;
  }
  if (strideMask < 0) {
    im = (1 - N) * strideMask;
  } else {
    im = 0;
  }
  for (i = 0; i < N; i++) {
    v = X[ix];
    if (v == v && Mask[im] == 0) {
      break;
    }
    ix += strideX;
    im += strideMask;
  }
  if (i == N) {
    return 0.0f / 0.0f;
  }
  max = v;
  i += 1;
  for (; i < N; i++) {
    ix += strideX;
    im += strideMask;
    if (Mask[im]) {
      continue;
    }
    v = X[ix];
    if (stdlib_base_is_nanf(v)) {
      continue;
    }
    if (v > max || (v == max && stdlib_base_is_positive_zerof(v))) {
      max = v;
    }
  }
  return max;
}
```