#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 */
struct timespec {
  int tv_nsec;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_MONOTONIC;
int /*<<< orphan*/ TIMER_ABSTIME;
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
int /*<<< orphan*/ clock_nanosleep(int /*<<< orphan*/, int /*<<< orphan*/,
                                   struct timespec *, int /*<<< orphan*/ *);
int decode(char *, char *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int getBinaryData(char *, int, int);
int /*<<< orphan*/ popElement(char *);
int /*<<< orphan*/ printf(char *, int, ...);
int /*<<< orphan*/ pthread_exit(char *);
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ tnorm(struct timespec *);
void *msg_io(void *arg) {
  int cmd = 0, i = 0;
  int data0 = 0, data1 = 0, data2 = 0, data3 = 0;
  int data4 = 0, data5 = 0, data6 = 0, data7 = 0;
  char msg[50] = "", oldPKMsg[50] = "", oldKPMsg[50] = "";
  char word[(64)] = "";
  long unsigned index = 0;
  struct timespec t;
  clock_gettime(CLOCK_MONOTONIC, &t);
  while (1) {
    t.tv_nsec += (5000000);
    ;
    tnorm(&t);
    clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &t, NULL);
    for (i = 0; i < (64); i++)
      popElement(&word[i]);
    cmd = decode(word, msg);
    data0 = getBinaryData(word, 0, 8);
    data1 = getBinaryData(word, 8, 8);
    data2 = getBinaryData(word, 16, 8);
    data3 = getBinaryData(word, 24, 8);
    data4 = getBinaryData(word, 32, 8);
    data5 = getBinaryData(word, 40, 8);
    data6 = getBinaryData(word, 48, 8);
    data7 = getBinaryData(word, 56, 8);
    if ((cmd == 0xff && strcmp(msg, oldKPMsg) != 0) ||
        (cmd != 0xff && strcmp(msg, oldPKMsg) != 0)) {
      printf("index:%lu,%-50s", index++, msg);
      printf(" data: 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x\n",
             data0, data1, data2, data3, data4, data5, data6, data7);
      fflush(stdout);
      if (cmd == 0xff)
        strcpy(oldKPMsg, msg);
      else
        strcpy(oldPKMsg, msg);
    }
  }
  pthread_exit("message io thread finished");
}


x86 assembly (clang, -O0):
<msg_io>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1060 <memset@plt>
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1060 <memset@plt>
lea    -0xf0(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1060 <memset@plt>
lea    -0x130(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1060 <memset@plt>
movq   $0x0,-0x138(%rbp)
mov    0x2d80(%rip),%rax
mov    (%rax),%edi
lea    -0x140(%rbp),%rsi
call   1040 <clock_gettime@plt>
mov    -0x140(%rbp),%eax
add    $0x4c4b40,%eax
mov    %eax,-0x140(%rbp)
lea    -0x140(%rbp),%rdi
call   10b0 <tnorm@plt>
mov    0x2d4e(%rip),%rax
mov    (%rax),%edi
mov    0x2d4d(%rip),%rax
mov    (%rax),%esi
lea    -0x140(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   10c0 <clock_nanosleep@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x40,-0x10(%rbp)
jge    12df <msg_io+0x12f>
movslq -0x10(%rbp),%rax
lea    -0x130(%rbp),%rdi
add    %rax,%rdi
call   10d0 <popElement@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12b4 <msg_io+0x104>
lea    -0x130(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1090 <decode@plt>
mov    %eax,-0xc(%rbp)
lea    -0x130(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   10a0 <getBinaryData@plt>
mov    %eax,-0x14(%rbp)
lea    -0x130(%rbp),%rdi
mov    $0x8,%edx
mov    %edx,%esi
call   10a0 <getBinaryData@plt>
mov    %eax,-0x18(%rbp)
lea    -0x130(%rbp),%rdi
mov    $0x10,%esi
mov    $0x8,%edx
call   10a0 <getBinaryData@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x130(%rbp),%rdi
mov    $0x18,%esi
mov    $0x8,%edx
call   10a0 <getBinaryData@plt>
mov    %eax,-0x20(%rbp)
lea    -0x130(%rbp),%rdi
mov    $0x20,%esi
mov    $0x8,%edx
call   10a0 <getBinaryData@plt>
mov    %eax,-0x24(%rbp)
lea    -0x130(%rbp),%rdi
mov    $0x28,%esi
mov    $0x8,%edx
call   10a0 <getBinaryData@plt>
mov    %eax,-0x28(%rbp)
lea    -0x130(%rbp),%rdi
mov    $0x30,%esi
mov    $0x8,%edx
call   10a0 <getBinaryData@plt>
mov    %eax,-0x2c(%rbp)
lea    -0x130(%rbp),%rdi
mov    $0x38,%esi
mov    $0x8,%edx
call   10a0 <getBinaryData@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0xff,-0xc(%rbp)
jne    13db <msg_io+0x22b>
lea    -0x70(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1402 <msg_io+0x252>
cmpl   $0xff,-0xc(%rbp)
je     14a7 <msg_io+0x2f7>
lea    -0x70(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     14a7 <msg_io+0x2f7>
mov    -0x138(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x138(%rbp)
mov    %eax,%esi
lea    -0x70(%rbp),%rdx
lea    0xbdc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    -0x28(%rbp),%r11d
mov    -0x2c(%rbp),%r10d
mov    -0x30(%rbp),%eax
lea    0xbc2(%rip),%rdi
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2b67(%rip),%rax
mov    (%rax),%edi
call   1080 <fflush@plt>
cmpl   $0xff,-0xc(%rbp)
jne    1492 <msg_io+0x2e2>
lea    -0xf0(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1030 <strcpy@plt>
jmp    14a2 <msg_io+0x2f2>
lea    -0xb0(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1030 <strcpy@plt>
jmp    14a7 <msg_io+0x2f7>
jmp    126e <msg_io+0xbe>

x86 assembly (clang, -O2):
<msg_io>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movw   $0x0,0xe0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movw   $0x0,0xa0(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movw   $0x0,0x60(%rsp)
movaps %xmm0,0x120(%rsp)
movaps %xmm0,0x110(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
mov    0x2dae(%rip),%rax
mov    (%rax),%edi
mov    %rsp,%rsi
call   1040 <clock_gettime@plt>
lea    0xf0(%rsp),%rbx
lea    0xb0(%rsp),%r15
xor    %r13d,%r13d
jmp    12d9 <msg_io+0x139>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0x70(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    0x20(%rsp),%rsi
lea    0x1(%rsi),%r13
lea    0xd86(%rip),%rdi
lea    0xb0(%rsp),%r15
mov    %r15,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
sub    $0x8,%rsp
lea    0xd79(%rip),%rdi
mov    0x1c(%rsp),%esi
mov    0x18(%rsp),%edx
mov    0x14(%rsp),%ecx
mov    0x10(%rsp),%r8d
mov    %ebp,%r9d
xor    %eax,%eax
push   %r14
push   %r12
push   0x40(%rsp)
call   1050 <printf@plt>
add    $0x20,%rsp
mov    0x2d0b(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
mov    0x18(%rsp),%rdi
mov    %r15,%rsi
call   1030 <strcpy@plt>
mov    %r13,0x20(%rsp)
jmp    12f3 <msg_io+0x153>
lea    0x70(%rsp),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1260 <msg_io+0xc0>
addl   $0x4c4b40,(%rsp)
mov    %rsp,%rbp
mov    %rbp,%rdi
call   10a0 <tnorm@plt>
mov    0x2cd4(%rip),%rax
mov    (%rax),%edi
mov    0x2cd3(%rip),%rax
mov    (%rax),%esi
mov    %rbp,%rdx
xor    %ecx,%ecx
call   10b0 <clock_nanosleep@plt>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    (%rsp,%rbp,1),%rdi
add    $0xf0,%rdi
call   10c0 <popElement@plt>
add    $0x1,%rbp
cmp    $0x40,%rbp
jne    1330 <msg_io+0x190>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <decode@plt>
mov    %eax,%r13d
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1090 <getBinaryData@plt>
mov    %eax,0x14(%rsp)
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x8,%edx
call   1090 <getBinaryData@plt>
mov    %eax,0x10(%rsp)
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0x8,%edx
call   1090 <getBinaryData@plt>
mov    %eax,0xc(%rsp)
mov    %rbx,%rdi
mov    $0x18,%esi
mov    $0x8,%edx
call   1090 <getBinaryData@plt>
mov    %eax,0x8(%rsp)
mov    %rbx,%rdi
mov    $0x20,%esi
mov    $0x8,%edx
call   1090 <getBinaryData@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    $0x28,%esi
mov    $0x8,%edx
call   1090 <getBinaryData@plt>
mov    %rax,0x28(%rsp)
mov    %rbx,%rdi
mov    $0x30,%esi
mov    $0x8,%edx
call   1090 <getBinaryData@plt>
mov    %eax,%r12d
mov    %rbx,%rdi
mov    $0x38,%esi
mov    $0x8,%edx
call   1090 <getBinaryData@plt>
mov    %eax,%r14d
mov    %r15,%rdi
cmp    $0xff,%r13d
jne    12e0 <msg_io+0x140>
lea    0x30(%rsp),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12f3 <msg_io+0x153>
lea    0x30(%rsp),%rax
jmp    1265 <msg_io+0xc5>

LLVM IR (-O0):
%struct.timespec = type { i32 }
@CLOCK_MONOTONIC = global i32 0
@TIMER_ABSTIME = global i32 0
@.str = [16 x i8] c"index:%lu,%-50s\00"
@.str.1 = [64 x i8] c" data: 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x\0A\00"
@stdout = global i32 0
define i8* @msg_io(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [50 x i8]
%14 = alloca [50 x i8]
%15 = alloca [50 x i8]
%16 = alloca [64 x i8]
%17 = alloca i64
%18 = alloca %struct.timespec
store i8* %0, i8** %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
%19 = bitcast [50 x i8]* %13 to i8*
%20 = bitcast [50 x i8]* %14 to i8*
%21 = bitcast [50 x i8]* %15 to i8*
%22 = bitcast [64 x i8]* %16 to i8*
store i64 0, i64* %17
%23 = load i32, i32* @CLOCK_MONOTONIC
%24 = call i32 @clock_gettime(i32 %23, %struct.timespec* %18)
br label %25
25: ; preds = %1, %107
%26 = getelementptr inbounds %struct.timespec, %struct.timespec* %18, i32 0, i32 0
%27 = load i32, i32* %26
%28 = add nsw i32 %27, 5000000
store i32 %28, i32* %26
%29 = call i32 @tnorm(%struct.timespec* %18)
%30 = load i32, i32* @CLOCK_MONOTONIC
%31 = load i32, i32* @TIMER_ABSTIME
%32 = call i32 @clock_nanosleep(i32 %30, i32 %31, %struct.timespec* %18, i32* null)
store i32 0, i32* %4
br label %33
33: ; preds = %41, %25
%34 = load i32, i32* %4
%35 = icmp slt i32 %34, 64
br i1 %35, label %36, label %44
36: ; preds = %33
%37 = load i32, i32* %4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [64 x i8], [64 x i8]* %16, i64 0, i64 %38
%40 = call i32 @popElement(i8* %39)
br label %41
41: ; preds = %36
%42 = load i32, i32* %4
%43 = add nsw i32 %42, 1
store i32 %43, i32* %4
br label %33
44: ; preds = %33
%45 = getelementptr inbounds [64 x i8], [64 x i8]* %16, i64 0, i64 0
%46 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%47 = call i32 @decode(i8* %45, i8* %46)
store i32 %47, i32* %3
%48 = getelementptr inbounds [64 x i8], [64 x i8]* %16, i64 0, i64 0
%49 = call i32 @getBinaryData(i8* %48, i32 0, i32 8)
store i32 %49, i32* %5
%50 = getelementptr inbounds [64 x i8], [64 x i8]* %16, i64 0, i64 0
%51 = call i32 @getBinaryData(i8* %50, i32 8, i32 8)
store i32 %51, i32* %6
%52 = getelementptr inbounds [64 x i8], [64 x i8]* %16, i64 0, i64 0
%53 = call i32 @getBinaryData(i8* %52, i32 16, i32 8)
store i32 %53, i32* %7
%54 = getelementptr inbounds [64 x i8], [64 x i8]* %16, i64 0, i64 0
%55 = call i32 @getBinaryData(i8* %54, i32 24, i32 8)
store i32 %55, i32* %8
%56 = getelementptr inbounds [64 x i8], [64 x i8]* %16, i64 0, i64 0
%57 = call i32 @getBinaryData(i8* %56, i32 32, i32 8)
store i32 %57, i32* %9
%58 = getelementptr inbounds [64 x i8], [64 x i8]* %16, i64 0, i64 0
%59 = call i32 @getBinaryData(i8* %58, i32 40, i32 8)
store i32 %59, i32* %10
%60 = getelementptr inbounds [64 x i8], [64 x i8]* %16, i64 0, i64 0
%61 = call i32 @getBinaryData(i8* %60, i32 48, i32 8)
store i32 %61, i32* %11
%62 = getelementptr inbounds [64 x i8], [64 x i8]* %16, i64 0, i64 0
%63 = call i32 @getBinaryData(i8* %62, i32 56, i32 8)
store i32 %63, i32* %12
%64 = load i32, i32* %3
%65 = icmp eq i32 %64, 255
br i1 %65, label %66, label %71
66: ; preds = %44
%67 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%68 = getelementptr inbounds [50 x i8], [50 x i8]* %15, i64 0, i64 0
%69 = call i64 @strcmp(i8* %67, i8* %68)
%70 = icmp ne i64 %69, 0
br i1 %70, label %79, label %71
71: ; preds = %66, %44
%72 = load i32, i32* %3
%73 = icmp ne i32 %72, 255
br i1 %73, label %74, label %107
74: ; preds = %71
%75 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%76 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%77 = call i64 @strcmp(i8* %75, i8* %76)
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %107
79: ; preds = %74, %66
%80 = load i64, i64* %17
%81 = add i64 %80, 1
store i64 %81, i64* %17
%82 = trunc i64 %80 to i32
%83 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%84 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %82, i8* %83)
%85 = load i32, i32* %5
%86 = load i32, i32* %6
%87 = load i32, i32* %7
%88 = load i32, i32* %8
%89 = load i32, i32* %9
%90 = load i32, i32* %10
%91 = load i32, i32* %11
%92 = load i32, i32* %12
%93 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0), i32 %85, i32 %86, i32 %87, i32 %88, i32 %89, i32 %90, i32 %91, i32 %92)
%94 = load i32, i32* @stdout
%95 = call i32 @fflush(i32 %94)
%96 = load i32, i32* %3
%97 = icmp eq i32 %96, 255
br i1 %97, label %98, label %102
98: ; preds = %79
%99 = getelementptr inbounds [50 x i8], [50 x i8]* %15, i64 0, i64 0
%100 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%101 = call i32 @strcpy(i8* %99, i8* %100)
br label %106
102: ; preds = %79
%103 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%104 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%105 = call i32 @strcpy(i8* %103, i8* %104)
br label %106
106: ; preds = %102, %98
br label %107
107: ; preds = %106, %74, %71
br label %25
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
@CLOCK_MONOTONIC = global i32 0
@TIMER_ABSTIME = global i32 0
@.str = [16 x i8] c"index:%lu,%-50s\00"
@.str.1 = [64 x i8] c" data: 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x\0A\00"
@stdout = global i32 0
define noalias i8* @msg_io(i8* nocapture readnone %0) {
%2 = alloca [50 x i8]
%3 = alloca [50 x i8]
%4 = alloca [50 x i8]
%5 = alloca [64 x i8]
%6 = alloca %struct.timespec
%7 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [50 x i8], [50 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [50 x i8], [50 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%11 = bitcast %struct.timespec* %6 to i8*
%12 = load i32, i32* @CLOCK_MONOTONIC
%13 = call i32 @clock_gettime(i32 %12, %struct.timespec* %6)
%14 = getelementptr inbounds %struct.timespec, %struct.timespec* %6, i64 0, i32 0
br label %15
15: ; preds = %48, %1
%16 = phi i64 [ %50, %48 ], [ 0, %1 ]
br label %17
17: ; preds = %44, %15
%18 = load i32, i32* %14
%19 = add nsw i32 %18, 5000000
store i32 %19, i32* %14
%20 = call i32 @tnorm(%struct.timespec* %6)
%21 = load i32, i32* @CLOCK_MONOTONIC
%22 = load i32, i32* @TIMER_ABSTIME
%23 = call i32 @clock_nanosleep(i32 %21, i32 %22, %struct.timespec* %6, i32* null)
br label %24
24: ; preds = %17, %24
%25 = phi i64 [ 0, %17 ], [ %28, %24 ]
%26 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 %25
%27 = call i32 @popElement(i8* %26)
%28 = add nuw nsw i64 %25, 1
%29 = icmp eq i64 %28, 64
br i1 %29, label %30, label %24
30: ; preds = %24
%31 = call i32 @decode(i8* %10, i8* %7)
%32 = call i32 @getBinaryData(i8* %10, i32 0, i32 8)
%33 = call i32 @getBinaryData(i8* %10, i32 8, i32 8)
%34 = call i32 @getBinaryData(i8* %10, i32 16, i32 8)
%35 = call i32 @getBinaryData(i8* %10, i32 24, i32 8)
%36 = call i32 @getBinaryData(i8* %10, i32 32, i32 8)
%37 = call i32 @getBinaryData(i8* %10, i32 40, i32 8)
%38 = call i32 @getBinaryData(i8* %10, i32 48, i32 8)
%39 = call i32 @getBinaryData(i8* %10, i32 56, i32 8)
%40 = icmp eq i32 %31, 255
br i1 %40, label %41, label %45
41: ; preds = %30
%42 = call i64 @strcmp(i8* %7, i8* %9)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %41, %45
br label %17
45: ; preds = %30
%46 = call i64 @strcmp(i8* %7, i8* %8)
%47 = icmp eq i64 %46, 0
br i1 %47, label %44, label %48
48: ; preds = %45, %41
%49 = phi i8* [ %8, %45 ], [ %9, %41 ]
%50 = add i64 %16, 1
%51 = trunc i64 %16 to i32
%52 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %51, i8* %7)
%53 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0), i32 %32, i32 %33, i32 %34, i32 %35, i32 %36, i32 %37, i32 %38, i32 %39)
%54 = load i32, i32* @stdout
%55 = call i32 @fflush(i32 %54)
%56 = call i32 @strcpy(i8* %49, i8* %7)
br label %15
}