// File: /workspace/github_cpp_makefile_star2_O3/girdhari9[P]TEXPLORER/cmd_functions.cpp
// Function: copy_dir(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void copy_dir(string dir_name, string dir_path){
    flag++;
    if(flag > 100) return;
    struct dirent ** dir_namelist;
    int n = scandir(dir_name.c_str(),&dir_namelist,NULL, alphasort);
        while(n--){
            if(n < 2) break;
            if(dir_namelist[n]->d_type == 4){
                string new_dir_name = dir_name + "/" + dir_namelist[n]->d_name;
                string new_dir_path = dir_path + "/" + dir_namelist[n]->d_name;
                mkdir(new_dir_path.c_str(), S_IRUSR|S_IWUSR|S_IXUSR);
                copy_dir(new_dir_name,new_dir_path);
            }
            else{
                string source_file_name = dir_name + "/" + dir_namelist[n]->d_name;
                string dest_file_name = dir_path + "/" + dir_namelist[n]->d_name;
                copy_file(source_file_name,dest_file_name);
            }
        }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl 0xc85b(%rip), %eax      # 0x11814
leal 0x1(%rax), %ecx
movl %ecx, 0xc852(%rip)      # 0x11814
cmpl $0x63, %eax
jg 0x5444
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq 0xbfed(%rip), %rcx      # 0x10fc8
leaq 0x40(%rsp), %rsi
xorl %edx, %edx
callq 0x2040
cmpl $0x3, %eax
jl 0x5444
leaq 0x10(%rsp), %rcx
leaq 0x58(%rsp), %r15
movl %eax, %r12d
incq %r12
movq %rsp, %r13
movq 0x40(%rsp), %rax
movq -0x10(%rax,%r12,8), %rax
cmpb $0x4, 0x12(%rax)
jne 0x5076
movq %rcx, (%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2aec
movq %r13, %rdi
leaq 0x810b(%rip), %rsi      # 0xd13e
callq 0x2450
movq 0x40(%rsp), %rax
movq -0x10(%rax,%r12,8), %rsi
addq $0x13, %rsi
movq %r13, %rdi
callq 0x2450
movq %r15, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x20(%rsp), %r13
je 0x50e0
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x50e7
movq %rcx, (%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2aec
movq %r13, %rdi
leaq 0x80a8(%rip), %rsi      # 0xd13e
callq 0x2450
movq 0x40(%rsp), %rax
movq -0x10(%rax,%r12,8), %rsi
addq $0x13, %rsi
movq %r13, %rdi
callq 0x2450
movq %r15, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x20(%rsp), %r13
je 0x5190
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x5197
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x511a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2aec
movq %r13, %rdi
leaq 0x7ffe(%rip), %rsi      # 0xd13e
callq 0x2450
movq 0x40(%rsp), %rax
movq -0x10(%rax,%r12,8), %rsi
addq $0x13, %rsi
movq %r13, %rdi
callq 0x2450
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0xc8(%rsp), %r13
je 0x5240
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x5246
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x51ca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2aec
movq %r13, %rdi
leaq 0x7f4e(%rip), %rsi      # 0xd13e
callq 0x2450
movq 0x40(%rsp), %rax
movq -0x10(%rax,%r12,8), %rsi
addq $0x13, %rsi
movq %r13, %rdi
callq 0x2450
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x88(%rsp), %r13
je 0x532f
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x5335
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x527a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2230
movq (%rsp), %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x2100
leaq 0xd8(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2aec
leaq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rbp
movq %rbp, %rdi
callq 0x2aec
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4fa2
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x5309
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x53fd
movq 0xd8(%rsp), %rsi
jmp 0x53f5
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5369
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x98(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2aec
leaq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rbp
movq %rbp, %rdi
callq 0x2aec
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4ea0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x53d8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x53fd
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2230
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5418
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x542f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
decq %r12
cmpq $0x3, %r12
movq %rsp, %r13
leaq 0x10(%rsp), %rcx
ja 0x5003
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x54c3
jmp 0x5466
jmp 0x54e2
movq %rax, %rbx
jmp 0x549d
jmp 0x54c3
movq %rax, %rbx
jmp 0x5568
jmp 0x54e2
movq %rax, %rbx
jmp 0x5528
jmp 0x54c3
jmp 0x54e2
jmp 0x54fb
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x549d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x554d
movq 0x98(%rsp), %rsi
jmp 0x5545
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x557f
movq 0x10(%rsp), %rsi
jmp 0x5577
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5568
movq 0x30(%rsp), %rsi
jmp 0x5560
movq %rax, %rbx
jmp 0x554d
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x5528
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x554d
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2230
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5568
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x557f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400