// File: /workspace/github_c_makefile_star2_O0/stonezwr[P]SpiKL-IP/util.C
// Function: MakeDirs(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void MakeDirs(std::string dir){
    struct stat sb;
    std::string base = ".";
    std::stringstream iss(dir);
    std::string sub_dir;
    // decode the string:
    while(std::getline(iss, sub_dir, '/')){
        std::string cmd;
        std::string path = base + "/" + sub_dir;
        if(stat(path.c_str(), &sb) != 0){
            cmd = "mkdir " + path;
            std::cout<<"Creating path: "<<path<<std::endl;
            int i = system(cmd.c_str());
        }
        base = base + "/" + sub_dir;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x390, %rsp            # imm = 0x390
movq %rdi, -0x350(%rbp)
movq %rdi, -0x8(%rbp)
leaq -0xb9(%rbp), %rdi
movq %rdi, -0x348(%rbp)
callq 0x46f0
movq -0x348(%rbp), %rdx
leaq 0x9175(%rip), %rsi      # 0x36f8c
leaq -0xb8(%rbp), %rdi
callq 0x12880
jmp 0x2de25
leaq -0xb9(%rbp), %rdi
callq 0x43d0
movl $0x10, %edi
movl $0x8, %esi
callq 0x2f0e0
movl %eax, -0x354(%rbp)
jmp 0x2de48
movl -0x354(%rbp), %edx
movq -0x350(%rbp), %rsi
leaq -0x258(%rbp), %rdi
callq 0x4600
jmp 0x2de63
leaq -0x278(%rbp), %rdi
callq 0x4510
leaq -0x258(%rbp), %rdi
leaq -0x278(%rbp), %rsi
movl $0x2f, %edx
callq 0x4760
movq %rax, -0x360(%rbp)
jmp 0x2de90
movq -0x360(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x44a0
movb %al, -0x361(%rbp)
jmp 0x2deae
movb -0x361(%rbp), %al
testb $0x1, %al
jne 0x2debd
jmp 0x2e147
leaq -0x298(%rbp), %rdi
callq 0x4510
leaq 0x644a(%rip), %rdx      # 0x3431a
leaq -0x2d8(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x2f150
jmp 0x2dee5
leaq -0x2b8(%rbp), %rdi
leaq -0x2d8(%rbp), %rsi
leaq -0x278(%rbp), %rdx
callq 0x2f100
jmp 0x2df01
leaq -0x2d8(%rbp), %rdi
callq 0x4200
leaq -0x2b8(%rbp), %rdi
callq 0x4160
movq %rax, %rdi
leaq -0x98(%rbp), %rsi
callq 0x4320
cmpl $0x0, %eax
je 0x2e08f
leaq 0x8bcc(%rip), %rsi      # 0x36b04
leaq -0x2f8(%rbp), %rdi
leaq -0x2b8(%rbp), %rdx
callq 0x2f1d0
jmp 0x2df4d
leaq -0x298(%rbp), %rdi
leaq -0x2f8(%rbp), %rsi
movq %rsi, -0x378(%rbp)
callq 0x4470
movq -0x378(%rbp), %rdi
callq 0x4200
movq 0x1f04e(%rip), %rdi     # 0x4cfc8
leaq 0x8b8a(%rip), %rsi      # 0x36b0b
callq 0x4360
movq %rax, -0x370(%rbp)
jmp 0x2df8f
movq -0x370(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
callq 0x4300
movq %rax, -0x380(%rbp)
jmp 0x2dfab
movq -0x380(%rbp), %rdi
movq 0x1efff(%rip), %rsi     # 0x4cfb8
callq 0x43b0
jmp 0x2dfc0
leaq -0x298(%rbp), %rdi
callq 0x4160
movq %rax, %rdi
callq 0x42e0
movl %eax, -0x384(%rbp)
jmp 0x2dfdc
movl -0x384(%rbp), %eax
movl %eax, -0x2fc(%rbp)
jmp 0x2e08f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
leaq -0xb9(%rbp), %rdi
callq 0x43d0
jmp 0x2e198
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x2e18c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x2e174
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x2e139
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
leaq -0x2d8(%rbp), %rdi
callq 0x4200
jmp 0x2e139
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x2e12d
leaq 0x6284(%rip), %rdx      # 0x3431a
leaq -0x340(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x2f150
jmp 0x2e0ab
leaq -0x320(%rbp), %rdi
leaq -0x340(%rbp), %rsi
leaq -0x278(%rbp), %rdx
callq 0x2f100
jmp 0x2e0c7
leaq -0xb8(%rbp), %rdi
leaq -0x320(%rbp), %rsi
callq 0x4470
leaq -0x320(%rbp), %rdi
callq 0x4200
leaq -0x340(%rbp), %rdi
callq 0x4200
leaq -0x2b8(%rbp), %rdi
callq 0x4200
leaq -0x298(%rbp), %rdi
callq 0x4200
jmp 0x2de6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
leaq -0x340(%rbp), %rdi
callq 0x4200
leaq -0x2b8(%rbp), %rdi
callq 0x4200
leaq -0x298(%rbp), %rdi
callq 0x4200
jmp 0x2e174
leaq -0x278(%rbp), %rdi
callq 0x4200
leaq -0x258(%rbp), %rdi
callq 0x4260
leaq -0xb8(%rbp), %rdi
callq 0x4200
addq $0x390, %rsp            # imm = 0x390
popq %rbp
retq
leaq -0x278(%rbp), %rdi
callq 0x4200
leaq -0x258(%rbp), %rdi
callq 0x4260
leaq -0xb8(%rbp), %rdi
callq 0x4200
movq -0xc8(%rbp), %rdi
callq 0x46d0
nopw %cs:(%rax,%rax)