#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 */
int /*<<< orphan*/ MS_RELATIME;
int S_IFBLK;
int S_IRGRP;
int S_IROTH;
int S_IRUSR;
int S_IRWXU;
int S_IWUSR;
int S_IXGRP;
int S_IXOTH;
int /*<<< orphan*/ kattach_thedawn_devlist_build(char *, int, int, int);
int mkdir(char *, int);
int mount(char *, char *, char *, int /*<<< orphan*/, char *);
int /*<<< orphan*/ sprintf(char *, char *, ...);
void kattach_init_vkaos(void) {
  int x = 0, ret = 0;
  char ctmp[32];
  kattach_thedawn_devlist_build(
      "/dev/vda", 253, 0, (S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH));
  for (x = 1; x <= 15; x++) {
    sprintf(ctmp, "/dev/vda%d", x);
    kattach_thedawn_devlist_build(
        ctmp, 253, x, (S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH));
  }
  kattach_thedawn_devlist_build(
      "/dev/vdb", 253, 16, (S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH));
  for (x = 17; x <= 31; x++) {
    sprintf(ctmp, "/dev/vdb%d", (x - 16));
    kattach_thedawn_devlist_build(
        ctmp, 253, x, (S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH));
  }
  kattach_thedawn_devlist_build(
      "/dev/vdc", 253, 32, (S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH));
  for (x = 33; x <= 47; x++) {
    sprintf(ctmp, "/dev/vdc%d", (x - 32));
    kattach_thedawn_devlist_build(
        ctmp, 253, x, (S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH));
  }
  ret = mkdir("/kaos/apps", (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH));
  sprintf(ctmp, "/dev/%s", "vda");
  ret =
      mount(ctmp, "/kaos/apps", "ext4", MS_RELATIME, "barrier=1,data=ordered");
  return;
}


x86 assembly (clang, -O0):
<kattach_init_vkaos>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    0x2e63(%rip),%rax
mov    (%rax),%ecx
mov    0x2e3a(%rip),%rax
or     (%rax),%ecx
mov    0x2e69(%rip),%rax
or     (%rax),%ecx
mov    0x2e38(%rip),%rax
or     (%rax),%ecx
mov    0x2e27(%rip),%rax
or     (%rax),%ecx
lea    0xe76(%rip),%rdi
mov    $0xfd,%esi
xor    %edx,%edx
call   1050 <kattach_thedawn_devlist_build@plt>
movl   $0x1,-0x4(%rbp)
cmpl   $0xf,-0x4(%rbp)
jg     1208 <kattach_init_vkaos+0xc8>
lea    -0x30(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xe54(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x4(%rbp),%edx
mov    0x2df6(%rip),%rax
mov    (%rax),%ecx
mov    0x2dcd(%rip),%rax
or     (%rax),%ecx
mov    0x2dfc(%rip),%rax
or     (%rax),%ecx
mov    0x2dcb(%rip),%rax
or     (%rax),%ecx
mov    0x2dba(%rip),%rax
or     (%rax),%ecx
mov    $0xfd,%esi
call   1050 <kattach_thedawn_devlist_build@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    119d <kattach_init_vkaos+0x5d>
mov    0x2db1(%rip),%rax
mov    (%rax),%ecx
mov    0x2d88(%rip),%rax
or     (%rax),%ecx
mov    0x2db7(%rip),%rax
or     (%rax),%ecx
mov    0x2d86(%rip),%rax
or     (%rax),%ecx
mov    0x2d75(%rip),%rax
or     (%rax),%ecx
lea    0xdd8(%rip),%rdi
mov    $0xfd,%esi
mov    $0x10,%edx
call   1050 <kattach_thedawn_devlist_build@plt>
movl   $0x11,-0x4(%rbp)
cmpl   $0x1f,-0x4(%rbp)
jg     12c0 <kattach_init_vkaos+0x180>
lea    -0x30(%rbp),%rdi
mov    -0x4(%rbp),%edx
sub    $0x10,%edx
lea    0xdb0(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x4(%rbp),%edx
mov    0x2d3e(%rip),%rax
mov    (%rax),%ecx
mov    0x2d15(%rip),%rax
or     (%rax),%ecx
mov    0x2d44(%rip),%rax
or     (%rax),%ecx
mov    0x2d13(%rip),%rax
or     (%rax),%ecx
mov    0x2d02(%rip),%rax
or     (%rax),%ecx
mov    $0xfd,%esi
call   1050 <kattach_thedawn_devlist_build@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1252 <kattach_init_vkaos+0x112>
mov    0x2cf9(%rip),%rax
mov    (%rax),%ecx
mov    0x2cd0(%rip),%rax
or     (%rax),%ecx
mov    0x2cff(%rip),%rax
or     (%rax),%ecx
mov    0x2cce(%rip),%rax
or     (%rax),%ecx
mov    0x2cbd(%rip),%rax
or     (%rax),%ecx
lea    0xd34(%rip),%rdi
mov    $0xfd,%esi
mov    $0x20,%edx
call   1050 <kattach_thedawn_devlist_build@plt>
movl   $0x21,-0x4(%rbp)
cmpl   $0x2f,-0x4(%rbp)
jg     1378 <kattach_init_vkaos+0x238>
lea    -0x30(%rbp),%rdi
mov    -0x4(%rbp),%edx
sub    $0x20,%edx
lea    0xd0c(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x4(%rbp),%edx
mov    0x2c86(%rip),%rax
mov    (%rax),%ecx
mov    0x2c5d(%rip),%rax
or     (%rax),%ecx
mov    0x2c8c(%rip),%rax
or     (%rax),%ecx
mov    0x2c5b(%rip),%rax
or     (%rax),%ecx
mov    0x2c4a(%rip),%rax
or     (%rax),%ecx
mov    $0xfd,%esi
call   1050 <kattach_thedawn_devlist_build@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    130a <kattach_init_vkaos+0x1ca>
mov    0x2c69(%rip),%rax
mov    (%rax),%esi
mov    0x2c28(%rip),%rax
or     (%rax),%esi
mov    0x2c3f(%rip),%rax
or     (%rax),%esi
mov    0x2c0e(%rip),%rax
or     (%rax),%esi
mov    0x2c3d(%rip),%rax
or     (%rax),%esi
lea    0xc90(%rip),%rdi
call   1030 <mkdir@plt>
mov    %eax,-0x8(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xc88(%rip),%rsi
lea    0xc3f(%rip),%rdx
mov    $0x0,%al
call   1060 <sprintf@plt>
lea    -0x30(%rbp),%rdi
mov    0x2be0(%rip),%rax
mov    (%rax),%ecx
lea    0xc5b(%rip),%rsi
lea    0xc67(%rip),%rdx
lea    0xc65(%rip),%r8
call   1040 <mount@plt>
mov    %eax,-0x8(%rbp)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kattach_init_vkaos>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    0x2e6b(%rip),%rbp
mov    0x2e44(%rip),%rax
mov    (%rax),%ecx
or     0x0(%rbp),%ecx
mov    0x2e70(%rip),%r13
or     0x0(%r13),%ecx
mov    0x2e3d(%rip),%r12
or     (%r12),%ecx
mov    0x2e2a(%rip),%rax
or     (%rax),%ecx
lea    0xe79(%rip),%rdi
mov    $0xfd,%esi
xor    %edx,%edx
call   1050 <kattach_thedawn_devlist_build@plt>
mov    $0x1,%ebx
lea    0xe6a(%rip),%r14
mov    %rsp,%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1060 <sprintf@plt>
mov    0x2dda(%rip),%rax
mov    (%rax),%ecx
or     0x0(%rbp),%ecx
or     0x0(%r13),%ecx
or     (%r12),%ecx
mov    0x2dce(%rip),%rax
or     (%rax),%ecx
mov    %r15,%rdi
mov    $0xfd,%esi
mov    %ebx,%edx
call   1050 <kattach_thedawn_devlist_build@plt>
add    $0x1,%ebx
cmp    $0x10,%ebx
jne    11b0 <kattach_init_vkaos+0x70>
mov    0x2da6(%rip),%rax
mov    (%rax),%ecx
or     0x0(%rbp),%ecx
or     0x0(%r13),%ecx
or     (%r12),%ecx
mov    0x2d9a(%rip),%rax
or     (%rax),%ecx
lea    0xdfd(%rip),%rdi
mov    $0xfd,%esi
mov    $0x10,%edx
call   1050 <kattach_thedawn_devlist_build@plt>
mov    $0x1,%ebx
lea    0xdeb(%rip),%r14
mov    %rsp,%r15
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x10(%rbx),%ebp
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1060 <sprintf@plt>
mov    0x2d47(%rip),%rax
mov    (%rax),%ecx
mov    0x2d5e(%rip),%rax
or     (%rax),%ecx
or     0x0(%r13),%ecx
or     (%r12),%ecx
mov    0x2d35(%rip),%rax
or     (%rax),%ecx
mov    %r15,%rdi
mov    $0xfd,%esi
mov    %ebp,%edx
call   1050 <kattach_thedawn_devlist_build@plt>
add    $0x1,%ebx
cmp    $0x10,%ebx
jne    1240 <kattach_init_vkaos+0x100>
mov    0x2d0d(%rip),%rax
mov    (%rax),%ecx
mov    0x2d24(%rip),%rbp
or     0x0(%rbp),%ecx
or     0x0(%r13),%ecx
or     (%r12),%ecx
mov    0x2cfa(%rip),%rax
or     (%rax),%ecx
lea    0xd71(%rip),%rdi
mov    $0xfd,%esi
mov    $0x20,%edx
call   1050 <kattach_thedawn_devlist_build@plt>
mov    $0x21,%ebx
lea    0xd5f(%rip),%r14
mov    %rsp,%r15
cs nopw 0x0(%rax,%rax,1)
nop
lea    -0x20(%rbx),%edx
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <sprintf@plt>
mov    0x2ca9(%rip),%rax
mov    (%rax),%ecx
or     0x0(%rbp),%ecx
or     0x0(%r13),%ecx
or     (%r12),%ecx
mov    0x2c9d(%rip),%rax
or     (%rax),%ecx
mov    %r15,%rdi
mov    $0xfd,%esi
mov    %ebx,%edx
call   1050 <kattach_thedawn_devlist_build@plt>
add    $0x1,%ebx
cmp    $0x30,%ebx
jne    12e0 <kattach_init_vkaos+0x1a0>
mov    0x2cbd(%rip),%rax
mov    (%r12),%esi
or     (%rax),%esi
mov    0x2c98(%rip),%rax
or     (%rax),%esi
mov    0x2c67(%rip),%rax
or     (%rax),%esi
mov    0x2c96(%rip),%rax
or     (%rax),%esi
lea    0xce9(%rip),%rbx
mov    %rbx,%rdi
call   1030 <mkdir@plt>
lea    0xce5(%rip),%rsi
lea    0xc9c(%rip),%rdx
mov    %rsp,%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <sprintf@plt>
mov    0x2c3b(%rip),%rax
mov    (%rax),%ecx
lea    0xcc9(%rip),%rdx
lea    0xcc7(%rip),%r8
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1040 <mount@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"/dev/vda\00"
@S_IFBLK = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@S_IRGRP = global i32 0
@S_IROTH = global i32 0
@.str.1 = [11 x i8] c"/dev/vda%d\00"
@.str.2 = [9 x i8] c"/dev/vdb\00"
@.str.3 = [11 x i8] c"/dev/vdb%d\00"
@.str.4 = [9 x i8] c"/dev/vdc\00"
@.str.5 = [11 x i8] c"/dev/vdc%d\00"
@.str.6 = [11 x i8] c"/kaos/apps\00"
@S_IRWXU = global i32 0
@S_IXGRP = global i32 0
@S_IXOTH = global i32 0
@.str.7 = [8 x i8] c"/dev/%s\00"
@.str.8 = [4 x i8] c"vda\00"
@.str.9 = [5 x i8] c"ext4\00"
@MS_RELATIME = global i32 0
@.str.10 = [23 x i8] c"barrier=1,data=ordered\00"
define void @kattach_init_vkaos() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [32 x i8]
store i32 0, i32* %1
store i32 0, i32* %2
%4 = load i32, i32* @S_IFBLK
%5 = load i32, i32* @S_IRUSR
%6 = or i32 %4, %5
%7 = load i32, i32* @S_IWUSR
%8 = or i32 %6, %7
%9 = load i32, i32* @S_IRGRP
%10 = or i32 %8, %9
%11 = load i32, i32* @S_IROTH
%12 = or i32 %10, %11
%13 = call i32 @kattach_thedawn_devlist_build(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 253, i32 0, i32 %12)
store i32 1, i32* %1
br label %14
14: ; preds = %33, %0
%15 = load i32, i32* %1
%16 = icmp sle i32 %15, 15
br i1 %16, label %17, label %36
17: ; preds = %14
%18 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%19 = load i32, i32* %1
%20 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %19)
%21 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%22 = load i32, i32* %1
%23 = load i32, i32* @S_IFBLK
%24 = load i32, i32* @S_IRUSR
%25 = or i32 %23, %24
%26 = load i32, i32* @S_IWUSR
%27 = or i32 %25, %26
%28 = load i32, i32* @S_IRGRP
%29 = or i32 %27, %28
%30 = load i32, i32* @S_IROTH
%31 = or i32 %29, %30
%32 = call i32 @kattach_thedawn_devlist_build(i8* %21, i32 253, i32 %22, i32 %31)
br label %33
33: ; preds = %17
%34 = load i32, i32* %1
%35 = add nsw i32 %34, 1
store i32 %35, i32* %1
br label %14
36: ; preds = %14
%37 = load i32, i32* @S_IFBLK
%38 = load i32, i32* @S_IRUSR
%39 = or i32 %37, %38
%40 = load i32, i32* @S_IWUSR
%41 = or i32 %39, %40
%42 = load i32, i32* @S_IRGRP
%43 = or i32 %41, %42
%44 = load i32, i32* @S_IROTH
%45 = or i32 %43, %44
%46 = call i32 @kattach_thedawn_devlist_build(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 253, i32 16, i32 %45)
store i32 17, i32* %1
br label %47
47: ; preds = %67, %36
%48 = load i32, i32* %1
%49 = icmp sle i32 %48, 31
br i1 %49, label %50, label %70
50: ; preds = %47
%51 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%52 = load i32, i32* %1
%53 = sub nsw i32 %52, 16
%54 = call i32 (i8*, i8*, ...) @sprintf(i8* %51, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %53)
%55 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%56 = load i32, i32* %1
%57 = load i32, i32* @S_IFBLK
%58 = load i32, i32* @S_IRUSR
%59 = or i32 %57, %58
%60 = load i32, i32* @S_IWUSR
%61 = or i32 %59, %60
%62 = load i32, i32* @S_IRGRP
%63 = or i32 %61, %62
%64 = load i32, i32* @S_IROTH
%65 = or i32 %63, %64
%66 = call i32 @kattach_thedawn_devlist_build(i8* %55, i32 253, i32 %56, i32 %65)
br label %67
67: ; preds = %50
%68 = load i32, i32* %1
%69 = add nsw i32 %68, 1
store i32 %69, i32* %1
br label %47
70: ; preds = %47
%71 = load i32, i32* @S_IFBLK
%72 = load i32, i32* @S_IRUSR
%73 = or i32 %71, %72
%74 = load i32, i32* @S_IWUSR
%75 = or i32 %73, %74
%76 = load i32, i32* @S_IRGRP
%77 = or i32 %75, %76
%78 = load i32, i32* @S_IROTH
%79 = or i32 %77, %78
%80 = call i32 @kattach_thedawn_devlist_build(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 253, i32 32, i32 %79)
store i32 33, i32* %1
br label %81
81: ; preds = %101, %70
%82 = load i32, i32* %1
%83 = icmp sle i32 %82, 47
br i1 %83, label %84, label %104
84: ; preds = %81
%85 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%86 = load i32, i32* %1
%87 = sub nsw i32 %86, 32
%88 = call i32 (i8*, i8*, ...) @sprintf(i8* %85, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %87)
%89 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%90 = load i32, i32* %1
%91 = load i32, i32* @S_IFBLK
%92 = load i32, i32* @S_IRUSR
%93 = or i32 %91, %92
%94 = load i32, i32* @S_IWUSR
%95 = or i32 %93, %94
%96 = load i32, i32* @S_IRGRP
%97 = or i32 %95, %96
%98 = load i32, i32* @S_IROTH
%99 = or i32 %97, %98
%100 = call i32 @kattach_thedawn_devlist_build(i8* %89, i32 253, i32 %90, i32 %99)
br label %101
101: ; preds = %84
%102 = load i32, i32* %1
%103 = add nsw i32 %102, 1
store i32 %103, i32* %1
br label %81
104: ; preds = %81
%105 = load i32, i32* @S_IRWXU
%106 = load i32, i32* @S_IRGRP
%107 = or i32 %105, %106
%108 = load i32, i32* @S_IXGRP
%109 = or i32 %107, %108
%110 = load i32, i32* @S_IROTH
%111 = or i32 %109, %110
%112 = load i32, i32* @S_IXOTH
%113 = or i32 %111, %112
%114 = call i32 @mkdir(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 %113)
store i32 %114, i32* %2
%115 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%116 = call i32 (i8*, i8*, ...) @sprintf(i8* %115, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%117 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%118 = load i32, i32* @MS_RELATIME
%119 = call i32 @mount(i8* %117, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %118, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
store i32 %119, i32* %2
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"/dev/vda\00"
@S_IFBLK = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@S_IRGRP = global i32 0
@S_IROTH = global i32 0
@.str.1 = [11 x i8] c"/dev/vda%d\00"
@.str.2 = [9 x i8] c"/dev/vdb\00"
@.str.3 = [11 x i8] c"/dev/vdb%d\00"
@.str.4 = [9 x i8] c"/dev/vdc\00"
@.str.5 = [11 x i8] c"/dev/vdc%d\00"
@.str.6 = [11 x i8] c"/kaos/apps\00"
@S_IRWXU = global i32 0
@S_IXGRP = global i32 0
@S_IXOTH = global i32 0
@.str.7 = [8 x i8] c"/dev/%s\00"
@.str.8 = [4 x i8] c"vda\00"
@.str.9 = [5 x i8] c"ext4\00"
@MS_RELATIME = global i32 0
@.str.10 = [23 x i8] c"barrier=1,data=ordered\00"
define void @kattach_init_vkaos() {
%1 = alloca [32 x i8]
%2 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 0
%3 = load i32, i32* @S_IFBLK
%4 = load i32, i32* @S_IRUSR
%5 = or i32 %4, %3
%6 = load i32, i32* @S_IWUSR
%7 = or i32 %5, %6
%8 = load i32, i32* @S_IRGRP
%9 = or i32 %7, %8
%10 = load i32, i32* @S_IROTH
%11 = or i32 %9, %10
%12 = tail call i32 @kattach_thedawn_devlist_build(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 253, i32 0, i32 %11)
br label %13
13: ; preds = %0, %13
%14 = phi i32 [ 1, %0 ], [ %26, %13 ]
%15 = call i32 (i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @S_IFBLK
%17 = load i32, i32* @S_IRUSR
%18 = or i32 %17, %16
%19 = load i32, i32* @S_IWUSR
%20 = or i32 %18, %19
%21 = load i32, i32* @S_IRGRP
%22 = or i32 %20, %21
%23 = load i32, i32* @S_IROTH
%24 = or i32 %22, %23
%25 = call i32 @kattach_thedawn_devlist_build(i8* %2, i32 253, i32 %14, i32 %24)
%26 = add nuw nsw i32 %14, 1
%27 = icmp eq i32 %26, 16
br i1 %27, label %28, label %13
28: ; preds = %13
%29 = load i32, i32* @S_IFBLK
%30 = load i32, i32* @S_IRUSR
%31 = or i32 %30, %29
%32 = load i32, i32* @S_IWUSR
%33 = or i32 %31, %32
%34 = load i32, i32* @S_IRGRP
%35 = or i32 %33, %34
%36 = load i32, i32* @S_IROTH
%37 = or i32 %35, %36
%38 = call i32 @kattach_thedawn_devlist_build(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 253, i32 16, i32 %37)
br label %39
39: ; preds = %28, %39
%40 = phi i32 [ 17, %28 ], [ %53, %39 ]
%41 = add nsw i32 %40, -16
%42 = call i32 (i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %41)
%43 = load i32, i32* @S_IFBLK
%44 = load i32, i32* @S_IRUSR
%45 = or i32 %44, %43
%46 = load i32, i32* @S_IWUSR
%47 = or i32 %45, %46
%48 = load i32, i32* @S_IRGRP
%49 = or i32 %47, %48
%50 = load i32, i32* @S_IROTH
%51 = or i32 %49, %50
%52 = call i32 @kattach_thedawn_devlist_build(i8* %2, i32 253, i32 %40, i32 %51)
%53 = add nuw nsw i32 %40, 1
%54 = icmp eq i32 %53, 32
br i1 %54, label %55, label %39
55: ; preds = %39
%56 = load i32, i32* @S_IFBLK
%57 = load i32, i32* @S_IRUSR
%58 = or i32 %57, %56
%59 = load i32, i32* @S_IWUSR
%60 = or i32 %58, %59
%61 = load i32, i32* @S_IRGRP
%62 = or i32 %60, %61
%63 = load i32, i32* @S_IROTH
%64 = or i32 %62, %63
%65 = call i32 @kattach_thedawn_devlist_build(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 253, i32 32, i32 %64)
br label %66
66: ; preds = %55, %66
%67 = phi i32 [ 33, %55 ], [ %80, %66 ]
%68 = add nsw i32 %67, -32
%69 = call i32 (i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %68)
%70 = load i32, i32* @S_IFBLK
%71 = load i32, i32* @S_IRUSR
%72 = or i32 %71, %70
%73 = load i32, i32* @S_IWUSR
%74 = or i32 %72, %73
%75 = load i32, i32* @S_IRGRP
%76 = or i32 %74, %75
%77 = load i32, i32* @S_IROTH
%78 = or i32 %76, %77
%79 = call i32 @kattach_thedawn_devlist_build(i8* %2, i32 253, i32 %67, i32 %78)
%80 = add nuw nsw i32 %67, 1
%81 = icmp eq i32 %80, 48
br i1 %81, label %82, label %66
82: ; preds = %66
%83 = load i32, i32* @S_IRWXU
%84 = load i32, i32* @S_IRGRP
%85 = or i32 %84, %83
%86 = load i32, i32* @S_IXGRP
%87 = or i32 %85, %86
%88 = load i32, i32* @S_IROTH
%89 = or i32 %87, %88
%90 = load i32, i32* @S_IXOTH
%91 = or i32 %89, %90
%92 = call i32 @mkdir(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 %91)
%93 = call i32 (i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%94 = load i32, i32* @MS_RELATIME
%95 = call i32 @mount(i8* %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %94, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
ret void
}