#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*/ uint8_t;
typedef scalar_t__ uint64_t;
struct stat {
  int st_size;
};
typedef int off_t;
typedef scalar_t__ int64_t;

/* Variables and functions */
scalar_t__ FromSTC(int /*<<< orphan*/ *);
int /*<<< orphan*/ *MAP_FAILED;
int /*<<< orphan*/ MAP_SHARED;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ PROT_READ;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ errno;
int fstat(int, struct stat *);
int /*<<< orphan*/ *mmap(int /*<<< orphan*/ *, int, int /*<<< orphan*/,
                         int /*<<< orphan*/, int, int /*<<< orphan*/);
int /*<<< orphan*/ msg_Err(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ munmap(int /*<<< orphan*/ *, int);
int open(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
off_t LookupAuxFile(const char *psz_arg, int64_t i_wanted, bool b_absolute) {
  uint8_t *p_aux;
  off_t i_offset1 = 0, i_offset2;
  int i_stc_fd;
  struct stat stc_stat;
  if ((i_stc_fd = open(psz_arg, O_RDONLY)) == -1) {
    msg_Err(NULL, "unable to open %s (%s)", psz_arg, strerror(errno));
    return -1;
  }
  if (fstat(i_stc_fd, &stc_stat) == -1 || stc_stat.st_size < sizeof(uint64_t)) {
    msg_Err(NULL, "unable to stat %s (%s)", psz_arg, strerror(errno));
    return -1;
  }
  p_aux = mmap(NULL, stc_stat.st_size, PROT_READ, MAP_SHARED, i_stc_fd, 0);
  if (p_aux == MAP_FAILED) {
    msg_Err(NULL, "unable to mmap %s (%s)", psz_arg, strerror(errno));
    return -1;
  }
  i_offset2 = stc_stat.st_size / sizeof(uint64_t);
  if (i_wanted < 0)
    i_wanted += FromSTC(p_aux + (i_offset2 - 1) * sizeof(uint64_t));
  else if (!b_absolute)
    i_wanted += FromSTC(p_aux);
  if (i_wanted < 0) {
    msg_Err(NULL, "invalid offset");
    return -1;
  }
  for (;;) {
    off_t i_mid_offset = (i_offset1 + i_offset2) / 2;
    uint8_t *p_mid_aux = p_aux + i_mid_offset * sizeof(uint64_t);
    uint64_t i_mid_stc = FromSTC(p_mid_aux);
    if (i_offset1 == i_mid_offset)
      break;
    if (i_mid_stc >= i_wanted)
      i_offset2 = i_mid_offset;
    else
      i_offset1 = i_mid_offset;
  }
  munmap(p_aux, stc_stat.st_size);
  close(i_stc_fd);
  return i_offset2;
}


x86 assembly (clang, -O0):
<LookupAuxFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x10(%rbp),%rdi
mov    0x2e33(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
mov    %eax,-0x34(%rbp)
cmp    $0xffffffff,%eax
jne    11f2 <LookupAuxFile+0x72>
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    0x2e01(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x58(%rbp),%rdx
mov    %eax,%ecx
xor    %eax,%eax
mov    %eax,%edi
lea    0xe21(%rip),%rsi
mov    $0x0,%al
call   1030 <msg_Err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13d7 <LookupAuxFile+0x257>
mov    -0x34(%rbp),%edi
lea    -0x38(%rbp),%rsi
call   10a0 <fstat@plt>
cmp    $0xffffffff,%eax
je     1215 <LookupAuxFile+0x95>
movslq -0x38(%rbp),%rax
cmp    $0x8,%rax
jae    124f <LookupAuxFile+0xcf>
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    0x2da4(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x60(%rbp),%rdx
mov    %eax,%ecx
xor    %eax,%eax
mov    %eax,%edi
lea    0xddb(%rip),%rsi
mov    $0x0,%al
call   1030 <msg_Err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13d7 <LookupAuxFile+0x257>
mov    -0x38(%rbp),%esi
mov    0x2d9f(%rip),%rax
mov    (%rax),%edx
mov    0x2d86(%rip),%rax
mov    (%rax),%ecx
mov    -0x34(%rbp),%r8d
xor    %eax,%eax
mov    %eax,%edi
xor    %r9d,%r9d
call   1040 <mmap@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    0x2d3d(%rip),%rcx
cmp    (%rcx),%rax
jne    12c6 <LookupAuxFile+0x146>
mov    -0x10(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    0x2d2d(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x68(%rbp),%rdx
mov    %eax,%ecx
xor    %eax,%eax
mov    %eax,%edi
lea    0xd7b(%rip),%rsi
mov    $0x0,%al
call   1030 <msg_Err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13d7 <LookupAuxFile+0x257>
movslq -0x38(%rbp),%rax
shr    $0x3,%rax
mov    %eax,-0x30(%rbp)
cmpq   $0x0,-0x18(%rbp)
jge    1305 <LookupAuxFile+0x185>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
cltq
shl    $0x3,%rax
shl    $0x2,%rax
add    %rax,%rdi
call   1060 <FromSTC@plt>
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1325 <LookupAuxFile+0x1a5>
cmpl   $0x0,-0x1c(%rbp)
jne    1320 <LookupAuxFile+0x1a0>
mov    -0x28(%rbp),%rdi
call   1060 <FromSTC@plt>
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1325 <LookupAuxFile+0x1a5>
cmpq   $0x0,-0x18(%rbp)
jge    134e <LookupAuxFile+0x1ce>
xor    %eax,%eax
mov    %eax,%edi
lea    0xd0a(%rip),%rsi
mov    $0x0,%al
call   1030 <msg_Err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13d7 <LookupAuxFile+0x257>
jmp    1353 <LookupAuxFile+0x1d3>
mov    -0x2c(%rbp),%eax
add    -0x30(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
shl    $0x3,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
call   1060 <FromSTC@plt>
mov    %rax,-0x50(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jne    1399 <LookupAuxFile+0x219>
jmp    13bd <LookupAuxFile+0x23d>
mov    -0x50(%rbp),%rax
cmp    -0x18(%rbp),%rax
jl     13b2 <LookupAuxFile+0x232>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    13b8 <LookupAuxFile+0x238>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x2c(%rbp)
jmp    1353 <LookupAuxFile+0x1d3>
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%esi
call   1070 <munmap@plt>
mov    -0x34(%rbp),%edi
call   1050 <close@plt>
mov    -0x30(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LookupAuxFile>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edx,%r15d
mov    %rsi,%r14
mov    %rdi,%r12
mov    0x2e3a(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
cmp    $0xffffffff,%eax
je     1216 <LookupAuxFile+0x96>
mov    %eax,%ebp
lea    0x8(%rsp),%rsi
mov    %eax,%edi
call   10a0 <fstat@plt>
cmp    $0xffffffff,%eax
je     122d <LookupAuxFile+0xad>
mov    0x8(%rsp),%ebx
cmp    $0x7,%ebx
jbe    122d <LookupAuxFile+0xad>
mov    0x2e2b(%rip),%rax
mov    (%rax),%edx
mov    0x2e12(%rip),%rax
mov    (%rax),%ecx
xor    %edi,%edi
mov    %ebx,%esi
mov    %ebp,%r8d
xor    %r9d,%r9d
call   1040 <mmap@plt>
mov    %rax,%r13
mov    0x2dcf(%rip),%rax
cmp    (%rax),%r13
je     1244 <LookupAuxFile+0xc4>
mov    %r15d,%eax
mov    %ebx,0x14(%rsp)
mov    %ebx,%r15d
sar    $0x3,%r15d
test   %r14,%r14
js     127d <LookupAuxFile+0xfd>
mov    %r13,%rdi
test   %eax,%eax
jne    1296 <LookupAuxFile+0x116>
jmp    128c <LookupAuxFile+0x10c>
mov    0x2dab(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xdd5(%rip),%rsi
jmp    1259 <LookupAuxFile+0xd9>
mov    0x2d94(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xdd5(%rip),%rsi
jmp    1259 <LookupAuxFile+0xd9>
mov    0x2d7d(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xdd5(%rip),%rsi
xor    %edi,%edi
mov    %r12,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <msg_Err@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movslq %r15d,%rax
shl    $0x5,%rax
lea    (%rax,%r13,1),%rdi
add    $0xffffffffffffffe0,%rdi
call   1060 <FromSTC@plt>
add    %rax,%r14
js     12f2 <LookupAuxFile+0x172>
mov    %ebp,0x10(%rsp)
xor    %ebp,%ebp
jmp    12a7 <LookupAuxFile+0x127>
xchg   %ax,%ax
cmp    %r12d,%ebp
mov    %ecx,%ebp
je     12d8 <LookupAuxFile+0x158>
mov    %r15d,%ebx
lea    (%rbx,%rbp,1),%eax
mov    %eax,%r12d
shr    $0x1f,%r12d
add    %eax,%r12d
sar    %r12d
movslq %r12d,%rdi
shl    $0x5,%rdi
add    %r13,%rdi
call   1060 <FromSTC@plt>
mov    %r12d,%ecx
cmp    %r14,%rax
jl     12a0 <LookupAuxFile+0x120>
mov    %r12d,%r15d
mov    %ebp,%ecx
jmp    12a0 <LookupAuxFile+0x120>
mov    %r13,%rdi
mov    0x14(%rsp),%esi
call   1070 <munmap@plt>
mov    0x10(%rsp),%edi
call   1050 <close@plt>
jmp    126c <LookupAuxFile+0xec>
lea    0xd4c(%rip),%rsi
xor    %edi,%edi
xor    %eax,%eax
call   1030 <msg_Err@plt>
jmp    1267 <LookupAuxFile+0xe7>

LLVM IR (-O0):
%struct.stat = type { i32 }
@O_RDONLY = global i32 0
@.str = [23 x i8] c"unable to open %s (%s)\00"
@errno = global i32 0
@.str.1 = [23 x i8] c"unable to stat %s (%s)\00"
@PROT_READ = global i32 0
@MAP_SHARED = global i32 0
@MAP_FAILED = global i32* null
@.str.2 = [23 x i8] c"unable to mmap %s (%s)\00"
@.str.3 = [15 x i8] c"invalid offset\00"
define i32 @LookupAuxFile(i8* %0, i64 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca %struct.stat
%13 = alloca i32
%14 = alloca i32*
%15 = alloca i64
store i8* %0, i8** %5
store i64 %1, i64* %6
store i32 %2, i32* %7
store i32 0, i32* %9
%16 = load i8*, i8** %5
%17 = load i32, i32* @O_RDONLY
%18 = call i32 @open(i8* %16, i32 %17)
store i32 %18, i32* %11
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %25
20: ; preds = %3
%21 = load i8*, i8** %5
%22 = load i32, i32* @errno
%23 = call i32 @strerror(i32 %22)
%24 = call i32 (i32*, i8*, ...) @msg_Err(i32* null, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %21, i32 %23)
store i32 -1, i32* %4
br label %120
25: ; preds = %3
%26 = load i32, i32* %11
%27 = call i32 @fstat(i32 %26, %struct.stat* %12)
%28 = icmp eq i32 %27, -1
br i1 %28, label %34, label %29
29: ; preds = %25
%30 = getelementptr inbounds %struct.stat, %struct.stat* %12, i32 0, i32 0
%31 = load i32, i32* %30
%32 = sext i32 %31 to i64
%33 = icmp ult i64 %32, 8
br i1 %33, label %34, label %39
34: ; preds = %29, %25
%35 = load i8*, i8** %5
%36 = load i32, i32* @errno
%37 = call i32 @strerror(i32 %36)
%38 = call i32 (i32*, i8*, ...) @msg_Err(i32* null, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %35, i32 %37)
store i32 -1, i32* %4
br label %120
39: ; preds = %29
%40 = getelementptr inbounds %struct.stat, %struct.stat* %12, i32 0, i32 0
%41 = load i32, i32* %40
%42 = load i32, i32* @PROT_READ
%43 = load i32, i32* @MAP_SHARED
%44 = load i32, i32* %11
%45 = call i32* @mmap(i32* null, i32 %41, i32 %42, i32 %43, i32 %44, i32 0)
store i32* %45, i32** %8
%46 = load i32*, i32** %8
%47 = load i32*, i32** @MAP_FAILED
%48 = icmp eq i32* %46, %47
br i1 %48, label %49, label %54
49: ; preds = %39
%50 = load i8*, i8** %5
%51 = load i32, i32* @errno
%52 = call i32 @strerror(i32 %51)
%53 = call i32 (i32*, i8*, ...) @msg_Err(i32* null, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %50, i32 %52)
store i32 -1, i32* %4
br label %120
54: ; preds = %39
%55 = getelementptr inbounds %struct.stat, %struct.stat* %12, i32 0, i32 0
%56 = load i32, i32* %55
%57 = sext i32 %56 to i64
%58 = udiv i64 %57, 8
%59 = trunc i64 %58 to i32
store i32 %59, i32* %10
%60 = load i64, i64* %6
%61 = icmp slt i64 %60, 0
br i1 %61, label %62, label %72
62: ; preds = %54
%63 = load i32*, i32** %8
%64 = load i32, i32* %10
%65 = sub nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = mul i64 %66, 8
%68 = getelementptr inbounds i32, i32* %63, i64 %67
%69 = call i64 @FromSTC(i32* %68)
%70 = load i64, i64* %6
%71 = add nsw i64 %70, %69
store i64 %71, i64* %6
br label %81
72: ; preds = %54
%73 = load i32, i32* %7
%74 = icmp ne i32 %73, 0
br i1 %74, label %80, label %75
75: ; preds = %72
%76 = load i32*, i32** %8
%77 = call i64 @FromSTC(i32* %76)
%78 = load i64, i64* %6
%79 = add nsw i64 %78, %77
store i64 %79, i64* %6
br label %80
80: ; preds = %75, %72
br label %81
81: ; preds = %80, %62
%82 = load i64, i64* %6
%83 = icmp slt i64 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %81
%85 = call i32 (i32*, i8*, ...) @msg_Err(i32* null, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %4
br label %120
86: ; preds = %81
br label %87
87: ; preds = %111, %86
%88 = load i32, i32* %9
%89 = load i32, i32* %10
%90 = add nsw i32 %88, %89
%91 = sdiv i32 %90, 2
store i32 %91, i32* %13
%92 = load i32*, i32** %8
%93 = load i32, i32* %13
%94 = sext i32 %93 to i64
%95 = mul i64 %94, 8
%96 = getelementptr inbounds i32, i32* %92, i64 %95
store i32* %96, i32** %14
%97 = load i32*, i32** %14
%98 = call i64 @FromSTC(i32* %97)
store i64 %98, i64* %15
%99 = load i32, i32* %9
%100 = load i32, i32* %13
%101 = icmp eq i32 %99, %100
br i1 %101, label %102, label %103
102: ; preds = %87
br label %112
103: ; preds = %87
%104 = load i64, i64* %15
%105 = load i64, i64* %6
%106 = icmp sge i64 %104, %105
br i1 %106, label %107, label %109
107: ; preds = %103
%108 = load i32, i32* %13
store i32 %108, i32* %10
br label %111
109: ; preds = %103
%110 = load i32, i32* %13
store i32 %110, i32* %9
br label %111
111: ; preds = %109, %107
br label %87
112: ; preds = %102
%113 = load i32*, i32** %8
%114 = getelementptr inbounds %struct.stat, %struct.stat* %12, i32 0, i32 0
%115 = load i32, i32* %114
%116 = call i32 @munmap(i32* %113, i32 %115)
%117 = load i32, i32* %11
%118 = call i32 @close(i32 %117)
%119 = load i32, i32* %10
store i32 %119, i32* %4
br label %120
120: ; preds = %112, %84, %49, %34, %20
%121 = load i32, i32* %4
ret i32 %121
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@O_RDONLY = global i32 0
@.str = [23 x i8] c"unable to open %s (%s)\00"
@errno = global i32 0
@.str.1 = [23 x i8] c"unable to stat %s (%s)\00"
@PROT_READ = global i32 0
@MAP_SHARED = global i32 0
@MAP_FAILED = global i32* null
@.str.2 = [23 x i8] c"unable to mmap %s (%s)\00"
@.str.3 = [15 x i8] c"invalid offset\00"
define i32 @LookupAuxFile(i8* %0, i64 %1, i32 %2) {
%4 = alloca %struct.stat
%5 = bitcast %struct.stat* %4 to i8*
%6 = load i32, i32* @O_RDONLY
%7 = tail call i32 @open(i8* %0, i32 %6)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = load i32, i32* @errno
%11 = tail call i32 @strerror(i32 %10)
%12 = tail call i32 (i32*, i8*, ...) @msg_Err(i32* null, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %11)
br label %69
13: ; preds = %3
%14 = call i32 @fstat(i32 %7, %struct.stat* %4)
%15 = icmp eq i32 %14, -1
%16 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 0
%17 = load i32, i32* %16
%18 = icmp ult i32 %17, 8
%19 = select i1 %15, i1 true, i1 %18
br i1 %19, label %20, label %24
20: ; preds = %13
%21 = load i32, i32* @errno
%22 = tail call i32 @strerror(i32 %21)
%23 = tail call i32 (i32*, i8*, ...) @msg_Err(i32* null, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %0, i32 %22)
br label %69
24: ; preds = %13
%25 = load i32, i32* @PROT_READ
%26 = load i32, i32* @MAP_SHARED
%27 = tail call i32* @mmap(i32* null, i32 %17, i32 %25, i32 %26, i32 %7, i32 0)
%28 = load i32*, i32** @MAP_FAILED
%29 = icmp eq i32* %27, %28
br i1 %29, label %30, label %34
30: ; preds = %24
%31 = load i32, i32* @errno
%32 = tail call i32 @strerror(i32 %31)
%33 = tail call i32 (i32*, i8*, ...) @msg_Err(i32* null, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %0, i32 %32)
br label %69
34: ; preds = %24
%35 = ashr i32 %17, 3
%36 = icmp slt i64 %1, 0
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = add nsw i32 %35, -1
%39 = sext i32 %38 to i64
%40 = shl nsw i64 %39, 3
%41 = getelementptr inbounds i32, i32* %27, i64 %40
br label %44
42: ; preds = %34
%43 = icmp eq i32 %2, 0
br i1 %43, label %44, label %49
44: ; preds = %42, %37
%45 = phi i32* [ %41, %37 ], [ %27, %42 ]
%46 = tail call i64 @FromSTC(i32* %45)
%47 = add nsw i64 %46, %1
%48 = icmp slt i64 %47, 0
br i1 %48, label %51, label %49
49: ; preds = %42, %44
%50 = phi i64 [ %47, %44 ], [ %1, %42 ]
br label %53
51: ; preds = %44
%52 = tail call i32 (i32*, i8*, ...) @msg_Err(i32* null, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
br label %69
53: ; preds = %49, %53
%54 = phi i32 [ %64, %53 ], [ %35, %49 ]
%55 = phi i32 [ %65, %53 ], [ 0, %49 ]
%56 = add nsw i32 %55, %54
%57 = sdiv i32 %56, 2
%58 = sext i32 %57 to i64
%59 = shl nsw i64 %58, 3
%60 = getelementptr inbounds i32, i32* %27, i64 %59
%61 = tail call i64 @FromSTC(i32* %60)
%62 = icmp eq i32 %55, %57
%63 = icmp slt i64 %61, %50
%64 = select i1 %63, i32 %54, i32 %57
%65 = select i1 %63, i32 %57, i32 %55
br i1 %62, label %66, label %53
66: ; preds = %53
%67 = tail call i32 @munmap(i32* %27, i32 %17)
%68 = tail call i32 @close(i32 %7)
br label %69
69: ; preds = %66, %51, %30, %20, %9
%70 = phi i32 [ -1, %9 ], [ -1, %20 ], [ -1, %30 ], [ -1, %51 ], [ %54, %66 ]
ret i32 %70
}