// File: /workspace/github_cpp_makefile_star2_O3/GAStudyGroup[P]GPX2/src/args/Arg.cpp
// Function: Arg::processInput()
void Arg::processInput(){
    vector<string> argVector;
    bool error{false};
    string errorMsg{""};

    for(int i=1;i<argc;i++){
        string arg = argv[i];
        if(arg[0] == '-'){
            arg.erase(0,1);
            argVector.push_back(arg);
        }else{
            argVector.back() += " ";
            argVector.back() += arg;
        }
    }
    
    for(string arg : argVector){
        vector<string> argSplited = split(arg);
        Argument *a = getArgument(argSplited[0]);
        if(a==nullptr){
            if(error){
                errorMsg += "\n";
            }
            error = true;
            errorMsg += "Unexpected argument: "+argSplited[0];
        }else{
            string option{""};
            for(unsigned i=1;i<argSplited.size();i++){
                option += argSplited[i];
                if((++i)<argSplited.size()){
                    option += " ";
                }
            }
            a->setOption(option);
            a->setArg(true);
        }
    }
    throwException(errorMsg);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
leaq 0x88(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x12903(%rip), %rdx     # 0x32973
leaq 0x78(%rsp), %rdi
movq %rdx, %rsi
callq 0x8264
cmpl $0x2, 0x18(%rbx)
jl 0x20130
movl $0x1, %ebp
leaq 0x8(%rsp), %r14
leaq 0x28(%rsp), %r15
leaq 0x60(%rsp), %r12
leaq 0x112f6(%rip), %r13     # 0x31398
movq 0x20(%rbx), %rax
movq (%rax,%rbp,8), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x2115c
movq 0x8(%rsp), %rax
cmpb $0x2d, (%rax)
jne 0x200db
movl $0x1, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x50c0
movq %r12, %rdi
movq %r14, %rsi
callq 0x1aa0a
jmp 0x20104
movq 0x68(%rsp), %rdi
addq $-0x20, %rdi
movq %r13, %rsi
callq 0x56f0
movq 0x68(%rsp), %rdi
addq $-0x20, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x5110
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x20120
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53b0
incq %rbp
movslq 0x18(%rbx), %rax
cmpq %rax, %rbp
jl 0x200a2
movq 0x60(%rsp), %r12
movq 0x68(%rsp), %rax
movq %rax, 0xc0(%rsp)
cmpq %rax, %r12
je 0x203ff
leaq 0x118(%rsp), %r13
leaq 0xa8(%rsp), %r14
movl $0x0, 0x4(%rsp)
leaq 0x28(%rsp), %rbp
movq %rbx, 0xb8(%rsp)
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x82fa
movq %r13, 0x108(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %r15
movq %r15, %rdi
callq 0x82fa
leaq 0x48(%rsp), %rdi
movq %r15, %rdx
movl $0x20, %ecx
callq 0x1fa28
movq 0x108(%rsp), %rdi
cmpq %r13, %rdi
je 0x201e4
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x48(%rsp), %rax
movq %r14, 0x98(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x82fa
movq %rbx, %rdi
leaq 0x98(%rsp), %rsi
callq 0x20c20
movq %rax, %r15
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x20238
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x53b0
testq %r15, %r15
je 0x20365
movq %r13, %rbx
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %rbp, %rdi
leaq 0x1271b(%rip), %rdx     # 0x32973
movq %rdx, %rsi
callq 0x8264
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rcx
subq %rax, %rcx
cmpq $0x21, %rcx
jb 0x202d9
movl $0x1, %edx
movl $0x2, %r13d
shlq $0x5, %rdx
movq (%rax,%rdx), %rsi
movq 0x8(%rax,%rdx), %rdx
movq %rbp, %rdi
callq 0x5110
movl %r13d, %edx
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rdx, %rcx
jbe 0x202cc
movq %rbp, %rdi
leaq 0x110e2(%rip), %rsi     # 0x31398
callq 0x56f0
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
leal 0x1(%r13), %edx
addl $0x2, %r13d
cmpq %rdx, %rcx
ja 0x2027e
leaq 0xf8(%rsp), %r13
movq %r13, 0xe8(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %r14
movq %r14, %rdi
callq 0x82fa
leaq 0x40(%r15), %rdi
movq %r14, %rsi
callq 0x5210
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
movq %rbx, %r13
je 0x20332
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x53b0
movb $0x1, 0x39(%r15)
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
movq 0xb8(%rsp), %rbx
je 0x2035b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53b0
leaq 0xa8(%rsp), %r14
jmp 0x203c7
testb $0x1, 0x4(%rsp)
je 0x2037d
leaq 0x78(%rsp), %rdi
leaq 0x1248b(%rip), %rsi     # 0x32803
callq 0x56f0
movq 0x48(%rsp), %rdx
movq %rbp, %rdi
leaq 0x12433(%rip), %rsi     # 0x327bf
callq 0xe906
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x78(%rsp), %rdi
callq 0x5110
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x203c1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53b0
movb $0x1, %al
movl %eax, 0x4(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x8206
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x203ed
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53b0
addq $0x20, %r12
cmpq 0xc0(%rsp), %r12
jne 0x20170
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0x82fa
leaq 0xc8(%rsp), %rsi
movq %rbx, %rdi
callq 0x20bb4
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x20455
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x20477
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x53b0
leaq 0x60(%rsp), %rdi
callq 0x8206
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2057f
movq 0xd8(%rsp), %rsi
jmp 0x20577
jmp 0x204ea
movq %rax, %rbx
jmp 0x205a1
jmp 0x2053a
jmp 0x20530
jmp 0x2053a
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2053d
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x2053d
jmp 0x20530
jmp 0x204ea
movq %rax, %rbx
jmp 0x2057f
jmp 0x20535
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r13, %rdi
je 0x20563
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x20563
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x20559
movq 0xa8(%rsp), %rsi
jmp 0x20551
movq %rax, %rbx
jmp 0x20559
movq %rax, %rbx
jmp 0x20563
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x20559
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53b0
leaq 0x48(%rsp), %rdi
callq 0x8206
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2057f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x205a1
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x53b0
leaq 0x60(%rsp), %rdi
callq 0x8206
movq %rbx, %rdi
callq 0x5660
nop