#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*/ uid_t;
struct passwd {
  int /*<<< orphan*/ pw_uid;
};
typedef int /*<<< orphan*/ gid_t;
typedef int /*<<< orphan*/ filesystems;

/* Variables and functions */
int /*<<< orphan*/ MS_BIND;
int /*<<< orphan*/ MS_MGC_VAL;
int chown(char *, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ exit(int);
struct passwd *getpwnam(char *);
int mount(char *, char *, char *, int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ strcmp(char *, char *);
int umount(char *);
int main(int argc, char **argv) {
  int rc;
  if (argc < 2) {
    exit(1);
  }
  if (!strcmp("mount", argv[1])) {
    if (argc < 4) {
      exit(1);
    }
    char *source = argv[2];
    char *target = argv[3];
    char *extra = NULL;
    if (argc > 4)
      extra = argv[4];
    if (extra && !strcmp("--bind", extra)) {
      rc = mount(source, target, NULL, MS_BIND, NULL);
      if (rc) {
        perror("mount");
        exit(1);
      }
    } else {
      char *filesystems[] = {"ext4", "ext3", "ext2"};
      for (int i = 0; i < (sizeof(filesystems) / sizeof(char *)); i++) {
        rc = mount(source, target, filesystems[i], MS_MGC_VAL, NULL);
        if (rc) {
          perror("mount");
        } else {
          break;
        }
      }
      if (rc) {
        exit(1);
      }
      if (extra) {
        struct passwd *pass = getpwnam(extra);
        if (pass == NULL) {
          perror("getpwnam");
          exit(1);
        }
        uid_t uid = pass->pw_uid;
        rc = chown(target, uid, (gid_t)-1);
        if (rc) {
          perror("chown");
          exit(1);
        }
      }
    }
  } else if (!strcmp("umount", argv[1])) {
    if (argc < 3) {
      exit(1);
    }
    rc = umount(argv[2]);
    if (rc) {
      perror("umount");
      exit(1);
    }
  } else {
    exit(1);
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    119a <main+0x2a>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe7d(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1394 <main+0x224>
cmpl   $0x4,-0x8(%rbp)
jge    11cb <main+0x5b>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
cmpl   $0x4,-0x8(%rbp)
jle    1201 <main+0x91>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     126b <main+0xfb>
mov    -0x30(%rbp),%rsi
lea    0xde9(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    126b <main+0xfb>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    0x2dac(%rip),%rax
mov    (%rax),%ecx
xor    %eax,%eax
mov    %eax,%r8d
mov    %r8,%rdx
call   1040 <mount@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1266 <main+0xf6>
lea    0xdcf(%rip),%rdi
call   1080 <perror@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
jmp    138f <main+0x21f>
mov    0x2b7e(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0x2b7b(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0x2b78(%rip),%rax
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x54(%rbp)
movslq -0x54(%rbp),%rax
cmp    $0x3,%rax
jae    12fb <main+0x18b>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
movslq -0x54(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdx
mov    0x2d17(%rip),%rax
mov    (%rax),%ecx
xor    %eax,%eax
mov    %eax,%r8d
call   1040 <mount@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     12e3 <main+0x173>
lea    0xd4d(%rip),%rdi
call   1080 <perror@plt>
jmp    12e8 <main+0x178>
jmp    12fb <main+0x18b>
jmp    12ed <main+0x17d>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1293 <main+0x123>
cmpl   $0x0,-0x14(%rbp)
je     130f <main+0x19f>
mov    $0x1,%edi
call   1090 <exit@plt>
cmpq   $0x0,-0x30(%rbp)
je     138a <main+0x21a>
mov    -0x30(%rbp),%rdi
call   1060 <getpwnam@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
jne    1348 <main+0x1d8>
lea    0xcdd(%rip),%rdi
call   1080 <perror@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x60(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x64(%rbp),%esi
mov    $0xffffffff,%edx
call   1070 <chown@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1385 <main+0x215>
lea    0xca9(%rip),%rdi
call   1080 <perror@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
jmp    138a <main+0x21a>
jmp    138f <main+0x21f>
jmp    1409 <main+0x299>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xc82(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    13fa <main+0x28a>
cmpl   $0x3,-0x8(%rbp)
jge    13c5 <main+0x255>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1030 <umount@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     13f5 <main+0x285>
lea    0xc3f(%rip),%rdi
call   1080 <perror@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
jmp    1404 <main+0x294>
mov    $0x1,%edi
call   1090 <exit@plt>
jmp    1409 <main+0x299>
xor    %edi,%edi
call   1090 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x1,%edi
jle    12af <main+0x13f>
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x8(%rsi),%r14
lea    0xe92(%rip),%rdi
mov    %r14,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
jne    1297 <main+0x127>
cmp    $0x3,%ebp
jbe    12af <main+0x13f>
mov    0x10(%rbx),%r12
mov    0x18(%rbx),%r15
mov    $0x1,%r13b
cmp    $0x4,%ebp
je     11c6 <main+0x56>
mov    0x20(%rbx),%r14
test   %r14,%r14
jne    11cb <main+0x5b>
xor    %r14d,%r14d
jmp    11e5 <main+0x75>
lea    0xe2e(%rip),%rdi
mov    %r14,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     12cf <main+0x15f>
xor    %r13d,%r13d
mov    0x2dec(%rip),%rbx
mov    (%rbx),%ecx
lea    0xe12(%rip),%rdx
mov    %r12,%rdi
mov    %r15,%rsi
xor    %r8d,%r8d
call   1040 <mount@plt>
test   %eax,%eax
je     1259 <main+0xe9>
lea    0xe18(%rip),%rdi
call   1080 <perror@plt>
mov    (%rbx),%ecx
lea    0xdf0(%rip),%rdx
mov    %r12,%rdi
mov    %r15,%rsi
xor    %r8d,%r8d
call   1040 <mount@plt>
test   %eax,%eax
je     1259 <main+0xe9>
lea    0xdf1(%rip),%rdi
call   1080 <perror@plt>
mov    (%rbx),%ecx
lea    0xdce(%rip),%rdx
mov    %r12,%rdi
mov    %r15,%rsi
xor    %r8d,%r8d
call   1040 <mount@plt>
test   %eax,%eax
jne    12f0 <main+0x180>
test   %r13b,%r13b
je     1265 <main+0xf5>
xor    %edi,%edi
call   1090 <exit@plt>
mov    %r14,%rdi
call   1060 <getpwnam@plt>
test   %rax,%rax
jne    127b <main+0x10b>
lea    0xd9d(%rip),%rdi
jmp    12f7 <main+0x187>
mov    (%rax),%esi
mov    %r15,%rdi
mov    $0xffffffff,%edx
call   1070 <chown@plt>
test   %eax,%eax
je     125e <main+0xee>
lea    0xd8a(%rip),%rdi
jmp    12f7 <main+0x187>
lea    0xd87(%rip),%rdi
mov    %r14,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
jne    12af <main+0x13f>
cmp    $0x2,%ebp
ja     12b9 <main+0x149>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x10(%rbx),%rdi
call   1030 <umount@plt>
test   %eax,%eax
je     125e <main+0xee>
lea    0xd58(%rip),%rdi
jmp    12f7 <main+0x187>
mov    0x2d12(%rip),%rax
mov    (%rax),%ecx
mov    %r12,%rdi
mov    %r15,%rsi
xor    %edx,%edx
xor    %r8d,%r8d
call   1040 <mount@plt>
test   %eax,%eax
je     125e <main+0xee>
lea    0xd2f(%rip),%rdi
call   1080 <perror@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
%struct.passwd = type { i32 }
@.str = [6 x i8] c"mount\00"
@.str.1 = [7 x i8] c"--bind\00"
@MS_BIND = global i32 0
@.str.2 = [5 x i8] c"ext4\00"
@.str.3 = [5 x i8] c"ext3\00"
@.str.4 = [5 x i8] c"ext2\00"
@__const.main.filesystems = [3 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0)]
@MS_MGC_VAL = global i32 0
@.str.5 = [9 x i8] c"getpwnam\00"
@.str.6 = [6 x i8] c"chown\00"
@.str.7 = [7 x i8] c"umount\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca [3 x i8*]
%11 = alloca i32
%12 = alloca %struct.passwd*
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, 2
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 @exit(i32 1)
unreachable
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = call i32 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %21)
%23 = icmp ne i32 %22, 0
br i1 %23, label %115, label %24
24: ; preds = %18
%25 = load i32, i32* %4
%26 = icmp slt i32 %25, 4
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 @exit(i32 1)
unreachable
29: ; preds = %24
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 2
%32 = load i8*, i8** %31
store i8* %32, i8** %7
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 3
%35 = load i8*, i8** %34
store i8* %35, i8** %8
store i8* null, i8** %9
%36 = load i32, i32* %4
%37 = icmp sgt i32 %36, 4
br i1 %37, label %38, label %42
38: ; preds = %29
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 4
%41 = load i8*, i8** %40
store i8* %41, i8** %9
br label %42
42: ; preds = %38, %29
%43 = load i8*, i8** %9
%44 = icmp ne i8* %43, null
br i1 %44, label %45, label %60
45: ; preds = %42
%46 = load i8*, i8** %9
%47 = call i32 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %46)
%48 = icmp ne i32 %47, 0
br i1 %48, label %60, label %49
49: ; preds = %45
%50 = load i8*, i8** %7
%51 = load i8*, i8** %8
%52 = load i32, i32* @MS_BIND
%53 = call i32 @mount(i8* %50, i8* %51, i8* null, i32 %52, i32* null)
store i32 %53, i32* %6
%54 = load i32, i32* %6
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %49
%57 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%58 = call i32 @exit(i32 1)
unreachable
59: ; preds = %49
br label %114
60: ; preds = %45, %42
%61 = bitcast [3 x i8*]* %10 to i8*
store i32 0, i32* %11
br label %62
62: ; preds = %81, %60
%63 = load i32, i32* %11
%64 = sext i32 %63 to i64
%65 = icmp ult i64 %64, 3
br i1 %65, label %66, label %84
66: ; preds = %62
%67 = load i8*, i8** %7
%68 = load i8*, i8** %8
%69 = load i32, i32* %11
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [3 x i8*], [3 x i8*]* %10, i64 0, i64 %70
%72 = load i8*, i8** %71
%73 = load i32, i32* @MS_MGC_VAL
%74 = call i32 @mount(i8* %67, i8* %68, i8* %72, i32 %73, i32* null)
store i32 %74, i32* %6
%75 = load i32, i32* %6
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %66
%78 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %80
79: ; preds = %66
br label %84
80: ; preds = %77
br label %81
81: ; preds = %80
%82 = load i32, i32* %11
%83 = add nsw i32 %82, 1
store i32 %83, i32* %11
br label %62
84: ; preds = %79, %62
%85 = load i32, i32* %6
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %89
87: ; preds = %84
%88 = call i32 @exit(i32 1)
unreachable
89: ; preds = %84
%90 = load i8*, i8** %9
%91 = icmp ne i8* %90, null
br i1 %91, label %92, label %113
92: ; preds = %89
%93 = load i8*, i8** %9
%94 = call %struct.passwd* @getpwnam(i8* %93)
store %struct.passwd* %94, %struct.passwd** %12
%95 = load %struct.passwd*, %struct.passwd** %12
%96 = icmp eq %struct.passwd* %95, null
br i1 %96, label %97, label %100
97: ; preds = %92
%98 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%99 = call i32 @exit(i32 1)
unreachable
100: ; preds = %92
%101 = load %struct.passwd*, %struct.passwd** %12
%102 = getelementptr inbounds %struct.passwd, %struct.passwd* %101, i32 0, i32 0
%103 = load i32, i32* %102
store i32 %103, i32* %13
%104 = load i8*, i8** %8
%105 = load i32, i32* %13
%106 = call i32 @chown(i8* %104, i32 %105, i32 -1)
store i32 %106, i32* %6
%107 = load i32, i32* %6
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %112
109: ; preds = %100
%110 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%111 = call i32 @exit(i32 1)
unreachable
112: ; preds = %100
br label %113
113: ; preds = %112, %89
br label %114
114: ; preds = %113, %59
br label %140
115: ; preds = %18
%116 = load i8**, i8*** %5
%117 = getelementptr inbounds i8*, i8** %116, i64 1
%118 = load i8*, i8** %117
%119 = call i32 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* %118)
%120 = icmp ne i32 %119, 0
br i1 %120, label %137, label %121
121: ; preds = %115
%122 = load i32, i32* %4
%123 = icmp slt i32 %122, 3
br i1 %123, label %124, label %126
124: ; preds = %121
%125 = call i32 @exit(i32 1)
unreachable
126: ; preds = %121
%127 = load i8**, i8*** %5
%128 = getelementptr inbounds i8*, i8** %127, i64 2
%129 = load i8*, i8** %128
%130 = call i32 @umount(i8* %129)
store i32 %130, i32* %6
%131 = load i32, i32* %6
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %136
133: ; preds = %126
%134 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%135 = call i32 @exit(i32 1)
unreachable
136: ; preds = %126
br label %139
137: ; preds = %115
%138 = call i32 @exit(i32 1)
unreachable
139: ; preds = %136
br label %140
140: ; preds = %139, %114
%141 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.passwd = type { i32 }
@.str = [6 x i8] c"mount\00"
@.str.1 = [7 x i8] c"--bind\00"
@MS_BIND = global i32 0
@.str.2 = [5 x i8] c"ext4\00"
@.str.3 = [5 x i8] c"ext3\00"
@.str.4 = [5 x i8] c"ext2\00"
@MS_MGC_VAL = global i32 0
@.str.5 = [9 x i8] c"getpwnam\00"
@.str.6 = [6 x i8] c"chown\00"
@.str.7 = [7 x i8] c"umount\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @exit(i32 1)
unreachable
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 @strcmp(i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* dereferenceable(1) %8)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %69
11: ; preds = %6
%12 = icmp ult i32 %0, 4
br i1 %12, label %13, label %15
13: ; preds = %11
%14 = tail call i32 @exit(i32 1)
unreachable
15: ; preds = %11
%16 = getelementptr inbounds i8*, i8** %1, i64 2
%17 = load i8*, i8** %16
%18 = getelementptr inbounds i8*, i8** %1, i64 3
%19 = load i8*, i8** %18
%20 = icmp eq i32 %0, 4
br i1 %20, label %35, label %21
21: ; preds = %15
%22 = getelementptr inbounds i8*, i8** %1, i64 4
%23 = load i8*, i8** %22
%24 = icmp eq i8* %23, null
br i1 %24, label %35, label %25
25: ; preds = %21
%26 = tail call i32 @strcmp(i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %23)
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = load i32, i32* @MS_BIND
%30 = tail call i32 @mount(i8* %17, i8* %19, i8* null, i32 %29, i32* null)
%31 = icmp eq i32 %30, 0
br i1 %31, label %86, label %32
32: ; preds = %28
%33 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%34 = tail call i32 @exit(i32 1)
unreachable
35: ; preds = %15, %25, %21
%36 = phi i1 [ false, %25 ], [ true, %21 ], [ true, %15 ]
%37 = phi i8* [ %23, %25 ], [ null, %21 ], [ null, %15 ]
%38 = load i32, i32* @MS_MGC_VAL
%39 = tail call i32 @mount(i8* %17, i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %38, i32* null)
%40 = icmp eq i32 %39, 0
br i1 %40, label %54, label %41
41: ; preds = %35
%42 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%43 = load i32, i32* @MS_MGC_VAL
%44 = tail call i32 @mount(i8* %17, i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %43, i32* null)
%45 = icmp eq i32 %44, 0
br i1 %45, label %54, label %46
46: ; preds = %41
%47 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%48 = load i32, i32* @MS_MGC_VAL
%49 = tail call i32 @mount(i8* %17, i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %48, i32* null)
%50 = icmp eq i32 %49, 0
br i1 %50, label %54, label %51
51: ; preds = %46
%52 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%53 = tail call i32 @exit(i32 1)
unreachable
54: ; preds = %46, %41, %35
br i1 %36, label %86, label %55
55: ; preds = %54
%56 = tail call %struct.passwd* @getpwnam(i8* %37)
%57 = icmp eq %struct.passwd* %56, null
br i1 %57, label %58, label %61
58: ; preds = %55
%59 = tail call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%60 = tail call i32 @exit(i32 1)
unreachable
61: ; preds = %55
%62 = getelementptr inbounds %struct.passwd, %struct.passwd* %56, i64 0, i32 0
%63 = load i32, i32* %62
%64 = tail call i32 @chown(i8* %19, i32 %63, i32 -1)
%65 = icmp eq i32 %64, 0
br i1 %65, label %86, label %66
66: ; preds = %61
%67 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%68 = tail call i32 @exit(i32 1)
unreachable
69: ; preds = %6
%70 = tail call i32 @strcmp(i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* dereferenceable(1) %8)
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %84
72: ; preds = %69
%73 = icmp ult i32 %0, 3
br i1 %73, label %74, label %76
74: ; preds = %72
%75 = tail call i32 @exit(i32 1)
unreachable
76: ; preds = %72
%77 = getelementptr inbounds i8*, i8** %1, i64 2
%78 = load i8*, i8** %77
%79 = tail call i32 @umount(i8* %78)
%80 = icmp eq i32 %79, 0
br i1 %80, label %86, label %81
81: ; preds = %76
%82 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%83 = tail call i32 @exit(i32 1)
unreachable
84: ; preds = %69
%85 = tail call i32 @exit(i32 1)
unreachable
86: ; preds = %28, %61, %54, %76
%87 = tail call i32 @exit(i32 0)
unreachable
}