// File: /workspace/github_cpp_makefile_star2_O2/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, 0x8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0xee71(%rip), %rsi      # 0x28946
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x6cfa
pushq $0x1
popq %r13
leaq 0x48(%rsp), %r15
leaq 0xa8(%rsp), %r12
leaq 0x10(%rsp), %rbx
leaq 0xd867(%rip), %rbp      # 0x27368
movq %r13, %r14
movq 0x8(%rsp), %rcx
movslq 0x18(%rcx), %rax
cmpq %rax, %r14
jge 0x19b78
movq 0x20(%rcx), %rax
movq (%rax,%r14,8), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x6cfa
movq 0x48(%rsp), %rax
cmpb $0x2d, (%rax)
jne 0x19b49
movq %r15, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x50b0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x14efa
jmp 0x19b6b
movq 0x18(%rsp), %rdi
addq $-0x20, %rdi
movq %rbp, %rsi
callq 0x5690
movq 0x18(%rsp), %rdi
addq $-0x20, %rdi
movq %r15, %rsi
callq 0x56c0
movq %r15, %rdi
callq 0x56f8
incq %r14
jmp 0x19b04
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
movl $0x0, 0x4(%rsp)
leaq 0x48(%rsp), %rbp
leaq 0xc8(%rsp), %r12
leaq 0xa8(%rsp), %r13
leaq 0xd7bd(%rip), %r15      # 0x27368
cmpq 0x40(%rsp), %r14
je 0x19d32
movq %rbp, %rdi
movq %r14, %rsi
callq 0x54a0
leaq 0x108(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x54a0
leaq 0x28(%rsp), %rdi
movq %rbx, %rdx
pushq $0x20
popq %rcx
callq 0x1967c
movq %rbx, %rdi
callq 0x56f8
movq 0x28(%rsp), %rsi
movq %r12, %rdi
callq 0x54a0
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x1a192
movq %r12, %rdi
movq %rax, %r12
callq 0x56f8
testq %r12, %r12
je 0x19cc8
movq %rbp, %rbx
movq %r13, %rdi
leaq 0xed1f(%rip), %rsi      # 0x28946
leaq 0x3(%rsp), %rdx
callq 0x6cfa
pushq $0x2
popq %rax
movl %eax, %ebp
leal -0x1(%rbp), %eax
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
cmpq %rax, %rcx
jbe 0x19c83
shlq $0x5, %rax
addq %rax, %rsi
movq %r13, %rdi
callq 0x56c0
movl %ebp, %eax
movq 0x30(%rsp), %rcx
subq 0x28(%rsp), %rcx
sarq $0x5, %rcx
cmpq %rax, %rcx
jbe 0x19c7e
movq %r13, %rdi
movq %r15, %rsi
callq 0x5690
addl $0x2, %ebp
jmp 0x19c36
leaq 0xe8(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
callq 0x54a0
movq %r12, %rdi
addq $0x40, %rdi
movq %rbp, %rsi
callq 0x5210
movq %rbp, %rdi
movq %rbx, %rbp
callq 0x56f8
movb $0x1, 0x39(%r12)
movq %r13, %rdi
callq 0x56f8
leaq 0xc8(%rsp), %r12
jmp 0x19d17
testb $0x1, 0x4(%rsp)
leaq 0xc8(%rsp), %r12
je 0x19ce8
leaq 0x68(%rsp), %rdi
leaq 0xeaf3(%rip), %rsi      # 0x287d6
callq 0x5690
movq 0x28(%rsp), %rdx
movq %r13, %rdi
leaq 0xea9b(%rip), %rsi      # 0x28792
callq 0xb6ee
leaq 0x68(%rsp), %rdi
movq %r13, %rsi
callq 0x56c0
movq %r13, %rdi
callq 0x56f8
movb $0x1, %al
movl %eax, 0x4(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x709c
movq %rbp, %rdi
callq 0x56f8
addq $0x20, %r14
jmp 0x19bab
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x54a0
leaq 0x88(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x1a128
leaq 0x88(%rsp), %rdi
callq 0x56f8
leaq 0x68(%rsp), %rdi
callq 0x56f8
leaq 0x10(%rsp), %rdi
callq 0x709c
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
jmp 0x19e08
jmp 0x19dda
movq %rax, %rbx
jmp 0x19e17
jmp 0x19ddf
jmp 0x19de9
jmp 0x19de9
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x56f8
jmp 0x19dec
jmp 0x19ddf
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
jmp 0x19df4
jmp 0x19dda
jmp 0x19de4
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
callq 0x56f8
jmp 0x19e03
movq %rax, %rbx
jmp 0x19e0d
movq %rax, %rbx
jmp 0x19df9
movq %rax, %rbx
jmp 0x19e03
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x56f8
leaq 0x28(%rsp), %rdi
callq 0x709c
leaq 0x48(%rsp), %rdi
callq 0x56f8
leaq 0x68(%rsp), %rdi
callq 0x56f8
leaq 0x10(%rsp), %rdi
callq 0x709c
movq %rbx, %rdi
callq 0x5610
nop