#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ clkDelay();
unsigned char send_cmd(unsigned char *in) {
  int i, j;
  unsigned char b, crc = 0;
  *((unsigned int *)0xC000A044) |= (1 << 1);
  for (i = 0; i < 5; i++) {
    b = in[i];
    for (j = 0; j < 8; j++) {
      do {
        *((unsigned int *)0xC000A040) &= ~(1 << 0);
        clkDelay();
      } while (0);
      if (b & 0x80)
        *((unsigned int *)0xC000A040) |= (1 << 1);
      else
        *((unsigned int *)0xC000A040) &= ~(1 << 1);
      crc <<= 1;
      do {
        clkDelay();
        *((unsigned int *)0xC000A040) |= (1 << 0);
      } while (0);
      if ((crc ^ b) & 0x80)
        crc ^= 0x09;
      b <<= 1;
    }
    crc &= 0x7f;
  }
  crc = ((crc << 1) | 0x01);
  b = crc;
  for (j = 0; j < 8; j++) {
    do {
      *((unsigned int *)0xC000A040) &= ~(1 << 0);
      clkDelay();
    } while (0);
    if (crc & 0x80)
      *((unsigned int *)0xC000A040) |= (1 << 1);
    else
      *((unsigned int *)0xC000A040) &= ~(1 << 1);
    do {
      clkDelay();
      *((unsigned int *)0xC000A040) |= (1 << 0);
    } while (0);
    crc <<= 1;
  }
  return b;
}


x86 assembly (clang, -O0):
<send_cmd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movb   $0x0,-0x12(%rbp)
mov    $0xc000a044,%eax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    $0xc000a044,%eax
mov    %ecx,(%rax)
movl   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    122b <send_cmd+0x11b>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x11(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x8,-0x10(%rbp)
jge    1213 <send_cmd+0x103>
jmp    1166 <send_cmd+0x56>
mov    $0xc000a040,%eax
mov    (%rax),%ecx
and    $0xfffffffe,%ecx
mov    $0xc000a040,%eax
mov    %ecx,(%rax)
mov    $0x0,%al
call   1030 <clkDelay@plt>
movzbl -0x11(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     11a6 <send_cmd+0x96>
mov    $0xc000a040,%eax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    $0xc000a040,%eax
mov    %ecx,(%rax)
jmp    11b7 <send_cmd+0xa7>
mov    $0xc000a040,%eax
mov    (%rax),%ecx
and    $0xfffffffd,%ecx
mov    $0xc000a040,%eax
mov    %ecx,(%rax)
movzbl -0x12(%rbp),%eax
shl    $0x1,%eax
mov    %al,-0x12(%rbp)
mov    $0x0,%al
call   1030 <clkDelay@plt>
mov    $0xc000a040,%eax
mov    (%rax),%ecx
or     $0x1,%ecx
mov    $0xc000a040,%eax
mov    %ecx,(%rax)
movzbl -0x12(%rbp),%eax
movzbl -0x11(%rbp),%ecx
xor    %ecx,%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     11fb <send_cmd+0xeb>
movzbl -0x12(%rbp),%eax
xor    $0x9,%eax
mov    %al,-0x12(%rbp)
movzbl -0x11(%rbp),%eax
shl    $0x1,%eax
mov    %al,-0x11(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1157 <send_cmd+0x47>
movzbl -0x12(%rbp),%eax
and    $0x7f,%eax
mov    %al,-0x12(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1138 <send_cmd+0x28>
movzbl -0x12(%rbp),%eax
shl    $0x1,%eax
or     $0x1,%eax
mov    %al,-0x12(%rbp)
mov    -0x12(%rbp),%al
mov    %al,-0x11(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x8,-0x10(%rbp)
jge    12da <send_cmd+0x1ca>
jmp    1254 <send_cmd+0x144>
mov    $0xc000a040,%eax
mov    (%rax),%ecx
and    $0xfffffffe,%ecx
mov    $0xc000a040,%eax
mov    %ecx,(%rax)
mov    $0x0,%al
call   1030 <clkDelay@plt>
movzbl -0x12(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1294 <send_cmd+0x184>
mov    $0xc000a040,%eax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    $0xc000a040,%eax
mov    %ecx,(%rax)
jmp    12a5 <send_cmd+0x195>
mov    $0xc000a040,%eax
mov    (%rax),%ecx
and    $0xfffffffd,%ecx
mov    $0xc000a040,%eax
mov    %ecx,(%rax)
jmp    12aa <send_cmd+0x19a>
mov    $0x0,%al
call   1030 <clkDelay@plt>
mov    $0xc000a040,%eax
mov    (%rax),%ecx
or     $0x1,%ecx
mov    $0xc000a040,%eax
mov    %ecx,(%rax)
movzbl -0x12(%rbp),%eax
shl    $0x1,%eax
mov    %al,-0x12(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1245 <send_cmd+0x135>
movzbl -0x11(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<send_cmd>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rdi,%r14
mov    $0xc000a040,%r12d
orb    $0x2,0x4(%r12)
mov    (%r12),%eax
mov    (%rdi),%bl
mov    $0x8,%r15d
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
and    $0xfffffffe,%eax
mov    %eax,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
mov    %ebx,%ecx
shr    $0x6,%cl
and    $0x2,%cl
movzbl %cl,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
add    %bpl,%bpl
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
or     $0x1,%eax
mov    %eax,(%r12)
mov    %ebp,%ecx
xor    $0x9,%cl
movzbl %bpl,%edx
xor    %bl,%bpl
movzbl %cl,%ebp
cmovns %edx,%ebp
add    %bl,%bl
add    $0xffffffff,%r15d
jne    1140 <send_cmd+0x30>
and    $0x7f,%bpl
mov    0x1(%r14),%bl
mov    $0x8,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
and    $0xfffffffe,%eax
mov    %eax,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
mov    %ebx,%ecx
shr    $0x6,%cl
and    $0x2,%cl
movzbl %cl,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
add    %bpl,%bpl
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
or     $0x1,%eax
mov    %eax,(%r12)
mov    %ebp,%ecx
xor    $0x9,%cl
movzbl %bpl,%edx
xor    %bl,%bpl
movzbl %cl,%ebp
cmovns %edx,%ebp
add    %bl,%bl
add    $0xffffffff,%r15d
jne    11b0 <send_cmd+0xa0>
and    $0x7f,%bpl
mov    0x2(%r14),%bl
mov    $0x8,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
and    $0xfffffffe,%eax
mov    %eax,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
mov    %ebx,%ecx
shr    $0x6,%cl
and    $0x2,%cl
movzbl %cl,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
add    %bpl,%bpl
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
or     $0x1,%eax
mov    %eax,(%r12)
mov    %ebp,%ecx
xor    $0x9,%cl
movzbl %bpl,%edx
xor    %bl,%bpl
movzbl %cl,%ebp
cmovns %edx,%ebp
add    %bl,%bl
add    $0xffffffff,%r15d
jne    1220 <send_cmd+0x110>
and    $0x7f,%bpl
mov    0x3(%r14),%bl
mov    $0x8,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
and    $0xfffffffe,%eax
mov    %eax,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
mov    %ebx,%ecx
shr    $0x6,%cl
and    $0x2,%cl
movzbl %cl,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
add    %bpl,%bpl
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
or     $0x1,%eax
mov    %eax,(%r12)
mov    %ebp,%ecx
xor    $0x9,%cl
movzbl %bpl,%edx
xor    %bl,%bpl
movzbl %cl,%ebp
cmovns %edx,%ebp
add    %bl,%bl
add    $0xffffffff,%r15d
jne    1290 <send_cmd+0x180>
and    $0x7f,%bpl
mov    0x4(%r14),%bl
mov    $0x8,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
and    $0xfffffffe,%eax
mov    %eax,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
mov    %ebx,%ecx
shr    $0x6,%cl
and    $0x2,%cl
movzbl %cl,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
add    %bpl,%bpl
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%ecx
mov    %ecx,%eax
or     $0x1,%eax
mov    %eax,(%r12)
mov    %ebp,%edx
xor    $0x9,%dl
movzbl %bpl,%esi
xor    %bl,%bpl
movzbl %dl,%ebp
cmovns %esi,%ebp
add    %bl,%bl
add    $0xffffffff,%r14d
jne    1300 <send_cmd+0x1f0>
lea    0x0(%rbp,%rbp,1),%r15d
lea    0x1(%r15),%r14d
and    $0xfffffffe,%ecx
mov    %ecx,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
mov    %ebp,%ecx
shr    $0x5,%cl
and    $0x2,%cl
movzbl %cl,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
andb   $0xfe,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
mov    %ebp,%ecx
shr    $0x4,%cl
and    $0x2,%cl
movzbl %cl,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
andb   $0xfe,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
mov    %ebp,%ecx
shr    $0x3,%cl
and    $0x2,%cl
movzbl %cl,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
andb   $0xfe,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
mov    %ebp,%ecx
shr    $0x2,%cl
and    $0x2,%cl
movzbl %cl,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
andb   $0xfe,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
mov    %ebp,%ecx
shr    %cl
and    $0x2,%cl
movzbl %cl,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
andb   $0xfe,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
and    $0x2,%bpl
movzbl %bpl,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
andb   $0xfe,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
mov    (%r12),%eax
and    $0xfffffffd,%eax
and    $0x2,%r15b
movzbl %r15b,%ecx
or     %eax,%ecx
mov    %ecx,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
andb   $0xfe,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
orb    $0x2,(%r12)
xor    %eax,%eax
call   1030 <clkDelay@plt>
orb    $0x1,(%r12)
mov    %r14d,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define zeroext i8 @send_cmd(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
%6 = alloca i8
store i8* %0, i8** %2
store i8 0, i8* %6
%7 = load i32, i32* inttoptr (i64 3221266500 to i32*)
%8 = or i32 %7, 2
store i32 %8, i32* inttoptr (i64 3221266500 to i32*)
store i32 0, i32* %3
br label %9
9: ; preds = %72, %1
%10 = load i32, i32* %3
%11 = icmp slt i32 %10, 5
br i1 %11, label %12, label %75
12: ; preds = %9
%13 = load i8*, i8** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %13, i64 %15
%17 = load i8, i8* %16
store i8 %17, i8* %5
store i32 0, i32* %4
br label %18
18: ; preds = %64, %12
%19 = load i32, i32* %4
%20 = icmp slt i32 %19, 8
br i1 %20, label %21, label %67
21: ; preds = %18
br label %22
22: ; preds = %21
%23 = load i32, i32* inttoptr (i64 3221266496 to i32*)
%24 = and i32 %23, -2
store i32 %24, i32* inttoptr (i64 3221266496 to i32*)
%25 = call i32 (...) @clkDelay()
br label %26
26: ; preds = %22
%27 = load i8, i8* %5
%28 = zext i8 %27 to i32
%29 = and i32 %28, 128
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = load i32, i32* inttoptr (i64 3221266496 to i32*)
%33 = or i32 %32, 2
store i32 %33, i32* inttoptr (i64 3221266496 to i32*)
br label %37
34: ; preds = %26
%35 = load i32, i32* inttoptr (i64 3221266496 to i32*)
%36 = and i32 %35, -3
store i32 %36, i32* inttoptr (i64 3221266496 to i32*)
br label %37
37: ; preds = %34, %31
%38 = load i8, i8* %6
%39 = zext i8 %38 to i32
%40 = shl i32 %39, 1
%41 = trunc i32 %40 to i8
store i8 %41, i8* %6
br label %42
42: ; preds = %37
%43 = call i32 (...) @clkDelay()
%44 = load i32, i32* inttoptr (i64 3221266496 to i32*)
%45 = or i32 %44, 1
store i32 %45, i32* inttoptr (i64 3221266496 to i32*)
br label %46
46: ; preds = %42
%47 = load i8, i8* %6
%48 = zext i8 %47 to i32
%49 = load i8, i8* %5
%50 = zext i8 %49 to i32
%51 = xor i32 %48, %50
%52 = and i32 %51, 128
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %46
%55 = load i8, i8* %6
%56 = zext i8 %55 to i32
%57 = xor i32 %56, 9
%58 = trunc i32 %57 to i8
store i8 %58, i8* %6
br label %59
59: ; preds = %54, %46
%60 = load i8, i8* %5
%61 = zext i8 %60 to i32
%62 = shl i32 %61, 1
%63 = trunc i32 %62 to i8
store i8 %63, i8* %5
br label %64
64: ; preds = %59
%65 = load i32, i32* %4
%66 = add nsw i32 %65, 1
store i32 %66, i32* %4
br label %18
67: ; preds = %18
%68 = load i8, i8* %6
%69 = zext i8 %68 to i32
%70 = and i32 %69, 127
%71 = trunc i32 %70 to i8
store i8 %71, i8* %6
br label %72
72: ; preds = %67
%73 = load i32, i32* %3
%74 = add nsw i32 %73, 1
store i32 %74, i32* %3
br label %9
75: ; preds = %9
%76 = load i8, i8* %6
%77 = zext i8 %76 to i32
%78 = shl i32 %77, 1
%79 = or i32 %78, 1
%80 = trunc i32 %79 to i8
store i8 %80, i8* %6
%81 = load i8, i8* %6
store i8 %81, i8* %5
store i32 0, i32* %4
br label %82
82: ; preds = %111, %75
%83 = load i32, i32* %4
%84 = icmp slt i32 %83, 8
br i1 %84, label %85, label %114
85: ; preds = %82
br label %86
86: ; preds = %85
%87 = load i32, i32* inttoptr (i64 3221266496 to i32*)
%88 = and i32 %87, -2
store i32 %88, i32* inttoptr (i64 3221266496 to i32*)
%89 = call i32 (...) @clkDelay()
br label %90
90: ; preds = %86
%91 = load i8, i8* %6
%92 = zext i8 %91 to i32
%93 = and i32 %92, 128
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %90
%96 = load i32, i32* inttoptr (i64 3221266496 to i32*)
%97 = or i32 %96, 2
store i32 %97, i32* inttoptr (i64 3221266496 to i32*)
br label %101
98: ; preds = %90
%99 = load i32, i32* inttoptr (i64 3221266496 to i32*)
%100 = and i32 %99, -3
store i32 %100, i32* inttoptr (i64 3221266496 to i32*)
br label %101
101: ; preds = %98, %95
br label %102
102: ; preds = %101
%103 = call i32 (...) @clkDelay()
%104 = load i32, i32* inttoptr (i64 3221266496 to i32*)
%105 = or i32 %104, 1
store i32 %105, i32* inttoptr (i64 3221266496 to i32*)
br label %106
106: ; preds = %102
%107 = load i8, i8* %6
%108 = zext i8 %107 to i32
%109 = shl i32 %108, 1
%110 = trunc i32 %109 to i8
store i8 %110, i8* %6
br label %111
111: ; preds = %106
%112 = load i32, i32* %4
%113 = add nsw i32 %112, 1
store i32 %113, i32* %4
br label %82
114: ; preds = %82
%115 = load i8, i8* %5
ret i8 %115
}

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