#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int main(int argc, char *argv[]) {
  char buf[100];
  FILE *sora;
  sora = fopen(argv[1], "rb");
  if (sora == NULL) {
    printf("fucking error");
    exit(0);
  }
  while (fread(buf, 36, 1, sora)) {
    if (buf[0] == (char)0xf4)
      printf("%hhx start\n", buf[0]);
    printf("time is %hhx%hhx:%hhx%hhx:%hhx%hhx\n", buf[1] - 0x30, buf[2] - 0x30,
           buf[3] - 0x30, buf[4] - 0x30, buf[5] - 0x30, buf[6] - 0x30);
    if (buf[7] == (char)0xa5)
      printf("%hhx marker\n", buf[7]);
    printf("outgoing data %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx "
           "%hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx\n",
           buf[8], buf[9], buf[10], buf[11], buf[12], buf[13], buf[14], buf[15],
           buf[16], buf[17], buf[18], buf[19], buf[20], buf[21], buf[22],
           buf[23], buf[24], buf[25], buf[26], buf[27], buf[28], buf[29]);
    printf("first set is %hx\n", (unsigned short)buf[8]);
    if (buf[30] == (char)0xb5)
      printf("%hhx marker\n", buf[30]);
    if (buf[35] == (char)0xf8)
      printf("%hhx stop\n", buf[35]);
    puts("read");
  }
  puts("read end");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
movl   $0x0,-0x2c(%rbp)
mov    %edi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe7f(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0xa8(%rbp)
cmpq   $0x0,-0xa8(%rbp)
jne    11b0 <main+0x60>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   1070 <exit@plt>
jmp    11b5 <main+0x65>
lea    -0xa0(%rbp),%rdi
mov    -0xa8(%rbp),%rcx
mov    $0x24,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
cmp    $0x0,%rax
je     144c <main+0x2fc>
movsbl -0xa0(%rbp),%eax
cmp    $0xfffffff4,%eax
jne    1201 <main+0xb1>
movsbl -0xa0(%rbp),%esi
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsbl -0x9f(%rbp),%esi
sub    $0x30,%esi
movsbl -0x9e(%rbp),%edx
sub    $0x30,%edx
movsbl -0x9d(%rbp),%ecx
sub    $0x30,%ecx
movsbl -0x9c(%rbp),%r8d
ff
sub    $0x30,%r8d
movsbl -0x9b(%rbp),%r9d
ff
sub    $0x30,%r9d
movsbl -0x9a(%rbp),%eax
sub    $0x30,%eax
lea    0xdd5(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1050 <printf@plt>
movsbl -0x99(%rbp),%eax
cmp    $0xffffffa5,%eax
jne    1277 <main+0x127>
movsbl -0x99(%rbp),%esi
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsbl -0x98(%rbp),%esi
movsbl -0x97(%rbp),%edx
movsbl -0x96(%rbp),%ecx
movsbl -0x95(%rbp),%r8d
ff
movsbl -0x94(%rbp),%r9d
ff
movsbl -0x93(%rbp),%eax
movsbl -0x92(%rbp),%edi
mov    %edi,-0xcc(%rbp)
movsbl -0x91(%rbp),%edi
mov    %edi,-0xc8(%rbp)
movsbl -0x90(%rbp),%edi
mov    %edi,-0xc4(%rbp)
movsbl -0x8f(%rbp),%edi
mov    %edi,-0xc0(%rbp)
movsbl -0x8e(%rbp),%edi
mov    %edi,-0xbc(%rbp)
movsbl -0x8d(%rbp),%edi
mov    %edi,-0xb8(%rbp)
movsbl -0x8c(%rbp),%edi
mov    %edi,-0xb4(%rbp)
movsbl -0x8b(%rbp),%edi
mov    %edi,-0xb0(%rbp)
movsbl -0x8a(%rbp),%r13d
ff
movsbl -0x89(%rbp),%r12d
ff
movsbl -0x88(%rbp),%r15d
ff
movsbl -0x87(%rbp),%r14d
ff
movsbl -0x86(%rbp),%ebx
movsbl -0x85(%rbp),%r11d
ff
movsbl -0x84(%rbp),%r10d
ff
movsbl -0x83(%rbp),%edi
mov    %edi,-0xac(%rbp)
lea    0xcf8(%rip),%rdi
mov    %eax,(%rsp)
mov    -0xcc(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0xc8(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0xc4(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    -0xc0(%rbp),%eax
mov    %eax,0x20(%rsp)
mov    -0xbc(%rbp),%eax
mov    %eax,0x28(%rsp)
mov    -0xb8(%rbp),%eax
mov    %eax,0x30(%rsp)
mov    -0xb4(%rbp),%eax
mov    %eax,0x38(%rsp)
mov    -0xb0(%rbp),%eax
mov    %eax,0x40(%rsp)
mov    -0xac(%rbp),%eax
mov    %r13d,0x48(%rsp)
mov    %r12d,0x50(%rsp)
mov    %r15d,0x58(%rsp)
mov    %r14d,0x60(%rsp)
mov    %ebx,0x68(%rsp)
mov    %r11d,0x70(%rsp)
mov    %r10d,0x78(%rsp)
mov    %eax,0x80(%rsp)
mov    $0x0,%al
call   1050 <printf@plt>
movsbl -0x98(%rbp),%eax
movzwl %ax,%esi
lea    0xcdb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsbl -0x82(%rbp),%eax
cmp    $0xffffffb5,%eax
jne    141c <main+0x2cc>
movsbl -0x82(%rbp),%esi
lea    0xc2c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsbl -0x7d(%rbp),%eax
cmp    $0xfffffff8,%eax
jne    143b <main+0x2eb>
movsbl -0x7d(%rbp),%esi
lea    0xca9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xca6(%rip),%rdi
call   1030 <puts@plt>
jmp    11b5 <main+0x65>
lea    0xc9a(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
mov    0x8(%rsi),%rdi
lea    0xe94(%rip),%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     13f8 <main+0x2a8>
mov    %rax,%rbx
lea    0x10(%rsp),%rdi
mov    $0x24,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1040 <fread@plt>
test   %rax,%rax
je     13d8 <main+0x288>
mov    %rbx,0x78(%rsp)
jmp    11dc <main+0x8c>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xf31(%rip),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%rdi
mov    $0x24,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
test   %rax,%rax
je     13d8 <main+0x288>
cmpb   $0xf4,0x10(%rsp)
jne    11f6 <main+0xa6>
lea    0xe27(%rip),%rdi
mov    $0xfffffff4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x11(%rsp),%esi
add    $0xffffffd0,%esi
movsbl 0x12(%rsp),%edx
add    $0xffffffd0,%edx
movsbl 0x13(%rsp),%ecx
add    $0xffffffd0,%ecx
movsbl 0x14(%rsp),%r8d
add    $0xffffffd0,%r8d
movsbl 0x15(%rsp),%r9d
add    $0xffffffd0,%r9d
movsbl 0x16(%rsp),%ebp
add    $0xffffffd0,%ebp
sub    $0x8,%rsp
lea    0xde8(%rip),%rdi
xor    %eax,%eax
push   %rbp
call   1050 <printf@plt>
add    $0x10,%rsp
cmpb   $0xa5,0x17(%rsp)
jne    125b <main+0x10b>
lea    0xdf2(%rip),%rdi
mov    $0xffffffa5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x18(%rsp),%esi
mov    %esi,0xc(%rsp)
movsbl 0x19(%rsp),%edx
movsbl 0x1a(%rsp),%ecx
movsbl 0x1b(%rsp),%r8d
movsbl 0x1c(%rsp),%r9d
movsbl 0x1d(%rsp),%eax
mov    %rax,0xc0(%rsp)
movsbl 0x1e(%rsp),%eax
mov    %rax,0xb8(%rsp)
movsbl 0x1f(%rsp),%eax
mov    %rax,0xb0(%rsp)
movsbl 0x20(%rsp),%eax
mov    %rax,0xa8(%rsp)
movsbl 0x21(%rsp),%eax
mov    %rax,0xa0(%rsp)
movsbl 0x22(%rsp),%eax
mov    %rax,0x98(%rsp)
movsbl 0x23(%rsp),%eax
mov    %rax,0x90(%rsp)
movsbl 0x24(%rsp),%eax
mov    %rax,0x88(%rsp)
movsbl 0x25(%rsp),%eax
mov    %rax,0x80(%rsp)
movsbl 0x26(%rsp),%ebp
movsbl 0x27(%rsp),%ebx
movsbl 0x28(%rsp),%r14d
movsbl 0x29(%rsp),%r15d
movsbl 0x2a(%rsp),%r13d
movsbl 0x2b(%rsp),%r12d
movsbl 0x2c(%rsp),%r10d
movsbl 0x2d(%rsp),%r11d
sub    $0x8,%rsp
lea    0xd26(%rip),%rdi
xor    %eax,%eax
push   %r11
push   %r10
push   %r12
push   %r13
push   %r15
push   %r14
push   %rbx
push   %rbp
push   0xc8(%rsp)
push   0xd8(%rsp)
push   0xe8(%rsp)
push   0xf8(%rsp)
push   0x108(%rsp)
push   0x118(%rsp)
push   0x128(%rsp)
push   0x138(%rsp)
push   0x148(%rsp)
call   1050 <printf@plt>
add    $0x90,%rsp
movzwl 0xc(%rsp),%esi
lea    0xd3c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpb   $0xb5,0x2e(%rsp)
jne    13b0 <main+0x260>
lea    0xc9d(%rip),%rdi
mov    $0xffffffb5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
cmpb   $0xf8,0x33(%rsp)
mov    0x78(%rsp),%rbx
jne    11b0 <main+0x60>
lea    0xd16(%rip),%rdi
mov    $0xfffffff8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    11b0 <main+0x60>
lea    0xd0e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc04(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@.str.1 = [14 x i8] c"fucking error\00"
@.str.2 = [12 x i8] c"%hhx start\0A\00"
@.str.3 = [36 x i8] c"time is %hhx%hhx:%hhx%hhx:%hhx%hhx\0A\00"
@.str.4 = [13 x i8] c"%hhx marker\0A\00"
@.str.5 = [125 x i8] c"outgoing data %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx\0A\00"
@.str.6 = [18 x i8] c"first set is %hx\0A\00"
@.str.7 = [11 x i8] c"%hhx stop\0A\00"
@.str.8 = [5 x i8] c"read\00"
@.str.9 = [9 x i8] c"read end\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [100 x i8]
%7 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i8**, i8*** %5
%9 = getelementptr inbounds i8*, i8** %8, i64 1
%10 = load i8*, i8** %9
%11 = call i32* @fopen(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %11, i32** %7
%12 = load i32*, i32** %7
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @exit(i32 0)
unreachable
17: ; preds = %2
br label %18
18: ; preds = %160, %17
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%20 = load i32*, i32** %7
%21 = call i64 @fread(i8* %19, i32 36, i32 1, i32* %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %162
23: ; preds = %18
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, -12
br i1 %27, label %28, label %33
28: ; preds = %23
%29 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %31)
br label %33
33: ; preds = %28, %23
%34 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 1
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = sub nsw i32 %36, 48
%38 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 2
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = sub nsw i32 %40, 48
%42 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 3
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = sub nsw i32 %44, 48
%46 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 4
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = sub nsw i32 %48, 48
%50 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 5
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = sub nsw i32 %52, 48
%54 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 6
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = sub nsw i32 %56, 48
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 %37, i32 %41, i32 %45, i32 %49, i32 %53, i32 %57)
%59 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 7
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, -91
br i1 %62, label %63, label %68
63: ; preds = %33
%64 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 7
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %66)
br label %68
68: ; preds = %63, %33
%69 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 8
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 9
%73 = load i8, i8* %72
%74 = sext i8 %73 to i32
%75 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 10
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 11
%79 = load i8, i8* %78
%80 = sext i8 %79 to i32
%81 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 12
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 13
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 14
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 15
%91 = load i8, i8* %90
%92 = sext i8 %91 to i32
%93 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 16
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 17
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 18
%100 = load i8, i8* %99
%101 = sext i8 %100 to i32
%102 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 19
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 20
%106 = load i8, i8* %105
%107 = sext i8 %106 to i32
%108 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 21
%109 = load i8, i8* %108
%110 = sext i8 %109 to i32
%111 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 22
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 23
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 24
%118 = load i8, i8* %117
%119 = sext i8 %118 to i32
%120 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 25
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 26
%124 = load i8, i8* %123
%125 = sext i8 %124 to i32
%126 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 27
%127 = load i8, i8* %126
%128 = sext i8 %127 to i32
%129 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 28
%130 = load i8, i8* %129
%131 = sext i8 %130 to i32
%132 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 29
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([125 x i8], [125 x i8]* @.str.5, i64 0, i64 0), i32 %71, i32 %74, i32 %77, i32 %80, i32 %83, i32 %86, i32 %89, i32 %92, i32 %95, i32 %98, i32 %101, i32 %104, i32 %107, i32 %110, i32 %113, i32 %116, i32 %119, i32 %122, i32 %125, i32 %128, i32 %131, i32 %134)
%136 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 8
%137 = load i8, i8* %136
%138 = sext i8 %137 to i16
%139 = zext i16 %138 to i32
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %139)
%141 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 30
%142 = load i8, i8* %141
%143 = sext i8 %142 to i32
%144 = icmp eq i32 %143, -75
br i1 %144, label %145, label %150
145: ; preds = %68
%146 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 30
%147 = load i8, i8* %146
%148 = sext i8 %147 to i32
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %148)
br label %150
150: ; preds = %145, %68
%151 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 35
%152 = load i8, i8* %151
%153 = sext i8 %152 to i32
%154 = icmp eq i32 %153, -8
br i1 %154, label %155, label %160
155: ; preds = %150
%156 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 35
%157 = load i8, i8* %156
%158 = sext i8 %157 to i32
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %158)
br label %160
160: ; preds = %155, %150
%161 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
br label %18
162: ; preds = %18
%163 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@.str.1 = [14 x i8] c"fucking error\00"
@.str.2 = [12 x i8] c"%hhx start\0A\00"
@.str.3 = [36 x i8] c"time is %hhx%hhx:%hhx%hhx:%hhx%hhx\0A\00"
@.str.4 = [13 x i8] c"%hhx marker\0A\00"
@.str.5 = [125 x i8] c"outgoing data %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx\0A\00"
@.str.6 = [18 x i8] c"first set is %hx\0A\00"
@.str.7 = [11 x i8] c"%hhx stop\0A\00"
@.str.8 = [5 x i8] c"read\00"
@.str.9 = [9 x i8] c"read end\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [100 x i8]
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32* @fopen(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i32* %7, null
br i1 %8, label %44, label %9
9: ; preds = %2
%10 = call i64 @fread(i8* %4, i32 36, i32 1, i32* %7)
%11 = icmp eq i64 %10, 0
br i1 %11, label %137, label %12
12: ; preds = %9
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 1
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 2
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 3
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 4
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 5
%18 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 6
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 7
%20 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 8
%21 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 9
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 10
%23 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 11
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 12
%25 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 13
%26 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 14
%27 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 15
%28 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 16
%29 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 17
%30 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 18
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 19
%32 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 20
%33 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 21
%34 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 22
%35 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 23
%36 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 24
%37 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 25
%38 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 26
%39 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 27
%40 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 28
%41 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 29
%42 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 30
%43 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 35
br label %47
44: ; preds = %2
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%46 = tail call i32 @exit(i32 0)
unreachable
47: ; preds = %12, %133
%48 = load i8, i8* %4
%49 = icmp eq i8 %48, -12
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 -12)
br label %52
52: ; preds = %50, %47
%53 = load i8, i8* %13
%54 = sext i8 %53 to i32
%55 = add nsw i32 %54, -48
%56 = load i8, i8* %14
%57 = sext i8 %56 to i32
%58 = add nsw i32 %57, -48
%59 = load i8, i8* %15
%60 = sext i8 %59 to i32
%61 = add nsw i32 %60, -48
%62 = load i8, i8* %16
%63 = sext i8 %62 to i32
%64 = add nsw i32 %63, -48
%65 = load i8, i8* %17
%66 = sext i8 %65 to i32
%67 = add nsw i32 %66, -48
%68 = load i8, i8* %18
%69 = sext i8 %68 to i32
%70 = add nsw i32 %69, -48
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 %55, i32 %58, i32 %61, i32 %64, i32 %67, i32 %70)
%72 = load i8, i8* %19
%73 = icmp eq i8 %72, -91
br i1 %73, label %74, label %76
74: ; preds = %52
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 -91)
br label %76
76: ; preds = %74, %52
%77 = load i8, i8* %20
%78 = sext i8 %77 to i32
%79 = load i8, i8* %21
%80 = sext i8 %79 to i32
%81 = load i8, i8* %22
%82 = sext i8 %81 to i32
%83 = load i8, i8* %23
%84 = sext i8 %83 to i32
%85 = load i8, i8* %24
%86 = sext i8 %85 to i32
%87 = load i8, i8* %25
%88 = sext i8 %87 to i32
%89 = load i8, i8* %26
%90 = sext i8 %89 to i32
%91 = load i8, i8* %27
%92 = sext i8 %91 to i32
%93 = load i8, i8* %28
%94 = sext i8 %93 to i32
%95 = load i8, i8* %29
%96 = sext i8 %95 to i32
%97 = load i8, i8* %30
%98 = sext i8 %97 to i32
%99 = load i8, i8* %31
%100 = sext i8 %99 to i32
%101 = load i8, i8* %32
%102 = sext i8 %101 to i32
%103 = load i8, i8* %33
%104 = sext i8 %103 to i32
%105 = load i8, i8* %34
%106 = sext i8 %105 to i32
%107 = load i8, i8* %35
%108 = sext i8 %107 to i32
%109 = load i8, i8* %36
%110 = sext i8 %109 to i32
%111 = load i8, i8* %37
%112 = sext i8 %111 to i32
%113 = load i8, i8* %38
%114 = sext i8 %113 to i32
%115 = load i8, i8* %39
%116 = sext i8 %115 to i32
%117 = load i8, i8* %40
%118 = sext i8 %117 to i32
%119 = load i8, i8* %41
%120 = sext i8 %119 to i32
%121 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([125 x i8], [125 x i8]* @.str.5, i64 0, i64 0), i32 %78, i32 %80, i32 %82, i32 %84, i32 %86, i32 %88, i32 %90, i32 %92, i32 %94, i32 %96, i32 %98, i32 %100, i32 %102, i32 %104, i32 %106, i32 %108, i32 %110, i32 %112, i32 %114, i32 %116, i32 %118, i32 %120)
%122 = and i32 %78, 65535
%123 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %122)
%124 = load i8, i8* %42
%125 = icmp eq i8 %124, -75
br i1 %125, label %126, label %128
126: ; preds = %76
%127 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 -75)
br label %128
128: ; preds = %126, %76
%129 = load i8, i8* %43
%130 = icmp eq i8 %129, -8
br i1 %130, label %131, label %133
131: ; preds = %128
%132 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 -8)
br label %133
133: ; preds = %131, %128
%134 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%135 = call i64 @fread(i8* %4, i32 36, i32 1, i32* %7)
%136 = icmp eq i64 %135, 0
br i1 %136, label %137, label %47
137: ; preds = %133, %9
%138 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
ret i32 0
}