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

/* Variables and functions */
scalar_t__ EEXIST;
scalar_t__ ENOENT;
int ENOTSUP;
int /*<<< orphan*/ MS_BIND;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ close(int);
scalar_t__ creat(char *, int);
int /*<<< orphan*/ criu_get_image_dir();
scalar_t__ errno;
char *getenv(char *);
scalar_t__ mount(char *, char *, int /*<<< orphan*/ *, int /*<<< orphan*/,
                 int /*<<< orphan*/ *);
int openat(int /*<<< orphan*/, char *, int /*<<< orphan*/);
int /*<<< orphan*/ print_on_level(int, char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int /*<<< orphan*/ strerror(scalar_t__);
int cr_plugin_restore_ext_mount(int id, char *mountpoint, char *old_root,
                                int *is_file) {
  int fd;
  char img[64], src[256], *src_file;
  print_on_level((3), "Restoring my mount %d?\n", id);
  sprintf(img, "ext-mount-test-%d.img", id);
  fd = openat(criu_get_image_dir(), img, O_RDONLY);
  if (fd < 0) {
    if (errno == ENOENT)
      return -ENOTSUP;
    print_on_level((1),
                   "Error (%s:%d): "
                   "Can't open my image"
                   ": %s\n",
                   "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                   "outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/"
                   "refs/heads/master/test/mounts/ext/ext-mount.c",
                   72, strerror(errno));
    return -1;
  }
  close(fd);
  src_file = getenv("EMP_ROOT_P");
  if (!src_file) {
    print_on_level((1),
                   "Error (%s:%d): "
                   "Can't get EMP_ROOT_P env\n",
                   "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                   "outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/"
                   "refs/heads/master/test/mounts/ext/ext-mount.c",
                   79);
    return -1;
  }
  if (creat(mountpoint, 0600) < 0) {
    if (errno != EEXIST) {
      print_on_level((1),
                     "Error (%s:%d): "
                     "Can't make mountpoint"
                     ": %s\n",
                     "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                     "outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/"
                     "criu/refs/heads/master/test/mounts/ext/ext-mount.c",
                     85, strerror(errno));
      return -1;
    }
  }
  if (is_file)
    *is_file = 1;
  sprintf(src, "/%s/%s", old_root, src_file);
  print_on_level((3), "Mount %s -> %s\n", src, mountpoint);
  if (mount(src, mountpoint, NULL, MS_BIND, NULL) < 0) {
    print_on_level((1),
                   "Error (%s:%d): "
                   "Can't bind mount"
                   ": %s\n",
                   "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                   "outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/"
                   "refs/heads/master/test/mounts/ext/ext-mount.c",
                   96, strerror(errno));
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<cr_plugin_restore_ext_mount>:
push   %rbp
mov    %rsp,%rbp
sub    $0x180,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%edx
mov    $0x3,%edi
lea    0xe47(%rip),%rsi
mov    $0x0,%al
call   10b0 <print_on_level@plt>
lea    -0x70(%rbp),%rdi
mov    -0x8(%rbp),%edx
lea    0xe4a(%rip),%rsi
mov    $0x0,%al
call   1090 <sprintf@plt>
mov    $0x0,%al
call   1070 <criu_get_image_dir@plt>
mov    %eax,%edi
lea    -0x70(%rbp),%rsi
mov    0x2dff(%rip),%rax
mov    (%rax),%edx
call   1050 <openat@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    1267 <cr_plugin_restore_ext_mount+0xd7>
mov    0x2dbc(%rip),%rax
mov    (%rax),%rax
mov    0x2da2(%rip),%rcx
cmp    (%rcx),%rax
jne    122a <cr_plugin_restore_ext_mount+0x9a>
xor    %eax,%eax
mov    0x2db8(%rip),%rcx
sub    (%rcx),%eax
mov    %eax,-0x4(%rbp)
jmp    13f1 <cr_plugin_restore_ext_mount+0x261>
mov    0x2d8f(%rip),%rax
mov    (%rax),%rdi
call   10a0 <strerror@plt>
mov    %eax,%r8d
mov    $0x1,%edi
lea    0xde6(%rip),%rsi
lea    0xe07(%rip),%rdx
mov    $0x48,%ecx
mov    $0x0,%al
call   10b0 <print_on_level@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f1 <cr_plugin_restore_ext_mount+0x261>
mov    -0x24(%rbp),%edi
call   1060 <close@plt>
lea    0xe80(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x178(%rbp)
cmpq   $0x0,-0x178(%rbp)
jne    12bb <cr_plugin_restore_ext_mount+0x12b>
mov    $0x1,%edi
lea    0xe65(%rip),%rsi
lea    0xdb3(%rip),%rdx
mov    $0x4f,%ecx
mov    $0x0,%al
call   10b0 <print_on_level@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f1 <cr_plugin_restore_ext_mount+0x261>
mov    -0x10(%rbp),%rdi
mov    $0x180,%esi
call   1080 <creat@plt>
cmp    $0x0,%rax
jge    132f <cr_plugin_restore_ext_mount+0x19f>
mov    0x2ce6(%rip),%rax
mov    (%rax),%rax
mov    0x2ce4(%rip),%rcx
cmp    (%rcx),%rax
je     132a <cr_plugin_restore_ext_mount+0x19a>
mov    0x2ccc(%rip),%rax
mov    (%rax),%rdi
call   10a0 <strerror@plt>
mov    %eax,%r8d
mov    $0x1,%edi
lea    0xe1f(%rip),%rsi
lea    0xd44(%rip),%rdx
mov    $0x55,%ecx
mov    $0x0,%al
call   10b0 <print_on_level@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f1 <cr_plugin_restore_ext_mount+0x261>
jmp    132f <cr_plugin_restore_ext_mount+0x19f>
cmpq   $0x0,-0x20(%rbp)
je     1344 <cr_plugin_restore_ext_mount+0x1b4>
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
lea    -0x170(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x178(%rbp),%rcx
lea    0xdf7(%rip),%rsi
mov    $0x0,%al
call   1090 <sprintf@plt>
lea    -0x170(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    $0x3,%edi
lea    0xde0(%rip),%rsi
mov    $0x0,%al
call   10b0 <print_on_level@plt>
lea    -0x170(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    0x2c4c(%rip),%rax
mov    (%rax),%ecx
xor    %eax,%eax
mov    %eax,%r8d
mov    %r8,%rdx
call   1040 <mount@plt>
cmp    $0x0,%rax
jge    13ea <cr_plugin_restore_ext_mount+0x25a>
mov    0x2c0c(%rip),%rax
mov    (%rax),%rdi
call   10a0 <strerror@plt>
mov    %eax,%r8d
mov    $0x1,%edi
lea    0xda0(%rip),%rsi
lea    0xc84(%rip),%rdx
mov    $0x60,%ecx
mov    $0x0,%al
call   10b0 <print_on_level@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f1 <cr_plugin_restore_ext_mount+0x261>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x180,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cr_plugin_restore_ext_mount>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x140,%rsp
mov    %rcx,%r15
mov    %rdx,%r14
mov    %rsi,%r12
mov    %edi,%ebx
lea    0xe4e(%rip),%rsi
mov    $0x3,%edi
mov    %ebx,%edx
xor    %eax,%eax
call   10b0 <print_on_level@plt>
lea    0xe51(%rip),%rsi
mov    %rsp,%r13
mov    %r13,%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1090 <sprintf@plt>
xor    %eax,%eax
call   1070 <criu_get_image_dir@plt>
mov    0x2e04(%rip),%rcx
mov    (%rcx),%edx
mov    %eax,%edi
mov    %r13,%rsi
call   1050 <openat@plt>
test   %eax,%eax
js     12d4 <cr_plugin_restore_ext_mount+0x144>
mov    %eax,%edi
call   1060 <close@plt>
lea    0xef0(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     12f7 <cr_plugin_restore_ext_mount+0x167>
mov    %rax,%r13
mov    %r12,%rdi
mov    $0x180,%esi
call   1080 <creat@plt>
test   %rax,%rax
jns    1243 <cr_plugin_restore_ext_mount+0xb3>
mov    0x2d90(%rip),%rax
mov    (%rax),%rdi
mov    0x2d8e(%rip),%rax
cmp    (%rax),%rdi
jne    1337 <cr_plugin_restore_ext_mount+0x1a7>
test   %r15,%r15
je     124f <cr_plugin_restore_ext_mount+0xbf>
movl   $0x1,(%r15)
lea    0xefe(%rip),%rsi
xor    %ebx,%ebx
lea    0x40(%rsp),%r15
mov    %r15,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   1090 <sprintf@plt>
lea    0xee7(%rip),%rsi
mov    $0x3,%edi
mov    %r15,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   10b0 <print_on_level@plt>
mov    0x2d53(%rip),%rax
mov    (%rax),%ecx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %edx,%edx
xor    %r8d,%r8d
call   1040 <mount@plt>
test   %rax,%rax
jns    1363 <cr_plugin_restore_ext_mount+0x1d3>
mov    0x2d11(%rip),%rax
mov    (%rax),%rdi
call   10a0 <strerror@plt>
lea    0xead(%rip),%rsi
lea    0xd91(%rip),%rdx
mov    $0x1,%edi
mov    $0x60,%ecx
jmp    1354 <cr_plugin_restore_ext_mount+0x1c4>
mov    0x2ce5(%rip),%rax
mov    (%rax),%rdi
mov    0x2ccb(%rip),%rax
cmp    (%rax),%rdi
jne    1318 <cr_plugin_restore_ext_mount+0x188>
mov    0x2ce7(%rip),%rax
xor    %ebx,%ebx
sub    (%rax),%ebx
jmp    1363 <cr_plugin_restore_ext_mount+0x1d3>
lea    0xe03(%rip),%rsi
lea    0xd51(%rip),%rdx
mov    $0x1,%edi
mov    $0x4f,%ecx
xor    %eax,%eax
call   10b0 <print_on_level@plt>
jmp    135e <cr_plugin_restore_ext_mount+0x1ce>
call   10a0 <strerror@plt>
lea    0xd0a(%rip),%rsi
lea    0xd2b(%rip),%rdx
mov    $0x1,%edi
mov    $0x48,%ecx
jmp    1354 <cr_plugin_restore_ext_mount+0x1c4>
call   10a0 <strerror@plt>
lea    0xde7(%rip),%rsi
lea    0xd0c(%rip),%rdx
mov    $0x1,%edi
mov    $0x55,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   10b0 <print_on_level@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
add    $0x140,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Restoring my mount %d?\0A\00"
@.str.1 = [22 x i8] c"ext-mount-test-%d.img\00"
@O_RDONLY = global i32 0
@errno = global i64 0
@ENOENT = global i64 0
@ENOTSUP = global i32 0
@.str.2 = [40 x i8] c"Error (%s:%d): Can't open my image: %s\0A\00"
@.str.3 = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/refs/heads/master/test/mounts/ext/ext-mount.c\00"
@.str.4 = [11 x i8] c"EMP_ROOT_P\00"
@.str.5 = [41 x i8] c"Error (%s:%d): Can't get EMP_ROOT_P env\0A\00"
@EEXIST = global i64 0
@.str.6 = [42 x i8] c"Error (%s:%d): Can't make mountpoint: %s\0A\00"
@.str.7 = [7 x i8] c"/%s/%s\00"
@.str.8 = [16 x i8] c"Mount %s -> %s\0A\00"
@MS_BIND = global i32 0
@.str.9 = [37 x i8] c"Error (%s:%d): Can't bind mount: %s\0A\00"
define i32 @cr_plugin_restore_ext_mount(i32 %0, i8* %1, i8* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca [64 x i8]
%12 = alloca [256 x i8]
%13 = alloca i8*
store i32 %0, i32* %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i32* %3, i32** %9
%14 = load i32, i32* %6
%15 = call i32 (i32, i8*, ...) @print_on_level(i32 3, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %14)
%16 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%17 = load i32, i32* %6
%18 = call i32 (i8*, i8*, ...) @sprintf(i8* %16, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %17)
%19 = call i32 (...) @criu_get_image_dir()
%20 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%21 = load i32, i32* @O_RDONLY
%22 = call i32 @openat(i32 %19, i8* %20, i32 %21)
store i32 %22, i32* %10
%23 = load i32, i32* %10
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %36
25: ; preds = %4
%26 = load i64, i64* @errno
%27 = load i64, i64* @ENOENT
%28 = icmp eq i64 %26, %27
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = load i32, i32* @ENOTSUP
%31 = sub nsw i32 0, %30
store i32 %31, i32* %5
br label %80
32: ; preds = %25
%33 = load i64, i64* @errno
%34 = call i32 @strerror(i64 %33)
%35 = call i32 (i32, i8*, ...) @print_on_level(i32 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str.3, i64 0, i64 0), i32 72, i32 %34)
store i32 -1, i32* %5
br label %80
36: ; preds = %4
%37 = load i32, i32* %10
%38 = call i32 @close(i32 %37)
%39 = call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
store i8* %39, i8** %13
%40 = load i8*, i8** %13
%41 = icmp ne i8* %40, null
br i1 %41, label %44, label %42
42: ; preds = %36
%43 = call i32 (i32, i8*, ...) @print_on_level(i32 1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str.3, i64 0, i64 0), i32 79)
store i32 -1, i32* %5
br label %80
44: ; preds = %36
%45 = load i8*, i8** %7
%46 = call i64 @creat(i8* %45, i32 384)
%47 = icmp slt i64 %46, 0
br i1 %47, label %48, label %57
48: ; preds = %44
%49 = load i64, i64* @errno
%50 = load i64, i64* @EEXIST
%51 = icmp ne i64 %49, %50
br i1 %51, label %52, label %56
52: ; preds = %48
%53 = load i64, i64* @errno
%54 = call i32 @strerror(i64 %53)
%55 = call i32 (i32, i8*, ...) @print_on_level(i32 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str.3, i64 0, i64 0), i32 85, i32 %54)
store i32 -1, i32* %5
br label %80
56: ; preds = %48
br label %57
57: ; preds = %56, %44
%58 = load i32*, i32** %9
%59 = icmp ne i32* %58, null
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = load i32*, i32** %9
store i32 1, i32* %61
br label %62
62: ; preds = %60, %57
%63 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%64 = load i8*, i8** %8
%65 = load i8*, i8** %13
%66 = call i32 (i8*, i8*, ...) @sprintf(i8* %63, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* %64, i8* %65)
%67 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%68 = load i8*, i8** %7
%69 = call i32 (i32, i8*, ...) @print_on_level(i32 3, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8* %67, i8* %68)
%70 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%71 = load i8*, i8** %7
%72 = load i32, i32* @MS_BIND
%73 = call i64 @mount(i8* %70, i8* %71, i32* null, i32 %72, i32* null)
%74 = icmp slt i64 %73, 0
br i1 %74, label %75, label %79
75: ; preds = %62
%76 = load i64, i64* @errno
%77 = call i32 @strerror(i64 %76)
%78 = call i32 (i32, i8*, ...) @print_on_level(i32 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str.3, i64 0, i64 0), i32 96, i32 %77)
store i32 -1, i32* %5
br label %80
79: ; preds = %62
store i32 0, i32* %5
br label %80
80: ; preds = %79, %75, %52, %42, %32, %29
%81 = load i32, i32* %5
ret i32 %81
}

LLVM IR (-O2):
@.str = [24 x i8] c"Restoring my mount %d?\0A\00"
@.str.1 = [22 x i8] c"ext-mount-test-%d.img\00"
@O_RDONLY = global i32 0
@errno = global i64 0
@ENOENT = global i64 0
@ENOTSUP = global i32 0
@.str.2 = [40 x i8] c"Error (%s:%d): Can't open my image: %s\0A\00"
@.str.3 = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/refs/heads/master/test/mounts/ext/ext-mount.c\00"
@.str.4 = [11 x i8] c"EMP_ROOT_P\00"
@.str.5 = [41 x i8] c"Error (%s:%d): Can't get EMP_ROOT_P env\0A\00"
@EEXIST = global i64 0
@.str.6 = [42 x i8] c"Error (%s:%d): Can't make mountpoint: %s\0A\00"
@.str.7 = [7 x i8] c"/%s/%s\00"
@.str.8 = [16 x i8] c"Mount %s -> %s\0A\00"
@MS_BIND = global i32 0
@.str.9 = [37 x i8] c"Error (%s:%d): Can't bind mount: %s\0A\00"
define i32 @cr_plugin_restore_ext_mount(i32 %0, i8* %1, i8* %2, i32* writeonly %3) {
%5 = alloca [64 x i8]
%6 = alloca [256 x i8]
%7 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%9 = tail call i32 (i32, i8*, ...) @print_on_level(i32 3, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %0)
%10 = call i32 (i8*, i8*, ...) @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %0)
%11 = tail call i32 (...) @criu_get_image_dir()
%12 = load i32, i32* @O_RDONLY
%13 = call i32 @openat(i32 %11, i8* %7, i32 %12)
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %25
15: ; preds = %4
%16 = load i64, i64* @errno
%17 = load i64, i64* @ENOENT
%18 = icmp eq i64 %16, %17
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, i32* @ENOTSUP
%21 = sub nsw i32 0, %20
br label %54
22: ; preds = %15
%23 = call i32 @strerror(i64 %16)
%24 = call i32 (i32, i8*, ...) @print_on_level(i32 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str.3, i64 0, i64 0), i32 72, i32 %23)
br label %54
25: ; preds = %4
%26 = call i32 @close(i32 %13)
%27 = call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%28 = icmp eq i8* %27, null
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = call i32 (i32, i8*, ...) @print_on_level(i32 1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str.3, i64 0, i64 0), i32 79)
br label %54
31: ; preds = %25
%32 = call i64 @creat(i8* %1, i32 384)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %41
34: ; preds = %31
%35 = load i64, i64* @errno
%36 = load i64, i64* @EEXIST
%37 = icmp eq i64 %35, %36
br i1 %37, label %41, label %38
38: ; preds = %34
%39 = call i32 @strerror(i64 %35)
%40 = call i32 (i32, i8*, ...) @print_on_level(i32 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str.3, i64 0, i64 0), i32 85, i32 %39)
br label %54
41: ; preds = %34, %31
%42 = icmp eq i32* %3, null
br i1 %42, label %44, label %43
43: ; preds = %41
store i32 1, i32* %3
br label %44
44: ; preds = %43, %41
%45 = call i32 (i8*, i8*, ...) @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* %2, i8* %27)
%46 = call i32 (i32, i8*, ...) @print_on_level(i32 3, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8* %8, i8* %1)
%47 = load i32, i32* @MS_BIND
%48 = call i64 @mount(i8* %8, i8* %1, i32* null, i32 %47, i32* null)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %44
%51 = load i64, i64* @errno
%52 = call i32 @strerror(i64 %51)
%53 = call i32 (i32, i8*, ...) @print_on_level(i32 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str.3, i64 0, i64 0), i32 96, i32 %52)
br label %54
54: ; preds = %44, %50, %38, %29, %22, %19
%55 = phi i32 [ %21, %19 ], [ -1, %22 ], [ -1, %38 ], [ -1, %50 ], [ -1, %29 ], [ 0, %44 ]
ret i32 %55
}