// File: /workspace/github_cpp_makefile_star2_O1/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 0x7958(%rip), %rdx      # 0x1002a
leaq 0x10(%rsp), %rdi
movq %rdx, %rsi
callq 0x561a
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 0x3abc
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 0x873d
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 0x884a
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 0x558a
movq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0x3220
testl %eax, %eax
jne 0x87e6
movl 0x88(%rsp), %eax
movl $0x4000, %ecx           # imm = 0x4000
andl %ecx, %eax
je 0x87e6
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x8836
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x8836
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 0x881b
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 0x884a
movq %r15, %rdi
leaq 0x7a51(%rip), %rsi      # 0x10291
callq 0x3490
jmp 0x875e
movq 0xd74f(%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 0x8887
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x88a3
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 0x8904
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x8904
movq %rax, %rbx
jmp 0x8904
movq %rax, %rbx
movq 0xd6b6(%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 0x8920
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x893c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x3460