#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 passwd {
  int /*<<< orphan*/ pw_name;
  int /*<<< orphan*/ pw_dir;
};
struct mntent {
  char *mnt_dir;
  char *mnt_type;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int PATH_MAX;
int /*<<< orphan*/ endmntent(int /*<<< orphan*/ *);
int /*<<< orphan*/ err(int, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
struct mntent *getmntent(int /*<<< orphan*/ *);
struct passwd *getpwuid(int /*<<< orphan*/);
int /*<<< orphan*/ getuid();
int indir(struct mntent *, int /*<<< orphan*/);
int /*<<< orphan*/ mountedby(struct mntent *, int /*<<< orphan*/);
int /*<<< orphan*/ realpath(char *, char *);
int /*<<< orphan*/ *setmntent(char *, char *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
scalar_t__ umount(char *);
int /*<<< orphan*/ warn(char *, char *);
int main(int argc, char *argv[]) {
  if (argc < 2) {
    fprintf(stderr, "usage: 9umount mountpt...\n");
    return 1;
  }
  struct passwd *pw = getpwuid(getuid());
  if (!pw)
    err(1, "who are you? getpwuid failed");
  int ret = 0;
  while (*++argv) {
    char path[PATH_MAX];
    realpath(*argv, path);
    FILE *fp = setmntent("/proc/mounts", "r");
    if (!fp)
      err(1, "couldn't open /proc/mounts");
    struct mntent *mnt;
    while ((mnt = getmntent(fp))) {
      if (!strcmp(path, mnt->mnt_dir)) {
        int inhome = indir(mnt, pw->pw_dir);
        if (!inhome && strcmp(mnt->mnt_type, "9p")) {
          warn("%s: refusing to unmount non-9p fs", path);
          ret = 1;
        } else if (!inhome && !mountedby(mnt, pw->pw_name)) {
          warn("%s: not mounted by you", path);
          ret = 1;
        } else if (umount(mnt->mnt_dir)) {
          warn("umount %s", mnt->mnt_dir);
          ret = 1;
        }
        goto done;
      }
    }
    warn("%s not found in /proc/mounts", path);
    ret = 1;
  done:
    endmntent(fp);
  }
  return ret;
}


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   $0x2,-0x8(%rbp)
jge    1211 <main+0x41>
mov    0x2de1(%rip),%rax
mov    (%rax),%edi
lea    0xe00(%rip),%rsi
call   10a0 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    140c <main+0x23c>
mov    $0x0,%al
call   1080 <getuid@plt>
mov    %eax,%edi
call   1070 <getpwuid@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    123f <main+0x6f>
mov    $0x1,%edi
lea    0xde1(%rip),%rsi
call   10c0 <err@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
cmpq   $0x0,0x8(%rax)
je     1406 <main+0x236>
mov    0x2d89(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,-0x50(%rbp)
mov    %rsi,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10b0 <realpath@plt>
lea    0xda9(%rip),%rdi
lea    0xd92(%rip),%rsi
call   10e0 <setmntent@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    12cb <main+0xfb>
mov    $0x1,%edi
lea    0xd74(%rip),%rsi
call   10c0 <err@plt>
jmp    12d0 <main+0x100>
mov    -0x38(%rbp),%rdi
call   10d0 <getmntent@plt>
mov    %rax,-0x40(%rbp)
cmp    $0x0,%rax
je     13da <main+0x20a>
mov    -0x50(%rbp),%rdi
mov    -0x40(%rbp),%rax
mov    (%rax),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    13d5 <main+0x205>
mov    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    0x4(%rax),%esi
call   10f0 <indir@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
jne    1358 <main+0x188>
mov    -0x40(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd28(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
je     1358 <main+0x188>
mov    -0x50(%rbp),%rsi
lea    0xd11(%rip),%rdi
call   1040 <warn@plt>
movl   $0x1,-0x1c(%rbp)
jmp    13d0 <main+0x200>
cmpl   $0x0,-0x44(%rbp)
jne    1396 <main+0x1c6>
mov    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1050 <mountedby@plt>
cmp    $0x0,%eax
jne    1396 <main+0x1c6>
mov    -0x50(%rbp),%rsi
lea    0xcf5(%rip),%rdi
call   1040 <warn@plt>
movl   $0x1,-0x1c(%rbp)
jmp    13cb <main+0x1fb>
mov    -0x40(%rbp),%rax
mov    (%rax),%rdi
call   1060 <umount@plt>
cmp    $0x0,%rax
je     13c6 <main+0x1f6>
mov    -0x40(%rbp),%rax
mov    (%rax),%rsi
lea    0xcd7(%rip),%rdi
call   1040 <warn@plt>
movl   $0x1,-0x1c(%rbp)
jmp    13cb <main+0x1fb>
jmp    13d0 <main+0x200>
jmp    13f1 <main+0x221>
jmp    12d0 <main+0x100>
mov    -0x50(%rbp),%rsi
lea    0xcb6(%rip),%rdi
call   1040 <warn@plt>
movl   $0x1,-0x1c(%rbp)
mov    -0x38(%rbp),%rdi
call   1030 <endmntent@plt>
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
jmp    1246 <main+0x76>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x1,%edi
jg     1207 <main+0x37>
mov    0x2deb(%rip),%rax
mov    (%rax),%edi
lea    0xe0a(%rip),%rsi
call   10a0 <fprintf@plt>
movl   $0x1,-0x2c(%rbp)
jmp    1386 <main+0x1b6>
mov    %rsi,%rbx
movl   $0x0,-0x2c(%rbp)
xor    %eax,%eax
call   1080 <getuid@plt>
mov    %eax,%edi
call   1070 <getpwuid@plt>
mov    %rax,-0x38(%rbp)
test   %rax,%rax
je     1234 <main+0x64>
cmpq   $0x0,0x8(%rbx)
jne    1250 <main+0x80>
jmp    1386 <main+0x1b6>
lea    0xde0(%rip),%rsi
mov    $0x1,%edi
call   10c0 <err@plt>
cmpq   $0x0,0x8(%rbx)
je     1386 <main+0x1b6>
add    $0x8,%rbx
movl   $0x0,-0x2c(%rbp)
jmp    1290 <main+0xc0>
nopl   (%rax)
lea    0xe34(%rip),%rdi
mov    %r13,%rsi
call   1040 <warn@plt>
movl   $0x1,-0x2c(%rbp)
mov    %r12,%rdi
call   1030 <endmntent@plt>
mov    %r15,%rsp
cmpq   $0x0,0x8(%rbx)
lea    0x8(%rbx),%rbx
je     1386 <main+0x1b6>
mov    %rsp,%r15
mov    0x2d56(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%r13
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r13
mov    %r13,%rsp
mov    (%rbx),%rdi
mov    %r13,%rsi
call   10b0 <realpath@plt>
lea    0xd89(%rip),%rdi
lea    0xd72(%rip),%rsi
call   10e0 <setmntent@plt>
mov    %rax,%r12
test   %rax,%rax
jne    12f0 <main+0x120>
mov    $0x1,%edi
lea    0xd5b(%rip),%rsi
call   10c0 <err@plt>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r12,%rdi
call   10d0 <getmntent@plt>
test   %rax,%rax
je     1260 <main+0x90>
mov    %rax,%r14
mov    (%rax),%rsi
mov    %r13,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    12f0 <main+0x120>
mov    -0x38(%rbp),%rax
mov    0x4(%rax),%esi
mov    %r14,%rdi
call   10f0 <indir@plt>
test   %eax,%eax
je     1347 <main+0x177>
mov    (%r14),%rdi
call   1060 <umount@plt>
test   %rax,%rax
je     1276 <main+0xa6>
mov    (%r14),%rsi
lea    0xd4f(%rip),%rdi
jmp    126a <main+0x9a>
mov    0x8(%r14),%rdi
lea    0xd03(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1368 <main+0x198>
lea    0xcf5(%rip),%rdi
jmp    1267 <main+0x97>
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
mov    %r14,%rdi
call   1050 <mountedby@plt>
test   %eax,%eax
jne    1327 <main+0x157>
lea    0xcf9(%rip),%rdi
jmp    1267 <main+0x97>
mov    -0x2c(%rbp),%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.passwd = type { i32, i32 }
%struct.mntent = type { i8*, i8* }
@stderr = global i32 0
@.str = [27 x i8] c"usage: 9umount mountpt...\0A\00"
@.str.1 = [29 x i8] c"who are you? getpwuid failed\00"
@PATH_MAX = global i32 0
@.str.2 = [13 x i8] c"/proc/mounts\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [27 x i8] c"couldn't open /proc/mounts\00"
@.str.5 = [3 x i8] c"9p\00"
@.str.6 = [34 x i8] c"%s: refusing to unmount non-9p fs\00"
@.str.7 = [23 x i8] c"%s: not mounted by you\00"
@.str.8 = [10 x i8] c"umount %s\00"
@.str.9 = [29 x i8] c"%s not found in /proc/mounts\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.passwd*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i32*
%11 = alloca %struct.mntent*
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = load i32, i32* @stderr
%17 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %106
18: ; preds = %2
%19 = call i32 (...) @getuid()
%20 = call %struct.passwd* @getpwuid(i32 %19)
store %struct.passwd* %20, %struct.passwd** %6
%21 = load %struct.passwd*, %struct.passwd** %6
%22 = icmp ne %struct.passwd* %21, null
br i1 %22, label %25, label %23
23: ; preds = %18
%24 = call i32 @err(i32 1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
br label %25
25: ; preds = %23, %18
store i32 0, i32* %7
br label %26
26: ; preds = %100, %25
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i32 1
store i8** %28, i8*** %5
%29 = load i8*, i8** %28
%30 = icmp ne i8* %29, null
br i1 %30, label %31, label %104
31: ; preds = %26
%32 = load i32, i32* @PATH_MAX
%33 = zext i32 %32 to i64
%34 = call i8* @llvm.stacksave()
store i8* %34, i8** %8
%35 = alloca i8, i64 %33
store i64 %33, i64* %9
%36 = load i8**, i8*** %5
%37 = load i8*, i8** %36
%38 = call i32 @realpath(i8* %37, i8* %35)
%39 = call i32* @setmntent(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %39, i32** %10
%40 = load i32*, i32** %10
%41 = icmp ne i32* %40, null
br i1 %41, label %44, label %42
42: ; preds = %31
%43 = call i32 @err(i32 1, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
br label %44
44: ; preds = %42, %31
br label %45
45: ; preds = %97, %44
%46 = load i32*, i32** %10
%47 = call %struct.mntent* @getmntent(i32* %46)
store %struct.mntent* %47, %struct.mntent** %11
%48 = icmp ne %struct.mntent* %47, null
br i1 %48, label %49, label %98
49: ; preds = %45
%50 = load %struct.mntent*, %struct.mntent** %11
%51 = getelementptr inbounds %struct.mntent, %struct.mntent* %50, i32 0, i32 0
%52 = load i8*, i8** %51
%53 = call i64 @strcmp(i8* %35, i8* %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %97, label %55
55: ; preds = %49
%56 = load %struct.mntent*, %struct.mntent** %11
%57 = load %struct.passwd*, %struct.passwd** %6
%58 = getelementptr inbounds %struct.passwd, %struct.passwd* %57, i32 0, i32 1
%59 = load i32, i32* %58
%60 = call i32 @indir(%struct.mntent* %56, i32 %59)
store i32 %60, i32* %12
%61 = load i32, i32* %12
%62 = icmp ne i32 %61, 0
br i1 %62, label %71, label %63
63: ; preds = %55
%64 = load %struct.mntent*, %struct.mntent** %11
%65 = getelementptr inbounds %struct.mntent, %struct.mntent* %64, i32 0, i32 1
%66 = load i8*, i8** %65
%67 = call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%68 = icmp ne i64 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %63
%70 = call i32 @warn(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i8* %35)
store i32 1, i32* %7
br label %96
71: ; preds = %63, %55
%72 = load i32, i32* %12
%73 = icmp ne i32 %72, 0
br i1 %73, label %83, label %74
74: ; preds = %71
%75 = load %struct.mntent*, %struct.mntent** %11
%76 = load %struct.passwd*, %struct.passwd** %6
%77 = getelementptr inbounds %struct.passwd, %struct.passwd* %76, i32 0, i32 0
%78 = load i32, i32* %77
%79 = call i32 @mountedby(%struct.mntent* %75, i32 %78)
%80 = icmp ne i32 %79, 0
br i1 %80, label %83, label %81
81: ; preds = %74
%82 = call i32 @warn(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i8* %35)
store i32 1, i32* %7
br label %95
83: ; preds = %74, %71
%84 = load %struct.mntent*, %struct.mntent** %11
%85 = getelementptr inbounds %struct.mntent, %struct.mntent* %84, i32 0, i32 0
%86 = load i8*, i8** %85
%87 = call i64 @umount(i8* %86)
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %94
89: ; preds = %83
%90 = load %struct.mntent*, %struct.mntent** %11
%91 = getelementptr inbounds %struct.mntent, %struct.mntent* %90, i32 0, i32 0
%92 = load i8*, i8** %91
%93 = call i32 @warn(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* %92)
store i32 1, i32* %7
br label %94
94: ; preds = %89, %83
br label %95
95: ; preds = %94, %81
br label %96
96: ; preds = %95, %69
br label %100
97: ; preds = %49
br label %45
98: ; preds = %45
%99 = call i32 @warn(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i8* %35)
store i32 1, i32* %7
br label %100
100: ; preds = %98, %96
%101 = load i32*, i32** %10
%102 = call i32 @endmntent(i32* %101)
%103 = load i8*, i8** %8
br label %26
104: ; preds = %26
%105 = load i32, i32* %7
store i32 %105, i32* %3
br label %106
106: ; preds = %104, %15
%107 = load i32, i32* %3
ret i32 %107
}

LLVM IR (-O2):
%struct.passwd = type { i32, i32 }
%struct.mntent = type { i8*, i8* }
@stderr = global i32 0
@.str = [27 x i8] c"usage: 9umount mountpt...\0A\00"
@.str.1 = [29 x i8] c"who are you? getpwuid failed\00"
@PATH_MAX = global i32 0
@.str.2 = [13 x i8] c"/proc/mounts\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [27 x i8] c"couldn't open /proc/mounts\00"
@.str.5 = [3 x i8] c"9p\00"
@.str.6 = [34 x i8] c"%s: refusing to unmount non-9p fs\00"
@.str.7 = [23 x i8] c"%s: not mounted by you\00"
@.str.8 = [10 x i8] c"umount %s\00"
@.str.9 = [29 x i8] c"%s not found in /proc/mounts\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
br label %75
7: ; preds = %2
%8 = tail call i32 (...) @getuid()
%9 = tail call %struct.passwd* @getpwuid(i32 %8)
%10 = icmp eq %struct.passwd* %9, null
br i1 %10, label %11, label %13
11: ; preds = %7
%12 = tail call i32 @err(i32 1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %11, %7
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = icmp eq i8* %15, null
br i1 %16, label %75, label %17
17: ; preds = %13
%18 = getelementptr inbounds %struct.passwd, %struct.passwd* %9, i64 0, i32 1
%19 = getelementptr inbounds %struct.passwd, %struct.passwd* %9, i64 0, i32 0
br label %20
20: ; preds = %17, %69
%21 = phi i8** [ %14, %17 ], [ %72, %69 ]
%22 = phi i32 [ 0, %17 ], [ %70, %69 ]
%23 = load i32, i32* @PATH_MAX
%24 = zext i32 %23 to i64
%25 = call i8* @llvm.stacksave()
%26 = alloca i8, i64 %24
%27 = load i8*, i8** %21
%28 = call i32 @realpath(i8* %27, i8* %26)
%29 = call i32* @setmntent(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%30 = icmp eq i32* %29, null
br i1 %30, label %31, label %33
31: ; preds = %20
%32 = call i32 @err(i32 1, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
br label %33
33: ; preds = %31, %20
br label %34
34: ; preds = %33, %37
%35 = call %struct.mntent* @getmntent(i32* %29)
%36 = icmp eq %struct.mntent* %35, null
br i1 %36, label %67, label %37
37: ; preds = %34
%38 = getelementptr inbounds %struct.mntent, %struct.mntent* %35, i64 0, i32 0
%39 = load i8*, i8** %38
%40 = call i64 @strcmp(i8* %26, i8* %39)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %34
42: ; preds = %37
%43 = getelementptr inbounds %struct.mntent, %struct.mntent* %35, i64 0, i32 0
%44 = load i32, i32* %18
%45 = call i32 @indir(%struct.mntent* %35, i32 %44)
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %60
47: ; preds = %42
%48 = getelementptr inbounds %struct.mntent, %struct.mntent* %35, i64 0, i32 1
%49 = load i8*, i8** %48
%50 = call i64 @strcmp(i8* %49, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %54, label %52
52: ; preds = %47
%53 = call i32 @warn(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i8* %26)
br label %69
54: ; preds = %47
%55 = load i32, i32* %19
%56 = call i32 @mountedby(%struct.mntent* %35, i32 %55)
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 @warn(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i8* %26)
br label %69
60: ; preds = %42, %54
%61 = load i8*, i8** %43
%62 = call i64 @umount(i8* %61)
%63 = icmp eq i64 %62, 0
br i1 %63, label %69, label %64
64: ; preds = %60
%65 = load i8*, i8** %43
%66 = call i32 @warn(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* %65)
br label %69
67: ; preds = %34
%68 = call i32 @warn(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i8* %26)
br label %69
69: ; preds = %52, %60, %64, %58, %67
%70 = phi i32 [ 1, %67 ], [ 1, %64 ], [ %22, %60 ], [ 1, %58 ], [ 1, %52 ]
%71 = call i32 @endmntent(i32* %29)
%72 = getelementptr inbounds i8*, i8** %21, i64 1
%73 = load i8*, i8** %72
%74 = icmp eq i8* %73, null
br i1 %74, label %75, label %20
75: ; preds = %69, %13, %4
%76 = phi i32 [ 1, %4 ], [ 0, %13 ], [ %70, %69 ]
ret i32 %76
}