#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 pid_t;

/* Variables and functions */
scalar_t__ EXIT_SUCCESS;
int MS_BIND;
int MS_REMOUNT;
scalar_t__ WEXITSTATUS(int);
int /*<<< orphan*/ WIFEXITED(int);
int /*<<< orphan*/ create_and_enter_userns();
int /*<<< orphan*/ die(char *, ...);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(scalar_t__);
int fork();
scalar_t__ mount(char *, char *, char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
scalar_t__ unshare(int);
int waitpid(int, int *, int /*<<< orphan*/);
bool test_unpriv_remount(int mount_flags, int remount_flags,
                         int invalid_flags) {
  pid_t child;
  child = fork();
  if (child == -1) {
    die("fork failed: %s\n", strerror(errno));
  }
  if (child != 0) {
    pid_t pid;
    int status;
    pid = waitpid(child, &status, 0);
    if (pid == -1) {
      die("waitpid failed: %s\n", strerror(errno));
    }
    if (pid != child) {
      die("waited for %d got %d\n", child, pid);
    }
    if (!WIFEXITED(status)) {
      die("child did not terminate cleanly\n");
    }
    return WEXITSTATUS(status) == EXIT_SUCCESS ? true : false;
  }
  create_and_enter_userns();
  if (unshare(0x00020000) != 0) {
    die("unshare(CLONE_NEWNS) failed: %s\n", strerror(errno));
  }
  if (mount("testing", "/tmp", "ramfs", mount_flags, NULL) != 0) {
    die("mount of /tmp failed: %s\n", strerror(errno));
  }
  create_and_enter_userns();
  if (unshare(0x00020000) != 0) {
    die("unshare(CLONE_NEWNS) failed: %s\n", strerror(errno));
  }
  if (mount("/tmp", "/tmp", "none", MS_REMOUNT | MS_BIND | remount_flags,
            NULL) != 0) {
    die("remount of /tmp failed: %s\n", strerror(errno));
  }
  if (mount("/tmp", "/tmp", "none", MS_REMOUNT | MS_BIND | invalid_flags,
            NULL) == 0) {
    die("remount of /tmp with invalid flags "
        "succeeded unexpectedly\n");
  }
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<test_unpriv_remount>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    $0x0,%al
call   10c0 <fork@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0xffffffff,-0x10(%rbp)
jne    11e3 <test_unpriv_remount+0x43>
mov    0x2e0c(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %eax,%esi
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1080 <die@plt>
cmpl   $0x0,-0x10(%rbp)
je     128d <test_unpriv_remount+0xed>
mov    -0x10(%rbp),%edi
lea    -0x18(%rbp),%rsi
xor    %edx,%edx
call   1060 <waitpid@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    1226 <test_unpriv_remount+0x86>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %eax,%esi
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   1080 <die@plt>
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
je     1246 <test_unpriv_remount+0xa6>
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1080 <die@plt>
mov    -0x18(%rbp),%edi
call   1090 <WIFEXITED@plt>
cmp    $0x0,%eax
jne    1265 <test_unpriv_remount+0xc5>
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1080 <die@plt>
mov    -0x18(%rbp),%edi
call   1050 <WEXITSTATUS@plt>
mov    %rax,%rdx
mov    0x2d59(%rip),%rax
mov    (%rax),%rsi
xor    %eax,%eax
mov    $0x1,%ecx
cmp    %rsi,%rdx
cmove  %ecx,%eax
add    $0x20,%rsp
pop    %rbp
ret
mov    $0x0,%al
call   1070 <create_and_enter_userns@plt>
mov    $0x20000,%edi
call   1030 <unshare@plt>
cmp    $0x0,%rax
je     12c6 <test_unpriv_remount+0x126>
mov    0x2d29(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %eax,%esi
lea    0xd9d(%rip),%rdi
mov    $0x0,%al
call   1080 <die@plt>
mov    -0x4(%rbp),%ecx
lea    0xdad(%rip),%rdi
lea    0xdae(%rip),%rsi
lea    0xdac(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
call   1040 <mount@plt>
cmp    $0x0,%rax
je     1310 <test_unpriv_remount+0x170>
mov    0x2cdf(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %eax,%esi
lea    0xd8e(%rip),%rdi
mov    $0x0,%al
call   1080 <die@plt>
mov    $0x0,%al
call   1070 <create_and_enter_userns@plt>
mov    $0x20000,%edi
call   1030 <unshare@plt>
cmp    $0x0,%rax
je     1349 <test_unpriv_remount+0x1a9>
mov    0x2ca6(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %eax,%esi
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1080 <die@plt>
mov    0x2c78(%rip),%rax
mov    (%rax),%ecx
mov    0x2c8f(%rip),%rax
or     (%rax),%ecx
or     -0x8(%rbp),%ecx
lea    0xd20(%rip),%rsi
lea    0xd24(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
mov    %rsi,%rdi
call   1040 <mount@plt>
cmp    $0x0,%rax
je     13a1 <test_unpriv_remount+0x201>
mov    0x2c4e(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %eax,%esi
lea    0xcfb(%rip),%rdi
mov    $0x0,%al
call   1080 <die@plt>
mov    0x2c20(%rip),%rax
mov    (%rax),%ecx
mov    0x2c37(%rip),%rax
or     (%rax),%ecx
or     -0xc(%rbp),%ecx
lea    0xcc8(%rip),%rsi
lea    0xccc(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
mov    %rsi,%rdi
call   1040 <mount@plt>
cmp    $0x0,%rax
jne    13e9 <test_unpriv_remount+0x249>
lea    0xccf(%rip),%rdi
mov    $0x0,%al
call   1080 <die@plt>
mov    0x2be0(%rip),%rax
mov    (%rax),%rdi
call   10a0 <exit@plt>

x86 assembly (clang, -O2):
<test_unpriv_remount>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%r14d
mov    %esi,%r15d
mov    %edi,%ebp
xor    %eax,%eax
call   10c0 <fork@plt>
mov    %eax,%ebx
cmp    $0xffffffff,%eax
je     130c <test_unpriv_remount+0x16c>
test   %ebx,%ebx
jne    132a <test_unpriv_remount+0x18a>
xor    %eax,%eax
call   1070 <create_and_enter_userns@plt>
mov    $0x20000,%edi
call   1030 <unshare@plt>
test   %rax,%rax
je     11fd <test_unpriv_remount+0x5d>
mov    0x2df2(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xe68(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <die@plt>
lea    0xe79(%rip),%rdi
lea    0xe7a(%rip),%rsi
lea    0xe78(%rip),%rdx
mov    %ebp,%ecx
xor    %r8d,%r8d
call   1040 <mount@plt>
test   %rax,%rax
je     123f <test_unpriv_remount+0x9f>
mov    0x2db0(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <die@plt>
xor    %eax,%eax
call   1070 <create_and_enter_userns@plt>
mov    $0x20000,%edi
call   1030 <unshare@plt>
test   %rax,%rax
je     1273 <test_unpriv_remount+0xd3>
mov    0x2d7c(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xdf2(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <die@plt>
mov    0x2d4e(%rip),%rbp
mov    0x2d67(%rip),%rbx
or     0x0(%rbp),%r15d
or     (%rbx),%r15d
lea    0xdf6(%rip),%rdi
lea    0xdfa(%rip),%rdx
mov    %rdi,%rsi
mov    %r15d,%ecx
xor    %r8d,%r8d
call   1040 <mount@plt>
test   %rax,%rax
je     12c7 <test_unpriv_remount+0x127>
mov    0x2d28(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xdd7(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <die@plt>
or     0x0(%rbp),%r14d
or     (%rbx),%r14d
lea    0xdb0(%rip),%rdi
lea    0xdb4(%rip),%rdx
mov    %rdi,%rsi
mov    %r14d,%ecx
xor    %r8d,%r8d
call   1040 <mount@plt>
test   %rax,%rax
jne    12fd <test_unpriv_remount+0x15d>
lea    0xdbb(%rip),%rdi
xor    %eax,%eax
call   1080 <die@plt>
mov    0x2ccc(%rip),%rax
mov    (%rax),%rdi
call   10a0 <exit@plt>
mov    0x2cc5(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xcdf(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <die@plt>
lea    0x4(%rsp),%rsi
mov    %ebx,%edi
xor    %edx,%edx
call   1060 <waitpid@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
je     1395 <test_unpriv_remount+0x1f5>
cmp    %ebx,%ebp
je     1355 <test_unpriv_remount+0x1b5>
lea    0xcdb(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1080 <die@plt>
mov    0x4(%rsp),%edi
call   1090 <WIFEXITED@plt>
test   %eax,%eax
jne    1370 <test_unpriv_remount+0x1d0>
lea    0xcd2(%rip),%rdi
xor    %eax,%eax
call   1080 <die@plt>
mov    0x4(%rsp),%edi
call   1050 <WEXITSTATUS@plt>
mov    0x2c50(%rip),%rdx
xor    %ecx,%ecx
cmp    (%rdx),%rax
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c3c(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xc67(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <die@plt>
cmp    %ebx,%ebp
jne    1343 <test_unpriv_remount+0x1a3>
jmp    1355 <test_unpriv_remount+0x1b5>

LLVM IR (-O0):
@.str = [17 x i8] c"fork failed: %s\0A\00"
@errno = global i32 0
@.str.1 = [20 x i8] c"waitpid failed: %s\0A\00"
@.str.2 = [22 x i8] c"waited for %d got %d\0A\00"
@.str.3 = [33 x i8] c"child did not terminate cleanly\0A\00"
@EXIT_SUCCESS = global i64 0
@.str.4 = [33 x i8] c"unshare(CLONE_NEWNS) failed: %s\0A\00"
@.str.5 = [8 x i8] c"testing\00"
@.str.6 = [5 x i8] c"/tmp\00"
@.str.7 = [6 x i8] c"ramfs\00"
@.str.8 = [26 x i8] c"mount of /tmp failed: %s\0A\00"
@.str.9 = [5 x i8] c"none\00"
@MS_REMOUNT = global i32 0
@MS_BIND = global i32 0
@.str.10 = [28 x i8] c"remount of /tmp failed: %s\0A\00"
@.str.11 = [59 x i8] c"remount of /tmp with invalid flags succeeded unexpectedly\0A\00"
define i32 @test_unpriv_remount(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%10 = call i32 (...) @fork()
store i32 %10, i32* %7
%11 = load i32, i32* %7
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %17
13: ; preds = %3
%14 = load i32, i32* @errno
%15 = call i32 @strerror(i32 %14)
%16 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %15)
br label %17
17: ; preds = %13, %3
%18 = load i32, i32* %7
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %50
20: ; preds = %17
%21 = load i32, i32* %7
%22 = call i32 @waitpid(i32 %21, i32* %9, i32 0)
store i32 %22, i32* %8
%23 = load i32, i32* %8
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %29
25: ; preds = %20
%26 = load i32, i32* @errno
%27 = call i32 @strerror(i32 %26)
%28 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %27)
br label %29
29: ; preds = %25, %20
%30 = load i32, i32* %8
%31 = load i32, i32* %7
%32 = icmp ne i32 %30, %31
br i1 %32, label %33, label %37
33: ; preds = %29
%34 = load i32, i32* %7
%35 = load i32, i32* %8
%36 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %34, i32 %35)
br label %37
37: ; preds = %33, %29
%38 = load i32, i32* %9
%39 = call i32 @WIFEXITED(i32 %38)
%40 = icmp ne i32 %39, 0
br i1 %40, label %43, label %41
41: ; preds = %37
%42 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
br label %43
43: ; preds = %41, %37
%44 = load i32, i32* %9
%45 = call i64 @WEXITSTATUS(i32 %44)
%46 = load i64, i64* @EXIT_SUCCESS
%47 = icmp eq i64 %45, %46
%48 = zext i1 %47 to i64
%49 = select i1 %47, i32 1, i32 0
ret i32 %49
50: ; preds = %17
%51 = call i32 (...) @create_and_enter_userns()
%52 = call i64 @unshare(i32 131072)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = load i32, i32* @errno
%56 = call i32 @strerror(i32 %55)
%57 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %56)
br label %58
58: ; preds = %54, %50
%59 = load i32, i32* %4
%60 = call i64 @mount(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %59, i32* null)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %66
62: ; preds = %58
%63 = load i32, i32* @errno
%64 = call i32 @strerror(i32 %63)
%65 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i32 %64)
br label %66
66: ; preds = %62, %58
%67 = call i32 (...) @create_and_enter_userns()
%68 = call i64 @unshare(i32 131072)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %74
70: ; preds = %66
%71 = load i32, i32* @errno
%72 = call i32 @strerror(i32 %71)
%73 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %72)
br label %74
74: ; preds = %70, %66
%75 = load i32, i32* @MS_REMOUNT
%76 = load i32, i32* @MS_BIND
%77 = or i32 %75, %76
%78 = load i32, i32* %5
%79 = or i32 %77, %78
%80 = call i64 @mount(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %79, i32* null)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %86
82: ; preds = %74
%83 = load i32, i32* @errno
%84 = call i32 @strerror(i32 %83)
%85 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i32 %84)
br label %86
86: ; preds = %82, %74
%87 = load i32, i32* @MS_REMOUNT
%88 = load i32, i32* @MS_BIND
%89 = or i32 %87, %88
%90 = load i32, i32* %6
%91 = or i32 %89, %90
%92 = call i64 @mount(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %91, i32* null)
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %96
94: ; preds = %86
%95 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.11, i64 0, i64 0))
br label %96
96: ; preds = %94, %86
%97 = load i64, i64* @EXIT_SUCCESS
%98 = call i32 @exit(i64 %97)
unreachable
}

LLVM IR (-O2):
@.str = [17 x i8] c"fork failed: %s\0A\00"
@errno = global i32 0
@.str.1 = [20 x i8] c"waitpid failed: %s\0A\00"
@.str.2 = [22 x i8] c"waited for %d got %d\0A\00"
@.str.3 = [33 x i8] c"child did not terminate cleanly\0A\00"
@EXIT_SUCCESS = global i64 0
@.str.4 = [33 x i8] c"unshare(CLONE_NEWNS) failed: %s\0A\00"
@.str.5 = [8 x i8] c"testing\00"
@.str.6 = [5 x i8] c"/tmp\00"
@.str.7 = [6 x i8] c"ramfs\00"
@.str.8 = [26 x i8] c"mount of /tmp failed: %s\0A\00"
@.str.9 = [5 x i8] c"none\00"
@MS_REMOUNT = global i32 0
@MS_BIND = global i32 0
@.str.10 = [28 x i8] c"remount of /tmp failed: %s\0A\00"
@.str.11 = [59 x i8] c"remount of /tmp with invalid flags succeeded unexpectedly\0A\00"
define i32 @test_unpriv_remount(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = tail call i32 (...) @fork()
switch i32 %5, label %10 [
i32 -1, label %6
i32 0, label %34
]
6: ; preds = %3
%7 = load i32, i32* @errno
%8 = tail call i32 @strerror(i32 %7)
%9 = tail call i32 (i8*, ...) @die(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %8)
br label %10
10: ; preds = %6, %3
%11 = bitcast i32* %4 to i8*
%12 = call i32 @waitpid(i32 %5, i32* %4, i32 0)
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load i32, i32* @errno
%16 = call i32 @strerror(i32 %15)
%17 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %16)
br label %18
18: ; preds = %14, %10
%19 = icmp eq i32 %12, %5
br i1 %19, label %22, label %20
20: ; preds = %18
%21 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %5, i32 %12)
br label %22
22: ; preds = %20, %18
%23 = load i32, i32* %4
%24 = call i32 @WIFEXITED(i32 %23)
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 (i8*, ...) @die(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
br label %28
28: ; preds = %26, %22
%29 = load i32, i32* %4
%30 = call i64 @WEXITSTATUS(i32 %29)
%31 = load i64, i64* @EXIT_SUCCESS
%32 = icmp eq i64 %30, %31
%33 = zext i1 %32 to i32
ret i32 %33
34: ; preds = %3
%35 = tail call i32 (...) @create_and_enter_userns()
%36 = tail call i64 @unshare(i32 131072)
%37 = icmp eq i64 %36, 0
br i1 %37, label %42, label %38
38: ; preds = %34
%39 = load i32, i32* @errno
%40 = tail call i32 @strerror(i32 %39)
%41 = tail call i32 (i8*, ...) @die(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %40)
br label %42
42: ; preds = %38, %34
%43 = tail call i64 @mount(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %0, i32* null)
%44 = icmp eq i64 %43, 0
br i1 %44, label %49, label %45
45: ; preds = %42
%46 = load i32, i32* @errno
%47 = tail call i32 @strerror(i32 %46)
%48 = tail call i32 (i8*, ...) @die(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i32 %47)
br label %49
49: ; preds = %45, %42
%50 = tail call i32 (...) @create_and_enter_userns()
%51 = tail call i64 @unshare(i32 131072)
%52 = icmp eq i64 %51, 0
br i1 %52, label %57, label %53
53: ; preds = %49
%54 = load i32, i32* @errno
%55 = tail call i32 @strerror(i32 %54)
%56 = tail call i32 (i8*, ...) @die(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %55)
br label %57
57: ; preds = %53, %49
%58 = load i32, i32* @MS_REMOUNT
%59 = load i32, i32* @MS_BIND
%60 = or i32 %58, %1
%61 = or i32 %60, %59
%62 = tail call i64 @mount(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %61, i32* null)
%63 = icmp eq i64 %62, 0
br i1 %63, label %68, label %64
64: ; preds = %57
%65 = load i32, i32* @errno
%66 = tail call i32 @strerror(i32 %65)
%67 = tail call i32 (i8*, ...) @die(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i32 %66)
br label %68
68: ; preds = %64, %57
%69 = load i32, i32* @MS_REMOUNT
%70 = load i32, i32* @MS_BIND
%71 = or i32 %69, %2
%72 = or i32 %71, %70
%73 = tail call i64 @mount(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %72, i32* null)
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %77
75: ; preds = %68
%76 = tail call i32 (i8*, ...) @die(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.11, i64 0, i64 0))
br label %77
77: ; preds = %75, %68
%78 = load i64, i64* @EXIT_SUCCESS
%79 = tail call i32 @exit(i64 %78)
unreachable
}