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
  xor    $0x29be1cdb,%rax
  mov    %rax,-0x10(%rbp)
  movq   $0x0,-0x18(%rbp)
  jmp    L32
L69:
  mov    -0x10(%rbp),%rax
  cmp    %rax,-0x18(%rbp)
  je     L40
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shr    $0x2,%rax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,-0x10(%rbp,%rax,8)
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rax
  shr    %rax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  shr    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L51
L40:
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x1c(%rbp)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x4,%rax
  lea    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x4(%rax),%rdx
  mov    -0x1c(%rbp),%eax
  mov    %eax,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  mov    %eax,-0x1c(%rbp)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  add    $0x4,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  mov    %eax,(%rdx)
L51:
  mov    -0x10(%rbp),%rax
  cmp    %rax,-0x18(%rbp)
  jb     L4
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shr    $0x2,%rax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,-0x10(%rbp,%rax,8)
  jmp    L49
L4:
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  mov    %al,-0x1d(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x5,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x5,%rax
  movzbl -0x1d(%rbp),%edx
  mov    %dl,(%rax)
L49:
  addq   $0x2,-0x18(%rbp)
L32:
  cmpq   $0x0,-0x18(%rbp)
  je     L69
  mov    -0x10(%rbp),%rax
  and    $0x132b639,%eax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L0
  call   <__stack_chk_fail@plt>
L0:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned long local1;
  unsigned int copy12;
  char copy14;
  {
    state[0UL] = input[0UL] ^ 700325083UL;
    local1 = 0UL;
    while (local1 < 1UL) {
      if (state[0UL] != local1) {
        state[local1] = state[0UL] << (((state[0UL] >> 2UL) & 7UL) | 1UL);
        state[0UL] = state[local1] >> (((state[local1] >> 1UL) & 7UL) | 1UL);
      } else {
        copy12 = *((unsigned int *)(&state[local1]) + 0);
        *((unsigned int *)(&state[local1]) + 0) = *((unsigned int *)(&state[local1]) + 1);
        *((unsigned int *)(&state[local1]) + 1) = copy12;
        copy12 = *((unsigned int *)(&state[local1]) + 1);
        *((unsigned int *)(&state[local1]) + 1) = *((unsigned int *)(&state[local1]) + 0);
        *((unsigned int *)(&state[local1]) + 0) = copy12;
      }
      if (state[0UL] <= local1) {
        state[local1] = state[0UL] << (((state[0UL] >> 2UL) & 7UL) | 1UL);
      } else {
        copy14 = *((char *)(&state[0UL]) + 4);
        *((char *)(&state[0UL]) + 4) = *((char *)(&state[0UL]) + 5);
        *((char *)(&state[0UL]) + 5) = copy14;
      }
      local1 += 2UL;
    }
    output[0UL] = state[0UL] & 20100665UL;
  }
}
```