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

```asm
<RandomFunc>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  add    $0x6a,%eax
  xor    $0xb,%eax
  mov    %al,-0x9(%rbp)
  movzbl -0x9(%rbp),%eax
  movzbl %al,%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L67
  movzbl -0x9(%rbp),%eax
  shr    %al
  movzbl %al,%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L7
  movzbl -0x9(%rbp),%eax
  mov    %eax,%edx
  movzbl -0x9(%rbp),%eax
  movzbl %al,%eax
  shl    $0x2,%eax
  and    $0x1c,%eax
  or     %edx,%eax
  mov    %al,-0x9(%rbp)
  jmp    L43
L7:
  movzbl -0x9(%rbp),%eax
  movzbl %al,%edx
  movzbl -0x9(%rbp),%eax
  shr    %al
  movzbl %al,%eax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%esi
  movzbl -0x9(%rbp),%eax
  movzbl %al,%edx
  movzbl -0x9(%rbp),%eax
  shr    %al
  movzbl %al,%eax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  mov    $0x8,%eax
  sub    %ecx,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %esi,%eax
  mov    %al,-0x9(%rbp)
  jmp    L43
L67:
  movzbl -0x9(%rbp),%eax
  movzbl %al,%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L52
  movzbl -0x9(%rbp),%eax
  mov    %eax,%edi
  movzbl -0x9(%rbp),%eax
  movzbl %al,%edx
  movzbl -0x9(%rbp),%eax
  movzbl %al,%eax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %edx,%esi
  mov    %eax,%ecx
  sar    %cl,%esi
  movzbl -0x9(%rbp),%eax
  movzbl %al,%edx
  movzbl -0x9(%rbp),%eax
  movzbl %al,%eax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  mov    $0x8,%eax
  sub    %ecx,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %esi,%eax
  shl    $0x2,%eax
  and    $0x3c,%eax
  or     %edi,%eax
  mov    %al,-0x9(%rbp)
  jmp    L43
L52:
  movzbl -0x9(%rbp),%eax
  mov    %eax,%edx
  movzbl -0x9(%rbp),%eax
  movzbl %al,%eax
  shl    $0x4,%eax
  and    $0xfffffff0,%eax
  or     %edx,%eax
  mov    %al,-0x9(%rbp)
L43:
  movzbl -0x9(%rbp),%eax
  mov    $0xffffffc9,%edx
  imul   %edx,%eax
  or     $0x4d,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %dl,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L37
  call   <__stack_chk_fail@plt>
L37:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned char input[1], unsigned char output[1]) {
  unsigned char state[1];
  {
    state[0UL] = (input[0UL] + 914778474UL) ^ (unsigned char)11;
    if (state[0UL] & (unsigned char)1) {
      if ((state[0UL] >> (unsigned char)1) & (unsigned char)1) {
        state[0UL] |= (state[0UL] & (unsigned char)7) << 2UL;
      } else {
        state[0UL] = (state[0UL] >> (((state[0UL] >> (unsigned char)1) & (unsigned char)15) | 1UL)) | (state[0UL] << (8 - (((state[0UL] >> (unsigned char)1) & (unsigned char)15) | 1UL)));
      }
    } else if (state[0UL] & (unsigned char)1) {
      state[0UL] |= (((state[0UL] >> ((state[0UL] & (unsigned char)15) | 1UL)) | (state[0UL] << (8 - ((state[0UL] & (unsigned char)15) | 1UL)))) & (unsigned char)15) << 2UL;
    } else {
      state[0UL] |= (state[0UL] & (unsigned char)63) << 4UL;
    }
    output[0UL] = state[0UL] * 238420169UL | ((unsigned char)77 | (984652509UL << (unsigned char)255));
  }
}
```