#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*/ buf;

/* Variables and functions */
int EINVAL;
int MTD_OTP_FACTORY;
int MTD_OTP_USER;
int /*<<< orphan*/ OTPSELECT;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ close(int);
int errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int ioctl(int, int /*<<< orphan*/, int *);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, unsigned char *, int);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  int fd, val, i, offset, ret;
  unsigned char buf[16];
  if (argc != 3 || (strcmp(argv[1], "-f") && strcmp(argv[1], "-u"))) {
    fprintf(stderr, "Usage: %s [ -f | -u ] <device>\n", "flash_otp_dump");
    return EINVAL;
  }
  fd = open(argv[2], O_RDONLY);
  if (fd < 0) {
    perror(argv[2]);
    return errno;
  }
  val = argv[1][1] == 'f' ? MTD_OTP_FACTORY : MTD_OTP_USER;
  ret = ioctl(fd, OTPSELECT, &val);
  if (ret < 0) {
    perror("OTPSELECT");
    return errno;
  }
  printf("OTP %s data for %s\n", argv[1][1] == 'f' ? "factory" : "user",
         argv[2]);
  offset = 0;
  while ((ret = read(fd, buf, sizeof(buf)))) {
    if (ret < 0) {
      perror("read()");
      return errno;
    }
    printf("0x%04x:", offset);
    for (i = 0; i < ret; i++)
      printf(" %02x", buf[i]);
    printf("\n");
    offset += ret;
  }
  close(fd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jne    11dc <main+0x5c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe51(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     1209 <main+0x89>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe36(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     1209 <main+0x89>
mov    0x2ddd(%rip),%rax
mov    (%rax),%edi
lea    0xe1a(%rip),%rsi
lea    0xe33(%rip),%rdx
call   1080 <fprintf@plt>
mov    0x2db1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13b7 <main+0x237>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0x2dc8(%rip),%rax
mov    (%rax),%esi
call   1090 <open@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    124a <main+0xca>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10a0 <perror@plt>
mov    0x2d78(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13b7 <main+0x237>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x66,%eax
jne    1270 <main+0xf0>
mov    0x2d92(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
jmp    127c <main+0xfc>
mov    0x2d61(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%edi
mov    0x2d44(%rip),%rax
mov    (%rax),%esi
lea    -0x18(%rbp),%rdx
call   1040 <ioctl@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    12c1 <main+0x141>
lea    0xd8a(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2d01(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13b7 <main+0x237>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movsbl 0x1(%rax),%ecx
lea    0xd87(%rip),%rsi
lea    0xd78(%rip),%rax
cmp    $0x66,%ecx
cmove  %rax,%rsi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    $0x10,%edx
call   1060 <read@plt>
mov    %eax,-0x24(%rbp)
cmp    $0x0,%eax
je     13a8 <main+0x228>
cmpl   $0x0,-0x24(%rbp)
jge    1343 <main+0x1c3>
lea    0xd33(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2c7f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13b7 <main+0x237>
mov    -0x20(%rbp),%esi
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    138c <main+0x20c>
movslq -0x1c(%rbp),%rax
movzbl -0x40(%rbp,%rax,1),%esi
lea    0xcf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    135b <main+0x1db>
lea    0xc91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    12ff <main+0x17f>
mov    -0x14(%rbp),%edi
call   1050 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
cmp    $0x3,%edi
jne    11d0 <main+0x40>
mov    %rsi,%r14
mov    0x8(%rsi),%rdi
lea    0xe4f(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     11fa <main+0x6a>
mov    0x8(%r14),%rdi
lea    0xe3d(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     11fa <main+0x6a>
mov    0x2de9(%rip),%rax
mov    (%rax),%edi
lea    0xe26(%rip),%rsi
lea    0xe3f(%rip),%rdx
call   1090 <fprintf@plt>
mov    0x2dbd(%rip),%rax
mov    (%rax),%eax
jmp    1319 <main+0x189>
mov    0x10(%r14),%rdi
mov    0x2ddb(%rip),%rax
mov    (%rax),%esi
call   10a0 <open@plt>
test   %eax,%eax
js     1328 <main+0x198>
mov    %eax,%r15d
mov    0x8(%r14),%rax
cmpb   $0x66,0x1(%rax)
jne    122a <main+0x9a>
mov    0x2dd0(%rip),%rax
jmp    1231 <main+0xa1>
mov    0x2da7(%rip),%rax
mov    (%rax),%eax
mov    %eax,0xc(%rsp)
mov    0x2d92(%rip),%rax
mov    (%rax),%esi
lea    0xc(%rsp),%rdx
mov    %r15d,%edi
call   1050 <ioctl@plt>
test   %eax,%eax
js     132e <main+0x19e>
mov    0x8(%r14),%rax
mov    0x10(%r14),%rdx
cmpb   $0x66,0x1(%rax)
lea    0xdeb(%rip),%rax
lea    0xdec(%rip),%rsi
cmove  %rax,%rsi
lea    0xdc5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %r15d,%edi
mov    $0x10,%edx
call   1070 <read@plt>
test   %eax,%eax
je     130f <main+0x17f>
mov    %eax,%r13d
lea    0xdce(%rip),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
test   %r13d,%r13d
js     1337 <main+0x1a7>
lea    0xda7(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13d,%r14d
xor    %r12d,%r12d
nop
movzbl 0x10(%rsp,%r12,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%r12
cmp    %r12,%r14
jne    12d0 <main+0x140>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    %r13d,%ebp
mov    %r15d,%edi
lea    0x10(%rsp),%rsi
mov    $0x10,%edx
call   1070 <read@plt>
mov    %eax,%r13d
test   %eax,%eax
jne    12b0 <main+0x120>
mov    %r15d,%edi
call   1060 <close@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x10(%r14),%rdi
jmp    133e <main+0x1ae>
lea    0xd00(%rip),%rdi
jmp    133e <main+0x1ae>
lea    0xd22(%rip),%rdi
call   10b0 <perror@plt>
mov    0x2c6e(%rip),%rax
mov    (%rax),%eax
jmp    1319 <main+0x189>

LLVM IR (-O0):
@.str = [3 x i8] c"-f\00"
@.str.1 = [3 x i8] c"-u\00"
@stderr = global i32 0
@.str.2 = [32 x i8] c"Usage: %s [ -f | -u ] <device>\0A\00"
@.str.3 = [15 x i8] c"flash_otp_dump\00"
@EINVAL = global i32 0
@O_RDONLY = global i32 0
@errno = global i32 0
@MTD_OTP_FACTORY = global i32 0
@MTD_OTP_USER = global i32 0
@OTPSELECT = global i32 0
@.str.4 = [10 x i8] c"OTPSELECT\00"
@.str.5 = [20 x i8] c"OTP %s data for %s\0A\00"
@.str.6 = [8 x i8] c"factory\00"
@.str.7 = [5 x i8] c"user\00"
@.str.8 = [7 x i8] c"read()\00"
@.str.9 = [8 x i8] c"0x%04x:\00"
@.str.10 = [6 x i8] c" %02x\00"
@.str.11 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [16 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 3
br i1 %13, label %26, label %14
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = call i64 @strcmp(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %30
20: ; preds = %14
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %20, %2
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%29 = load i32, i32* @EINVAL
store i32 %29, i32* %3
br label %116
30: ; preds = %20, %14
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 2
%33 = load i8*, i8** %32
%34 = load i32, i32* @O_RDONLY
%35 = call i32 @open(i8* %33, i32 %34)
store i32 %35, i32* %6
%36 = load i32, i32* %6
%37 = icmp slt i32 %36, 0
br i1 %37, label %38, label %44
38: ; preds = %30
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 2
%41 = load i8*, i8** %40
%42 = call i32 @perror(i8* %41)
%43 = load i32, i32* @errno
store i32 %43, i32* %3
br label %116
44: ; preds = %30
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 1
%47 = load i8*, i8** %46
%48 = getelementptr inbounds i8, i8* %47, i64 1
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 102
br i1 %51, label %52, label %54
52: ; preds = %44
%53 = load i32, i32* @MTD_OTP_FACTORY
br label %56
54: ; preds = %44
%55 = load i32, i32* @MTD_OTP_USER
br label %56
56: ; preds = %54, %52
%57 = phi i32 [ %53, %52 ], [ %55, %54 ]
store i32 %57, i32* %7
%58 = load i32, i32* %6
%59 = load i32, i32* @OTPSELECT
%60 = call i32 @ioctl(i32 %58, i32 %59, i32* %7)
store i32 %60, i32* %10
%61 = load i32, i32* %10
%62 = icmp slt i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %56
%64 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%65 = load i32, i32* @errno
store i32 %65, i32* %3
br label %116
66: ; preds = %56
%67 = load i8**, i8*** %5
%68 = getelementptr inbounds i8*, i8** %67, i64 1
%69 = load i8*, i8** %68
%70 = getelementptr inbounds i8, i8* %69, i64 1
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 102
%74 = zext i1 %73 to i64
%75 = select i1 %73, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0)
%76 = load i8**, i8*** %5
%77 = getelementptr inbounds i8*, i8** %76, i64 2
%78 = load i8*, i8** %77
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %75, i8* %78)
store i32 0, i32* %9
br label %80
80: ; preds = %108, %66
%81 = load i32, i32* %6
%82 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%83 = call i32 @read(i32 %81, i8* %82, i32 16)
store i32 %83, i32* %10
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %113
85: ; preds = %80
%86 = load i32, i32* %10
%87 = icmp slt i32 %86, 0
br i1 %87, label %88, label %91
88: ; preds = %85
%89 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%90 = load i32, i32* @errno
store i32 %90, i32* %3
br label %116
91: ; preds = %85
%92 = load i32, i32* %9
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %92)
store i32 0, i32* %8
br label %94
94: ; preds = %105, %91
%95 = load i32, i32* %8
%96 = load i32, i32* %10
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %108
98: ; preds = %94
%99 = load i32, i32* %8
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 %100
%102 = load i8, i8* %101
%103 = zext i8 %102 to i32
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %103)
br label %105
105: ; preds = %98
%106 = load i32, i32* %8
%107 = add nsw i32 %106, 1
store i32 %107, i32* %8
br label %94
108: ; preds = %94
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%110 = load i32, i32* %10
%111 = load i32, i32* %9
%112 = add nsw i32 %111, %110
store i32 %112, i32* %9
br label %80
113: ; preds = %80
%114 = load i32, i32* %6
%115 = call i32 @close(i32 %114)
store i32 0, i32* %3
br label %116
116: ; preds = %113, %88, %63, %38, %26
%117 = load i32, i32* %3
ret i32 %117
}

LLVM IR (-O2):
@.str = [3 x i8] c"-f\00"
@.str.1 = [3 x i8] c"-u\00"
@stderr = global i32 0
@.str.2 = [32 x i8] c"Usage: %s [ -f | -u ] <device>\0A\00"
@.str.3 = [15 x i8] c"flash_otp_dump\00"
@EINVAL = global i32 0
@O_RDONLY = global i32 0
@errno = global i32 0
@MTD_OTP_FACTORY = global i32 0
@MTD_OTP_USER = global i32 0
@OTPSELECT = global i32 0
@.str.4 = [10 x i8] c"OTPSELECT\00"
@.str.5 = [20 x i8] c"OTP %s data for %s\0A\00"
@.str.6 = [8 x i8] c"factory\00"
@.str.7 = [5 x i8] c"user\00"
@.str.8 = [7 x i8] c"read()\00"
@.str.9 = [8 x i8] c"0x%04x:\00"
@.str.10 = [6 x i8] c" %02x\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca [16 x i8]
%5 = bitcast i32* %3 to i8*
%6 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 0
%7 = icmp eq i32 %0, 3
br i1 %7, label %8, label %17
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %21, label %13
13: ; preds = %8
%14 = load i8*, i8** %9
%15 = tail call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %21, label %17
17: ; preds = %13, %2
%18 = load i32, i32* @stderr
%19 = tail call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%20 = load i32, i32* @EINVAL
br label %80
21: ; preds = %13, %8
%22 = getelementptr inbounds i8*, i8** %1, i64 2
%23 = load i8*, i8** %22
%24 = load i32, i32* @O_RDONLY
%25 = tail call i32 @open(i8* %23, i32 %24)
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %21
%28 = load i8*, i8** %22
%29 = tail call i32 @perror(i8* %28)
%30 = load i32, i32* @errno
br label %80
31: ; preds = %21
%32 = load i8*, i8** %9
%33 = getelementptr inbounds i8, i8* %32, i64 1
%34 = load i8, i8* %33
%35 = icmp eq i8 %34, 102
%36 = load i32, i32* @MTD_OTP_FACTORY
%37 = load i32, i32* @MTD_OTP_USER
%38 = select i1 %35, i32 %36, i32 %37
store i32 %38, i32* %3
%39 = load i32, i32* @OTPSELECT
%40 = call i32 @ioctl(i32 %25, i32 %39, i32* %3)
%41 = icmp slt i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %31
%43 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%44 = load i32, i32* @errno
br label %80
45: ; preds = %31
%46 = load i8*, i8** %9
%47 = getelementptr inbounds i8, i8* %46, i64 1
%48 = load i8, i8* %47
%49 = icmp eq i8 %48, 102
%50 = select i1 %49, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0)
%51 = load i8*, i8** %22
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %50, i8* %51)
%53 = call i32 @read(i32 %25, i8* %6, i32 16)
%54 = icmp eq i32 %53, 0
br i1 %54, label %78, label %55
55: ; preds = %45, %73
%56 = phi i32 [ %76, %73 ], [ %53, %45 ]
%57 = phi i32 [ %75, %73 ], [ 0, %45 ]
%58 = icmp slt i32 %56, 0
br i1 %58, label %59, label %62
59: ; preds = %55
%60 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%61 = load i32, i32* @errno
br label %80
62: ; preds = %55
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %57)
%64 = zext i32 %56 to i64
br label %65
65: ; preds = %62, %65
%66 = phi i64 [ 0, %62 ], [ %71, %65 ]
%67 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 %66
%68 = load i8, i8* %67
%69 = zext i8 %68 to i32
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %69)
%71 = add nuw nsw i64 %66, 1
%72 = icmp eq i64 %71, %64
br i1 %72, label %73, label %65
73: ; preds = %65
%74 = call i32 @putchar(i32 10)
%75 = add nsw i32 %56, %57
%76 = call i32 @read(i32 %25, i8* %6, i32 16)
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %55
78: ; preds = %73, %45
%79 = call i32 @close(i32 %25)
br label %80
80: ; preds = %78, %59, %42, %27, %17
%81 = phi i32 [ %20, %17 ], [ %30, %27 ], [ %44, %42 ], [ %61, %59 ], [ 0, %78 ]
ret i32 %81
}