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

```asm
<RandomFunc>:
  endbr64
  mov    (%rdi),%rcx
  mov    %rsi,%rdx
  add    $0x3686696a,%rcx
  mov    %rcx,%rax
  xor    $0xffffffffce5d000b,%rax
  and    $0x1,%ecx
  jne    L17
  mov    %rax,%rsi
  mov    %rax,%rcx
  and    $0x8,%esi
  test   $0x2,%al
  je     L15
  test   %rsi,%rsi
  je     L29
  movabs $0xffffffffffff,%rsi
  shl    $0x30,%rcx
  and    %rax,%rsi
  shr    $0x30,%rax
  or     %rcx,%rsi
  mov    %ax,%si
  mov    %rsi,%rcx
  mov    %rsi,%rax
  shr    $0x4,%rcx
  and    $0x6,%ecx
  or     $0x1,%ecx
  shl    %cl,%rax
  shl    $0x2,%rax
  and    $0x3c,%eax
  or     %rsi,%rax
  add    $0x1f698b9d,%rax
  mov    %rax,(%rdx)
  ret
  nopl   0x0(%rax,%rax,1)
L17:
  movabs $0xffffffff00000000,%rsi
  mov    %rax,%rcx
  shr    %rcx
  and    $0x6,%ecx
  or     $0x1,%ecx
  shl    %cl,%rax
  mov    %eax,%ecx
  and    %rsi,%rax
  rol    $0x10,%ecx
  or     %rcx,%rax
  add    $0x1f698b9d,%rax
  mov    %rax,(%rdx)
  ret
  xchg   %ax,%ax
L15:
  shr    $0x4,%rcx
  test   %rsi,%rsi
  je     L33
  and    $0xe,%ecx
  mov    %rax,%rdi
  or     $0x1,%ecx
  rol    %cl,%rdi
  mov    %rdi,%rcx
  shl    $0x3,%rcx
  and    $0x78,%ecx
  or     %rax,%rcx
  mov    %rcx,%rax
  imul   %rcx,%rax
  shl    $0x4,%rax
  and    $0x3f0,%eax
  or     %rcx,%rax
  add    $0x1f698b9d,%rax
  mov    %rax,(%rdx)
  ret
  nop
L29:
  shr    $0x2,%rcx
  mov    %rax,%rdi
  and    $0xe,%ecx
  or     $0x1,%ecx
  ror    %cl,%rdi
  mov    %rdi,%rcx
  shl    $0x4,%rcx
  and    $0x3f0,%ecx
  or     %rax,%rcx
  mov    %rcx,%rax
  shl    $0x4,%rax
  and    $0x3f0,%eax
  or     %rcx,%rax
  add    $0x1f698b9d,%rax
  mov    %rax,(%rdx)
  ret
  nopl   0x0(%rax)
L33:
  and    $0x6,%ecx
  mov    %rax,%rdi
  or     $0x1,%ecx
  shr    %cl,%rdi
  mov    %rdi,%rcx
  shl    $0x3,%rcx
  and    $0x78,%ecx
  or     %rcx,%rax
  mov    %rax,%rcx
  shr    %rcx
  and    $0xe,%ecx
  or     $0x1,%ecx
  rol    %cl,%rax
  add    $0x1f698b9d,%rax
  mov    %rax,(%rdx)
  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;
  }
}
```