// File: /workspace/github_cpp_makefile_star2_O3/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 0x2dd2(%rip), %rsi      # 0x9422
movl $0x1, %ecx
movq %r12, %rdi
xorl %edx, %edx
callq 0x33f0
cmpq $-0x1, %rax
je 0x69bc
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 0x66bb
callq 0x3240
leaq 0x30(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x2d33(%rip), %rsi      # 0x9409
movl $0x1, %ecx
movq %r12, %rdi
xorl %edx, %edx
callq 0x33f0
cmpq $-0x1, %rax
je 0x67e6
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 0x673d
movq %rdx, 0x10(%rax)
movq 0x20(%rsp), %rcx
movq %rcx, 0x20(%rax)
jmp 0x6744
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 0x6781
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 0x67b3
callq 0x3240
xorb $0x1, %r13b
movzbl %r13b, %r15d
andl $0x1, %r15d
movl $0x1, %ecx
movq %r12, %rdi
leaq 0x2c3b(%rip), %rsi      # 0x9409
movq %r15, %rdx
callq 0x33f0
movq %rax, %rbp
addq %r15, %rbp
cmpq $-0x1, %rbp
jne 0x66fa
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7f4c
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3070
incq 0x40(%rsp)
movq 0x30(%rsp), %rbp
cmpq %rbx, %rbp
je 0x69ab
leaq 0x10(%rsp), %r13
leaq 0x48(%rsp), %rbx
leaq 0x10(%rbp), %r12
movq %r12, %rdi
leaq 0x2bbc(%rip), %rsi      # 0x93e8
callq 0x30b0
testl %eax, %eax
je 0x6999
movq (%r12), %rax
cmpb $0x22, (%rax)
jne 0x6895
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 0x7f4c
movq %rax, %rdi
movq %r14, %rsi
callq 0x3070
incq 0x10(%r14)
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x6999
callq 0x3240
jmp 0x6999
movl $0x1, %ecx
movq %r12, %rdi
leaq 0x2b7e(%rip), %rsi      # 0x9422
xorl %edx, %edx
callq 0x33f0
cmpq $-0x1, %rax
je 0x6966
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 0x68fb
incl 0x18(%r14)
movq %r14, %rdi
movq %r13, %rsi
callq 0x7f4c
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 0x692f
callq 0x3240
movl $0x1, %ecx
movq %r12, %rdi
leaq 0x2ae4(%rip), %rsi      # 0x9422
xorl %edx, %edx
callq 0x33f0
movq %rax, %r15
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x695c
callq 0x3240
cmpq $-0x1, %r15
jne 0x68b8
movq %r12, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x3220
cmpq $-0x1, %rax
je 0x6999
incl 0x18(%r14)
movq %r14, %rdi
movq %r12, %rsi
callq 0x7f4c
movq %rax, %rdi
movq %r14, %rsi
callq 0x3070
incq 0x10(%r14)
movq (%rbp), %rbp
leaq 0x30(%rsp), %rax
cmpq %rax, %rbp
jne 0x681e
leaq 0x30(%rsp), %rdi
callq 0x741a
movq 0x8(%rsp), %r15
jmp 0x69ff
leaq 0x10(%r15), %rcx
movq %rcx, (%r15)
movq (%r12), %rdx
leaq 0x10(%r12), %rax
cmpq %rax, %rdx
je 0x69dd
movq %rdx, (%r15)
movq (%rax), %rcx
movq %rcx, 0x10(%r15)
jmp 0x69e3
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 0x6a4c
movq %rax, %rbx
jmp 0x6a5e
jmp 0x6a4c
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
jne 0x6a45
jmp 0x6a4f
jmp 0x6a4c
jmp 0x6a4c
jmp 0x6a33
jmp 0x6a4c
jmp 0x6a33
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6a4f
callq 0x3240
jmp 0x6a4f
movq %rax, %rbx
movq 0x8(%rsp), %r15
leaq 0x30(%rsp), %rdi
callq 0x741a
movq (%r15), %rdi
addq $0x10, %r15
cmpq %r15, %rdi
je 0x6a6f
callq 0x3240
movq %rbx, %rdi
callq 0x3410
nop