void RandomFunc(unsigned int input[1], unsigned int output[1]) {
  unsigned int state[1];
  unsigned int local1;
  char copy11;
  {
    state[0UL] = input[0UL] ^ 700325083U;
    local1 = 0UL;
    while (local1 < 0U) {
      copy11 = *((char *)(&state[0UL]) + 1);
      *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 2);
      *((char *)(&state[0UL]) + 2) = copy11;
      local1 += 2UL;
    }
    output[0UL] = (state[0UL] & 595841640UL) << 3U;
  }
}


x86 assembly (clang, -O0):
<RandomFunc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
xor    $0x29be1cdb,%eax
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jae    114c <RandomFunc+0x4c>
mov    -0x13(%rbp),%al
mov    %al,-0x19(%rbp)
mov    -0x12(%rbp),%al
mov    %al,-0x13(%rbp)
mov    -0x19(%rbp),%al
mov    %al,-0x12(%rbp)
mov    -0x18(%rbp),%eax
add    $0x2,%rax
mov    %eax,-0x18(%rbp)
jmp    1121 <RandomFunc+0x21>
mov    -0x14(%rbp),%eax
and    $0x2383d268,%rax
shl    $0x3,%rax
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
mov    (%rdi),%eax
shl    $0x3,%eax
and    $0x1c1e9340,%eax
xor    $0xc108240,%eax
mov    %eax,(%rsi)
ret

LLVM IR (-O0):
define void @RandomFunc(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca [1 x i32]
%6 = alloca i32
%7 = alloca i8
store i32* %0, i32** %3
store i32* %1, i32** %4
%8 = load i32*, i32** %3
%9 = getelementptr inbounds i32, i32* %8, i64 0
%10 = load i32, i32* %9
%11 = xor i32 %10, 700325083
%12 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
store i32 %11, i32* %12
store i32 0, i32* %6
br label %13
13: ; preds = %16, %2
%14 = load i32, i32* %6
%15 = icmp ult i32 %14, 0
br i1 %15, label %16, label %36
16: ; preds = %13
%17 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
%18 = bitcast i32* %17 to i8*
%19 = getelementptr inbounds i8, i8* %18, i64 1
%20 = load i8, i8* %19
store i8 %20, i8* %7
%21 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
%22 = bitcast i32* %21 to i8*
%23 = getelementptr inbounds i8, i8* %22, i64 2
%24 = load i8, i8* %23
%25 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
%26 = bitcast i32* %25 to i8*
%27 = getelementptr inbounds i8, i8* %26, i64 1
store i8 %24, i8* %27
%28 = load i8, i8* %7
%29 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
%30 = bitcast i32* %29 to i8*
%31 = getelementptr inbounds i8, i8* %30, i64 2
store i8 %28, i8* %31
%32 = load i32, i32* %6
%33 = zext i32 %32 to i64
%34 = add i64 %33, 2
%35 = trunc i64 %34 to i32
store i32 %35, i32* %6
br label %13
36: ; preds = %13
%37 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
%38 = load i32, i32* %37
%39 = zext i32 %38 to i64
%40 = and i64 %39, 595841640
%41 = shl i64 %40, 3
%42 = trunc i64 %41 to i32
%43 = load i32*, i32** %4
%44 = getelementptr inbounds i32, i32* %43, i64 0
store i32 %42, i32* %44
ret void
}

LLVM IR (-O2):
define void @RandomFunc(i32* nocapture %0, i32* nocapture writeonly %1) {
%3 = load i32, i32* %0
%4 = shl i32 %3, 3
%5 = and i32 %4, 471765824
%6 = xor i32 %5, 202408512
store i32 %6, i32* %1
ret void
}