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

/* Variables and functions */
int ENOMEM;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ close(int);
int errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int fstat(int, struct stat *);
scalar_t__ lseek(int, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ malloc(unsigned int);
int open(char const *, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
scalar_t__ read(int, char *, size_t);
int /*<<< orphan*/ stderr;
int cspReadFile(const char *fileName, unsigned char **bytes,
                unsigned *numBytes) {
  int ourRtn = 0;
  int fd;
  char *buf;
  char *thisBuf;
  struct stat sb;
  unsigned size;
  size_t toMove;
  ssize_t thisMoved;
  int irtn;
  off_t lrtn = 0;
  *numBytes = 0;
  *bytes = NULL;
  fd = open(fileName, O_RDONLY, 0);
  if (fd <= 0) {
    perror("open");
    return errno;
  }
  irtn = fstat(fd, &sb);
  if (irtn) {
    ourRtn = errno;
    if (ourRtn == 0) {
      fprintf(stderr, "***Bogus zero error on fstat\n");
      ourRtn = -1;
    } else {
      perror("fstat");
    }
    goto errOut;
  }
  size = sb.st_size;
  buf = thisBuf = (char *)malloc(size);
  if (buf == NULL) {
    ourRtn = ENOMEM;
    goto errOut;
  }
  lrtn = lseek(fd, 0, SEEK_SET);
  if (lrtn < 0) {
    ourRtn = errno;
    if (ourRtn == 0) {
      fprintf(stderr, "***Bogus zero error on lseek\n");
      ourRtn = -1;
    } else {
      perror("lseek");
    }
    goto errOut;
  }
  toMove = size;
  do {
    thisMoved = read(fd, thisBuf, toMove);
    if (thisMoved == 0) {
      break;
    } else if (thisMoved < 0) {
      ourRtn = errno;
      perror("read");
      break;
    }
    size_t uThisMoved = (size_t)thisMoved;
    if (uThisMoved != toMove) {
      fprintf(stderr, "===Short read: asked for %ld, got %lu\n", toMove,
              uThisMoved);
    }
    toMove -= thisMoved;
    thisBuf += thisMoved;
  } while (toMove);
  if (ourRtn == 0) {
    *bytes = (unsigned char *)buf;
    *numBytes = size;
  }
errOut:
  close(fd);
  return ourRtn;
}


x86 assembly (clang, -O0):
<cspReadFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movq   $0x0,-0x68(%rbp)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    0x2e25(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1080 <open@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jg     11f6 <cspReadFile+0x76>
lea    0xe20(%rip),%rdi
call   1090 <perror@plt>
mov    0x2ddc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13db <cspReadFile+0x25b>
mov    -0x28(%rbp),%edi
lea    -0x40(%rbp),%rsi
call   10a0 <fstat@plt>
mov    %eax,-0x5c(%rbp)
cmpl   $0x0,-0x5c(%rbp)
je     1259 <cspReadFile+0xd9>
mov    0x2db2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    1248 <cspReadFile+0xc8>
mov    0x2da4(%rip),%rax
mov    (%rax),%edi
lea    0xdd0(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x24(%rbp)
jmp    1254 <cspReadFile+0xd4>
lea    0xdd4(%rip),%rdi
call   1090 <perror@plt>
jmp    13cd <cspReadFile+0x24d>
mov    -0x40(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%edi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    128b <cspReadFile+0x10b>
mov    0x2d57(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    13cd <cspReadFile+0x24d>
mov    -0x28(%rbp),%edi
mov    0x2d2b(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1030 <lseek@plt>
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x68(%rbp)
jge    12f7 <cspReadFile+0x177>
mov    0x2d14(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    12e6 <cspReadFile+0x166>
mov    0x2d06(%rip),%rax
mov    (%rax),%edi
lea    0xd56(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x24(%rbp)
jmp    12f2 <cspReadFile+0x172>
lea    0xd5a(%rip),%rdi
call   1090 <perror@plt>
jmp    13cd <cspReadFile+0x24d>
mov    -0x44(%rbp),%eax
mov    %rax,-0x50(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x50(%rbp),%rdx
call   1050 <read@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    1322 <cspReadFile+0x1a2>
jmp    13aa <cspReadFile+0x22a>
cmpq   $0x0,-0x58(%rbp)
jge    134a <cspReadFile+0x1ca>
mov    0x2c94(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
lea    0xd0d(%rip),%rdi
call   1090 <perror@plt>
jmp    13aa <cspReadFile+0x22a>
jmp    134f <cspReadFile+0x1cf>
mov    -0x58(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
cmp    -0x50(%rbp),%rax
je     1384 <cspReadFile+0x204>
mov    0x2c64(%rip),%rax
mov    (%rax),%edi
mov    -0x50(%rbp),%rdx
mov    -0x70(%rbp),%rcx
lea    0xcd5(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x58(%rbp),%rcx
mov    -0x50(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rax
add    -0x38(%rbp),%rax
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    12fe <cspReadFile+0x17e>
cmpl   $0x0,-0x24(%rbp)
jne    13c8 <cspReadFile+0x248>
mov    -0x30(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x44(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
jmp    13cd <cspReadFile+0x24d>
mov    -0x28(%rbp),%edi
call   1040 <close@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cspReadFile>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
movl   $0x0,(%rdx)
movq   $0x0,(%rsi)
mov    0x2e40(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1080 <open@plt>
test   %eax,%eax
jle    12cf <cspReadFile+0x14f>
mov    %eax,%ebx
mov    %rsp,%rsi
mov    %eax,%edi
call   10a0 <fstat@plt>
test   %eax,%eax
je     120e <cspReadFile+0x8e>
mov    0x2df8(%rip),%rax
mov    (%rax),%ebp
test   %ebp,%ebp
jne    12e9 <cspReadFile+0x169>
mov    0x2def(%rip),%rax
mov    (%rax),%edi
lea    0xe1b(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0xffffffff,%ebp
mov    %ebx,%edi
call   1040 <close@plt>
mov    %ebp,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rsp),%r12d
mov    %r12d,%edi
call   1070 <malloc@plt>
test   %rax,%rax
je     129f <cspReadFile+0x11f>
mov    %rax,%r13
mov    0x2d93(%rip),%rax
mov    (%rax),%edx
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <lseek@plt>
test   %rax,%rax
js     12ad <cspReadFile+0x12d>
mov    %r12,0x10(%rsp)
mov    %r13,0x8(%rsp)
jmp    125c <cspReadFile+0xdc>
nopl   0x0(%rax)
add    %rbp,%r13
sub    %rbp,%r12
je     1328 <cspReadFile+0x1a8>
mov    %ebx,%edi
mov    %r13,%rsi
mov    %r12,%rdx
call   1050 <read@plt>
test   %rax,%rax
je     1328 <cspReadFile+0x1a8>
js     130b <cspReadFile+0x18b>
mov    %rax,%rbp
cmp    %rax,%r12
je     1250 <cspReadFile+0xd0>
mov    0x2d49(%rip),%rax
mov    (%rax),%edi
lea    0xdc2(%rip),%rsi
mov    %r12,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    1250 <cspReadFile+0xd0>
mov    0x2d32(%rip),%rax
mov    (%rax),%ebp
jmp    11f6 <cspReadFile+0x76>
mov    0x2d14(%rip),%rax
mov    (%rax),%ebp
test   %ebp,%ebp
jne    12fa <cspReadFile+0x17a>
mov    0x2d0f(%rip),%rax
mov    (%rax),%edi
lea    0xd5f(%rip),%rsi
jmp    11ea <cspReadFile+0x6a>
lea    0xd2a(%rip),%rdi
call   1090 <perror@plt>
mov    0x2ce6(%rip),%rax
mov    (%rax),%ebp
jmp    11fd <cspReadFile+0x7d>
lea    0xd33(%rip),%rdi
call   1090 <perror@plt>
jmp    11f6 <cspReadFile+0x76>
lea    0xd46(%rip),%rdi
call   1090 <perror@plt>
jmp    11f6 <cspReadFile+0x76>
mov    0x2cb6(%rip),%rax
mov    (%rax),%ebp
lea    0xd32(%rip),%rdi
call   1090 <perror@plt>
test   %ebp,%ebp
jne    11f6 <cspReadFile+0x76>
mov    0x8(%rsp),%rax
mov    %rax,(%r15)
mov    0x10(%rsp),%rax
mov    %eax,(%r14)
xor    %ebp,%ebp
jmp    11f6 <cspReadFile+0x76>

LLVM IR (-O0):
%struct.stat = type { i32 }
@O_RDONLY = global i32 0
@.str = [5 x i8] c"open\00"
@errno = global i32 0
@stderr = global i32 0
@.str.1 = [30 x i8] c"***Bogus zero error on fstat\0A\00"
@.str.2 = [6 x i8] c"fstat\00"
@ENOMEM = global i32 0
@SEEK_SET = global i32 0
@.str.3 = [30 x i8] c"***Bogus zero error on lseek\0A\00"
@.str.4 = [6 x i8] c"lseek\00"
@.str.5 = [5 x i8] c"read\00"
@.str.6 = [39 x i8] c"===Short read: asked for %ld, got %lu\0A\00"
define i32 @cspReadFile(i8* %0, i8** %1, i32* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8**
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca %struct.stat
%13 = alloca i32
%14 = alloca i64
%15 = alloca i64
%16 = alloca i32
%17 = alloca i64
%18 = alloca i64
store i8* %0, i8** %5
store i8** %1, i8*** %6
store i32* %2, i32** %7
store i32 0, i32* %8
store i64 0, i64* %17
%19 = load i32*, i32** %7
store i32 0, i32* %19
%20 = load i8**, i8*** %6
store i8* null, i8** %20
%21 = load i8*, i8** %5
%22 = load i32, i32* @O_RDONLY
%23 = call i32 @open(i8* %21, i32 %22, i32 0)
store i32 %23, i32* %9
%24 = load i32, i32* %9
%25 = icmp sle i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %3
%27 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%28 = load i32, i32* @errno
store i32 %28, i32* %4
br label %121
29: ; preds = %3
%30 = load i32, i32* %9
%31 = call i32 @fstat(i32 %30, %struct.stat* %12)
store i32 %31, i32* %16
%32 = load i32, i32* %16
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %44
34: ; preds = %29
%35 = load i32, i32* @errno
store i32 %35, i32* %8
%36 = load i32, i32* %8
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i32, i32* @stderr
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %8
br label %43
41: ; preds = %34
%42 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %43
43: ; preds = %41, %38
br label %117
44: ; preds = %29
%45 = getelementptr inbounds %struct.stat, %struct.stat* %12, i32 0, i32 0
%46 = load i32, i32* %45
store i32 %46, i32* %13
%47 = load i32, i32* %13
%48 = call i64 @malloc(i32 %47)
%49 = inttoptr i64 %48 to i8*
store i8* %49, i8** %11
store i8* %49, i8** %10
%50 = load i8*, i8** %10
%51 = icmp eq i8* %50, null
br i1 %51, label %52, label %54
52: ; preds = %44
%53 = load i32, i32* @ENOMEM
store i32 %53, i32* %8
br label %117
54: ; preds = %44
%55 = load i32, i32* %9
%56 = load i32, i32* @SEEK_SET
%57 = call i64 @lseek(i32 %55, i32 0, i32 %56)
store i64 %57, i64* %17
%58 = load i64, i64* %17
%59 = icmp slt i64 %58, 0
br i1 %59, label %60, label %70
60: ; preds = %54
%61 = load i32, i32* @errno
store i32 %61, i32* %8
%62 = load i32, i32* %8
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %67
64: ; preds = %60
%65 = load i32, i32* @stderr
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %8
br label %69
67: ; preds = %60
%68 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %69
69: ; preds = %67, %64
br label %117
70: ; preds = %54
%71 = load i32, i32* %13
%72 = zext i32 %71 to i64
store i64 %72, i64* %14
br label %73
73: ; preds = %105, %70
%74 = load i32, i32* %9
%75 = load i8*, i8** %11
%76 = load i64, i64* %14
%77 = call i64 @read(i32 %74, i8* %75, i64 %76)
store i64 %77, i64* %15
%78 = load i64, i64* %15
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %73
br label %108
81: ; preds = %73
%82 = load i64, i64* %15
%83 = icmp slt i64 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %81
%85 = load i32, i32* @errno
store i32 %85, i32* %8
%86 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %108
87: ; preds = %81
br label %88
88: ; preds = %87
%89 = load i64, i64* %15
store i64 %89, i64* %18
%90 = load i64, i64* %18
%91 = load i64, i64* %14
%92 = icmp ne i64 %90, %91
br i1 %92, label %93, label %98
93: ; preds = %88
%94 = load i32, i32* @stderr
%95 = load i64, i64* %14
%96 = load i64, i64* %18
%97 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i64 %95, i64 %96)
br label %98
98: ; preds = %93, %88
%99 = load i64, i64* %15
%100 = load i64, i64* %14
%101 = sub i64 %100, %99
store i64 %101, i64* %14
%102 = load i64, i64* %15
%103 = load i8*, i8** %11
%104 = getelementptr inbounds i8, i8* %103, i64 %102
store i8* %104, i8** %11
br label %105
105: ; preds = %98
%106 = load i64, i64* %14
%107 = icmp ne i64 %106, 0
br i1 %107, label %73, label %108
108: ; preds = %105, %84, %80
%109 = load i32, i32* %8
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %116
111: ; preds = %108
%112 = load i8*, i8** %10
%113 = load i8**, i8*** %6
store i8* %112, i8** %113
%114 = load i32, i32* %13
%115 = load i32*, i32** %7
store i32 %114, i32* %115
br label %116
116: ; preds = %111, %108
br label %117
117: ; preds = %116, %69, %52, %43
%118 = load i32, i32* %9
%119 = call i32 @close(i32 %118)
%120 = load i32, i32* %8
store i32 %120, i32* %4
br label %121
121: ; preds = %117, %26
%122 = load i32, i32* %4
ret i32 %122
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@O_RDONLY = global i32 0
@.str = [5 x i8] c"open\00"
@errno = global i32 0
@stderr = global i32 0
@.str.1 = [30 x i8] c"***Bogus zero error on fstat\0A\00"
@.str.2 = [6 x i8] c"fstat\00"
@ENOMEM = global i32 0
@SEEK_SET = global i32 0
@.str.3 = [30 x i8] c"***Bogus zero error on lseek\0A\00"
@.str.4 = [6 x i8] c"lseek\00"
@.str.5 = [5 x i8] c"read\00"
@.str.6 = [39 x i8] c"===Short read: asked for %ld, got %lu\0A\00"
define i32 @cspReadFile(i8* nocapture %0, i8** nocapture writeonly %1, i32* nocapture writeonly %2) {
%4 = alloca %struct.stat
%5 = bitcast %struct.stat* %4 to i8*
store i32 0, i32* %2
store i8* null, i8** %1
%6 = load i32, i32* @O_RDONLY
%7 = tail call i32 @open(i8* %0, i32 %6, i32 0)
%8 = icmp slt i32 %7, 1
br i1 %8, label %9, label %12
9: ; preds = %3
%10 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* @errno
br label %69
12: ; preds = %3
%13 = call i32 @fstat(i32 %7, %struct.stat* %4)
%14 = icmp eq i32 %13, 0
br i1 %14, label %23, label %15
15: ; preds = %12
%16 = load i32, i32* @errno
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, i32* @stderr
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
br label %66
21: ; preds = %15
%22 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %66
23: ; preds = %12
%24 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 0
%25 = load i32, i32* %24
%26 = tail call i64 @malloc(i32 %25)
%27 = inttoptr i64 %26 to i8*
%28 = icmp eq i64 %26, 0
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = load i32, i32* @ENOMEM
br label %66
31: ; preds = %23
%32 = load i32, i32* @SEEK_SET
%33 = tail call i64 @lseek(i32 %7, i32 0, i32 %32)
%34 = icmp slt i64 %33, 0
br i1 %34, label %35, label %43
35: ; preds = %31
%36 = load i32, i32* @errno
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load i32, i32* @stderr
%40 = tail call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
br label %66
41: ; preds = %35
%42 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %66
43: ; preds = %31
%44 = zext i32 %25 to i64
br label %45
45: ; preds = %57, %43
%46 = phi i64 [ %44, %43 ], [ %58, %57 ]
%47 = phi i8* [ %27, %43 ], [ %59, %57 ]
%48 = tail call i64 @read(i32 %7, i8* %47, i64 %46)
%49 = icmp eq i64 %48, 0
br i1 %49, label %65, label %50
50: ; preds = %45
%51 = icmp slt i64 %48, 0
br i1 %51, label %61, label %52
52: ; preds = %50
%53 = icmp eq i64 %46, %48
br i1 %53, label %57, label %54
54: ; preds = %52
%55 = load i32, i32* @stderr
%56 = tail call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i64 %46, i64 %48)
br label %57
57: ; preds = %54, %52
%58 = sub i64 %46, %48
%59 = getelementptr inbounds i8, i8* %47, i64 %48
%60 = icmp eq i64 %58, 0
br i1 %60, label %65, label %45
61: ; preds = %50
%62 = load i32, i32* @errno
%63 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%64 = icmp eq i32 %62, 0
br i1 %64, label %65, label %66
65: ; preds = %57, %45, %61
store i8* %27, i8** %1
store i32 %25, i32* %2
br label %66
66: ; preds = %61, %65, %38, %41, %18, %21, %29
%67 = phi i32 [ -1, %18 ], [ %16, %21 ], [ %30, %29 ], [ -1, %38 ], [ %36, %41 ], [ 0, %65 ], [ %62, %61 ]
%68 = tail call i32 @close(i32 %7)
br label %69
69: ; preds = %66, %9
%70 = phi i32 [ %11, %9 ], [ %67, %66 ]
ret i32 %70
}