user: Translate the below assembly code into C programming language:

```asm
<RandomFunc>:
  endbr64
  mov    (%rdi),%rax
  lea    -0x17447d68(%rax),%rdx
  test   $0x8,%al
  jne    L12
  mov    %edx,%ecx
  shl    $0x8,%ecx
  sar    $0x18,%ecx
  test   $0x1,%dl
  je     L0
  movabs $0xff00ffffffffffff,%rax
  mov    %rdx,%rdi
  movzbl %cl,%ecx
  shl    $0x10,%rdi
  and    %rdx,%rax
  shl    $0x28,%rcx
  shr    $0x38,%rdi
  shr    $0x20,%rdx
  shl    $0x30,%rdi
  or     %rdi,%rax
  movabs $0xffff00ffffffffff,%rdi
  and    %rdi,%rax
  or     %rcx,%rax
  mov    %rdx,%rcx
  and    $0xffffffffff00ffff,%rax
  and    $0xff0000,%ecx
  mov    %rax,%rdx
  or     %rcx,%rdx
  mov    %rdx,%rax
  shl    $0x4,%rax
  and    $0x1f0,%eax
  or     %rdx,%rax
  or     $0x3ada004f,%rax
  add    $0x50b5596c,%rax
  mov    %rax,(%rsi)
  ret
  nopl   (%rax)
L12:
  test   $0x4,%dl
  jne    L14
  mov    %rdx,%rcx
  mov    %rdx,%rax
  shr    $0x4,%rcx
  and    $0xe,%ecx
  or     $0x1,%ecx
  rol    %cl,%rax
  mov    %rdx,%rcx
  shl    $0x4,%rax
  shr    $0x20,%rcx
  and    $0x3f0,%eax
  shl    $0x10,%ecx
  or     %rdx,%rax
  shr    $0x30,%rdx
  or     %ecx,%edx
  mov    %eax,%eax
  shl    $0x20,%rdx
  or     %rdx,%rax
  or     $0x3ada004f,%rax
  add    $0x50b5596c,%rax
  mov    %rax,(%rsi)
  ret
  nopl   (%rax)
L14:
  lea    (%rdx,%rdx,1),%rax
  or     $0x3ada004f,%rax
  add    $0x50b5596c,%rax
  mov    %rax,(%rsi)
  ret
  nopl   0x0(%rax)
L0:
  movabs $0xffffffffffffff,%rax
  mov    %edx,%edi
  movabs $0xffffffff00ffffff,%r8
  sar    $0x18,%edi
  and    %rdx,%rax
  shl    $0x38,%rdi
  or     %rdi,%rax
  mov    %rdx,%rdi
  shr    $0x38,%rdi
  and    %r8,%rax
  shl    $0x18,%rdi
  or     %rdi,%rax
  movzbl %dh,%edi
  and    $0xffffffffff00ffff,%rax
  shl    $0x10,%rdi
  mov    %rax,%rdx
  or     %rdi,%rdx
  mov    %cl,%dh
  mov    %rdx,%rax
  shl    $0x4,%rax
  and    $0x3f0,%eax
  or     %rdx,%rax
  or     $0x3ada004f,%rax
  add    $0x50b5596c,%rax
  mov    %rax,(%rsi)
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  char copy11;
  char copy12;
  unsigned short copy14;
  {
    state[0UL] = (input[0UL] - 51238316UL) - 339126204UL;
    if ((state[0UL] >> 3UL) & 1UL) {
      if (state[0UL] & 1UL) {
        if (state[0UL] & 1UL) {
          copy11 = *((char *)(&state[0UL]) + 6);
          *((char *)(&state[0UL]) + 6) = *((char *)(&state[0UL]) + 5);
          *((char *)(&state[0UL]) + 5) = copy11;
          copy11 = *((char *)(&state[0UL]) + 5);
          *((char *)(&state[0UL]) + 5) = *((char *)(&state[0UL]) + 2);
          *((char *)(&state[0UL]) + 2) = copy11;
          state[0UL] |= (state[0UL] & 31UL) << 4UL;
        } else {
          state[0UL] += state[0UL];
          state[0UL] += state[0UL];
        }
      } else if (state[0UL] & 1UL) {
        state[0UL] |= ((state[0UL] << (((state[0UL] >> 1UL) & 7UL) | 1UL)) & 15UL) << 3UL;
        state[0UL] |= (state[0UL] & 63UL) << 4UL;
      } else {
        copy12 = *((char *)(&state[0UL]) + 7);
        *((char *)(&state[0UL]) + 7) = *((char *)(&state[0UL]) + 3);
        *((char *)(&state[0UL]) + 3) = copy12;
        copy12 = *((char *)(&state[0UL]) + 2);
        *((char *)(&state[0UL]) + 2) = *((char *)(&state[0UL]) + 1);
        *((char *)(&state[0UL]) + 1) = copy12;
        state[0UL] |= (state[0UL] & 63UL) << 4UL;
      }
    } else if ((state[0UL] >> 2UL) & 1UL) {
      state[0UL] += state[0UL];
    } else {
      state[0UL] |= (((state[0UL] << (((state[0UL] >> 4UL) & 15UL) | 1UL)) | (state[0UL] >> (64 - (((state[0UL] >> 4UL) & 15UL) | 1UL)))) & 63UL) << 4UL;
      copy14 = *((unsigned short *)(&state[0UL]) + 2);
      *((unsigned short *)(&state[0UL]) + 2) = *((unsigned short *)(&state[0UL]) + 3);
      *((unsigned short *)(&state[0UL]) + 3) = copy14;
    }
    output[0UL] = (state[0UL] | 987365455UL) + 1354062188UL;
  }
}
```