#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();
int mount(char const *, char const *, char *, int, int /*<<< orphan*/ *);
int read_mnt_flags(char const *);
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
int unshare(int);
int waitpid(int, int *, int /*<<< orphan*/);
bool test_priv_mount_unpriv_remount(void) {
  pid_t child;
  int ret;
  const char *orig_path = "/dev";
  const char *dest_path = "/tmp";
  int orig_mnt_flags, remount_mnt_flags;
  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;
  }
  orig_mnt_flags = read_mnt_flags(orig_path);
  create_and_enter_userns();
  ret = unshare(0x00020000);
  if (ret != 0) {
    die("unshare(CLONE_NEWNS) failed: %s\n", strerror(errno));
  }
  ret = mount(orig_path, dest_path, "bind", MS_BIND | 16384, NULL);
  if (ret != 0) {
    die("recursive bind mount of %s onto %s failed: %s\n", orig_path, dest_path,
        strerror(errno));
  }
  ret = mount(dest_path, dest_path, "none",
              MS_REMOUNT | MS_BIND | orig_mnt_flags, NULL);
  if (ret != 0) {
    die("remount of /tmp failed: %s\n", strerror(errno));
  }
  remount_mnt_flags = read_mnt_flags(dest_path);
  if (orig_mnt_flags != remount_mnt_flags) {
    die("Mount flags unexpectedly changed during remount of %s originally "
        "mounted on %s\n",
        dest_path, orig_path);
  }
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<test_priv_mount_unpriv_remount>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    0xe41(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xe3b(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   10d0 <fork@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0xffffffff,-0x4(%rbp)
jne    1200 <test_priv_mount_unpriv_remount+0x50>
mov    0x2def(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    %eax,%esi
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1090 <die@plt>
cmpl   $0x0,-0x4(%rbp)
je     12aa <test_priv_mount_unpriv_remount+0xfa>
mov    -0x4(%rbp),%edi
lea    -0x28(%rbp),%rsi
xor    %edx,%edx
call   1070 <waitpid@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0xffffffff,-0x24(%rbp)
jne    1243 <test_priv_mount_unpriv_remount+0x93>
mov    0x2dac(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    %eax,%esi
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1090 <die@plt>
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
je     1263 <test_priv_mount_unpriv_remount+0xb3>
mov    -0x4(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1090 <die@plt>
mov    -0x28(%rbp),%edi
call   10a0 <WIFEXITED@plt>
cmp    $0x0,%eax
jne    1282 <test_priv_mount_unpriv_remount+0xd2>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1090 <die@plt>
mov    -0x28(%rbp),%edi
call   1060 <WEXITSTATUS@plt>
mov    %rax,%rdx
mov    0x2d3c(%rip),%rax
mov    (%rax),%rsi
xor    %eax,%eax
mov    $0x1,%ecx
cmp    %rsi,%rdx
cmove  %ecx,%eax
add    $0x40,%rsp
pop    %rbp
ret
mov    -0x10(%rbp),%rdi
call   1050 <read_mnt_flags@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1080 <create_and_enter_userns@plt>
mov    $0x20000,%edi
call   1030 <unshare@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     12f2 <test_priv_mount_unpriv_remount+0x142>
mov    0x2cfd(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    %eax,%esi
lea    0xd7b(%rip),%rdi
mov    $0x0,%al
call   1090 <die@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    0x2ce7(%rip),%rax
mov    (%rax),%ecx
or     $0x4000,%ecx
lea    0xd77(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
call   1040 <mount@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     135d <test_priv_mount_unpriv_remount+0x1ad>
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    0x2c9a(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x38(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    %eax,%ecx
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1090 <die@plt>
mov    -0x18(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    0x2c5c(%rip),%rax
mov    (%rax),%ecx
mov    0x2c73(%rip),%rax
or     (%rax),%ecx
or     -0x1c(%rbp),%ecx
lea    0xd3a(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
call   1040 <mount@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     13b6 <test_priv_mount_unpriv_remount+0x206>
mov    0x2c39(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    %eax,%esi
lea    0xd11(%rip),%rdi
mov    $0x0,%al
call   1090 <die@plt>
mov    -0x18(%rbp),%rdi
call   1050 <read_mnt_flags@plt>
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     13e4 <test_priv_mount_unpriv_remount+0x234>
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1090 <die@plt>
mov    0x2be5(%rip),%rax
mov    (%rax),%rdi
call   10b0 <exit@plt>

x86 assembly (clang, -O2):
<test_priv_mount_unpriv_remount>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   10d0 <fork@plt>
mov    %eax,%ebx
cmp    $0xffffffff,%eax
je     12ee <test_priv_mount_unpriv_remount+0x13e>
test   %ebx,%ebx
jne    130c <test_priv_mount_unpriv_remount+0x15c>
lea    0xe2c(%rip),%rdi
call   1050 <read_mnt_flags@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1080 <create_and_enter_userns@plt>
mov    $0x20000,%edi
call   1030 <unshare@plt>
test   %eax,%eax
je     120e <test_priv_mount_unpriv_remount+0x5e>
mov    0x2de1(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1090 <die@plt>
mov    0x2dd3(%rip),%rbp
mov    $0x4000,%ecx
or     0x0(%rbp),%ecx
lea    0xddc(%rip),%rdi
lea    0xdda(%rip),%rsi
lea    0xe55(%rip),%rdx
xor    %r8d,%r8d
call   1040 <mount@plt>
test   %eax,%eax
je     126a <test_priv_mount_unpriv_remount+0xba>
mov    0x2d93(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xe39(%rip),%rdi
lea    0xda6(%rip),%rsi
lea    0xda4(%rip),%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1090 <die@plt>
mov    0x2d57(%rip),%rax
mov    (%rax),%ecx
or     %ebx,%ecx
or     0x0(%rbp),%ecx
lea    0xd86(%rip),%rdi
lea    0xe35(%rip),%rdx
mov    %rdi,%rsi
xor    %r8d,%r8d
call   1040 <mount@plt>
test   %eax,%eax
je     12b3 <test_priv_mount_unpriv_remount+0x103>
mov    0x2d3c(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xe16(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1090 <die@plt>
lea    0xd4b(%rip),%rdi
call   1050 <read_mnt_flags@plt>
cmp    %eax,%ebx
je     12df <test_priv_mount_unpriv_remount+0x12f>
lea    0xe12(%rip),%rdi
lea    0xd34(%rip),%rsi
lea    0xd28(%rip),%rdx
xor    %eax,%eax
call   1090 <die@plt>
mov    0x2cea(%rip),%rax
mov    (%rax),%rdi
call   10b0 <exit@plt>
mov    0x2ce3(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xd07(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1090 <die@plt>
lea    0x4(%rsp),%rsi
mov    %ebx,%edi
xor    %edx,%edx
call   1070 <waitpid@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
je     1373 <test_priv_mount_unpriv_remount+0x1c3>
cmp    %ebx,%ebp
je     1337 <test_priv_mount_unpriv_remount+0x187>
lea    0xd03(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1090 <die@plt>
mov    0x4(%rsp),%edi
call   10a0 <WIFEXITED@plt>
test   %eax,%eax
jne    1352 <test_priv_mount_unpriv_remount+0x1a2>
lea    0xcfa(%rip),%rdi
xor    %eax,%eax
call   1090 <die@plt>
mov    0x4(%rsp),%edi
call   1060 <WEXITSTATUS@plt>
mov    0x2c6e(%rip),%rdx
xor    %ecx,%ecx
cmp    (%rdx),%rax
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    0x2c5e(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xc93(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1090 <die@plt>
cmp    %ebx,%ebp
jne    1325 <test_priv_mount_unpriv_remount+0x175>
jmp    1337 <test_priv_mount_unpriv_remount+0x187>

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

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