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

/* Variables and functions */
int /*<<< orphan*/ PATH_MAX;
int cpio_mkfile(char *, int /*<<< orphan*/, unsigned int, int, int, int);
int /*<<< orphan*/ cpio_replace_env(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(char *);
scalar_t__ isgraph(char const);
char *malloc(int);
int /*<<< orphan*/ memcpy(char *, char *, int);
int sscanf(char const *, char *, char *, ...);
int /*<<< orphan*/ stderr;
int strlen(char const *);
int cpio_mkfile_line(const char *line) {
  char name[PATH_MAX + 1];
  char *dname = NULL;
  char location[PATH_MAX + 1];
  unsigned int mode;
  int uid;
  int gid;
  int nlinks = 1;
  int end = 0, dname_len = 0;
  int rc = -1;
  if (5 > sscanf(line,
                 "%"
                 "PATH_MAX"
                 "s %"
                 "PATH_MAX"
                 "s %o %d %d %n",
                 name, location, &mode, &uid, &gid, &end)) {
    fprintf(stderr, "Unrecognized file format '%s'", line);
    goto fail;
  }
  if (end >= sizeof(line)) {
    fprintf(stderr, "end exceeds the size of buffer\n");
    goto fail;
  }
  if (end && isgraph(line[end])) {
    int len;
    int nend;
    dname = malloc(strlen(line));
    if (!dname) {
      fprintf(stderr, "out of memory (%d)\n", dname_len);
      goto fail;
    }
    dname_len = strlen(name) + 1;
    memcpy(dname, name, dname_len);
    do {
      nend = 0;
      if (sscanf(line + end,
                 "%"
                 "PATH_MAX"
                 "s %n",
                 name, &nend) < 1)
        break;
      len = strlen(name) + 1;
      memcpy(dname + dname_len, name, len);
      dname_len += len;
      nlinks++;
      end += nend;
    } while (isgraph(line[end]));
  } else {
    dname = name;
  }
  rc = cpio_mkfile(dname, cpio_replace_env(location), mode, uid, gid, nlinks);
fail:
  if (dname_len)
    free(dname);
  return rc;
}


x86 assembly (clang, -O0):
<cpio_mkfile_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e4d(%rip),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %rsp,%rdx
mov    %rdx,-0x10(%rbp)
mov    %rcx,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x60(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    (%rax),%eax
add    $0x1,%eax
mov    %rax,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rcx
sub    %rsi,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
movl   $0x1,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0xffffffff,-0x44(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xde5(%rip),%rsi
lea    -0x2c(%rbp),%r8
lea    -0x30(%rbp),%r9
lea    -0x34(%rbp),%r10
lea    -0x3c(%rbp),%rax
sub    $0x10,%rsp
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1090 <sscanf@plt>
add    $0x10,%rsp
mov    %eax,%ecx
mov    $0x5,%eax
cmp    %ecx,%eax
jle    1272 <cpio_mkfile_line+0xe2>
mov    0x2d7f(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xdbc(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    13ea <cpio_mkfile_line+0x25a>
movslq -0x3c(%rbp),%rax
cmp    $0x8,%rax
jb     129c <cpio_mkfile_line+0x10c>
mov    0x2d51(%rip),%rax
mov    (%rax),%edi
lea    0xdb0(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    13ea <cpio_mkfile_line+0x25a>
cmpl   $0x0,-0x3c(%rbp)
je     13b5 <cpio_mkfile_line+0x225>
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   10b0 <isgraph@plt>
cmp    $0x0,%rax
je     13b5 <cpio_mkfile_line+0x225>
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    12ff <cpio_mkfile_line+0x16f>
mov    0x2cf1(%rip),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%edx
lea    0xd6d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    13ea <cpio_mkfile_line+0x25a>
mov    -0x60(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x60(%rbp),%rsi
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x40(%rbp),%edx
call   1060 <memcpy@plt>
mov    -0x60(%rbp),%rdx
movl   $0x0,-0x4c(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x3c(%rbp),%rax
add    %rax,%rdi
lea    0xd39(%rip),%rsi
lea    -0x4c(%rbp),%rcx
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x1,%eax
jge    1354 <cpio_mkfile_line+0x1c4>
jmp    13b0 <cpio_mkfile_line+0x220>
mov    -0x60(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x60(%rbp),%rsi
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
movslq -0x40(%rbp),%rax
add    %rax,%rdi
mov    -0x48(%rbp),%edx
call   1060 <memcpy@plt>
mov    -0x48(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x4c(%rbp),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   10b0 <isgraph@plt>
cmp    $0x0,%rax
jne    131e <cpio_mkfile_line+0x18e>
jmp    13bd <cpio_mkfile_line+0x22d>
mov    -0x60(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x58(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    %rax,-0x68(%rbp)
call   1070 <cpio_replace_env@plt>
mov    -0x68(%rbp),%rdi
mov    %eax,%esi
mov    -0x2c(%rbp),%edx
mov    -0x30(%rbp),%ecx
mov    -0x34(%rbp),%r8d
mov    -0x38(%rbp),%r9d
call   10a0 <cpio_mkfile@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x40(%rbp)
je     13fd <cpio_mkfile_line+0x26d>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x44(%rbp),%eax
mov    -0x10(%rbp),%rcx
mov    %rcx,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpio_mkfile_line>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdi,%r13
mov    0x2e45(%rip),%rax
mov    (%rax),%eax
add    $0x1,%eax
mov    %rsp,%r15
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
mov    %rsp,%rbx
sub    %rax,%rbx
mov    %rbx,%rsp
movl   $0x0,-0x2c(%rbp)
lea    -0x2c(%rbp),%r10
lea    -0x34(%rbp),%r11
lea    0xe20(%rip),%rsi
lea    -0x3c(%rbp),%r8
lea    -0x38(%rbp),%r9
mov    %r15,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
push   %r10
push   %r11
call   1090 <sscanf@plt>
add    $0x10,%rsp
cmp    $0x4,%eax
jg     121e <cpio_mkfile_line+0x8e>
mov    0x2dcf(%rip),%rax
mov    (%rax),%edi
lea    0xe10(%rip),%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    123f <cpio_mkfile_line+0xaf>
movslq -0x2c(%rbp),%rax
cmp    $0x8,%rax
jb     1255 <cpio_mkfile_line+0xc5>
mov    0x2da9(%rip),%rax
mov    (%rax),%edi
lea    0xe08(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %r14d,%r14d
mov    $0x1,%r12d
test   %eax,%eax
je     133c <cpio_mkfile_line+0x1ac>
movsbl 0x0(%r13,%rax,1),%edi
call   10b0 <isgraph@plt>
test   %rax,%rax
je     133c <cpio_mkfile_line+0x1ac>
mov    %r13,%rdi
call   1040 <strlen@plt>
mov    %eax,%edi
call   1080 <malloc@plt>
test   %rax,%rax
je     1373 <cpio_mkfile_line+0x1e3>
mov    %rax,%r14
mov    %rbx,-0x50(%rbp)
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebx
add    $0x1,%ebx
mov    %r14,-0x48(%rbp)
mov    %r14,%rdi
mov    %r15,%rsi
mov    %ebx,%edx
call   1060 <memcpy@plt>
mov    $0x1,%r12d
nopl   (%rax)
movl   $0x0,-0x30(%rbp)
movslq -0x2c(%rbp),%rdi
add    %r13,%rdi
lea    0xd9f(%rip),%rsi
mov    %r15,%rdx
lea    -0x30(%rbp),%rcx
xor    %eax,%eax
call   1090 <sscanf@plt>
test   %eax,%eax
jle    1331 <cpio_mkfile_line+0x1a1>
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %eax,%r14d
lea    0x1(%r14),%edx
movslq %ebx,%rbx
mov    -0x48(%rbp),%rax
lea    (%rax,%rbx,1),%rdi
mov    %r15,%rsi
call   1060 <memcpy@plt>
add    %r14d,%ebx
add    $0x1,%ebx
add    $0x1,%r12d
movslq -0x30(%rbp),%rax
movslq -0x2c(%rbp),%rcx
add    %rax,%rcx
mov    %ecx,-0x2c(%rbp)
movsbl 0x0(%r13,%rcx,1),%edi
call   10b0 <isgraph@plt>
test   %rax,%rax
jne    12c0 <cpio_mkfile_line+0x130>
mov    %ebx,%r14d
mov    -0x50(%rbp),%rbx
mov    -0x48(%rbp),%r15
mov    %rbx,%rdi
call   1070 <cpio_replace_env@plt>
mov    -0x3c(%rbp),%edx
mov    -0x38(%rbp),%ecx
mov    -0x34(%rbp),%r8d
mov    %r15,%rdi
mov    %eax,%esi
mov    %r12d,%r9d
call   10a0 <cpio_mkfile@plt>
mov    %eax,%ebx
test   %r14d,%r14d
je     1244 <cpio_mkfile_line+0xb4>
mov    %r15,%rdi
call   1030 <free@plt>
jmp    1244 <cpio_mkfile_line+0xb4>
mov    0x2c5e(%rip),%rax
mov    (%rax),%edi
lea    0xcdd(%rip),%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    123f <cpio_mkfile_line+0xaf>

LLVM IR (-O0):
@PATH_MAX = global i32 0
@.str = [34 x i8] c"%PATH_MAXs %PATH_MAXs %o %d %d %n\00"
@stderr = global i32 0
@.str.1 = [30 x i8] c"Unrecognized file format '%s'\00"
@.str.2 = [32 x i8] c"end exceeds the size of buffer\0A\00"
@.str.3 = [20 x i8] c"out of memory (%d)\0A\00"
@.str.4 = [14 x i8] c"%PATH_MAXs %n\00"
define i32 @cpio_mkfile_line(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i8* %0, i8** %2
%16 = load i32, i32* @PATH_MAX
%17 = add nsw i32 %16, 1
%18 = zext i32 %17 to i64
%19 = call i8* @llvm.stacksave()
store i8* %19, i8** %3
%20 = alloca i8, i64 %18
store i64 %18, i64* %4
store i8* null, i8** %5
%21 = load i32, i32* @PATH_MAX
%22 = add nsw i32 %21, 1
%23 = zext i32 %22 to i64
%24 = alloca i8, i64 %23
store i64 %23, i64* %6
store i32 1, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 -1, i32* %13
%25 = load i8*, i8** %2
%26 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %25, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %20, i8* %24, i32* %7, i32* %8, i32* %9, i32* %11)
%27 = icmp sgt i32 5, %26
br i1 %27, label %28, label %32
28: ; preds = %1
%29 = load i32, i32* @stderr
%30 = load i8*, i8** %2
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %30)
br label %109
32: ; preds = %1
%33 = load i32, i32* %11
%34 = sext i32 %33 to i64
%35 = icmp uge i64 %34, 8
br i1 %35, label %36, label %39
36: ; preds = %32
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %109
39: ; preds = %32
%40 = load i32, i32* %11
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %100
42: ; preds = %39
%43 = load i8*, i8** %2
%44 = load i32, i32* %11
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, i8* %43, i64 %45
%47 = load i8, i8* %46
%48 = call i64 @isgraph(i8 signext %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %100
50: ; preds = %42
%51 = load i8*, i8** %2
%52 = call i32 @strlen(i8* %51)
%53 = call i8* @malloc(i32 %52)
store i8* %53, i8** %5
%54 = load i8*, i8** %5
%55 = icmp ne i8* %54, null
br i1 %55, label %60, label %56
56: ; preds = %50
%57 = load i32, i32* @stderr
%58 = load i32, i32* %12
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %58)
br label %109
60: ; preds = %50
%61 = call i32 @strlen(i8* %20)
%62 = add nsw i32 %61, 1
store i32 %62, i32* %12
%63 = load i8*, i8** %5
%64 = load i32, i32* %12
%65 = call i32 @memcpy(i8* %63, i8* %20, i32 %64)
br label %66
66: ; preds = %91, %60
store i32 0, i32* %15
%67 = load i8*, i8** %2
%68 = load i32, i32* %11
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %67, i64 %69
%71 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %70, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* %20, i32* %15)
%72 = icmp slt i32 %71, 1
br i1 %72, label %73, label %74
73: ; preds = %66
br label %99
74: ; preds = %66
%75 = call i32 @strlen(i8* %20)
%76 = add nsw i32 %75, 1
store i32 %76, i32* %14
%77 = load i8*, i8** %5
%78 = load i32, i32* %12
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, i8* %77, i64 %79
%81 = load i32, i32* %14
%82 = call i32 @memcpy(i8* %80, i8* %20, i32 %81)
%83 = load i32, i32* %14
%84 = load i32, i32* %12
%85 = add nsw i32 %84, %83
store i32 %85, i32* %12
%86 = load i32, i32* %10
%87 = add nsw i32 %86, 1
store i32 %87, i32* %10
%88 = load i32, i32* %15
%89 = load i32, i32* %11
%90 = add nsw i32 %89, %88
store i32 %90, i32* %11
br label %91
91: ; preds = %74
%92 = load i8*, i8** %2
%93 = load i32, i32* %11
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, i8* %92, i64 %94
%96 = load i8, i8* %95
%97 = call i64 @isgraph(i8 signext %96)
%98 = icmp ne i64 %97, 0
br i1 %98, label %66, label %99
99: ; preds = %91, %73
br label %101
100: ; preds = %42, %39
store i8* %20, i8** %5
br label %101
101: ; preds = %100, %99
%102 = load i8*, i8** %5
%103 = call i32 @cpio_replace_env(i8* %24)
%104 = load i32, i32* %7
%105 = load i32, i32* %8
%106 = load i32, i32* %9
%107 = load i32, i32* %10
%108 = call i32 @cpio_mkfile(i8* %102, i32 %103, i32 %104, i32 %105, i32 %106, i32 %107)
store i32 %108, i32* %13
br label %109
109: ; preds = %101, %56, %36, %28
%110 = load i32, i32* %12
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %115
112: ; preds = %109
%113 = load i8*, i8** %5
%114 = call i32 @free(i8* %113)
br label %115
115: ; preds = %112, %109
%116 = load i32, i32* %13
%117 = load i8*, i8** %3
ret i32 %116
}

LLVM IR (-O2):
@PATH_MAX = global i32 0
@.str = [34 x i8] c"%PATH_MAXs %PATH_MAXs %o %d %d %n\00"
@stderr = global i32 0
@.str.1 = [30 x i8] c"Unrecognized file format '%s'\00"
@.str.2 = [32 x i8] c"end exceeds the size of buffer\0A\00"
@.str.3 = [20 x i8] c"out of memory (%d)\0A\00"
@.str.4 = [14 x i8] c"%PATH_MAXs %n\00"
define i32 @cpio_mkfile_line(i8* %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = load i32, i32* @PATH_MAX
%8 = add nsw i32 %7, 1
%9 = zext i32 %8 to i64
%10 = alloca i8, i64 %9
%11 = alloca i8, i64 %9
%12 = bitcast i32* %2 to i8*
%13 = bitcast i32* %3 to i8*
%14 = bitcast i32* %4 to i8*
%15 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%16 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %10, i8* %11, i32* %2, i32* %3, i32* %4, i32* %5)
%17 = icmp slt i32 %16, 5
br i1 %17, label %18, label %21
18: ; preds = %1
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %0)
br label %86
21: ; preds = %1
%22 = load i32, i32* %5
%23 = sext i32 %22 to i64
%24 = icmp ugt i32 %22, 7
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = load i32, i32* @stderr
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %86
28: ; preds = %21
%29 = icmp eq i32 %22, 0
br i1 %29, label %74, label %30
30: ; preds = %28
%31 = getelementptr inbounds i8, i8* %0, i64 %23
%32 = load i8, i8* %31
%33 = call i64 @isgraph(i8 signext %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %74, label %35
35: ; preds = %30
%36 = bitcast i32* %6 to i8*
%37 = call i32 @strlen(i8* %0)
%38 = call i8* @malloc(i32 %37)
%39 = icmp eq i8* %38, null
br i1 %39, label %71, label %40
40: ; preds = %35
%41 = call i32 @strlen(i8* %10)
%42 = add nsw i32 %41, 1
%43 = call i32 @memcpy(i8* %38, i8* %10, i32 %42)
br label %44
44: ; preds = %52, %40
%45 = phi i32 [ 1, %40 ], [ %59, %52 ]
%46 = phi i32 [ %42, %40 ], [ %58, %52 ]
store i32 0, i32* %6
%47 = load i32, i32* %5
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, i8* %0, i64 %48
%50 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %49, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* %10, i32* %6)
%51 = icmp slt i32 %50, 1
br i1 %51, label %68, label %52
52: ; preds = %44
%53 = call i32 @strlen(i8* %10)
%54 = add nsw i32 %53, 1
%55 = sext i32 %46 to i64
%56 = getelementptr inbounds i8, i8* %38, i64 %55
%57 = call i32 @memcpy(i8* %56, i8* %10, i32 %54)
%58 = add nsw i32 %54, %46
%59 = add nuw nsw i32 %45, 1
%60 = load i32, i32* %6
%61 = load i32, i32* %5
%62 = add nsw i32 %61, %60
store i32 %62, i32* %5
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, i8* %0, i64 %63
%65 = load i8, i8* %64
%66 = call i64 @isgraph(i8 signext %65)
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %44
68: ; preds = %44, %52
%69 = phi i32 [ %59, %52 ], [ %45, %44 ]
%70 = phi i32 [ %58, %52 ], [ %46, %44 ]
br label %74
71: ; preds = %35
%72 = load i32, i32* @stderr
%73 = call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 0)
br label %86
74: ; preds = %30, %28, %68
%75 = phi i8* [ %10, %30 ], [ %10, %28 ], [ %38, %68 ]
%76 = phi i32 [ 1, %30 ], [ 1, %28 ], [ %69, %68 ]
%77 = phi i32 [ 0, %30 ], [ 0, %28 ], [ %70, %68 ]
%78 = call i32 @cpio_replace_env(i8* %11)
%79 = load i32, i32* %2
%80 = load i32, i32* %3
%81 = load i32, i32* %4
%82 = call i32 @cpio_mkfile(i8* %75, i32 %78, i32 %79, i32 %80, i32 %81, i32 %76)
%83 = icmp eq i32 %77, 0
br i1 %83, label %86, label %84
84: ; preds = %74
%85 = call i32 @free(i8* %75)
br label %86
86: ; preds = %71, %25, %18, %74, %84
%87 = phi i32 [ %82, %74 ], [ %82, %84 ], [ -1, %18 ], [ -1, %25 ], [ -1, %71 ]
ret i32 %87
}