user: 请将这段汇编代码片段转换成等效的C代码：

```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
  add    $0x3686696a,%rax
  xor    $0xffffffffce5d000b,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  and    $0x1,%eax
  test   %rax,%rax
  je     L4
  mov    -0x10(%rbp),%rax
  and    $0x2,%eax
  test   %rax,%rax
  je     L50
  mov    -0x10(%rbp),%rax
  and    $0x8,%eax
  test   %rax,%rax
  je     L9
  lea    -0x10(%rbp),%rax
  add    $0x6,%rax
  movzwl (%rax),%eax
  mov    %ax,-0x12(%rbp)
  lea    -0x10(%rbp),%rdx
  lea    -0x10(%rbp),%rax
  add    $0x6,%rax
  movzwl (%rdx),%edx
  mov    %dx,(%rax)
  lea    -0x10(%rbp),%rax
  movzwl -0x12(%rbp),%edx
  mov    %dx,(%rax)
  mov    -0x10(%rbp),%rsi
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shr    $0x4,%rax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  and    $0x3c,%eax
  or     %rsi,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L29
L9:
  mov    -0x10(%rbp),%rsi
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shr    $0x2,%rax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  ror    %cl,%rdx
  mov    %rdx,%rax
  shl    $0x4,%rax
  and    $0x3f0,%eax
  or     %rsi,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shl    $0x4,%rax
  and    $0x3f0,%eax
  or     %rdx,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L29
L50:
  mov    -0x10(%rbp),%rax
  and    $0x8,%eax
  test   %rax,%rax
  je     L43
  mov    -0x10(%rbp),%rsi
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shr    $0x4,%rax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  rol    %cl,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  and    $0x78,%eax
  or     %rsi,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rcx
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  imul   %rdx,%rax
  shl    $0x4,%rax
  and    $0x3f0,%eax
  or     %rcx,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L29
L43:
  mov    -0x10(%rbp),%rsi
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shr    $0x4,%rax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  shr    %cl,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  and    $0x78,%eax
  or     %rsi,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shr    %rax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  rol    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L29
L4:
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shr    %rax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  lea    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzwl (%rax),%eax
  mov    %ax,-0x14(%rbp)
  lea    -0x10(%rbp),%rdx
  lea    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzwl (%rdx),%edx
  mov    %dx,(%rax)
  lea    -0x10(%rbp),%rax
  movzwl -0x14(%rbp),%edx
  mov    %dx,(%rax)
L29:
  mov    -0x10(%rbp),%rax
  lea    0x1f698b9d(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L81
  call   <__stack_chk_fail@plt>
L81:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned short copy11;
  unsigned short copy12;
  {
    state[0UL] = (input[0UL] + 914778474UL) ^ 0xffffffffce5d000bUL;
    if (state[0UL] & 1UL) {
      if ((state[0UL] >> 1UL) & 1UL) {
        if ((state[0UL] >> 3UL) & 1UL) {
          copy11 = *((unsigned short *)(&state[0UL]) + 3);
          *((unsigned short *)(&state[0UL]) + 3) = *((unsigned short *)(&state[0UL]) + 0);
          *((unsigned short *)(&state[0UL]) + 0) = copy11;
          state[0UL] |= ((state[0UL] << (((state[0UL] >> 4UL) & 7UL) | 1UL)) & 15UL) << 2UL;
        } else {
          state[0UL] |= (((state[0UL] >> (((state[0UL] >> 2UL) & 15UL) | 1UL)) | (state[0UL] << (64 - (((state[0UL] >> 2UL) & 15UL) | 1UL)))) & 63UL) << 4UL;
          state[0UL] |= (state[0UL] & 63UL) << 4UL;
        }
      } else if ((state[0UL] >> 3UL) & 1UL) {
        state[0UL] |= (((state[0UL] << (((state[0UL] >> 4UL) & 15UL) | 1UL)) | (state[0UL] >> (64 - (((state[0UL] >> 4UL) & 15UL) | 1UL)))) & 15UL) << 3UL;
        state[0UL] |= (state[0UL] * state[0UL] & 63UL) << 4UL;
      } else {
        state[0UL] |= ((state[0UL] >> (((state[0UL] >> 4UL) & 7UL) | 1UL)) & 15UL) << 3UL;
        state[0UL] = (state[0UL] << (((state[0UL] >> 1UL) & 15UL) | 1UL)) | (state[0UL] >> (64 - (((state[0UL] >> 1UL) & 15UL) | 1UL)));
      }
    } else {
      state[0UL] <<= ((state[0UL] >> 1UL) & 7UL) | 1UL;
      copy12 = *((unsigned short *)(&state[0UL]) + 1);
      *((unsigned short *)(&state[0UL]) + 1) = *((unsigned short *)(&state[0UL]) + 0);
      *((unsigned short *)(&state[0UL]) + 0) = copy12;
    }
    output[0UL] = state[0UL] + 527010717UL;
  }
}
```