user: Please show me the C implementation that matches the assembly code listed below:

```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     L44
  movzbl -0x9(%rbp),%eax
  shr    %al
  movzbl %al,%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L49
  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)
  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    L40
L49:
  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    $0x1c,%eax
  or     %edi,%eax
  mov    %al,-0x9(%rbp)
  movzbl -0x9(%rbp),%eax
  mov    %eax,%edx
  movzbl -0x9(%rbp),%eax
  movzbl %al,%eax
  shl    $0x2,%eax
  and    $0x3c,%eax
  or     %edx,%eax
  mov    %al,-0x9(%rbp)
  jmp    L40
L44:
  movzbl -0x9(%rbp),%eax
  movzbl -0x9(%rbp),%edx
  imul   %edx,%eax
  mov    %al,-0x9(%rbp)
  movzbl -0x9(%rbp),%eax
  movzbl %al,%edx
  movzbl -0x9(%rbp),%eax
  shr    $0x2,%al
  movzbl %al,%eax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %al,-0x9(%rbp)
L40:
  movzbl -0x9(%rbp),%eax
  lea    -0x52(%rax),%edx
  mov    -0x20(%rbp),%rax
  mov    %dl,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L1
  call   <__stack_chk_fail@plt>
L1:
  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;
        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 {
        state[0UL] |= (((state[0UL] >> ((state[0UL] & (unsigned char)15) | 1UL)) | (state[0UL] << (8 - ((state[0UL] & (unsigned char)15) | 1UL)))) & (unsigned char)7) << 2UL;
        state[0UL] |= (state[0UL] & (unsigned char)15) << 2UL;
      }
    } else {
      state[0UL] *= state[0UL];
      state[0UL] <<= ((state[0UL] >> (unsigned char)2) & (unsigned char)7) | 1UL;
    }
    output[0UL] = (state[0UL] - 940836162UL) - (unsigned char)16;
  }
}
```