void RandomFunc(unsigned char input[1], unsigned char output[1]) {
  unsigned char state[1];
  {
    state[0UL] = (input[0UL] - 51238316UL) - (unsigned char)191;
    if ((state[0UL] >> (unsigned char)3) & (unsigned char)1) {
      if (state[0UL] & (unsigned char)1) {
        if (state[0UL] & (unsigned char)1) {
          state[0UL] |= (state[0UL] & (unsigned char)15) << 3UL;
          state[0UL] |= (state[0UL] & (unsigned char)7) << 2UL;
        } else {
          state[0UL] |= (state[0UL] & (unsigned char)15) << 3UL;
          state[0UL] |=
              (((state[0UL] >> ((state[0UL] & (unsigned char)15) | 1UL)) |
                (state[0UL]
                 << (8 - ((state[0UL] & (unsigned char)15) | 1UL)))) &
               (unsigned char)31)
              << 4UL;
        }
      } else if ((state[0UL] >> (unsigned char)3) & (unsigned char)1) {
        state[0UL] |=
            (((state[0UL] << ((state[0UL] & (unsigned char)15) | 1UL)) |
              (state[0UL] >> (8 - ((state[0UL] & (unsigned char)15) | 1UL)))) &
             (unsigned char)63)
            << 4UL;
        state[0UL] |= (state[0UL] & (unsigned char)63) << 4UL;
      } else {
        state[0UL] =
            (state[0UL] >>
             (((state[0UL] >> (unsigned char)4) & (unsigned char)15) | 1UL)) |
            (state[0UL] << (8 - (((state[0UL] >> (unsigned char)4) &
                                  (unsigned char)15) |
                                 1UL)));
        state[0UL] |= (state[0UL] & (unsigned char)31) << 4UL;
      }
    } else if ((state[0UL] >> (unsigned char)2) & (unsigned char)1) {
      state[0UL] |= (state[0UL] & (unsigned char)31) << 3UL;
      state[0UL] += state[0UL];
    } else {
      state[0UL] |= ((state[0UL] + state[0UL]) & (unsigned char)31) << 4UL;
      state[0UL] *= state[0UL];
    }
    output[0UL] =
        (state[0UL] + 745448133UL)
        << ((((9000184UL >>
               ((((480272593UL >> (unsigned char)255) >> (unsigned char)2) &
                 (unsigned char)7) |
                1UL)) >>
              (unsigned char)4) &
             (unsigned char)7) |
            1UL);
  }
}


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
sub    $0x30dd5ac,%rax
sub    $0xbf,%rax
mov    %al,-0x11(%rbp)
movzbl -0x11(%rbp),%eax
sar    $0x3,%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     12ab <RandomFunc+0x1ab>
movzbl -0x11(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11df <RandomFunc+0xdf>
movzbl -0x11(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1180 <RandomFunc+0x80>
movzbl -0x11(%rbp),%ecx
and    $0xf,%ecx
shl    $0x3,%ecx
movzbl -0x11(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x11(%rbp)
movzbl -0x11(%rbp),%ecx
and    $0x7,%ecx
shl    $0x2,%ecx
movzbl -0x11(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x11(%rbp)
jmp    11da <RandomFunc+0xda>
movzbl -0x11(%rbp),%ecx
and    $0xf,%ecx
shl    $0x3,%ecx
movzbl -0x11(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x11(%rbp)
movzbl -0x11(%rbp),%eax
movzbl -0x11(%rbp),%ecx
and    $0xf,%ecx
movslq %ecx,%rcx
or     $0x1,%rcx
sar    %cl,%eax
mov    %eax,-0x18(%rbp)
movzbl -0x11(%rbp),%eax
movzbl -0x11(%rbp),%ecx
and    $0xf,%ecx
movslq %ecx,%rdx
or     $0x1,%rdx
mov    $0x8,%ecx
sub    %rdx,%rcx
shl    %cl,%eax
mov    -0x18(%rbp),%ecx
or     %eax,%ecx
and    $0x1f,%ecx
shl    $0x4,%ecx
movzbl -0x11(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x11(%rbp)
jmp    12a6 <RandomFunc+0x1a6>
movzbl -0x11(%rbp),%eax
sar    $0x3,%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1251 <RandomFunc+0x151>
movzbl -0x11(%rbp),%eax
movzbl -0x11(%rbp),%ecx
and    $0xf,%ecx
movslq %ecx,%rcx
or     $0x1,%rcx
shl    %cl,%eax
mov    %eax,-0x1c(%rbp)
movzbl -0x11(%rbp),%eax
movzbl -0x11(%rbp),%ecx
and    $0xf,%ecx
movslq %ecx,%rdx
or     $0x1,%rdx
mov    $0x8,%ecx
sub    %rdx,%rcx
sar    %cl,%eax
mov    -0x1c(%rbp),%ecx
or     %eax,%ecx
and    $0x3f,%ecx
shl    $0x4,%ecx
movzbl -0x11(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x11(%rbp)
movzbl -0x11(%rbp),%ecx
and    $0x3f,%ecx
shl    $0x4,%ecx
movzbl -0x11(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x11(%rbp)
jmp    12a1 <RandomFunc+0x1a1>
movzbl -0x11(%rbp),%eax
movzbl -0x11(%rbp),%ecx
sar    $0x4,%ecx
and    $0xf,%ecx
movslq %ecx,%rcx
or     $0x1,%rcx
sar    %cl,%eax
movzbl -0x11(%rbp),%edx
movzbl -0x11(%rbp),%ecx
sar    $0x4,%ecx
and    $0xf,%ecx
movslq %ecx,%rsi
or     $0x1,%rsi
mov    $0x8,%ecx
sub    %rsi,%rcx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
mov    %al,-0x11(%rbp)
movzbl -0x11(%rbp),%ecx
and    $0x1f,%ecx
shl    $0x4,%ecx
movzbl -0x11(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x11(%rbp)
jmp    12a6 <RandomFunc+0x1a6>
jmp    130f <RandomFunc+0x20f>
movzbl -0x11(%rbp),%eax
sar    $0x2,%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     12e3 <RandomFunc+0x1e3>
movzbl -0x11(%rbp),%ecx
and    $0x1f,%ecx
shl    $0x3,%ecx
movzbl -0x11(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x11(%rbp)
movzbl -0x11(%rbp),%ecx
movzbl -0x11(%rbp),%eax
add    %ecx,%eax
mov    %al,-0x11(%rbp)
jmp    130a <RandomFunc+0x20a>
movzbl -0x11(%rbp),%ecx
movzbl -0x11(%rbp),%eax
add    %eax,%ecx
and    $0x1f,%ecx
shl    $0x4,%ecx
movzbl -0x11(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x11(%rbp)
movzbl -0x11(%rbp),%ecx
movzbl -0x11(%rbp),%eax
imul   %ecx,%eax
mov    %al,-0x11(%rbp)
jmp    130f <RandomFunc+0x20f>
movzbl -0x11(%rbp),%eax
add    $0x2c6ea2c5,%rax
shl    %cl,%rax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
ret

LLVM IR (-O0):
define void @RandomFunc(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca [1 x i8]
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = getelementptr inbounds i8, i8* %6, i64 0
%8 = load i8, i8* %7
%9 = zext i8 %8 to i64
%10 = sub i64 %9, 51238316
%11 = sub i64 %10, 191
%12 = trunc i64 %11 to i8
%13 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
store i8 %12, i8* %13
%14 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%15 = load i8, i8* %14
%16 = zext i8 %15 to i32
%17 = ashr i32 %16, 3
%18 = and i32 %17, 1
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %186
20: ; preds = %2
%21 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%22 = load i8, i8* %21
%23 = zext i8 %22 to i32
%24 = and i32 %23, 1
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %96
26: ; preds = %20
%27 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%28 = load i8, i8* %27
%29 = zext i8 %28 to i32
%30 = and i32 %29, 1
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %53
32: ; preds = %26
%33 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%34 = load i8, i8* %33
%35 = zext i8 %34 to i32
%36 = and i32 %35, 15
%37 = shl i32 %36, 3
%38 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = or i32 %40, %37
%42 = trunc i32 %41 to i8
store i8 %42, i8* %38
%43 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%44 = load i8, i8* %43
%45 = zext i8 %44 to i32
%46 = and i32 %45, 7
%47 = shl i32 %46, 2
%48 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = or i32 %50, %47
%52 = trunc i32 %51 to i8
store i8 %52, i8* %48
br label %95
53: ; preds = %26
%54 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%55 = load i8, i8* %54
%56 = zext i8 %55 to i32
%57 = and i32 %56, 15
%58 = shl i32 %57, 3
%59 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%60 = load i8, i8* %59
%61 = zext i8 %60 to i32
%62 = or i32 %61, %58
%63 = trunc i32 %62 to i8
store i8 %63, i8* %59
%64 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%65 = load i8, i8* %64
%66 = zext i8 %65 to i32
%67 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%68 = load i8, i8* %67
%69 = zext i8 %68 to i32
%70 = and i32 %69, 15
%71 = sext i32 %70 to i64
%72 = or i64 %71, 1
%73 = trunc i64 %72 to i32
%74 = ashr i32 %66, %73
%75 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%76 = load i8, i8* %75
%77 = zext i8 %76 to i32
%78 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%79 = load i8, i8* %78
%80 = zext i8 %79 to i32
%81 = and i32 %80, 15
%82 = sext i32 %81 to i64
%83 = or i64 %82, 1
%84 = sub i64 8, %83
%85 = trunc i64 %84 to i32
%86 = shl i32 %77, %85
%87 = or i32 %74, %86
%88 = and i32 %87, 31
%89 = shl i32 %88, 4
%90 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%91 = load i8, i8* %90
%92 = zext i8 %91 to i32
%93 = or i32 %92, %89
%94 = trunc i32 %93 to i8
store i8 %94, i8* %90
br label %95
95: ; preds = %53, %32
br label %185
96: ; preds = %20
%97 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%98 = load i8, i8* %97
%99 = zext i8 %98 to i32
%100 = ashr i32 %99, 3
%101 = and i32 %100, 1
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %145
103: ; preds = %96
%104 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%105 = load i8, i8* %104
%106 = zext i8 %105 to i32
%107 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%108 = load i8, i8* %107
%109 = zext i8 %108 to i32
%110 = and i32 %109, 15
%111 = sext i32 %110 to i64
%112 = or i64 %111, 1
%113 = trunc i64 %112 to i32
%114 = shl i32 %106, %113
%115 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%116 = load i8, i8* %115
%117 = zext i8 %116 to i32
%118 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%119 = load i8, i8* %118
%120 = zext i8 %119 to i32
%121 = and i32 %120, 15
%122 = sext i32 %121 to i64
%123 = or i64 %122, 1
%124 = sub i64 8, %123
%125 = trunc i64 %124 to i32
%126 = ashr i32 %117, %125
%127 = or i32 %114, %126
%128 = and i32 %127, 63
%129 = shl i32 %128, 4
%130 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%131 = load i8, i8* %130
%132 = zext i8 %131 to i32
%133 = or i32 %132, %129
%134 = trunc i32 %133 to i8
store i8 %134, i8* %130
%135 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%136 = load i8, i8* %135
%137 = zext i8 %136 to i32
%138 = and i32 %137, 63
%139 = shl i32 %138, 4
%140 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%141 = load i8, i8* %140
%142 = zext i8 %141 to i32
%143 = or i32 %142, %139
%144 = trunc i32 %143 to i8
store i8 %144, i8* %140
br label %184
145: ; preds = %96
%146 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%147 = load i8, i8* %146
%148 = zext i8 %147 to i32
%149 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%150 = load i8, i8* %149
%151 = zext i8 %150 to i32
%152 = ashr i32 %151, 4
%153 = and i32 %152, 15
%154 = sext i32 %153 to i64
%155 = or i64 %154, 1
%156 = trunc i64 %155 to i32
%157 = ashr i32 %148, %156
%158 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%159 = load i8, i8* %158
%160 = zext i8 %159 to i32
%161 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%162 = load i8, i8* %161
%163 = zext i8 %162 to i32
%164 = ashr i32 %163, 4
%165 = and i32 %164, 15
%166 = sext i32 %165 to i64
%167 = or i64 %166, 1
%168 = sub i64 8, %167
%169 = trunc i64 %168 to i32
%170 = shl i32 %160, %169
%171 = or i32 %157, %170
%172 = trunc i32 %171 to i8
%173 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
store i8 %172, i8* %173
%174 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%175 = load i8, i8* %174
%176 = zext i8 %175 to i32
%177 = and i32 %176, 31
%178 = shl i32 %177, 4
%179 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%180 = load i8, i8* %179
%181 = zext i8 %180 to i32
%182 = or i32 %181, %178
%183 = trunc i32 %182 to i8
store i8 %183, i8* %179
br label %184
184: ; preds = %145, %103
br label %185
185: ; preds = %184, %95
br label %236
186: ; preds = %2
%187 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%188 = load i8, i8* %187
%189 = zext i8 %188 to i32
%190 = ashr i32 %189, 2
%191 = and i32 %190, 1
%192 = icmp ne i32 %191, 0
br i1 %192, label %193, label %212
193: ; preds = %186
%194 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%195 = load i8, i8* %194
%196 = zext i8 %195 to i32
%197 = and i32 %196, 31
%198 = shl i32 %197, 3
%199 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%200 = load i8, i8* %199
%201 = zext i8 %200 to i32
%202 = or i32 %201, %198
%203 = trunc i32 %202 to i8
store i8 %203, i8* %199
%204 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%205 = load i8, i8* %204
%206 = zext i8 %205 to i32
%207 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%208 = load i8, i8* %207
%209 = zext i8 %208 to i32
%210 = add nsw i32 %209, %206
%211 = trunc i32 %210 to i8
store i8 %211, i8* %207
br label %235
212: ; preds = %186
%213 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%214 = load i8, i8* %213
%215 = zext i8 %214 to i32
%216 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%217 = load i8, i8* %216
%218 = zext i8 %217 to i32
%219 = add nsw i32 %215, %218
%220 = and i32 %219, 31
%221 = shl i32 %220, 4
%222 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%223 = load i8, i8* %222
%224 = zext i8 %223 to i32
%225 = or i32 %224, %221
%226 = trunc i32 %225 to i8
store i8 %226, i8* %222
%227 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%228 = load i8, i8* %227
%229 = zext i8 %228 to i32
%230 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%231 = load i8, i8* %230
%232 = zext i8 %231 to i32
%233 = mul nsw i32 %232, %229
%234 = trunc i32 %233 to i8
store i8 %234, i8* %230
br label %235
235: ; preds = %212, %193
br label %236
236: ; preds = %235, %185
%237 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%238 = load i8, i8* %237
%239 = zext i8 %238 to i64
%240 = add i64 %239, 745448133
%241 = shl i64 %240, poison
%242 = trunc i64 %241 to i8
%243 = load i8*, i8** %4
%244 = getelementptr inbounds i8, i8* %243, i64 0
store i8 %242, i8* %244
ret void
}

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