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),%rax
  add    $0x136ff696,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  and    $0x10,%eax
  test   %rax,%rax
  je     L25
  mov    -0x10(%rbp),%rax
  and    $0x8,%eax
  test   %rax,%rax
  je     L58
  lea    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0x12(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x5,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x5,%rax
  movzbl -0x12(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0x11(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x2,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzbl -0x11(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  mov    %al,-0x11(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x6,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x6,%rax
  movzbl -0x11(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L66
L58:
  lea    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0x13(%rbp)
  lea    -0x10(%rbp),%rdx
  lea    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  movzbl -0x13(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  mov    %al,-0x13(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x7,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x7,%rax
  movzbl -0x13(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L66
L25:
  mov    -0x10(%rbp),%rax
  and    $0x1,%eax
  test   %rax,%rax
  je     L32
  mov    -0x10(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L66
L32:
  lea    -0x10(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  mov    %al,-0x14(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x1,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl -0x14(%rbp),%edx
  mov    %dl,(%rax)
L66:
  mov    -0x10(%rbp),%rax
  imul   $0x26b89ca2,%rax,%rax
  movabs $0xfccace8a5ca761d8,%rdx
  add    %rax,%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L24
  call   <__stack_chk_fail@plt>
L24:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  char copy11;
  char copy12;
  char copy13;
  char copy16;
  {
    state[0UL] = (input[0UL] + 51238316UL) + 274866410UL;
    if ((state[0UL] >> 4UL) & 1UL) {
      if ((state[0UL] >> 3UL) & 1UL) {
        copy11 = *((char *)(&state[0UL]) + 1);
        *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 5);
        *((char *)(&state[0UL]) + 5) = copy11;
        copy12 = *((char *)(&state[0UL]) + 1);
        *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 2);
        *((char *)(&state[0UL]) + 2) = copy12;
        copy12 = *((char *)(&state[0UL]) + 5);
        *((char *)(&state[0UL]) + 5) = *((char *)(&state[0UL]) + 6);
        *((char *)(&state[0UL]) + 6) = copy12;
      } else {
        copy13 = *((char *)(&state[0UL]) + 1);
        *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 0);
        *((char *)(&state[0UL]) + 0) = copy13;
        copy13 = *((char *)(&state[0UL]) + 4);
        *((char *)(&state[0UL]) + 4) = *((char *)(&state[0UL]) + 7);
        *((char *)(&state[0UL]) + 7) = copy13;
      }
    } else if (state[0UL] & 1UL) {
      state[0UL] += state[0UL];
      state[0UL] += state[0UL];
    } else {
      copy16 = *((char *)(&state[0UL]) + 6);
      *((char *)(&state[0UL]) + 6) = *((char *)(&state[0UL]) + 1);
      *((char *)(&state[0UL]) + 1) = copy16;
    }
    output[0UL] = state[0UL] * 649632930UL - 231145337200877096UL;
  }
}
```