#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_SET;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
scalar_t__ lseek64(int, unsigned long, int /*<<< orphan*/);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, unsigned char *, int);
int /*<<< orphan*/ stderr;
unsigned long str_to_ul(char *);
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char **argv) {
  int i, n, fd;
  unsigned long offset, len;
  unsigned char buf[16];
  if (argc < 3) {
    fprintf(stderr, "Usage: %s [-k] (offset) (length)\n", argv[0]);
    return 1;
  }
  if (!strcmp(argv[1], "-k")) {
    offset = str_to_ul(argv[2]);
    len = str_to_ul(argv[3]);
    fd = open("/dev/kmem", O_RDONLY);
  } else {
    offset = str_to_ul(argv[1]);
    len = str_to_ul(argv[2]);
    fd = open("/dev/mem", O_RDONLY);
  }
  if (fd == -1) {
    perror("open");
    return 1;
  }
  if (lseek64(fd, offset, SEEK_SET) < 0) {
    perror("lseek");
    return 1;
  }
  printf("Dump Offset : %016lx, Dump Length: %016lx\n", offset, len);
  printf("(Address)-------  "
         "+0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +a +b +c +d +e +f\n");
  while (len > 0) {
    printf("%016lx: ", offset);
    if ((n = read(fd, buf, len > 16 ? 16 : len)) <= 0) {
      perror("read");
      break;
    }
    for (i = 0; i < n; i++) {
      printf("%02x ", buf[i]);
    }
    printf("\n");
    len -= n;
    offset += n;
  }
  close(fd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11d8 <main+0x48>
mov    0x2e21(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe39(%rip),%rsi
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13db <main+0x24b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe3b(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1234 <main+0xa4>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1030 <str_to_ul@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1030 <str_to_ul@plt>
mov    %rax,-0x30(%rbp)
mov    0x2dca(%rip),%rax
mov    (%rax),%esi
lea    0xdfe(%rip),%rdi
call   1090 <open@plt>
mov    %eax,-0x1c(%rbp)
jmp    126e <main+0xde>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <str_to_ul@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1030 <str_to_ul@plt>
mov    %rax,-0x30(%rbp)
mov    0x2d8b(%rip),%rax
mov    (%rax),%esi
lea    0xdc9(%rip),%rdi
call   1090 <open@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0xffffffff,-0x1c(%rbp)
jne    1290 <main+0x100>
lea    0xdb9(%rip),%rdi
call   10a0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    13db <main+0x24b>
mov    -0x1c(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    0x2d32(%rip),%rax
mov    (%rax),%edx
call   10b0 <lseek64@plt>
cmp    $0x0,%rax
jge    12c7 <main+0x137>
lea    0xd87(%rip),%rdi
call   10a0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    13db <main+0x24b>
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
lea    0xd6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd8a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpq   $0x0,-0x30(%rbp)
jbe    13cc <main+0x23c>
mov    -0x28(%rbp),%rsi
lea    0xdb0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x10,-0x30(%rbp)
jbe    132f <main+0x19f>
mov    $0x10,%eax
mov    %rax,-0x58(%rbp)
jmp    1337 <main+0x1a7>
mov    -0x30(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rsi
mov    -0x4c(%rbp),%edi
mov    -0x58(%rbp),%rax
mov    %eax,%edx
call   1060 <read@plt>
mov    %eax,-0x18(%rbp)
cmp    $0x0,%eax
jg     1366 <main+0x1d6>
lea    0xd5e(%rip),%rdi
call   10a0 <perror@plt>
jmp    13cc <main+0x23c>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    139e <main+0x20e>
movslq -0x14(%rbp),%rax
movzbl -0x40(%rbp,%rax,1),%esi
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    136d <main+0x1dd>
lea    0xc7b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x18(%rbp),%rcx
mov    -0x30(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x30(%rbp)
movslq -0x18(%rbp),%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    12eb <main+0x15b>
mov    -0x1c(%rbp),%edi
call   1050 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbp
cmp    $0x2,%edi
jg     11e9 <main+0x39>
mov    0x2e0b(%rip),%rax
mov    (%rax),%edi
mov    0x0(%rbp),%rdx
lea    0xe26(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%eax
jmp    132d <main+0x17d>
mov    0x8(%rbp),%rbx
lea    0xe2e(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     120f <main+0x5f>
lea    0xe28(%rip),%r14
mov    $0x2,%r15d
jmp    1220 <main+0x70>
mov    0x10(%rbp),%rbx
lea    0xe0b(%rip),%r14
mov    $0x3,%r15d
mov    %rbx,%rdi
call   1040 <str_to_ul@plt>
mov    %rax,%rbx
mov    0x0(%rbp,%r15,8),%rdi
call   1040 <str_to_ul@plt>
mov    %rax,%rbp
mov    0x2da9(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
call   10b0 <open@plt>
cmp    $0xffffffff,%eax
je     133c <main+0x18c>
mov    %eax,%r14d
mov    0x2d74(%rip),%rax
mov    (%rax),%edx
mov    %r14d,%edi
mov    %rbx,%rsi
call   10d0 <lseek64@plt>
test   %rax,%rax
js     1345 <main+0x195>
lea    0xdca(%rip),%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xdf5(%rip),%rdi
call   1050 <puts@plt>
test   %rbp,%rbp
je     1323 <main+0x173>
lea    0xdda(%rip),%r15
mov    %r14d,0xc(%rsp)
nopw   0x0(%rax,%rax,1)
lea    0xdb7(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x10,%rbp
mov    $0x10,%edx
cmovb  %ebp,%edx
mov    %r14d,%edi
lea    0x10(%rsp),%rsi
call   1080 <read@plt>
test   %eax,%eax
jle    1358 <main+0x1a8>
mov    %eax,%r12d
mov    %eax,%r13d
xor    %r14d,%r14d
nopw   0x0(%rax,%rax,1)
movzbl 0x10(%rsp,%r14,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%r14
cmp    %r14,%r13
jne    12f0 <main+0x140>
mov    $0xa,%edi
call   1030 <putchar@plt>
movslq %r12d,%rax
add    %rax,%rbx
sub    %rax,%rbp
mov    0xc(%rsp),%r14d
jne    12b0 <main+0x100>
mov    %r14d,%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcf5(%rip),%rdi
jmp    134c <main+0x19c>
lea    0xcf1(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%eax
jmp    132d <main+0x17d>
lea    0xd18(%rip),%rdi
call   10c0 <perror@plt>
jmp    1323 <main+0x173>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [34 x i8] c"Usage: %s [-k] (offset) (length)\0A\00"
@.str.1 = [3 x i8] c"-k\00"
@.str.2 = [10 x i8] c"/dev/kmem\00"
@O_RDONLY = global i32 0
@.str.3 = [9 x i8] c"/dev/mem\00"
@.str.4 = [5 x i8] c"open\00"
@SEEK_SET = global i32 0
@.str.5 = [6 x i8] c"lseek\00"
@.str.6 = [43 x i8] c"Dump Offset : %016lx, Dump Length: %016lx\0A\00"
@.str.7 = [67 x i8] c"(Address)------- +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +a +b +c +d +e +f\0A\00"
@.str.8 = [9 x i8] c"%016lx: \00"
@.str.9 = [5 x i8] c"read\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 i64
%10 = alloca i64
%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 slt i32 %12, 3
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %18)
store i32 1, i32* %3
br label %114
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32 @strcmp(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%25 = icmp ne i32 %24, 0
br i1 %25, label %37, label %26
26: ; preds = %20
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 2
%29 = load i8*, i8** %28
%30 = call i64 @str_to_ul(i8* %29)
store i64 %30, i64* %9
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 3
%33 = load i8*, i8** %32
%34 = call i64 @str_to_ul(i8* %33)
store i64 %34, i64* %10
%35 = load i32, i32* @O_RDONLY
%36 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %35)
store i32 %36, i32* %8
br label %48
37: ; preds = %20
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 1
%40 = load i8*, i8** %39
%41 = call i64 @str_to_ul(i8* %40)
store i64 %41, i64* %9
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 2
%44 = load i8*, i8** %43
%45 = call i64 @str_to_ul(i8* %44)
store i64 %45, i64* %10
%46 = load i32, i32* @O_RDONLY
%47 = call i32 @open(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %46)
store i32 %47, i32* %8
br label %48
48: ; preds = %37, %26
%49 = load i32, i32* %8
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %3
br label %114
53: ; preds = %48
%54 = load i32, i32* %8
%55 = load i64, i64* %9
%56 = load i32, i32* @SEEK_SET
%57 = call i64 @lseek64(i32 %54, i64 %55, i32 %56)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %53
%60 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %3
br label %114
61: ; preds = %53
%62 = load i64, i64* %9
%63 = load i64, i64* %10
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i64 %62, i64 %63)
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0))
br label %66
66: ; preds = %101, %61
%67 = load i64, i64* %10
%68 = icmp ugt i64 %67, 0
br i1 %68, label %69, label %111
69: ; preds = %66
%70 = load i64, i64* %9
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 %70)
%72 = load i32, i32* %8
%73 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%74 = load i64, i64* %10
%75 = icmp ugt i64 %74, 16
br i1 %75, label %76, label %77
76: ; preds = %69
br label %79
77: ; preds = %69
%78 = load i64, i64* %10
br label %79
79: ; preds = %77, %76
%80 = phi i64 [ 16, %76 ], [ %78, %77 ]
%81 = trunc i64 %80 to i32
%82 = call i32 @read(i32 %72, i8* %73, i32 %81)
store i32 %82, i32* %7
%83 = icmp sle i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %79
%85 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %111
86: ; preds = %79
store i32 0, i32* %6
br label %87
87: ; preds = %98, %86
%88 = load i32, i32* %6
%89 = load i32, i32* %7
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %101
91: ; preds = %87
%92 = load i32, i32* %6
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 %93
%95 = load i8, i8* %94
%96 = zext i8 %95 to i32
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %96)
br label %98
98: ; preds = %91
%99 = load i32, i32* %6
%100 = add nsw i32 %99, 1
store i32 %100, i32* %6
br label %87
101: ; preds = %87
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%103 = load i32, i32* %7
%104 = sext i32 %103 to i64
%105 = load i64, i64* %10
%106 = sub i64 %105, %104
store i64 %106, i64* %10
%107 = load i32, i32* %7
%108 = sext i32 %107 to i64
%109 = load i64, i64* %9
%110 = add i64 %109, %108
store i64 %110, i64* %9
br label %66
111: ; preds = %84, %66
%112 = load i32, i32* %8
%113 = call i32 @close(i32 %112)
store i32 0, i32* %3
br label %114
114: ; preds = %111, %59, %51, %14
%115 = load i32, i32* %3
ret i32 %115
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [34 x i8] c"Usage: %s [-k] (offset) (length)\0A\00"
@.str.1 = [3 x i8] c"-k\00"
@.str.2 = [10 x i8] c"/dev/kmem\00"
@O_RDONLY = global i32 0
@.str.3 = [9 x i8] c"/dev/mem\00"
@.str.4 = [5 x i8] c"open\00"
@SEEK_SET = global i32 0
@.str.5 = [6 x i8] c"lseek\00"
@.str.6 = [43 x i8] c"Dump Offset : %016lx, Dump Length: %016lx\0A\00"
@.str.8 = [9 x i8] c"%016lx: \00"
@.str.9 = [5 x i8] c"read\00"
@.str.10 = [6 x i8] c"%02x \00"
@str = [66 x i8] c"(Address)------- +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +a +b +c +d +e +f\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [16 x i8]
%4 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%5 = icmp slt i32 %0, 3
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = load i8*, i8** %1
%9 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %8)
br label %70
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = getelementptr inbounds i8*, i8** %1, i64 2
%17 = load i8*, i8** %16
br label %18
18: ; preds = %10, %15
%19 = phi i8* [ %17, %15 ], [ %12, %10 ]
%20 = phi i64 [ 3, %15 ], [ 2, %10 ]
%21 = phi i8* [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), %15 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), %10 ]
%22 = tail call i64 @str_to_ul(i8* %19)
%23 = getelementptr inbounds i8*, i8** %1, i64 %20
%24 = load i8*, i8** %23
%25 = tail call i64 @str_to_ul(i8* %24)
%26 = load i32, i32* @O_RDONLY
%27 = tail call i32 @open(i8* %21, i32 %26)
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %31
29: ; preds = %18
%30 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %70
31: ; preds = %18
%32 = load i32, i32* @SEEK_SET
%33 = tail call i64 @lseek64(i32 %27, i64 %22, i32 %32)
%34 = icmp slt i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %70
37: ; preds = %31
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i64 %22, i64 %25)
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str, i64 0, i64 0))
%40 = icmp eq i64 %25, 0
br i1 %40, label %68, label %41
41: ; preds = %37, %62
%42 = phi i64 [ %65, %62 ], [ %25, %37 ]
%43 = phi i64 [ %66, %62 ], [ %22, %37 ]
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 %43)
%45 = icmp ult i64 %42, 16
%46 = select i1 %45, i64 %42, i64 16
%47 = trunc i64 %46 to i32
%48 = call i32 @read(i32 %27, i8* %4, i32 %47)
%49 = icmp slt i32 %48, 1
br i1 %49, label %52, label %50
50: ; preds = %41
%51 = zext i32 %48 to i64
br label %54
52: ; preds = %41
%53 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %68
54: ; preds = %50, %54
%55 = phi i64 [ 0, %50 ], [ %60, %54 ]
%56 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 %55
%57 = load i8, i8* %56
%58 = zext i8 %57 to i32
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %58)
%60 = add nuw nsw i64 %55, 1
%61 = icmp eq i64 %60, %51
br i1 %61, label %62, label %54
62: ; preds = %54
%63 = tail call i32 @putchar(i32 10)
%64 = sext i32 %48 to i64
%65 = sub i64 %42, %64
%66 = add i64 %43, %64
%67 = icmp eq i64 %65, 0
br i1 %67, label %68, label %41
68: ; preds = %62, %37, %52
%69 = tail call i32 @close(i32 %27)
br label %70
70: ; preds = %68, %35, %29, %6
%71 = phi i32 [ 1, %6 ], [ 1, %29 ], [ 1, %35 ], [ 0, %68 ]
ret i32 %71
}