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
  add    $0x7296,%ax
  mov    %ax,-0xa(%rbp)
  movzwl -0xa(%rbp),%eax
  shr    $0x3,%ax
  movzwl %ax,%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L35
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L23
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L54
  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)
  movzwl -0xa(%rbp),%eax
  mov    %eax,%edx
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  add    %eax,%eax
  shl    $0x4,%eax
  and    $0x3e0,%ax
  or     %edx,%eax
  mov    %ax,-0xa(%rbp)
  jmp    L60
L54:
  movzwl -0xa(%rbp),%eax
  mov    %eax,%edi
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%edx
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %edx,%esi
  mov    %eax,%ecx
  shl    %cl,%esi
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%edx
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  mov    $0x10,%eax
  sub    %ecx,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  or     %esi,%eax
  shl    $0x3,%eax
  movzbl %al,%eax
  or     %edi,%eax
  mov    %ax,-0xa(%rbp)
  movzwl -0xa(%rbp),%eax
  mov    %eax,%edi
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%edx
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %edx,%esi
  mov    %eax,%ecx
  shl    %cl,%esi
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%edx
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  mov    $0x10,%eax
  sub    %ecx,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  or     %esi,%eax
  shl    $0x4,%eax
  and    $0x1f0,%ax
  or     %edi,%eax
  mov    %ax,-0xa(%rbp)
  jmp    L60
L23:
  movzwl -0xa(%rbp),%edx
  movzwl -0xa(%rbp),%eax
  imul   %edx,%eax
  mov    %ax,-0xa(%rbp)
  movzwl -0xa(%rbp),%eax
  mov    %eax,%edx
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  shl    $0x3,%eax
  movzbl %al,%eax
  or     %edx,%eax
  mov    %ax,-0xa(%rbp)
  jmp    L60
L35:
  movzwl -0xa(%rbp),%eax
  add    %eax,%eax
  mov    %ax,-0xa(%rbp)
  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)
L60:
  movzwl -0xa(%rbp),%eax
  xor    $0xf51f,%ax
  lea    0x6973(%rax),%edx
  mov    -0x20(%rbp),%rax
  mov    %dx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L7
  call   <__stack_chk_fail@plt>
L7:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned short input[1], unsigned short output[1]) {
  unsigned short state[1];
  char copy11;
  char copy12;
  {
    state[0UL] = (input[0UL] - 51238316UL) - (unsigned short)47038;
    if ((state[0UL] >> (unsigned short)3) & (unsigned short)1) {
      if (state[0UL] & (unsigned short)1) {
        if (state[0UL] & (unsigned short)1) {
          copy11 = *((char *)(&state[0UL]) + 1);
          *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 0);
          *((char *)(&state[0UL]) + 0) = copy11;
          copy11 = *((char *)(&state[0UL]) + 0);
          *((char *)(&state[0UL]) + 0) = *((char *)(&state[0UL]) + 1);
          *((char *)(&state[0UL]) + 1) = copy11;
          state[0UL] |= ((state[0UL] + state[0UL]) & (unsigned short)63) << 4UL;
        } else {
          state[0UL] |= (((state[0UL] << ((state[0UL] & (unsigned short)15) | 1UL)) | (state[0UL] >> (16 - ((state[0UL] & (unsigned short)15) | 1UL)))) & (unsigned short)31) << 3UL;
          state[0UL] |= (((state[0UL] << ((state[0UL] & (unsigned short)15) | 1UL)) | (state[0UL] >> (16 - ((state[0UL] & (unsigned short)15) | 1UL)))) & (unsigned short)31) << 4UL;
        }
      } else {
        state[0UL] *= state[0UL];
        state[0UL] |= (state[0UL] & (unsigned short)31) << 3UL;
      }
    } else {
      state[0UL] += state[0UL];
      copy12 = *((char *)(&state[0UL]) + 1);
      *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 0);
      *((char *)(&state[0UL]) + 0) = copy12;
    }
    output[0UL] = (state[0UL] ^ 1073542431UL) + (unsigned short)26995;
  }
}
```