user: What is the c source code of the assembly code below:

```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
  sub    $0x17447d68,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  and    $0x8,%eax
  test   %rax,%rax
  je     L2
  mov    -0x10(%rbp),%rax
  and    $0x1,%eax
  test   %rax,%rax
  je     L99
  mov    -0x10(%rbp),%rax
  and    $0x1,%eax
  test   %rax,%rax
  je     L10
  lea    -0x10(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  mov    %al,-0x13(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x5,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x5,%rax
  movzbl -0x13(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  mov    %al,-0x13(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x2,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzbl -0x13(%rbp),%edx
  mov    %dl,(%rax)
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shl    $0x4,%rax
  and    $0x1f0,%eax
  or     %rdx,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L14
L10:
  mov    -0x10(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L14
L99:
  mov    -0x10(%rbp),%rax
  and    $0x1,%eax
  test   %rax,%rax
  je     L28
  mov    -0x10(%rbp),%rsi
  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
  shl    $0x3,%rax
  and    $0x78,%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    L14
L28:
  lea    -0x10(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  mov    %al,-0x14(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x3,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x3,%rax
  movzbl -0x14(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  mov    %al,-0x14(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x1,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl -0x14(%rbp),%edx
  mov    %dl,(%rax)
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shl    $0x4,%rax
  and    $0x3f0,%eax
  or     %rdx,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L14
L2:
  mov    -0x10(%rbp),%rax
  and    $0x4,%eax
  test   %rax,%rax
  je     L78
  mov    -0x10(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L14
L78:
  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    $0x4,%rax
  and    $0x3f0,%eax
  or     %rsi,%rax
  mov    %rax,-0x10(%rbp)
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  movzwl (%rax),%eax
  mov    %ax,-0x12(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x6,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  movzwl (%rdx),%edx
  mov    %dx,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x6,%rax
  movzwl -0x12(%rbp),%edx
  mov    %dx,(%rax)
L14:
  mov    -0x10(%rbp),%rax
  or     $0x3ada004f,%rax
  lea    0x50b5596c(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L15
  call   <__stack_chk_fail@plt>
L15:
  leave
  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;
  }
}
```