// File: /workspace/github_cpp_makefile_star2_O1/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 0x129d3(%rip), %rdx     # 0x32973
leaq 0x78(%rsp), %rdi
movq %rdx, %rsi
callq 0x823c
cmpl $0x2, 0x18(%rbx)
jl 0x20060
movl $0x1, %ebp
leaq 0x8(%rsp), %r14
leaq 0x28(%rsp), %r15
leaq 0x60(%rsp), %r12
leaq 0x113c6(%rip), %r13     # 0x31398
movq 0x20(%rbx), %rax
movq (%rax,%rbp,8), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x210a2
movq 0x8(%rsp), %rax
cmpb $0x2d, (%rax)
jne 0x2000b
movl $0x1, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x50c0
movq %r12, %rdi
movq %r14, %rsi
callq 0x1a992
jmp 0x20034
movq 0x68(%rsp), %rdi
addq $-0x20, %rdi
movq %r13, %rsi
callq 0x5700
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 0x20050
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53c0
incq %rbp
movslq 0x18(%rbx), %rax
cmpq %rax, %rbp
jl 0x1ffd2
movq 0x60(%rsp), %r12
movq 0x68(%rsp), %rax
movq %rax, 0xc0(%rsp)
cmpq %rax, %r12
je 0x2032c
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 0x82cc
movq %r13, 0x108(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %r15
movq %r15, %rdi
callq 0x82cc
leaq 0x48(%rsp), %rdi
movq %r15, %rdx
movl $0x20, %ecx
callq 0x1f960
movq 0x108(%rsp), %rdi
cmpq %r13, %rdi
je 0x20114
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x48(%rsp), %rax
movq %r14, 0x98(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x82cc
movq %rbx, %rdi
leaq 0x98(%rsp), %rsi
callq 0x20b70
movq %rax, %r15
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x20168
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x53c0
testq %r15, %r15
je 0x20292
movq %r13, %rbx
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %rbp, %rdi
leaq 0x127eb(%rip), %rdx     # 0x32973
movq %rdx, %rsi
callq 0x823c
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rcx
subq %rax, %rcx
cmpq $0x21, %rcx
jb 0x20206
movl $0x1, %ecx
movl $0x2, %r13d
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq %rbp, %rdi
callq 0x5110
movl %r13d, %eax
movq 0x50(%rsp), %rcx
subq 0x48(%rsp), %rcx
sarq $0x5, %rcx
cmpq %rax, %rcx
jbe 0x201e8
movq %rbp, %rdi
leaq 0x111b5(%rip), %rsi     # 0x31398
callq 0x5700
leal 0x1(%r13), %ecx
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
addl $0x2, %r13d
cmpq %rcx, %rdx
ja 0x201ae
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 0x82cc
leaq 0x40(%r15), %rdi
movq %r14, %rsi
callq 0x5210
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
movq %rbx, %r13
je 0x2025f
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x53c0
movb $0x1, 0x39(%r15)
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
movq 0xb8(%rsp), %rbx
je 0x20288
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53c0
leaq 0xa8(%rsp), %r14
jmp 0x202f4
testb $0x1, 0x4(%rsp)
je 0x202aa
leaq 0x78(%rsp), %rdi
leaq 0x1255e(%rip), %rsi     # 0x32803
callq 0x5700
movq 0x48(%rsp), %rdx
movq %rbp, %rdi
leaq 0x12506(%rip), %rsi     # 0x327bf
callq 0xe91d
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 0x202ee
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53c0
movb $0x1, %al
movl %eax, 0x4(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x81e0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2031a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53c0
addq $0x20, %r12
cmpq 0xc0(%rsp), %r12
jne 0x200a0
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0x82cc
leaq 0xc8(%rsp), %rsi
movq %rbx, %rdi
callq 0x20b04
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x20382
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x203a4
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x53c0
leaq 0x60(%rsp), %rdi
callq 0x81e0
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 0x204ac
movq 0xd8(%rsp), %rsi
jmp 0x204a4
jmp 0x20417
movq %rax, %rbx
jmp 0x204ce
jmp 0x20467
jmp 0x2045d
jmp 0x20467
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2046a
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x53c0
jmp 0x2046a
jmp 0x2045d
jmp 0x20417
movq %rax, %rbx
jmp 0x204ac
jmp 0x20462
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r13, %rdi
je 0x20490
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x53c0
jmp 0x20490
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x20486
movq 0xa8(%rsp), %rsi
jmp 0x2047e
movq %rax, %rbx
jmp 0x20486
movq %rax, %rbx
jmp 0x20490
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x20486
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53c0
leaq 0x48(%rsp), %rdi
callq 0x81e0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x204ac
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x204ce
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x53c0
leaq 0x60(%rsp), %rdi
callq 0x81e0
movq %rbx, %rdi
callq 0x5670