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


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
xor    $0xdb,%eax
mov    %al,-0x11(%rbp)
movb   $0x0,-0x13(%rbp)
movzbl -0x13(%rbp),%eax
cmp    $0x0,%eax
jge    117e <RandomFunc+0x7e>
movb   $0x0,-0x12(%rbp)
movzbl -0x12(%rbp),%eax
cmp    $0x0,%eax
jge    116e <RandomFunc+0x6e>
movzbl -0x11(%rbp),%eax
movzbl -0x11(%rbp),%ecx
sar    $0x2,%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    1130 <RandomFunc+0x30>
movzbl -0x13(%rbp),%eax
add    $0x2,%rax
mov    %al,-0x13(%rbp)
jmp    111f <RandomFunc+0x1f>
movzbl -0x11(%rbp),%eax
shl    $0x5,%eax
shl    $0x7,%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 i32
%12 = xor i32 %11, 219
%13 = trunc i32 %12 to i8
%14 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
store i8 %13, i8* %14
store i8 0, i8* %7
br label %15
15: ; preds = %45, %2
%16 = load i8, i8* %7
%17 = zext i8 %16 to i32
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %50
19: ; preds = %15
store i8 0, i8* %6
br label %20
20: ; preds = %24, %19
%21 = load i8, i8* %6
%22 = zext i8 %21 to i32
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %45
24: ; preds = %20
%25 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%26 = load i8, i8* %25
%27 = zext i8 %26 to i32
%28 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%29 = load i8, i8* %28
%30 = zext i8 %29 to i32
%31 = ashr i32 %30, 2
%32 = and i32 %31, 7
%33 = sext i32 %32 to i64
%34 = or i64 %33, 1
%35 = trunc i64 %34 to i32
%36 = shl i32 %27, %35
%37 = trunc i32 %36 to i8
%38 = load i8, i8* %7
%39 = zext i8 %38 to i64
%40 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 %39
store i8 %37, i8* %40
%41 = load i8, i8* %6
%42 = zext i8 %41 to i64
%43 = add i64 %42, 2
%44 = trunc i64 %43 to i8
store i8 %44, i8* %6
br label %20
45: ; preds = %20
%46 = load i8, i8* %7
%47 = zext i8 %46 to i64
%48 = add i64 %47, 2
%49 = trunc i64 %48 to i8
store i8 %49, i8* %7
br label %15
50: ; preds = %15
%51 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%52 = load i8, i8* %51
%53 = zext i8 %52 to i32
%54 = shl i32 %53, 5
%55 = shl i32 %54, 7
%56 = trunc i32 %55 to i8
%57 = load i8*, i8** %4
%58 = getelementptr inbounds i8, i8* %57, i64 0
store i8 %56, i8* %58
ret void
}

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