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);
        local2 += 2UL;
      }
      local1++;
    }
    output[0UL] = (state[0UL] << (unsigned char)7) & (unsigned char)34;
  }
}


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    1185 <RandomFunc+0x85>
movb   $0x0,-0x12(%rbp)
movzbl -0x12(%rbp),%eax
cmp    $0x0,%eax
jge    1178 <RandomFunc+0x78>
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 -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
shl    $0x7,%eax
and    $0x22,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
movb   $0x0,(%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 = %48, %2
%17 = load i8, i8* %7
%18 = zext i8 %17 to i32
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %51
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 %48
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 = load i8, i8* %6
%45 = zext i8 %44 to i64
%46 = add i64 %45, 2
%47 = trunc i64 %46 to i8
store i8 %47, i8* %6
br label %21
48: ; preds = %21
%49 = load i8, i8* %7
%50 = add i8 %49, 1
store i8 %50, i8* %7
br label %16
51: ; preds = %16
%52 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = shl i32 %54, 7
%56 = and i32 %55, 34
%57 = trunc i32 %56 to i8
%58 = load i8*, i8** %4
%59 = getelementptr inbounds i8, i8* %58, i64 0
store i8 %57, i8* %59
ret void
}

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