#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*/ O_RDONLY;
int /*<<< orphan*/ SEEK_CUR;
int /*<<< orphan*/ SEEK_SET;
long long atoll(char *);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int lseek64(int, long long, int /*<<< orphan*/);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
int read(int, unsigned char *, int);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  unsigned char buf[512];
  long long int position = atoll(argv[1]);
  long long int ret;
  int fd1 = open(argv[2], O_RDONLY);
  if (fd1 < 0) {
    fprintf(stderr, "line %d:%m\n", 46);
    exit(10);
  };
  ret = lseek64(fd1, position * 512, SEEK_SET);
  if (ret != position * 512) {
    fprintf(stderr, "line %d:%m\n", 47);
    exit(15);
  };
  do {
    if (read(fd1, buf, 512) != 512) {
      fprintf(stderr, "read error %m at position %lld\n", position);
      position += 1;
      ret = lseek64(fd1, position * 512, SEEK_SET);
      if (ret != position * 512) {
        fprintf(stderr, "line %d:%m\n", 51);
        exit(15);
      };
    };
    position += 1;
  } while (!(buf[0] == 0x49 && buf[1] == 0x49 && buf[2] == 0x2a &&
             buf[3] == 0x00 && buf[4] == 0xd0 && buf[5] == 0x25 &&
             buf[6] == 0x05 && buf[7] == 0x00 && buf[8] == 0x81 &&
             buf[9] == 0xff && buf[10] == 0x81 && buf[11] == 0xff &&
             buf[12] == 0x81 && buf[13] == 0xff && buf[14] == 0x81 &&
             buf[15] == 0xff));
  printf("offset[blk512]=%lld\n", lseek64(fd1, 0, SEEK_CUR) / 512 - 1);
  close(fd1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x230,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <atoll@plt>
mov    %rax,-0x218(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0x2e24(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
mov    %eax,-0x224(%rbp)
cmpl   $0x0,-0x224(%rbp)
jge    11fa <main+0x7a>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0xe1a(%rip),%rsi
mov    $0x2e,%edx
call   1070 <fprintf@plt>
mov    $0xa,%edi
call   1090 <exit@plt>
mov    -0x224(%rbp),%edi
mov    -0x218(%rbp),%rsi
shl    $0x9,%rsi
mov    0x2db6(%rip),%rax
mov    (%rax),%edx
call   10a0 <lseek64@plt>
cltq
mov    %rax,-0x220(%rbp)
mov    -0x220(%rbp),%rax
mov    -0x218(%rbp),%rcx
shl    $0x9,%rcx
cmp    %rcx,%rax
je     1261 <main+0xe1>
mov    0x2d8c(%rip),%rax
mov    (%rax),%edi
lea    0xdb3(%rip),%rsi
mov    $0x2f,%edx
call   1070 <fprintf@plt>
mov    $0xf,%edi
call   1090 <exit@plt>
jmp    1266 <main+0xe6>
mov    -0x224(%rbp),%edi
lea    -0x210(%rbp),%rsi
mov    $0x200,%edx
call   1050 <read@plt>
cmp    $0x200,%eax
je     1324 <main+0x1a4>
mov    0x2d41(%rip),%rax
mov    (%rax),%edi
mov    -0x218(%rbp),%rax
mov    %eax,%edx
lea    0xd6b(%rip),%rsi
call   1070 <fprintf@plt>
mov    -0x218(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x218(%rbp)
mov    -0x224(%rbp),%edi
mov    -0x218(%rbp),%rsi
shl    $0x9,%rsi
mov    0x2cf8(%rip),%rax
mov    (%rax),%edx
call   10a0 <lseek64@plt>
cltq
mov    %rax,-0x220(%rbp)
mov    -0x220(%rbp),%rax
mov    -0x218(%rbp),%rcx
shl    $0x9,%rcx
cmp    %rcx,%rax
je     131f <main+0x19f>
mov    0x2cce(%rip),%rax
mov    (%rax),%edi
lea    0xcf5(%rip),%rsi
mov    $0x33,%edx
call   1070 <fprintf@plt>
mov    $0xf,%edi
call   1090 <exit@plt>
jmp    1324 <main+0x1a4>
mov    -0x218(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x218(%rbp)
movzbl -0x210(%rbp),%ecx
xor    %eax,%eax
cmp    $0x49,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x20f(%rbp),%ecx
xor    %eax,%eax
cmp    $0x49,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x20e(%rbp),%ecx
xor    %eax,%eax
cmp    $0x2a,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x20d(%rbp),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x20c(%rbp),%ecx
xor    %eax,%eax
cmp    $0xd0,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x20b(%rbp),%ecx
xor    %eax,%eax
cmp    $0x25,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x20a(%rbp),%ecx
xor    %eax,%eax
cmp    $0x5,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x209(%rbp),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x208(%rbp),%ecx
xor    %eax,%eax
cmp    $0x81,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x207(%rbp),%ecx
xor    %eax,%eax
cmp    $0xff,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x206(%rbp),%ecx
xor    %eax,%eax
cmp    $0x81,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x205(%rbp),%ecx
xor    %eax,%eax
cmp    $0xff,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x204(%rbp),%ecx
xor    %eax,%eax
cmp    $0x81,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x203(%rbp),%ecx
xor    %eax,%eax
cmp    $0xff,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x202(%rbp),%ecx
xor    %eax,%eax
cmp    $0x81,%ecx
mov    %al,-0x225(%rbp)
jne    14cb <main+0x34b>
movzbl -0x201(%rbp),%eax
cmp    $0xff,%eax
sete   %al
mov    %al,-0x225(%rbp)
mov    -0x225(%rbp),%al
xor    $0xff,%al
test   $0x1,%al
jne    1266 <main+0xe6>
mov    -0x224(%rbp),%edi
mov    0x2b00(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   10a0 <lseek64@plt>
mov    $0x200,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
sub    $0x1,%esi
lea    0xb25(%rip),%rdi
call   1030 <printf@plt>
mov    -0x224(%rbp),%edi
call   1040 <close@plt>
xor    %eax,%eax
add    $0x230,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x208,%rsp
mov    %rsi,%rbp
mov    0x8(%rsi),%rdi
call   1060 <atoll@plt>
mov    %rax,%rbx
mov    0x10(%rbp),%rdi
mov    0x2e35(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
test   %eax,%eax
js     12d2 <main+0x152>
mov    %eax,%r12d
mov    %rbx,%r14
shl    $0x9,%r14
mov    0x2dfd(%rip),%rax
mov    (%rax),%edx
mov    %r12d,%edi
mov    %r14,%rsi
call   10a0 <lseek64@plt>
cltq
cmp    %rax,%r14
jne    12f6 <main+0x176>
mov    %rsp,%r14
mov    0x2de3(%rip),%r13
lea    0xe28(%rip),%r15
jmp    121c <main+0x9c>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rbx
movdqa (%rsp),%xmm0
pcmpeqb 0xdef(%rip),%xmm0
pmovmskb %xmm0,%eax
cmp    $0xffff,%eax
je     1286 <main+0x106>
mov    %r12d,%edi
mov    %r14,%rsi
mov    $0x200,%edx
call   1050 <read@plt>
cmp    $0x200,%eax
je     1200 <main+0x80>
mov    0x0(%r13),%edi
mov    %r15,%rsi
mov    %ebx,%edx
call   1070 <fprintf@plt>
add    $0x1,%rbx
mov    %rbx,%rbp
shl    $0x9,%rbp
mov    0x2d75(%rip),%rax
mov    (%rax),%edx
mov    %r12d,%edi
mov    %rbp,%rsi
call   10a0 <lseek64@plt>
cltq
cmp    %rax,%rbp
je     1200 <main+0x80>
mov    0x0(%r13),%edi
lea    0xd9e(%rip),%rsi
mov    $0x33,%edx
call   1070 <fprintf@plt>
mov    $0xf,%edi
call   1090 <exit@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%edx
mov    %r12d,%edi
xor    %esi,%esi
call   10a0 <lseek64@plt>
lea    0x1ff(%rax),%esi
test   %eax,%eax
cmovns %eax,%esi
sar    $0x9,%esi
add    $0xffffffff,%esi
lea    0xd8b(%rip),%rdi
call   1030 <printf@plt>
mov    %r12d,%edi
call   1040 <close@plt>
xor    %eax,%eax
add    $0x208,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2cf7(%rip),%rax
mov    (%rax),%edi
lea    0xd2e(%rip),%rsi
mov    $0x2e,%edx
call   1070 <fprintf@plt>
mov    $0xa,%edi
call   1090 <exit@plt>
mov    0x2cd3(%rip),%rax
mov    (%rax),%edi
lea    0xd0a(%rip),%rsi
mov    $0x2f,%edx
jmp    1277 <main+0xf7>

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

LLVM IR (-O2):
@O_RDONLY = global i32 0
@stderr = global i32 0
@.str = [12 x i8] c"line %d:%m\0A\00"
@SEEK_SET = global i32 0
@.str.1 = [32 x i8] c"read error %m at position %lld\0A\00"
@.str.2 = [21 x i8] c"offset[blk512]=%lld\0A\00"
@SEEK_CUR = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [512 x i8]
%4 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i64 @atoll(i8* %6)
%8 = getelementptr inbounds i8*, i8** %1, i64 2
%9 = load i8*, i8** %8
%10 = load i32, i32* @O_RDONLY
%11 = tail call i32 @open(i8* %9, i32 %10)
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, i32* @stderr
%15 = tail call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 46)
%16 = tail call i32 @exit(i32 10)
unreachable
17: ; preds = %2
%18 = shl nsw i64 %7, 9
%19 = load i32, i32* @SEEK_SET
%20 = tail call i32 @lseek64(i32 %11, i64 %18, i32 %19)
%21 = sext i32 %20 to i64
%22 = icmp eq i64 %18, %21
br i1 %22, label %23, label %25
23: ; preds = %17
%24 = bitcast [512 x i8]* %3 to <16 x i8>*
br label %29
25: ; preds = %17
%26 = load i32, i32* @stderr
%27 = tail call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 47)
%28 = tail call i32 @exit(i32 15)
unreachable
29: ; preds = %23, %47
%30 = phi i64 [ %49, %47 ], [ %7, %23 ]
%31 = call i32 @read(i32 %11, i8* %4, i32 512)
%32 = icmp eq i32 %31, 512
br i1 %32, label %47, label %33
33: ; preds = %29
%34 = load i32, i32* @stderr
%35 = trunc i64 %30 to i32
%36 = tail call i32 @fprintf(i32 %34, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 %35)
%37 = add nsw i64 %30, 1
%38 = shl nsw i64 %37, 9
%39 = load i32, i32* @SEEK_SET
%40 = tail call i32 @lseek64(i32 %11, i64 %38, i32 %39)
%41 = sext i32 %40 to i64
%42 = icmp eq i64 %38, %41
br i1 %42, label %47, label %43
43: ; preds = %33
%44 = load i32, i32* @stderr
%45 = tail call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 51)
%46 = tail call i32 @exit(i32 15)
unreachable
47: ; preds = %33, %29
%48 = phi i64 [ %37, %33 ], [ %30, %29 ]
%49 = add nsw i64 %48, 1
%50 = load <16 x i8>, <16 x i8>* %24
%51 = freeze <16 x i8> %50
%52 = icmp ne <16 x i8> %51, <i8 73, i8 73, i8 42, i8 0, i8 -48, i8 37, i8 5, i8 0, i8 -127, i8 -1, i8 -127, i8 -1, i8 -127, i8 -1, i8 -127, i8 -1>
%53 = bitcast <16 x i1> %52 to i16
%54 = icmp eq i16 %53, 0
br i1 %54, label %55, label %29
55: ; preds = %47
%56 = load i32, i32* @SEEK_CUR
%57 = tail call i32 @lseek64(i32 %11, i64 0, i32 %56)
%58 = sdiv i32 %57, 512
%59 = add nsw i32 %58, -1
%60 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %59)
%61 = tail call i32 @close(i32 %11)
ret i32 0
}