// File: /workspace/github_cpp_makefile_star2_O1/FalconUA[P]vfs/./utility/cp.h
// Function: virt::util::cp::launch(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string launch(std::string param){
			virt::util::shell* sh;
			if ((sh = dynamic_cast<virt::util::shell*>(working_os->app("shell"))) == NULL)
				return "ERROR: No module named \"shell\" found!";

			while (param[0] == ' ')
				param.erase(0, 1);
			while (param[param.length()-1] == ' ')
				param.erase(param.length()-1, 1);

			std::size_t p = std::min(param.find(' '), param.length());	
			std::string first_path = param.substr(0, p);

			if (first_path.find(' ') != std::string::npos || first_path.find('/') != std::string::npos
					|| first_path == "" || first_path == "." || first_path == "..")
				return "Invalid second file name. Please see 'help cp' for more information.\n";
			param.erase(0, p+1);

			virt::filesystem::dir_iterator it_source = sh->shell_iterator;
			virt::filesystem::dir_iterator it_dest = sh->shell_iterator;

			if (it_dest.get_working_dir()->path().find(it_source.get_working_dir()->path()))
				return "Cannot copy: destination is a sub directory of source. See 'help cp'\n";

			bool b = true;

			b = b && it_source.move_to(first_path);
			b = b && it_dest.move_to(param);

			if (!b)
				return "Directory not found. See 'help mv' for more information.\n";
			
			virt::fs::copy_content(it_source.get_working_dir(), it_dest.get_working_dir());
			return "";
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %r15
leaq 0xb8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xb6d(%rip), %rsi       # 0xb1ef
leaq 0xb6b(%rip), %rdx       # 0xb1f4
leaq 0xa8(%rsp), %r12
movq %r12, %rdi
callq 0x4718
movq %r15, %rdi
movq %r12, %rsi
callq 0x5e38
testq %rax, %rax
je 0xa6c6
leaq 0x64d8(%rip), %rsi      # 0x10b88
leaq 0x64e1(%rip), %rdx      # 0x10b98
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x31f0
movq %rax, %r15
jmp 0xa6c9
xorl %r15d, %r15d
movq 0xa8(%rsp), %rdi
cmpq %r13, %rdi
je 0xa6e6
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x31c0
testq %r15, %r15
jne 0xa71c
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x1475(%rip), %rsi      # 0xbb6e
leaq 0x1493(%rip), %rdx      # 0xbb93
movq %rbx, %rdi
callq 0x4718
jmp 0xa7e6
movl $0x1, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x3070
movq (%r14), %rax
cmpb $0x20, (%rax)
je 0xa70d
movq (%r14), %rax
movq 0x8(%r14), %rsi
cmpb $0x20, -0x1(%rax,%rsi)
jne 0xa754
decq %rsi
movl $0x1, %edx
movq %r14, %rdi
callq 0x3070
movq (%r14), %rax
movq 0x8(%r14), %rcx
leaq -0x1(%rcx), %rsi
cmpb $0x20, -0x1(%rax,%rcx)
je 0xa735
movq %r14, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x3230
movq %rax, %r12
movq 0x8(%r14), %rax
cmpq %r12, %rax
cmovbq %rax, %r12
movq %rsp, %r13
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0x31d0
movq %r13, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x3230
cmpq $-0x1, %rax
jne 0xa7ae
movq %rsp, %rdi
movl $0x2f, %esi
xorl %edx, %edx
callq 0x3230
cmpq $-0x1, %rax
je 0xa7fb
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x24ad(%rip), %rsi      # 0xcc69
leaq 0x24eb(%rip), %rdx      # 0xccae
movq %rbx, %rdi
callq 0x4718
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa7e6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x31c0
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x15cb(%rip), %rsi      # 0xbdcd
movq %rsp, %rdi
callq 0x3090
testl %eax, %eax
je 0xa7ae
leaq 0x7f0(%rip), %rsi       # 0xb005
movq %rsp, %rdi
callq 0x3090
testl %eax, %eax
je 0xa7ae
leaq 0x7dc(%rip), %rsi       # 0xb004
movq %rsp, %rdi
callq 0x3090
testl %eax, %eax
je 0xa7ae
incq %r12
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x3070
movups 0x50(%r15), %xmm0
movaps %xmm0, 0x20(%rsp)
movups 0x50(%r15), %xmm0
leaq 0x70(%rsp), %rdi
movaps %xmm0, (%rdi)
callq 0x5d32
leaq 0x88(%rsp), %rdi
movq %rax, %rsi
callq 0x38de
leaq 0x20(%rsp), %rdi
callq 0x5d32
leaq 0xc8(%rsp), %rdi
movq %rax, %rsi
callq 0x38de
leaq 0xd8(%rsp), %r12
movq -0x10(%r12), %rsi
movq -0x8(%r12), %rcx
leaq 0x88(%rsp), %rdi
xorl %edx, %edx
callq 0x32c0
movq %rax, %r15
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0xa8cc
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x31c0
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa8ed
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x31c0
testq %r15, %r15
je 0xa914
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x23af(%rip), %rsi      # 0xccaf
leaq 0x23ed(%rip), %rdx      # 0xccf4
movq %rbx, %rdi
callq 0x4718
jmp 0xa7cb
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x4ac8
leaq 0x20(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x5b0c
movl %eax, %ebp
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0xa95b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x31c0
testb %bpl, %bpl
je 0xa991
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0x4ac8
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x5b0c
movl %eax, %r14d
jmp 0xa994
xorl %r14d, %r14d
testb %bpl, %bpl
je 0xa9b4
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa9b4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x31c0
testb %r14b, %r14b
je 0xa9f9
leaq 0x20(%rsp), %rdi
callq 0x5d32
movq %rax, %r14
leaq 0x70(%rsp), %rdi
callq 0x5d32
movq %r14, %rdi
movq %rax, %rsi
callq 0x3d25
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x13e4(%rip), %rdx      # 0xbdcd
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x4718
jmp 0xa7cb
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x22ee(%rip), %rsi      # 0xccf5
leaq 0x2320(%rip), %rdx      # 0xcd2e
movq %rbx, %rdi
callq 0x4718
jmp 0xa7cb
jmp 0xaa75
jmp 0xaa75
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0xaa78
movq 0x40(%rsp), %rsi
jmp 0xaa69
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0xaa78
movq 0x60(%rsp), %rsi
jmp 0xaa69
jmp 0xaa75
jmp 0xaa75
jmp 0xaa75
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaa78
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x31c0
jmp 0xaa78
jmp 0xaa75
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaaad
movq 0x10(%rsp), %rsi
jmp 0xaaa5
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r13, %rdi
je 0xaaad
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x31c0
movq %rbx, %rdi
callq 0x32d0