// File: /workspace/github_cpp_makefile_star2_O3/xx01cyx[P]LSM-Tree/./utils.h
// Function: utils::mkdir(char const*)
static inline int mkdir(const char *path){
        std::string currentPath = "";
        std::string dirName;
        std::stringstream ss(path);

        while (std::getline(ss, dirName, '/')){
            currentPath += dirName;
            if (!dirExists(currentPath) && _mkdir(currentPath.c_str()) != 0){
                return -1;
            }
            currentPath += "/";
        }
        return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rdi, %rbx
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x7ab3(%rip), %rdx      # 0x1004a
leaq 0x10(%rsp), %rdi
movq %rdx, %rsi
callq 0x5648
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x70(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %rbx, %rsi
callq 0x3a9c
leaq 0x100(%rsp), %rdi
leaq 0x70(%rsp), %rsi
movl $0x18, %edx
callq 0x33c0
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8602
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3280
leaq 0x60(%rsp), %rbx
leaq 0x100(%rsp), %r12
leaq 0x30(%rsp), %r14
leaq 0x10(%rsp), %r15
leaq 0x50(%rsp), %rbp
leaq 0x70(%rsp), %r13
movq %r12, %rdi
movq %r14, %rsi
movl $0x2f, %edx
callq 0x3480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x870f
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r15, %rdi
callq 0x30c0
movq %rbx, 0x50(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x55b2
movq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0x3220
testl %eax, %eax
jne 0x86ab
movl 0x88(%rsp), %eax
movl $0x4000, %ecx           # imm = 0x4000
andl %ecx, %eax
je 0x86ab
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x86fb
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x86fb
movq %r13, %r14
movq %rbp, %r13
movq %r12, %rbp
movq 0x10(%rsp), %rdi
movl $0x1fd, %esi            # imm = 0x1FD
callq 0x3120
movl %eax, %r12d
movq 0x50(%rsp), %rdi
movq %rbx, %r15
cmpq %rbx, %rdi
je 0x86e0
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3280
testl %r12d, %r12d
movq %rbp, %r12
movq %r13, %rbp
movq %r14, %r13
leaq 0x30(%rsp), %r14
movq %r15, %rbx
leaq 0x10(%rsp), %r15
jne 0x870f
movq %r15, %rdi
leaq 0x7bac(%rip), %rsi      # 0x102b1
callq 0x3490
jmp 0x8623
movq 0xd88a(%rip), %rsi      # 0x15fa0
leaq 0x100(%rsp), %rdi
callq 0x31c0
leaq 0x180(%rsp), %rdi
callq 0x30d0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x874c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x8768
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x87c9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x87c9
movq %rax, %rbx
jmp 0x87c9
movq %rax, %rbx
movq 0xd7f1(%rip), %rsi      # 0x15fa0
leaq 0x100(%rsp), %rdi
callq 0x31c0
leaq 0x180(%rsp), %rdi
callq 0x30d0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x87e5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x8801
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x3460
nop