user: What would the C source look like for the assembly code provided here:

```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)
  movw   $0x0,-0xc(%rbp)
  jmp    L57
L25:
  movw   $0x0,-0xe(%rbp)
  jmp    L19
L20:
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%edx
  movzwl -0xe(%rbp),%ecx
  movzwl -0xc(%rbp),%eax
  imul   %ecx,%eax
  cmp    %eax,%edx
  jne    L43
  movzwl -0xc(%rbp),%eax
  cltq
  movzwl -0xa(%rbp,%rax,2),%edx
  movzwl -0xa(%rbp),%eax
  or     %edx,%eax
  mov    %ax,-0xa(%rbp)
  jmp    L45
L43:
  movzwl -0xe(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0xf(%rbp)
  movzwl -0xe(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  movzwl -0xe(%rbp),%edx
  lea    -0xa(%rbp),%rcx
  movslq %edx,%rdx
  add    %rdx,%rdx
  add    %rcx,%rdx
  add    $0x1,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  movzwl -0xe(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rax,%rdx
  movzbl -0xf(%rbp),%eax
  mov    %al,(%rdx)
  movzwl -0xe(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0xf(%rbp)
  movzwl -0xe(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  add    $0x1,%rax
  movzwl -0xe(%rbp),%edx
  lea    -0xa(%rbp),%rcx
  movslq %edx,%rdx
  add    %rdx,%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  movzwl -0xe(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  lea    0x1(%rax),%rdx
  movzbl -0xf(%rbp),%eax
  mov    %al,(%rdx)
L45:
  addw   $0x2,-0xe(%rbp)
L19:
  cmpw   $0x0,-0xe(%rbp)
  je     L20
  movzwl -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %ax,-0xc(%rbp)
L57:
  cmpw   $0x0,-0xc(%rbp)
  je     L25
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  shl    $0x9,%eax
  mov    %eax,%edx
  movzwl -0xa(%rbp),%eax
  shr    $0x7,%ax
  movzwl %ax,%eax
  or     %edx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  shl    $0x9,%eax
  mov    %eax,%edx
  movzwl -0xa(%rbp),%eax
  shr    $0x7,%ax
  movzwl %ax,%eax
  or     %edx,%eax
  sar    $0xf,%eax
  or     %ecx,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %dx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L37
  call   <__stack_chk_fail@plt>
L37:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned short input[1], unsigned short output[1]) {
  unsigned short state[1];
  unsigned short local2;
  unsigned short local1;
  char copy11;
  {
    state[0UL] = (input[0UL] - 51238316UL) - (unsigned short)47038;
    local1 = 0UL;
    while (local1 < 1UL) {
      local2 = 0UL;
      while (local2 < 1UL) {
        if (state[0UL] == local2 * local1) {
          state[0UL] = state[local1] | state[0UL];
        } else {
          copy11 = *((char *)(&state[local2]) + 1);
          *((char *)(&state[local2]) + 1) = *((char *)(&state[local2]) + 0);
          *((char *)(&state[local2]) + 0) = copy11;
          copy11 = *((char *)(&state[local2]) + 0);
          *((char *)(&state[local2]) + 0) = *((char *)(&state[local2]) + 1);
          *((char *)(&state[local2]) + 1) = copy11;
        }
        local2 += 2UL;
      }
      local1++;
    }
    output[0UL] = (((state[0UL] << (unsigned short)9) | (state[0UL] >> (unsigned short)7)) << (unsigned short)1) | (((state[0UL] << (unsigned short)9) | (state[0UL] >> (unsigned short)7)) >> (unsigned short)15);
  }
}
```