// File: /workspace/github_c_makefile_star2_O1/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 0x5223(%rip), %rsi      # 0x19a30
leaq 0x521d(%rip), %rdx      # 0x19a31
movq %rsp, %rdi
callq 0xb190
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 0x2ac1(%rip), %r12      # 0x1731c
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 0x14b09
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 0xb78c
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 0x14909
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x14911
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 0x14940
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x60(%rsp), %rdi
leaq 0x248(%rsp), %rsi
callq 0x3280
testl %eax, %eax
je 0x149fa
movq %r15, %rdi
leaq 0x5168(%rip), %rsi      # 0x19acc
leaq 0x60(%rsp), %rdx
callq 0x15823
leaq 0xa0(%rsp), %rdi
movq %r15, %rsi
callq 0x3390
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x14995
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32f0
movl $0xf, %edx
movq 0xc62f(%rip), %rdi      # 0x20fd0
leaq 0x512b(%rip), %rsi      # 0x19ad3
callq 0x3340
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xc612(%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 0xb78c
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 0x14a5e
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x14a65
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 0x14a9f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x14ac4
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x14adb
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x14863
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x32f0
jmp 0x14863
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x14b25
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0xc484(%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 0x14b61
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 0x14c6f
jmp 0x14bee
jmp 0x14bee
jmp 0x14b8b
movq %rax, %rbx
jmp 0x14ba5
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x14ba5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32f0
leaq 0x10(%rsp), %r14
leaq 0x50(%rsp), %r15
jmp 0x14c12
jmp 0x14bb3
movq %rax, %rbx
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x14bf1
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x32f0
jmp 0x14bf1
jmp 0x14bee
movq %rax, %rbx
leaq 0x10(%rsp), %r14
leaq 0x50(%rsp), %r15
jmp 0x14c37
movq %rax, %rbx
leaq 0x10(%rsp), %r14
leaq 0x50(%rsp), %r15
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x14c12
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x14c37
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x14c4e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0xc35b(%rip), %rsi      # 0x20fb0
leaq 0xc0(%rsp), %rdi
callq 0x3200
leaq 0x140(%rsp), %rdi
callq 0x3120
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x14c85
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x32f0
movq %rbx, %rdi
callq 0x3570