// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2d8, %rsp            # imm = 0x2D8
movq %rdi, %rbx
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x55f3(%rip), %rsi      # 0x19ae8
leaq 0x55ed(%rip), %rdx      # 0x19ae9
movq %rsp, %rdi
callq 0xaf16
leaq 0xc0(%rsp), %rdi
movq %rbx, %rsi
movl $0x18, %edx
callq 0x34d0
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x30(%rsp), %r14
leaq 0x70(%rsp), %r13
leaq 0x20(%rsp), %r15
leaq 0x2df9(%rip), %r12      # 0x1733c
leaq 0x80(%rsp), %rbp
leaq 0xc0(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movl $0x2f, %edx
callq 0x35e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x147f1
leaq 0xb0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq $0x0, 0xa8(%rsp)
movb $0x0, 0xb0(%rsp)
movq %r14, 0x20(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xb50c
movq %r15, %rdi
movq %r12, %rsi
callq 0x35f0
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %r15, %rdi
callq 0x3110
movq %r13, 0x60(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x145f1
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x145f9
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x68(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x14628
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x60(%rsp), %rdi
leaq 0x248(%rsp), %rsi
callq 0x3280
testl %eax, %eax
je 0x146e2
movq %r15, %rdi
leaq 0x5538(%rip), %rsi      # 0x19b84
leaq 0x60(%rsp), %rdx
callq 0x155f2
leaq 0xa0(%rsp), %rdi
movq %r15, %rsi
callq 0x3390
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x1467d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32f0
movl $0xf, %edx
movq 0xc947(%rip), %rdi      # 0x20fd0
leaq 0x54fb(%rip), %rsi      # 0x19b8b
callq 0x3340
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xc92a(%rip), %rdi      # 0x20fd0
callq 0x3340
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31e0
movq 0xa0(%rsp), %rdi
callq 0x3250
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0xb50c
movq %rbp, %rdi
movq %r12, %rsi
callq 0x35f0
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %rbp, %rdi
callq 0x3110
movq %r14, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x14746
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x1474d
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rsp, %rdi
movq %r15, %rsi
callq 0x3390
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x14787
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x147ac
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x147c3
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x1454b
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x32f0
jmp 0x1454b
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x1480d
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0xc79c(%rip), %rsi      # 0x20fb0
leaq 0xc0(%rsp), %rdi
callq 0x3200
leaq 0x140(%rsp), %rdi
callq 0x3120
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x14849
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x32f0
addq $0x2d8, %rsp            # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %r14
jmp 0x14957
jmp 0x148d6
jmp 0x148d6
jmp 0x14873
movq %rax, %rbx
jmp 0x1488d
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x1488d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32f0
leaq 0x10(%rsp), %r14
leaq 0x50(%rsp), %r15
jmp 0x148fa
jmp 0x1489b
movq %rax, %rbx
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x148d9
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x32f0
jmp 0x148d9
jmp 0x148d6
movq %rax, %rbx
leaq 0x10(%rsp), %r14
leaq 0x50(%rsp), %r15
jmp 0x1491f
movq %rax, %rbx
leaq 0x10(%rsp), %r14
leaq 0x50(%rsp), %r15
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x148fa
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x1491f
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x14936
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0xc673(%rip), %rsi      # 0x20fb0
leaq 0xc0(%rsp), %rdi
callq 0x3200
leaq 0x140(%rsp), %rdi
callq 0x3120
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x1496d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x32f0
movq %rbx, %rdi
callq 0x3570