user: 请从给定的汇编指令推导出C源代码：

```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
  movzwl (%rax),%eax
  shl    $0x7,%eax
  and    $0xb500,%ax
  mov    %ax,-0xa(%rbp)
  movzwl -0xa(%rbp),%eax
  shr    %ax
  movzwl %ax,%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L9
  movzwl -0xa(%rbp),%eax
  shr    %ax
  movzwl %ax,%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L54
  movzwl -0xa(%rbp),%eax
  shr    $0x4,%ax
  movzwl %ax,%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L73
  lea    -0xa(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0xb(%rbp)
  lea    -0xa(%rbp),%rdx
  lea    -0xa(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0xa(%rbp),%rax
  movzbl -0xb(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0xa(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0xb(%rbp)
  lea    -0xa(%rbp),%rax
  add    $0x1,%rax
  lea    -0xa(%rbp),%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  lea    -0xa(%rbp),%rax
  add    $0x1,%rax
  movzbl -0xb(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L73
L54:
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L30
  lea    -0xa(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0xc(%rbp)
  lea    -0xa(%rbp),%rdx
  lea    -0xa(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0xa(%rbp),%rax
  movzbl -0xc(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0xa(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0xc(%rbp)
  lea    -0xa(%rbp),%rax
  add    $0x1,%rax
  lea    -0xa(%rbp),%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  lea    -0xa(%rbp),%rax
  add    $0x1,%rax
  movzbl -0xc(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L73
L30:
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%edx
  movzwl -0xa(%rbp),%eax
  shr    $0x3,%ax
  movzwl %ax,%eax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  mov    %ax,-0xa(%rbp)
  jmp    L73
L9:
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%edx
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %ax,-0xa(%rbp)
L73:
  movzwl -0xa(%rbp),%eax
  lea    0x0(,%rax,8),%edx
  mov    -0x20(%rbp),%rax
  mov    %dx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L23
  call   <__stack_chk_fail@plt>
L23:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned short input[1], unsigned short output[1]) {
  unsigned short state[1];
  char copy12;
  char copy13;
  {
    state[0UL] = (input[0UL] & 914778474UL) << (unsigned short)7;
    if ((state[0UL] >> (unsigned short)1) & (unsigned short)1) {
      if ((state[0UL] >> (unsigned short)1) & (unsigned short)1) {
        if (!((state[0UL] >> (unsigned short)4) & (unsigned short)1)) {
          copy12 = *((char *)(&state[0UL]) + 1);
          *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 0);
          *((char *)(&state[0UL]) + 0) = copy12;
          copy12 = *((char *)(&state[0UL]) + 0);
          *((char *)(&state[0UL]) + 0) = *((char *)(&state[0UL]) + 1);
          *((char *)(&state[0UL]) + 1) = copy12;
        }
      } else if (state[0UL] & (unsigned short)1) {
        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]) + 1);
        *((char *)(&state[0UL]) + 1) = copy13;
      } else {
        state[0UL] >>= ((state[0UL] >> (unsigned short)3) & (unsigned short)7) | 1UL;
      }
    } else {
      state[0UL] <<= (state[0UL] & (unsigned short)7) | 1UL;
    }
    output[0UL] = state[0UL] << (unsigned short)3;
  }
}
```