// File: /workspace/github_cpp_makefile_star2_O1/pokorj54[P]Pathfinder-utilities/src/CommandLine.cpp
// Function: GetCommandAndArgument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, CommandLine::Arguments&)
string _GetCommandAndArgument(string command, CommandLine::Arguments & outArguments)
{
    size_t pos = command.find(" ");
    if(pos == string::npos)
    {   
        return command;
    }
    string result = command.substr(0, pos);
    command = command.substr(pos +1, command.length());
    
    list<string> tmp;

    pos = command.find("\"");
    bool qmark = 0;
    while(pos != string::npos)
    {
        tmp.push_back(command.substr(0, pos));
        command = command.substr(pos, command.length());
        qmark = !qmark;
        pos = command.find("\"", qmark) + qmark;
    }
    tmp.push_back(command);

    for(string & s : tmp)
    {
        if(s == "")
        {
            continue;
        }
        else if(s[0] == '"')
        {
            outArguments.PushBack(s.substr(1, s.length() - 2));
        }
        else
        {
            pos = s.find(" ");
            while(pos != string::npos)
            {
                string tmpstring = s.substr(0, pos);
                if(tmpstring.find_first_not_of(' ') != string::npos)
                {
                    outArguments.PushBack(tmpstring);
                }
                s = s.substr(pos + 1, s.length());
                pos = s.find(" ");
            }
            if(s.find_first_not_of(' ') != string::npos)
            {
                outArguments.PushBack(s);
            }
        }
    }
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
leaq 0x2c97(%rip), %rsi      # 0x9422
movl $0x1, %ecx
movq %r12, %rdi
xorl %edx, %edx
callq 0x33f0
cmpq $-0x1, %rax
je 0x6af7
movq %rax, %rbx
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x3280
incq %rbx
movq 0x8(%r12), %rcx
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3280
movq %r15, 0x8(%rsp)
leaq 0x10(%rsp), %rbx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x32c0
movq (%rbx), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x67f6
callq 0x3240
leaq 0x30(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x2bf8(%rip), %rsi      # 0x9409
movl $0x1, %ecx
movq %r12, %rdi
xorl %edx, %edx
callq 0x33f0
cmpq $-0x1, %rax
je 0x6921
movq %rax, %rbp
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %rbp, %rcx
callq 0x3280
movl $0x30, %edi
callq 0x3260
movq %rax, %rcx
addq $0x20, %rcx
movq %rcx, 0x10(%rax)
movq 0x10(%rsp), %rdx
leaq 0x20(%rsp), %r15
cmpq %r15, %rdx
je 0x6878
movq %rdx, 0x10(%rax)
movq 0x20(%rsp), %rcx
movq %rcx, 0x20(%rax)
jmp 0x687f
movups (%r15), %xmm0
movups %xmm0, (%rcx)
movq 0x18(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq %r15, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movq %rax, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3070
incq 0x40(%rsp)
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x68bc
callq 0x3240
movq 0x8(%r12), %rcx
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x3280
movq %r12, %rdi
movq %rbx, %rsi
callq 0x32c0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x68ee
callq 0x3240
xorb $0x1, %r13b
movzbl %r13b, %r15d
andl $0x1, %r15d
movl $0x1, %ecx
movq %r12, %rdi
leaq 0x2b00(%rip), %rsi      # 0x9409
movq %r15, %rdx
callq 0x33f0
movq %rax, %rbp
addq %r15, %rbp
cmpq $-0x1, %rbp
jne 0x6835
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x808e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3070
incq 0x40(%rsp)
movq 0x30(%rsp), %rbp
cmpq %rbx, %rbp
je 0x6ae6
leaq 0x10(%rsp), %r13
leaq 0x48(%rsp), %rbx
leaq 0x10(%rbp), %r12
movq %r12, %rdi
leaq 0x2a81(%rip), %rsi      # 0x93e8
callq 0x30b0
testl %eax, %eax
je 0x6ad4
movq (%r12), %rax
cmpb $0x22, (%rax)
jne 0x69d0
movq 0x18(%rbp), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x3280
incl 0x18(%r14)
movq %r14, %rdi
movq %r13, %rsi
leaq 0x20(%rsp), %r15
callq 0x808e
movq %rax, %rdi
movq %r14, %rsi
callq 0x3070
incq 0x10(%r14)
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x6ad4
callq 0x3240
jmp 0x6ad4
movl $0x1, %ecx
movq %r12, %rdi
leaq 0x2a43(%rip), %rsi      # 0x9422
xorl %edx, %edx
callq 0x33f0
cmpq $-0x1, %rax
je 0x6aa1
movq %rax, %r15
movq %r13, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0x3280
movq %r13, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x3220
cmpq $-0x1, %rax
je 0x6a36
incl 0x18(%r14)
movq %r14, %rdi
movq %r13, %rsi
callq 0x808e
movq %rax, %rdi
movq %r14, %rsi
callq 0x3070
incq 0x10(%r14)
incq %r15
movq 0x18(%rbp), %rcx
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3280
movq %r12, %rdi
movq %rbx, %rsi
callq 0x32c0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x6a6a
callq 0x3240
movl $0x1, %ecx
movq %r12, %rdi
leaq 0x29a9(%rip), %rsi      # 0x9422
xorl %edx, %edx
callq 0x33f0
movq %rax, %r15
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6a97
callq 0x3240
cmpq $-0x1, %r15
jne 0x69f3
movq %r12, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x3220
cmpq $-0x1, %rax
je 0x6ad4
incl 0x18(%r14)
movq %r14, %rdi
movq %r12, %rsi
callq 0x808e
movq %rax, %rdi
movq %r14, %rsi
callq 0x3070
incq 0x10(%r14)
movq (%rbp), %rbp
leaq 0x30(%rsp), %rax
cmpq %rax, %rbp
jne 0x6959
leaq 0x30(%rsp), %rdi
callq 0x7558
movq 0x8(%rsp), %r15
jmp 0x6b3a
leaq 0x10(%r15), %rcx
movq %rcx, (%r15)
movq (%r12), %rdx
leaq 0x10(%r12), %rax
cmpq %rax, %rdx
je 0x6b18
movq %rdx, (%r15)
movq (%rax), %rcx
movq %rcx, 0x10(%r15)
jmp 0x6b1e
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%r12), %rcx
movq %rcx, 0x8(%r15)
movq %rax, (%r12)
movq $0x0, 0x8(%r12)
movb $0x0, 0x10(%r12)
movq %r15, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6b87
movq %rax, %rbx
jmp 0x6b99
jmp 0x6b87
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
jne 0x6b80
jmp 0x6b8a
jmp 0x6b87
jmp 0x6b87
jmp 0x6b6e
jmp 0x6b87
jmp 0x6b6e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6b8a
callq 0x3240
jmp 0x6b8a
movq %rax, %rbx
movq 0x8(%rsp), %r15
leaq 0x30(%rsp), %rdi
callq 0x7558
movq (%r15), %rdi
addq $0x10, %r15
cmpq %r15, %rdi
je 0x6baa
callq 0x3240
movq %rbx, %rdi
callq 0x3410