// File: /workspace/github_cpp_makefile_star2_O1/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 0xc8bb(%rip), %eax      # 0x11814
leal 0x1(%rax), %ecx
movl %ecx, 0xc8b2(%rip)      # 0x11814
cmpl $0x63, %eax
jg 0x53e4
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq 0xc04d(%rip), %rcx      # 0x10fc8
leaq 0x40(%rsp), %rsi
xorl %edx, %edx
callq 0x2040
cmpl $0x3, %eax
jl 0x53e4
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 0x5016
movq %rcx, (%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2aec
movq %r13, %rdi
leaq 0x813b(%rip), %rsi      # 0xd10e
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 0x5080
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x5087
movq %rcx, (%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2aec
movq %r13, %rdi
leaq 0x80d8(%rip), %rsi      # 0xd10e
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 0x5130
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x5137
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 0x50ba
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 0x802e(%rip), %rsi      # 0xd10e
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 0x51e0
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x51e6
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 0x516a
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 0x7f7e(%rip), %rsi      # 0xd10e
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 0x52cf
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x52d5
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 0x521a
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 0x4f42
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x52a9
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x539d
movq 0xd8(%rsp), %rsi
jmp 0x5395
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 0x5309
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 0x4e40
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x5378
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x539d
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2230
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x53b8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x53cf
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
decq %r12
cmpq $0x3, %r12
movq %rsp, %r13
leaq 0x10(%rsp), %rcx
jg 0x4fa3
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5463
jmp 0x5406
jmp 0x5482
movq %rax, %rbx
jmp 0x543d
jmp 0x5463
movq %rax, %rbx
jmp 0x5508
jmp 0x5482
movq %rax, %rbx
jmp 0x54c8
jmp 0x5463
jmp 0x5482
jmp 0x549b
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x543d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x54ed
movq 0x98(%rsp), %rsi
jmp 0x54e5
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x551f
movq 0x10(%rsp), %rsi
jmp 0x5517
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5508
movq 0x30(%rsp), %rsi
jmp 0x5500
movq %rax, %rbx
jmp 0x54ed
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x54c8
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x54ed
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2230
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5508
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x551f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400