#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*/ O_RDONLY;
int /*<<< orphan*/ SIGCHLD;
int /*<<< orphan*/ SIG_BLOCK;
int /*<<< orphan*/ SIG_SETMASK;
int /*<<< orphan*/ dup2(int, int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ execl(char *, char *, char *, char *, char *, char *,
                         char const *, char *, char const *, char const *,
                         char const *, int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *, char *);
int /*<<< orphan*/ geteuid();
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ 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 add_mount(const char *progname, const char *fsname, const char *mnt,
              const char *type, const char *opts) {
  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) {
    int fd = open("/dev/null", O_RDONLY);
    dup2(fd, 1);
    dup2(fd, 2);
    sigprocmask(SIG_SETMASK, &oldmask, NULL);
    setuid(geteuid());
    execl("/bin/mount", "/bin/mount", "--no-canonicalize", "-i", "-f", "-t",
          type, "-o", opts, fsname, mnt, NULL);
    fprintf(stderr, "%s: failed to execute /bin/mount: %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):
<add_mount>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0xc0,%rsp
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
lea    -0x4c(%rbp),%rdi
call   1070 <sigemptyset@plt>
mov    0x2dd6(%rip),%rax
mov    (%rax),%esi
lea    -0x4c(%rbp),%rdi
call   10e0 <sigaddset@plt>
mov    0x2da4(%rip),%rax
mov    (%rax),%edi
lea    -0x4c(%rbp),%rsi
lea    -0x50(%rbp),%rdx
call   1030 <sigprocmask@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    1274 <add_mount+0xa4>
mov    0x2d91(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    0x2d75(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x64(%rbp),%edi
mov    -0x60(%rbp),%rdx
mov    %rax,%rcx
lea    0xd9d(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x14(%rbp)
jmp    1463 <add_mount+0x293>
mov    $0x0,%al
call   10f0 <fork@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    12c5 <add_mount+0xf5>
mov    0x2d39(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    0x2d1d(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x74(%rbp),%edi
mov    -0x70(%rbp),%rdx
mov    %rax,%rcx
lea    0xd5a(%rip),%rsi
call   1060 <fprintf@plt>
jmp    1447 <add_mount+0x277>
cmpl   $0x0,-0x44(%rbp)
jne    13d2 <add_mount+0x202>
mov    0x2d12(%rip),%rax
mov    (%rax),%esi
lea    0xd44(%rip),%rdi
call   1090 <open@plt>
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%edi
mov    $0x1,%esi
call   1040 <dup2@plt>
mov    -0x54(%rbp),%edi
mov    $0x2,%esi
call   1040 <dup2@plt>
mov    0x2cd8(%rip),%rax
mov    (%rax),%edi
lea    -0x50(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <sigprocmask@plt>
mov    $0x0,%al
call   1050 <geteuid@plt>
mov    %eax,%edi
call   10b0 <setuid@plt>
mov    -0x38(%rbp),%r14
mov    -0x40(%rbp),%r11
mov    -0x28(%rbp),%r10
mov    -0x30(%rbp),%rax
lea    0xcf1(%rip),%rsi
lea    0xcf5(%rip),%rdx
lea    0xd00(%rip),%rcx
lea    0xcfc(%rip),%r8
lea    0xcf8(%rip),%r9
lea    0xcf4(%rip),%rbx
xor    %edi,%edi
mov    %rsi,%rdi
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
movq   $0x0,0x28(%rsp)
call   10d0 <execl@plt>
mov    0x2c37(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x84(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    0x2c18(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x84(%rbp),%edi
mov    -0x80(%rbp),%rdx
mov    %rax,%rcx
lea    0xc93(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x44(%rbp),%edi
lea    -0x48(%rbp),%rsi
xor    %edx,%edx
call   1080 <waitpid@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    1431 <add_mount+0x261>
mov    0x2bd4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x94(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    0x2bb2(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x94(%rbp),%edi
mov    -0x90(%rbp),%rdx
mov    %rax,%rcx
lea    0xc50(%rip),%rsi
call   1060 <fprintf@plt>
cmpl   $0x0,-0x48(%rbp)
je     1442 <add_mount+0x272>
movl   $0xffffffff,-0x44(%rbp)
jmp    1447 <add_mount+0x277>
mov    0x2b92(%rip),%rax
mov    (%rax),%edi
lea    -0x50(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <sigprocmask@plt>
mov    -0x44(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0xc0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<add_mount>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r8,%r15
mov    %rcx,%r14
mov    %rdx,%r13
mov    %rsi,%r12
mov    %rdi,%rbx
lea    0x14(%rsp),%rbp
mov    %rbp,%rdi
call   1070 <sigemptyset@plt>
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
mov    %rbp,%rdi
call   10e0 <sigaddset@plt>
mov    0x2da6(%rip),%rax
mov    (%rax),%edi
lea    0xc(%rsp),%rdx
mov    %rbp,%rsi
call   1030 <sigprocmask@plt>
cmp    $0xffffffff,%eax
je     128e <add_mount+0xbe>
xor    %eax,%eax
call   10f0 <fork@plt>
cmp    $0xffffffff,%eax
je     12c0 <add_mount+0xf0>
test   %eax,%eax
je     1316 <add_mount+0x146>
lea    0x10(%rsp),%rsi
xor    %r15d,%r15d
mov    %eax,%edi
xor    %edx,%edx
call   1080 <waitpid@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
jne    1283 <add_mount+0xb3>
mov    0x2d6b(%rip),%rax
mov    (%rax),%r14d
mov    0x2d59(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xe07(%rip),%rsi
mov    %r14d,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1060 <fprintf@plt>
cmp    0x10(%rsp),%r15d
sbb    %ebx,%ebx
or     %ebp,%ebx
jmp    12f0 <add_mount+0x120>
mov    0x2d33(%rip),%rax
mov    (%rax),%ebp
mov    0x2d22(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xd54(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1060 <fprintf@plt>
mov    $0xffffffff,%ebx
jmp    1305 <add_mount+0x135>
mov    0x2d01(%rip),%rax
mov    (%rax),%ebp
mov    0x2cf0(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xd37(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1060 <fprintf@plt>
mov    $0xffffffff,%ebx
mov    0x2ce9(%rip),%rax
mov    (%rax),%edi
lea    0xc(%rsp),%rsi
xor    %edx,%edx
call   1030 <sigprocmask@plt>
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2ccb(%rip),%rax
mov    (%rax),%esi
lea    0xcfd(%rip),%rdi
call   1090 <open@plt>
mov    %eax,%ebp
mov    %eax,%edi
mov    $0x1,%esi
call   1040 <dup2@plt>
mov    %ebp,%edi
mov    $0x2,%esi
call   1040 <dup2@plt>
mov    0x2c94(%rip),%rax
mov    (%rax),%edi
lea    0xc(%rsp),%rsi
xor    %edx,%edx
call   1030 <sigprocmask@plt>
xor    %eax,%eax
call   1050 <geteuid@plt>
mov    %eax,%edi
call   10b0 <setuid@plt>
lea    0xce4(%rip),%rax
lea    0xcb7(%rip),%rdi
lea    0xcbb(%rip),%rdx
lea    0xcc6(%rip),%rcx
lea    0xcc2(%rip),%r8
lea    0xcbe(%rip),%r9
mov    %rdi,%rsi
push   $0x0
push   %r13
push   %r12
push   %r15
push   %rax
push   %r14
call   10d0 <execl@plt>
add    $0x30,%rsp
mov    0x2c18(%rip),%rax
mov    (%rax),%ebp
mov    0x2c07(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xc8f(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <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"
@.str.2 = [10 x i8] c"/dev/null\00"
@O_RDONLY = global i32 0
@SIG_SETMASK = global i32 0
@.str.3 = [11 x i8] c"/bin/mount\00"
@.str.4 = [18 x i8] c"--no-canonicalize\00"
@.str.5 = [3 x i8] c"-i\00"
@.str.6 = [3 x i8] c"-f\00"
@.str.7 = [3 x i8] c"-t\00"
@.str.8 = [3 x i8] c"-o\00"
@.str.9 = [38 x i8] c"%s: failed to execute /bin/mount: %s\0A\00"
@.str.10 = [17 x i8] c"%s: waitpid: %s\0A\00"
define i32 @add_mount(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i8* %0, i8** %7
store i8* %1, i8** %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i8* %4, i8** %11
%17 = call i32 @sigemptyset(i32* %14)
%18 = load i32, i32* @SIGCHLD
%19 = call i32 @sigaddset(i32* %14, i32 %18)
%20 = load i32, i32* @SIG_BLOCK
%21 = call i32 @sigprocmask(i32 %20, i32* %14, i32* %15)
store i32 %21, i32* %12
%22 = load i32, i32* %12
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %30
24: ; preds = %5
%25 = load i32, i32* @stderr
%26 = load i8*, i8** %7
%27 = load i32, i32* @errno
%28 = call i8* @strerror(i32 %27)
%29 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %26, i8* %28)
store i32 -1, i32* %6
br label %85
30: ; preds = %5
%31 = call i32 (...) @fork()
store i32 %31, i32* %12
%32 = load i32, i32* %12
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %40
34: ; preds = %30
%35 = load i32, i32* @stderr
%36 = load i8*, i8** %7
%37 = load i32, i32* @errno
%38 = call i8* @strerror(i32 %37)
%39 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %36, i8* %38)
br label %81
40: ; preds = %30
%41 = load i32, i32* %12
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %65
43: ; preds = %40
%44 = load i32, i32* @O_RDONLY
%45 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %44)
store i32 %45, i32* %16
%46 = load i32, i32* %16
%47 = call i32 @dup2(i32 %46, i32 1)
%48 = load i32, i32* %16
%49 = call i32 @dup2(i32 %48, i32 2)
%50 = load i32, i32* @SIG_SETMASK
%51 = call i32 @sigprocmask(i32 %50, i32* %15, i32* null)
%52 = call i32 (...) @geteuid()
%53 = call i32 @setuid(i32 %52)
%54 = load i8*, i8** %10
%55 = load i8*, i8** %11
%56 = load i8*, i8** %8
%57 = load i8*, i8** %9
%58 = call i32 @execl(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %54, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %55, i8* %56, i8* %57, i32* null)
%59 = load i32, i32* @stderr
%60 = load i8*, i8** %7
%61 = load i32, i32* @errno
%62 = call i8* @strerror(i32 %61)
%63 = call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i8* %60, i8* %62)
%64 = call i32 @exit(i32 1)
unreachable
65: ; preds = %40
%66 = load i32, i32* %12
%67 = call i32 @waitpid(i32 %66, i32* %13, i32 0)
store i32 %67, i32* %12
%68 = load i32, i32* %12
%69 = icmp eq i32 %68, -1
br i1 %69, label %70, label %76
70: ; preds = %65
%71 = load i32, i32* @stderr
%72 = load i8*, i8** %7
%73 = load i32, i32* @errno
%74 = call i8* @strerror(i32 %73)
%75 = call i32 @fprintf(i32 %71, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i8* %72, i8* %74)
br label %76
76: ; preds = %70, %65
%77 = load i32, i32* %13
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %80
79: ; preds = %76
store i32 -1, i32* %12
br label %80
80: ; preds = %79, %76
br label %81
81: ; preds = %80, %34
%82 = load i32, i32* @SIG_SETMASK
%83 = call i32 @sigprocmask(i32 %82, i32* %15, i32* null)
%84 = load i32, i32* %12
store i32 %84, i32* %6
br label %85
85: ; preds = %81, %24
%86 = load i32, i32* %6
ret i32 %86
}

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"
@.str.2 = [10 x i8] c"/dev/null\00"
@O_RDONLY = global i32 0
@SIG_SETMASK = global i32 0
@.str.3 = [11 x i8] c"/bin/mount\00"
@.str.4 = [18 x i8] c"--no-canonicalize\00"
@.str.5 = [3 x i8] c"-i\00"
@.str.6 = [3 x i8] c"-f\00"
@.str.7 = [3 x i8] c"-t\00"
@.str.8 = [3 x i8] c"-o\00"
@.str.9 = [38 x i8] c"%s: failed to execute /bin/mount: %s\0A\00"
@.str.10 = [17 x i8] c"%s: waitpid: %s\0A\00"
define i32 @add_mount(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = bitcast i32* %6 to i8*
%10 = bitcast i32* %7 to i8*
%11 = bitcast i32* %8 to i8*
%12 = call i32 @sigemptyset(i32* %7)
%13 = load i32, i32* @SIGCHLD
%14 = call i32 @sigaddset(i32* %7, i32 %13)
%15 = load i32, i32* @SIG_BLOCK
%16 = call i32 @sigprocmask(i32 %15, i32* %7, i32* %8)
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %23
18: ; preds = %5
%19 = load i32, i32* @stderr
%20 = load i32, i32* @errno
%21 = call i8* @strerror(i32 %20)
%22 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %21)
br label %61
23: ; preds = %5
%24 = call i32 (...) @fork()
switch i32 %24, label %45 [
i32 -1, label %25
i32 0, label %30
]
25: ; preds = %23
%26 = load i32, i32* @stderr
%27 = load i32, i32* @errno
%28 = call i8* @strerror(i32 %27)
%29 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %28)
br label %57
30: ; preds = %23
%31 = load i32, i32* @O_RDONLY
%32 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %31)
%33 = call i32 @dup2(i32 %32, i32 1)
%34 = call i32 @dup2(i32 %32, i32 2)
%35 = load i32, i32* @SIG_SETMASK
%36 = call i32 @sigprocmask(i32 %35, i32* %8, i32* null)
%37 = call i32 (...) @geteuid()
%38 = call i32 @setuid(i32 %37)
%39 = call i32 @execl(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %4, i8* %1, i8* %2, i32* null)
%40 = load i32, i32* @stderr
%41 = load i32, i32* @errno
%42 = call i8* @strerror(i32 %41)
%43 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i8* %0, i8* %42)
%44 = call i32 @exit(i32 1)
unreachable
45: ; preds = %23
%46 = call i32 @waitpid(i32 %24, i32* %6, i32 0)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %53
48: ; preds = %45
%49 = load i32, i32* @stderr
%50 = load i32, i32* @errno
%51 = call i8* @strerror(i32 %50)
%52 = call i32 @fprintf(i32 %49, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i8* %0, i8* %51)
br label %53
53: ; preds = %48, %45
%54 = load i32, i32* %6
%55 = icmp eq i32 %54, 0
%56 = select i1 %55, i32 %46, i32 -1
br label %57
57: ; preds = %53, %25
%58 = phi i32 [ -1, %25 ], [ %56, %53 ]
%59 = load i32, i32* @SIG_SETMASK
%60 = call i32 @sigprocmask(i32 %59, i32* %8, i32* null)
br label %61
61: ; preds = %57, %18
%62 = phi i32 [ -1, %18 ], [ %58, %57 ]
ret i32 %62
}