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    $0x2cdb,%ax
  mov    %ax,-0xa(%rbp)
  movw   $0x0,-0xc(%rbp)
  jmp    L26
L32:
  movzwl -0xa(%rbp),%eax
  cmp    %ax,-0xc(%rbp)
  jne    L25
  movzwl -0xa(%rbp),%eax
  cmp    %ax,-0xc(%rbp)
  jbe    L61
  movzwl -0xa(%rbp),%ecx
  movzwl -0xc(%rbp),%eax
  cltq
  movzwl -0xa(%rbp,%rax,2),%edx
  movzwl -0xc(%rbp),%eax
  add    %ecx,%edx
  cltq
  mov    %dx,-0xa(%rbp,%rax,2)
  movzwl -0xc(%rbp),%eax
  cltq
  movzwl -0xa(%rbp,%rax,2),%eax
  mov    %eax,%esi
  movzwl -0xa(%rbp),%edx
  movzwl -0xc(%rbp),%eax
  cltq
  movzwl -0xa(%rbp,%rax,2),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movzwl %ax,%eax
  shl    $0x4,%eax
  and    $0x1f0,%ax
  or     %eax,%esi
  mov    %esi,%edx
  movzwl -0xc(%rbp),%eax
  cltq
  mov    %dx,-0xa(%rbp,%rax,2)
  jmp    L7
L61:
  movzwl -0xc(%rbp),%eax
  cltq
  movzwl -0xa(%rbp,%rax,2),%eax
  mov    %eax,%edx
  movzwl -0xa(%rbp),%eax
  movzwl %ax,%eax
  add    %eax,%eax
  shl    $0x2,%eax
  and    $0x38,%eax
  or     %eax,%edx
  movzwl -0xc(%rbp),%eax
  cltq
  mov    %dx,-0xa(%rbp,%rax,2)
  jmp    L7
L25:
  movzwl -0xa(%rbp),%eax
  mov    %eax,%edx
  movzwl -0xc(%rbp),%eax
  cltq
  movzwl -0xa(%rbp,%rax,2),%eax
  movzwl %ax,%eax
  shl    $0x3,%eax
  and    $0x78,%eax
  or     %edx,%eax
  mov    %ax,-0xa(%rbp)
  movzwl -0xc(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0xd(%rbp)
  movzwl -0xc(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  movzwl -0xc(%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 -0xc(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rax,%rdx
  movzbl -0xd(%rbp),%eax
  mov    %al,(%rdx)
  movzwl -0xc(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0xd(%rbp)
  movzwl -0xc(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  add    $0x1,%rax
  movzwl -0xc(%rbp),%edx
  lea    -0xa(%rbp),%rcx
  movslq %edx,%rdx
  add    %rdx,%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  movzwl -0xc(%rbp),%eax
  lea    -0xa(%rbp),%rdx
  cltq
  add    %rax,%rax
  add    %rdx,%rax
  lea    0x1(%rax),%rdx
  movzbl -0xd(%rbp),%eax
  mov    %al,(%rdx)
L7:
  movzwl -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %ax,-0xc(%rbp)
L26:
  cmpw   $0x0,-0xc(%rbp)
  je     L32
  movzwl -0xa(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x20(%rbp),%rax
  mov    %dx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L69
  call   <__stack_chk_fail@plt>
L69:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned short input[1], unsigned short output[1]) {
  unsigned short state[1];
  unsigned short local1;
  char copy12;
  {
    state[0UL] = input[0UL] + (unsigned short)11483;
    local1 = 0UL;
    while (local1 < 1UL) {
      if (state[0UL] == local1) {
        if (state[0UL] < local1) {
          state[local1] = state[0UL] + state[local1];
          state[local1] |= ((state[0UL] - state[local1]) & (unsigned short)31) << 4UL;
        } else {
          state[local1] |= ((state[0UL] + state[0UL]) & (unsigned short)15) << 2UL;
        }
      } else {
        state[0UL] |= (state[local1] & (unsigned short)15) << 3UL;
        copy12 = *((char *)(&state[local1]) + 1);
        *((char *)(&state[local1]) + 1) = *((char *)(&state[local1]) + 0);
        *((char *)(&state[local1]) + 0) = copy12;
        copy12 = *((char *)(&state[local1]) + 0);
        *((char *)(&state[local1]) + 0) = *((char *)(&state[local1]) + 1);
        *((char *)(&state[local1]) + 1) = copy12;
      }
      local1++;
    }
    output[0UL] = state[0UL] << (unsigned short)1;
  }
}
```