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

/* Variables and functions */
int /*<<< orphan*/ SIGCHLD;
int /*<<< orphan*/ SIG_BLOCK;
int /*<<< orphan*/ SIG_SETMASK;
int /*<<< orphan*/ errno;
int /*<<< orphan*/ execle(char *, char *, char *, char const *, char *, char **,
                          ...);
int /*<<< orphan*/ exit(int);
int fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *, char *);
int /*<<< orphan*/ geteuid();
int setuid(int /*<<< orphan*/);
int /*<<< orphan*/ sigaddset(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ sigemptyset(int /*<<< orphan*/ *);
int sigprocmask(int /*<<< orphan*/, int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
char *strerror(int /*<<< orphan*/);
int waitpid(int, int *, int /*<<< orphan*/);
int exec_umount(const char *progname, const char *rel_mnt, int lazy) {
  int res;
  int status;
  sigset_t blockmask;
  sigset_t oldmask;
  sigemptyset(&blockmask);
  sigaddset(&blockmask, SIGCHLD);
  res = sigprocmask(SIG_BLOCK, &blockmask, &oldmask);
  if (res == -1) {
    fprintf(stderr, "%s: sigprocmask: %s\n", progname, strerror(errno));
    return -1;
  }
  res = fork();
  if (res == -1) {
    fprintf(stderr, "%s: fork: %s\n", progname, strerror(errno));
    goto out_restore;
  }
  if (res == 0) {
    char *env = NULL;
    sigprocmask(SIG_SETMASK, &oldmask, NULL);
    if (setuid(geteuid()) == -1) {
      fprintf(stderr, "%s: setuid: %s\n", progname, strerror(errno));
      res = -1;
      goto out_restore;
    }
    if (lazy) {
      execle("/bin/umount", "/bin/umount", "-i", rel_mnt, "-l", NULL, &env);
    } else {
      execle("/bin/umount", "/bin/umount", "-i", rel_mnt, NULL, &env);
    }
    fprintf(stderr, "%s: failed to execute /bin/umount: %s\n", progname,
            strerror(errno));
    exit(1);
  }
  res = waitpid(res, &status, 0);
  if (res == -1)
    fprintf(stderr, "%s: waitpid: %s\n", progname, strerror(errno));
  if (status != 0) {
    res = -1;
  }
out_restore:
  sigprocmask(SIG_SETMASK, &oldmask, NULL);
  return res;
}


x86 assembly (clang, -O0):
<exec_umount>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
lea    -0x28(%rbp),%rdi
call   1060 <sigemptyset@plt>
mov    0x2e0a(%rip),%rax
mov    (%rax),%esi
lea    -0x28(%rbp),%rdi
call   10c0 <sigaddset@plt>
mov    0x2dd8(%rip),%rax
mov    (%rax),%edi
lea    -0x28(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
call   1030 <sigprocmask@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0xffffffff,-0x20(%rbp)
jne    1248 <exec_umount+0x98>
mov    0x2dc5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    0x2da9(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    -0x44(%rbp),%edi
mov    -0x40(%rbp),%rdx
mov    %rax,%rcx
lea    0xdc9(%rip),%rsi
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    144d <exec_umount+0x29d>
mov    $0x0,%al
call   10d0 <fork@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0xffffffff,-0x20(%rbp)
jne    1299 <exec_umount+0xe9>
mov    0x2d6d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    0x2d51(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    -0x54(%rbp),%edi
mov    -0x50(%rbp),%rdx
mov    %rax,%rcx
lea    0xd86(%rip),%rsi
call   1050 <fprintf@plt>
jmp    1431 <exec_umount+0x281>
cmpl   $0x0,-0x20(%rbp)
jne    13c2 <exec_umount+0x212>
movq   $0x0,-0x38(%rbp)
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
lea    -0x2c(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <sigprocmask@plt>
mov    $0x0,%al
call   1040 <geteuid@plt>
mov    %eax,%edi
call   10a0 <setuid@plt>
cmp    $0xffffffff,%eax
jne    131c <exec_umount+0x16c>
mov    0x2cf1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    0x2cd5(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    -0x64(%rbp),%edi
mov    -0x60(%rbp),%rdx
mov    %rax,%rcx
lea    0xd18(%rip),%rsi
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x20(%rbp)
jmp    1431 <exec_umount+0x281>
cmpl   $0x0,-0x1c(%rbp)
je     135b <exec_umount+0x1ab>
mov    -0x18(%rbp),%rcx
lea    0xd02(%rip),%rsi
lea    0xd07(%rip),%rdx
lea    0xd03(%rip),%r8
xor    %eax,%eax
mov    %eax,%r9d
lea    -0x38(%rbp),%rax
mov    %rsi,%rdi
mov    %rax,(%rsp)
mov    $0x0,%al
call   1090 <execle@plt>
jmp    1380 <exec_umount+0x1d0>
mov    -0x18(%rbp),%rcx
lea    0xccd(%rip),%rsi
lea    0xcd2(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
lea    -0x38(%rbp),%r9
mov    %rsi,%rdi
mov    $0x0,%al
call   1090 <execle@plt>
mov    0x2c49(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    0x2c2d(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    -0x74(%rbp),%edi
mov    -0x70(%rbp),%rdx
mov    %rax,%rcx
lea    0xc92(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x20(%rbp),%edi
lea    -0x24(%rbp),%rsi
xor    %edx,%edx
call   1070 <waitpid@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0xffffffff,-0x20(%rbp)
jne    141b <exec_umount+0x26b>
mov    0x2bec(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x84(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    0x2bcd(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    -0x84(%rbp),%edi
mov    -0x80(%rbp),%rdx
mov    %rax,%rcx
lea    0xc56(%rip),%rsi
call   1050 <fprintf@plt>
cmpl   $0x0,-0x24(%rbp)
je     142c <exec_umount+0x27c>
movl   $0xffffffff,-0x20(%rbp)
jmp    1431 <exec_umount+0x281>
mov    0x2bb0(%rip),%rax
mov    (%rax),%edi
lea    -0x2c(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <sigprocmask@plt>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exec_umount>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %edx,%ebp
mov    %rsi,%r14
mov    %rdi,%r15
lea    0x24(%rsp),%rbx
mov    %rbx,%rdi
call   1060 <sigemptyset@plt>
mov    0x2e0a(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   10c0 <sigaddset@plt>
mov    0x2dd9(%rip),%rax
mov    (%rax),%edi
lea    0x14(%rsp),%rdx
mov    %rbx,%rsi
call   1030 <sigprocmask@plt>
cmp    $0xffffffff,%eax
je     1232 <exec_umount+0x82>
xor    %eax,%eax
call   10d0 <fork@plt>
test   %eax,%eax
je     1267 <exec_umount+0xb7>
cmp    $0xffffffff,%eax
jne    12ce <exec_umount+0x11e>
mov    0x2dba(%rip),%rax
mov    (%rax),%ebx
mov    0x2da9(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xde8(%rip),%rsi
jmp    12ba <exec_umount+0x10a>
mov    0x2d97(%rip),%rax
mov    (%rax),%ebx
mov    0x2d86(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xdb0(%rip),%rsi
mov    %ebx,%edi
mov    %r15,%rdx
mov    %rax,%rcx
call   1050 <fprintf@plt>
mov    $0xffffffff,%ebx
jmp    132f <exec_umount+0x17f>
movq   $0x0,0x18(%rsp)
mov    0x2d71(%rip),%rax
mov    (%rax),%edi
lea    0x14(%rsp),%rsi
xor    %edx,%edx
call   1030 <sigprocmask@plt>
xor    %eax,%eax
call   1040 <geteuid@plt>
mov    %eax,%edi
call   10a0 <setuid@plt>
cmp    $0xffffffff,%eax
jne    133c <exec_umount+0x18c>
mov    0x2d2d(%rip),%rax
mov    (%rax),%ebx
mov    0x2d1c(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xd69(%rip),%rsi
mov    %ebx,%edi
mov    %r15,%rdx
mov    %rax,%rcx
call   1050 <fprintf@plt>
mov    $0xffffffff,%ebx
jmp    131a <exec_umount+0x16a>
lea    0x18(%rsp),%rsi
xor    %r14d,%r14d
mov    %eax,%edi
xor    %edx,%edx
call   1070 <waitpid@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
jne    1311 <exec_umount+0x161>
mov    0x2ce3(%rip),%rax
mov    (%rax),%ebx
mov    0x2cd2(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xd68(%rip),%rsi
mov    %ebx,%edi
mov    %r15,%rdx
mov    %rax,%rcx
call   1050 <fprintf@plt>
cmp    0x18(%rsp),%r14d
sbb    %ebx,%ebx
or     %ebp,%ebx
mov    0x2cc7(%rip),%rax
mov    (%rax),%edi
lea    0x14(%rsp),%rsi
xor    %edx,%edx
call   1030 <sigprocmask@plt>
mov    %ebx,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
test   %ebp,%ebp
jne    135e <exec_umount+0x1ae>
lea    0xcec(%rip),%rdi
lea    0xcf1(%rip),%rdx
lea    0x18(%rsp),%r9
mov    %rdi,%rsi
mov    %r14,%rcx
xor    %r8d,%r8d
jmp    1385 <exec_umount+0x1d5>
lea    0x18(%rsp),%rax
mov    %rax,(%rsp)
lea    0xcc5(%rip),%rdi
lea    0xcca(%rip),%rdx
lea    0xcc6(%rip),%r8
mov    %rdi,%rsi
mov    %r14,%rcx
xor    %r9d,%r9d
xor    %eax,%eax
call   1090 <execle@plt>
mov    0x2c3d(%rip),%rax
mov    (%rax),%ebx
mov    0x2c2c(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xc9b(%rip),%rsi
mov    %ebx,%edi
mov    %r15,%rdx
mov    %rax,%rcx
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@SIGCHLD = global i32 0
@SIG_BLOCK = global i32 0
@stderr = global i32 0
@.str = [21 x i8] c"%s: sigprocmask: %s\0A\00"
@errno = global i32 0
@.str.1 = [14 x i8] c"%s: fork: %s\0A\00"
@SIG_SETMASK = global i32 0
@.str.2 = [16 x i8] c"%s: setuid: %s\0A\00"
@.str.3 = [12 x i8] c"/bin/umount\00"
@.str.4 = [3 x i8] c"-i\00"
@.str.5 = [3 x i8] c"-l\00"
@.str.6 = [39 x i8] c"%s: failed to execute /bin/umount: %s\0A\00"
@.str.7 = [17 x i8] c"%s: waitpid: %s\0A\00"
define i32 @exec_umount(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 i32
%11 = alloca i32
%12 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
%13 = call i32 @sigemptyset(i32* %10)
%14 = load i32, i32* @SIGCHLD
%15 = call i32 @sigaddset(i32* %10, i32 %14)
%16 = load i32, i32* @SIG_BLOCK
%17 = call i32 @sigprocmask(i32 %16, i32* %10, i32* %11)
store i32 %17, i32* %8
%18 = load i32, i32* %8
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %26
20: ; preds = %3
%21 = load i32, i32* @stderr
%22 = load i8*, i8** %5
%23 = load i32, i32* @errno
%24 = call i8* @strerror(i32 %23)
%25 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %22, i8* %24)
store i32 -1, i32* %4
br label %87
26: ; preds = %3
%27 = call i32 (...) @fork()
store i32 %27, i32* %8
%28 = load i32, i32* %8
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %36
30: ; preds = %26
%31 = load i32, i32* @stderr
%32 = load i8*, i8** %5
%33 = load i32, i32* @errno
%34 = call i8* @strerror(i32 %33)
%35 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %32, i8* %34)
br label %83
36: ; preds = %26
%37 = load i32, i32* %8
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %67
39: ; preds = %36
store i8* null, i8** %12
%40 = load i32, i32* @SIG_SETMASK
%41 = call i32 @sigprocmask(i32 %40, i32* %11, i32* null)
%42 = call i32 (...) @geteuid()
%43 = call i32 @setuid(i32 %42)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %51
45: ; preds = %39
%46 = load i32, i32* @stderr
%47 = load i8*, i8** %5
%48 = load i32, i32* @errno
%49 = call i8* @strerror(i32 %48)
%50 = call i32 @fprintf(i32 %46, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %47, i8* %49)
store i32 -1, i32* %8
br label %83
51: ; preds = %39
%52 = load i32, i32* %7
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = load i8*, i8** %6
%56 = call i32 (i8*, i8*, i8*, i8*, i8*, i8**, ...) @execle(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8** null, i8** %12)
br label %60
57: ; preds = %51
%58 = load i8*, i8** %6
%59 = call i32 (i8*, i8*, i8*, i8*, i8*, i8**, ...) @execle(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %58, i8* null, i8** %12)
br label %60
60: ; preds = %57, %54
%61 = load i32, i32* @stderr
%62 = load i8*, i8** %5
%63 = load i32, i32* @errno
%64 = call i8* @strerror(i32 %63)
%65 = call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i8* %62, i8* %64)
%66 = call i32 @exit(i32 1)
unreachable
67: ; preds = %36
%68 = load i32, i32* %8
%69 = call i32 @waitpid(i32 %68, i32* %9, i32 0)
store i32 %69, i32* %8
%70 = load i32, i32* %8
%71 = icmp eq i32 %70, -1
br i1 %71, label %72, label %78
72: ; preds = %67
%73 = load i32, i32* @stderr
%74 = load i8*, i8** %5
%75 = load i32, i32* @errno
%76 = call i8* @strerror(i32 %75)
%77 = call i32 @fprintf(i32 %73, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %74, i8* %76)
br label %78
78: ; preds = %72, %67
%79 = load i32, i32* %9
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %78
store i32 -1, i32* %8
br label %82
82: ; preds = %81, %78
br label %83
83: ; preds = %82, %45, %30
%84 = load i32, i32* @SIG_SETMASK
%85 = call i32 @sigprocmask(i32 %84, i32* %11, i32* null)
%86 = load i32, i32* %8
store i32 %86, i32* %4
br label %87
87: ; preds = %83, %20
%88 = load i32, i32* %4
ret i32 %88
}

LLVM IR (-O2):
@SIGCHLD = global i32 0
@SIG_BLOCK = global i32 0
@stderr = global i32 0
@.str = [21 x i8] c"%s: sigprocmask: %s\0A\00"
@errno = global i32 0
@.str.1 = [14 x i8] c"%s: fork: %s\0A\00"
@SIG_SETMASK = global i32 0
@.str.2 = [16 x i8] c"%s: setuid: %s\0A\00"
@.str.3 = [12 x i8] c"/bin/umount\00"
@.str.4 = [3 x i8] c"-i\00"
@.str.5 = [3 x i8] c"-l\00"
@.str.6 = [39 x i8] c"%s: failed to execute /bin/umount: %s\0A\00"
@.str.7 = [17 x i8] c"%s: waitpid: %s\0A\00"
define i32 @exec_umount(i8* %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = bitcast i32* %4 to i8*
%9 = bitcast i32* %5 to i8*
%10 = bitcast i32* %6 to i8*
%11 = call i32 @sigemptyset(i32* %5)
%12 = load i32, i32* @SIGCHLD
%13 = call i32 @sigaddset(i32* %5, i32 %12)
%14 = load i32, i32* @SIG_BLOCK
%15 = call i32 @sigprocmask(i32 %14, i32* %5, i32* %6)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %22
17: ; preds = %3
%18 = load i32, i32* @stderr
%19 = load i32, i32* @errno
%20 = call i8* @strerror(i32 %19)
%21 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %20)
br label %69
22: ; preds = %3
%23 = call i32 (...) @fork()
switch i32 %23, label %53 [
i32 -1, label %24
i32 0, label %29
]
24: ; preds = %22
%25 = load i32, i32* @stderr
%26 = load i32, i32* @errno
%27 = call i8* @strerror(i32 %26)
%28 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %27)
br label %65
29: ; preds = %22
%30 = bitcast i8** %7 to i8*
store i8* null, i8** %7
%31 = load i32, i32* @SIG_SETMASK
%32 = call i32 @sigprocmask(i32 %31, i32* %6, i32* null)
%33 = call i32 (...) @geteuid()
%34 = call i32 @setuid(i32 %33)
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %41
36: ; preds = %29
%37 = load i32, i32* @stderr
%38 = load i32, i32* @errno
%39 = call i8* @strerror(i32 %38)
%40 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %39)
br label %65
41: ; preds = %29
%42 = icmp eq i32 %2, 0
br i1 %42, label %45, label %43
43: ; preds = %41
%44 = call i32 (i8*, i8*, i8*, i8*, i8*, i8**, ...) @execle(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8** null, i8** %7)
br label %47
45: ; preds = %41
%46 = call i32 (i8*, i8*, i8*, i8*, i8*, i8**, ...) @execle(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %1, i8* null, i8** %7)
br label %47
47: ; preds = %45, %43
%48 = load i32, i32* @stderr
%49 = load i32, i32* @errno
%50 = call i8* @strerror(i32 %49)
%51 = call i32 @fprintf(i32 %48, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i8* %0, i8* %50)
%52 = call i32 @exit(i32 1)
unreachable
53: ; preds = %22
%54 = call i32 @waitpid(i32 %23, i32* %4, i32 0)
%55 = icmp eq i32 %54, -1
br i1 %55, label %56, label %61
56: ; preds = %53
%57 = load i32, i32* @stderr
%58 = load i32, i32* @errno
%59 = call i8* @strerror(i32 %58)
%60 = call i32 @fprintf(i32 %57, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %0, i8* %59)
br label %61
61: ; preds = %56, %53
%62 = load i32, i32* %4
%63 = icmp eq i32 %62, 0
%64 = select i1 %63, i32 %54, i32 -1
br label %65
65: ; preds = %61, %36, %24
%66 = phi i32 [ -1, %24 ], [ -1, %36 ], [ %64, %61 ]
%67 = load i32, i32* @SIG_SETMASK
%68 = call i32 @sigprocmask(i32 %67, i32* %6, i32* null)
br label %69
69: ; preds = %65, %17
%70 = phi i32 [ -1, %17 ], [ %66, %65 ]
ret i32 %70
}