void RandomFunc(unsigned char input[1], unsigned char output[1]) {
  unsigned char state[1];
  unsigned char local2;
  unsigned char local1;
  {
    state[0UL] = (input[0UL] & 914778474UL) << (unsigned char)7;
    local1 = 0UL;
    while (local1 < (unsigned char)0) {
      local2 = 0UL;
      while (local2 < (unsigned char)0) {
        state[local1] = state[0UL] << (((state[local1] >> (unsigned char)1) &
                                        (unsigned char)7) |
                                       1UL);
        state[local2] = state[0UL] << (((state[local2] >> (unsigned char)4) &
                                        (unsigned char)7) |
                                       1UL);
        local2 += 2UL;
      }
      local1++;
    }
    output[0UL] = state[0UL] | 1047729131UL;
  }
}


x86 assembly (clang, -O0):
<RandomFunc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
and    $0x3686696a,%rax
shl    $0x7,%rax
mov    %al,-0x11(%rbp)
movb   $0x0,-0x13(%rbp)
movzbl -0x13(%rbp),%eax
cmp    $0x0,%eax
jge    11ab <RandomFunc+0xab>
movb   $0x0,-0x12(%rbp)
movzbl -0x12(%rbp),%eax
cmp    $0x0,%eax
jge    119e <RandomFunc+0x9e>
movzbl -0x11(%rbp),%eax
movzbl -0x13(%rbp),%ecx
movzbl -0x11(%rbp,%rcx,1),%ecx
sar    $0x1,%ecx
and    $0x7,%ecx
movslq %ecx,%rcx
or     $0x1,%rcx
shl    %cl,%eax
mov    %al,%cl
movzbl -0x13(%rbp),%eax
mov    %cl,-0x11(%rbp,%rax,1)
movzbl -0x11(%rbp),%eax
movzbl -0x12(%rbp),%ecx
movzbl -0x11(%rbp,%rcx,1),%ecx
sar    $0x4,%ecx
and    $0x7,%ecx
movslq %ecx,%rcx
or     $0x1,%rcx
shl    %cl,%eax
mov    %al,%cl
movzbl -0x12(%rbp),%eax
mov    %cl,-0x11(%rbp,%rax,1)
movzbl -0x12(%rbp),%eax
add    $0x2,%rax
mov    %al,-0x12(%rbp)
jmp    1135 <RandomFunc+0x35>
mov    -0x13(%rbp),%al
add    $0x1,%al
mov    %al,-0x13(%rbp)
jmp    1124 <RandomFunc+0x24>
movzbl -0x11(%rbp),%eax
or     $0x3e7313eb,%rax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
movb   $0xeb,(%rsi)
ret

LLVM IR (-O0):
define void @RandomFunc(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca [1 x i8]
%6 = alloca i8
%7 = alloca i8
store i8* %0, i8** %3
store i8* %1, i8** %4
%8 = load i8*, i8** %3
%9 = getelementptr inbounds i8, i8* %8, i64 0
%10 = load i8, i8* %9
%11 = zext i8 %10 to i64
%12 = and i64 %11, 914778474
%13 = shl i64 %12, 7
%14 = trunc i64 %13 to i8
%15 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
store i8 %14, i8* %15
store i8 0, i8* %7
br label %16
16: ; preds = %66, %2
%17 = load i8, i8* %7
%18 = zext i8 %17 to i32
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %69
20: ; preds = %16
store i8 0, i8* %6
br label %21
21: ; preds = %25, %20
%22 = load i8, i8* %6
%23 = zext i8 %22 to i32
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %66
25: ; preds = %21
%26 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%27 = load i8, i8* %26
%28 = zext i8 %27 to i32
%29 = load i8, i8* %7
%30 = zext i8 %29 to i64
%31 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = zext i8 %32 to i32
%34 = ashr i32 %33, 1
%35 = and i32 %34, 7
%36 = sext i32 %35 to i64
%37 = or i64 %36, 1
%38 = trunc i64 %37 to i32
%39 = shl i32 %28, %38
%40 = trunc i32 %39 to i8
%41 = load i8, i8* %7
%42 = zext i8 %41 to i64
%43 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 %42
store i8 %40, i8* %43
%44 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%45 = load i8, i8* %44
%46 = zext i8 %45 to i32
%47 = load i8, i8* %6
%48 = zext i8 %47 to i64
%49 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 %48
%50 = load i8, i8* %49
%51 = zext i8 %50 to i32
%52 = ashr i32 %51, 4
%53 = and i32 %52, 7
%54 = sext i32 %53 to i64
%55 = or i64 %54, 1
%56 = trunc i64 %55 to i32
%57 = shl i32 %46, %56
%58 = trunc i32 %57 to i8
%59 = load i8, i8* %6
%60 = zext i8 %59 to i64
%61 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 %60
store i8 %58, i8* %61
%62 = load i8, i8* %6
%63 = zext i8 %62 to i64
%64 = add i64 %63, 2
%65 = trunc i64 %64 to i8
store i8 %65, i8* %6
br label %21
66: ; preds = %21
%67 = load i8, i8* %7
%68 = add i8 %67, 1
store i8 %68, i8* %7
br label %16
69: ; preds = %16
%70 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%71 = load i8, i8* %70
%72 = zext i8 %71 to i64
%73 = or i64 %72, 1047729131
%74 = trunc i64 %73 to i8
%75 = load i8*, i8** %4
%76 = getelementptr inbounds i8, i8* %75, i64 0
store i8 %74, i8* %76
ret void
}

LLVM IR (-O2):
define void @RandomFunc(i8* nocapture readnone %0, i8* nocapture writeonly %1) {
store i8 -21, i8* %1
ret void
}