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

```asm
<RandomFunc>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  sub    $0x17447d68,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L65
  mov    -0xc(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L31
  mov    -0xc(%rbp),%edx
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  and    $0x1c,%eax
  or     %edx,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L47
L31:
  lea    -0xc(%rbp),%rax
  add    $0x2,%rax
  movzwl (%rax),%eax
  mov    %ax,-0xe(%rbp)
  lea    -0xc(%rbp),%rdx
  lea    -0xc(%rbp),%rax
  add    $0x2,%rax
  movzwl (%rdx),%edx
  mov    %dx,(%rax)
  lea    -0xc(%rbp),%rax
  movzwl -0xe(%rbp),%edx
  mov    %dx,(%rax)
  lea    -0xc(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0x11(%rbp)
  lea    -0xc(%rbp),%rdx
  lea    -0xc(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0xc(%rbp),%rax
  movzbl -0x11(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0xc(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x11(%rbp)
  lea    -0xc(%rbp),%rax
  add    $0x2,%rax
  lea    -0xc(%rbp),%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  lea    -0xc(%rbp),%rax
  add    $0x2,%rax
  movzbl -0x11(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L47
L65:
  mov    -0xc(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L8
  lea    -0xc(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0x12(%rbp)
  lea    -0xc(%rbp),%rdx
  add    $0x2,%rdx
  lea    -0xc(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0xc(%rbp),%rax
  add    $0x2,%rax
  movzbl -0x12(%rbp),%edx
  mov    %dl,(%rax)
  mov    -0xc(%rbp),%edx
  mov    -0xc(%rbp),%eax
  shl    $0x3,%eax
  movzbl %al,%eax
  or     %edx,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L47
L8:
  lea    -0xc(%rbp),%rax
  movzwl (%rax),%eax
  mov    %ax,-0x10(%rbp)
  lea    -0xc(%rbp),%rax
  add    $0x2,%rax
  lea    -0xc(%rbp),%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  lea    -0xc(%rbp),%rax
  add    $0x2,%rax
  movzwl -0x10(%rbp),%edx
  mov    %dx,(%rax)
  lea    -0xc(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  mov    %al,-0x13(%rbp)
  lea    -0xc(%rbp),%rdx
  add    $0x3,%rdx
  lea    -0xc(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0xc(%rbp),%rax
  add    $0x3,%rax
  movzbl -0x13(%rbp),%edx
  mov    %dl,(%rax)
L47:
  mov    -0xc(%rbp),%eax
  rol    $0x7,%eax
  shr    $0x3,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L20
  call   <__stack_chk_fail@plt>
L20:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned int input[1], unsigned int output[1]) {
  unsigned int state[1];
  unsigned short copy12;
  char copy13;
  char copy14;
  unsigned short copy15;
  char copy16;
  {
    state[0UL] = (input[0UL] - 51238316UL) - 339126204U;
    if ((state[0UL] >> 3U) & 1U) {
      if (state[0UL] & 1U) {
        state[0UL] |= (state[0UL] & 7U) << 2UL;
      } else {
        copy12 = *((unsigned short *)(&state[0UL]) + 1);
        *((unsigned short *)(&state[0UL]) + 1) = *((unsigned short *)(&state[0UL]) + 0);
        *((unsigned short *)(&state[0UL]) + 0) = copy12;
        copy13 = *((char *)(&state[0UL]) + 1);
        *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 0);
        *((char *)(&state[0UL]) + 0) = copy13;
        copy13 = *((char *)(&state[0UL]) + 0);
        *((char *)(&state[0UL]) + 0) = *((char *)(&state[0UL]) + 2);
        *((char *)(&state[0UL]) + 2) = copy13;
      }
    } else if (state[0UL] & 1U) {
      copy14 = *((char *)(&state[0UL]) + 1);
      *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 2);
      *((char *)(&state[0UL]) + 2) = copy14;
      state[0UL] |= (state[0UL] & 31U) << 3UL;
    } else {
      copy15 = *((unsigned short *)(&state[0UL]) + 0);
      *((unsigned short *)(&state[0UL]) + 0) = *((unsigned short *)(&state[0UL]) + 1);
      *((unsigned short *)(&state[0UL]) + 1) = copy15;
      copy16 = *((char *)(&state[0UL]) + 2);
      *((char *)(&state[0UL]) + 2) = *((char *)(&state[0UL]) + 3);
      *((char *)(&state[0UL]) + 3) = copy16;
    }
    output[0UL] = ((state[0UL] << 7U) | (state[0UL] >> 25U)) >> 3U;
  }
}
```