// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/CmdLineParser.cpp
// Function: CmdLineParser::parseCmdLine(int, char**)
bool CmdLineParser::parseCmdLine(int argc, char **argv) {
    for (int argNdx = 0; argNdx < argc; argNdx++) {
        const char *arg = argv[argNdx];
        Utilities::check(arg != NULL, 
                "CmdLineParser::parseCmdLine(): found NULL argument");
        if (strlen(arg) == 0) {
            parseError("received a command line option that was empty");
            return false;
        }

        if (arg[0] == '-') {
            string optionName(arg + 1);
            CmdLineOption *option = findOption(optionName);
            if (option == NULL) {
                parseError(string("Unknown option: ") + optionName);
                return false;
            }

            // tell this option that it was specified
            option->setSpecified();

            string argument;
            if (option->requiresArgument()) {
                if (argNdx >= argc - 1) {
                    parseError(string("Argument required for option ") +
                               option->getName());
                    return false;
                }

                // don't check if the next token is actually another option; in
                // this case the user must figure it out...
                argNdx++;
                argument = string(argv[argNdx]);

                if (! option->parseArgument(argument)) {
                    parseError("Parsing argument -" + option->getName() + 
                                " : " + option->getParseError());
                    return false;
                }
            }
        } else {
            extraArguments.push_back(string(arg));
        }
    }

    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdx, 0xb8(%rsp)
testl %esi, %esi
setle %bpl
jle 0x5129
leaq 0x38(%rsp), %r13
leaq 0x20(%rdi), %rax
movq %rax, 0xd8(%rsp)
leaq 0x28(%rdi), %rax
movq %rax, 0xc8(%rsp)
movq %rsi, 0xe0(%rsp)
leal -0x1(%rsi), %eax
movl %eax, 0x94(%rsp)
leaq 0x68(%rdi), %rax
movq %rax, 0x88(%rsp)
movq %rdi, 0xc0(%rsp)
leaq 0x50(%rdi), %rax
movq %rax, 0xd0(%rsp)
xorl %r14d, %r14d
leaq 0x28(%rsp), %r12
movslq %r14d, %rbx
movq 0xb8(%rsp), %rax
movq (%rax,%rbx,8), %r15
movq %r13, 0x28(%rsp)
movq %r12, %rdi
leaq 0x1747e(%rip), %rsi     # 0x1c004
leaq 0x174a9(%rip), %rdx     # 0x1c036
callq 0x6086
testq %r15, %r15
je 0x5141
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4bb2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42d0
movzbl (%r15), %eax
cmpl $0x2d, %eax
je 0x4c0d
testl %eax, %eax
jne 0x4c68
movq %r13, 0x28(%rsp)
movq %r12, %rdi
leaq 0x17465(%rip), %rsi     # 0x1c037
leaq 0x1748b(%rip), %rdx     # 0x1c064
callq 0x6086
movq 0x88(%rsp), %rdi
movq %r12, %rsi
callq 0x4180
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4c05
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42d0
xorl %r13d, %r13d
jmp 0x510a
movq %r13, %rax
leaq 0x1(%r15), %r13
movq %rax, 0x28(%rsp)
movq %r13, %rdi
callq 0x4150
leaq (%r15,%rax), %rdx
incq %rdx
movq %r12, %rdi
movq %r13, %rsi
callq 0x6086
movq 0xd8(%rsp), %rdi
movq %r12, %rsi
callq 0x5f62
leaq 0x78(%rsp), %r13
cmpq 0xc8(%rsp), %rax
je 0x4cb3
movslq 0x40(%rax), %rax
movq 0xc0(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx,%rax,8), %r15
jmp 0x4cb6
movq %r13, 0x28(%rsp)
movq %r15, %rdi
callq 0x4150
leaq (%rax,%r15), %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x6086
movq 0xd0(%rsp), %rdi
movq %r12, %rsi
callq 0x6116
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4cab
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42d0
movb $0x1, %r13b
jmp 0x510a
xorl %r15d, %r15d
testq %r15, %r15
je 0x4dc3
movq (%r15), %rax
movq %r15, %rdi
callq *0x10(%rax)
movq %r13, 0x68(%rsp)
movq $0x0, 0x70(%rsp)
movb $0x0, 0x78(%rsp)
movb $0x1, %r13b
cmpb $0x1, 0x88(%r15)
jne 0x50d2
cmpl 0x94(%rsp), %r14d
jge 0x4e1d
movq 0xb8(%rsp), %rax
movq 0x8(%rax,%rbx,8), %rsi
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x48(%rsp), %rdx
callq 0x5e9c
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0x4380
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4d42
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
incl %r14d
cmpb $0x1, 0x88(%r15)
jne 0x4d65
movq (%r15), %rax
movq %r15, %rdi
leaq 0x68(%rsp), %rsi
callq *0x18(%rax)
testb %al, %al
jne 0x50d2
leaq 0x8(%r15), %rdx
leaq 0xe8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x17319(%rip), %rsi     # 0x1c094
callq 0x5ed9
movq %rbx, %rdi
leaq 0x1731d(%rip), %rsi     # 0x1c0a7
callq 0x45d0
leaq 0x58(%rsp), %rbx
leaq 0x18(%rsp), %r13
movq %rbx, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4f47
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x4f4d
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x17289(%rip), %rsi     # 0x1c065
leaq 0x17292(%rip), %rdx     # 0x1c075
callq 0x6086
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %rbx, %rdi
callq 0x4110
movq %r13, 0x68(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4e7f
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x4e87
leaq 0x58(%rsp), %rbx
movq %rbx, 0x48(%rsp)
leaq 0x48(%rsp), %r13
movq %r13, %rdi
leaq 0x17240(%rip), %rsi     # 0x1c076
leaq 0x17256(%rip), %rdx     # 0x1c093
callq 0x6086
movq 0x8(%r15), %rsi
movq 0x10(%r15), %rdx
movq %r13, %rdi
callq 0x4110
leaq 0x18(%rsp), %r15
leaq 0x8(%rsp), %rsi
movq %r15, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4eec
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4ef3
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x4180
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x4ec8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4ee4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
xorl %r13d, %r13d
jmp 0x50ee
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x88(%rsp), %rdi
callq 0x4180
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4f2f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x50cf
movq 0x58(%rsp), %rsi
jmp 0x50c7
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x68(%r15), %rsi
movq 0x70(%r15), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x5ff6
movq 0x48(%rsp), %rcx
movl $0xf, %esi
cmpq %rbx, %rcx
je 0x4fa1
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %r8
movq 0xa0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x4fdb
movl $0xf, %esi
leaq 0xa8(%rsp), %rdi
cmpq %rdi, 0x98(%rsp)
je 0x4fd6
movq 0xa8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4fef
movq 0x98(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x4110
jmp 0x5000
leaq 0x98(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4320
movq %r13, 0x8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x5020
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x5028
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x88(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x4180
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x506e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x5093
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x50aa
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x50cf
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x42d0
xorl %r13d, %r13d
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x50ee
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x510a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42d0
testb %r13b, %r13b
leaq 0x38(%rsp), %r13
je 0x5129
incl %r14d
cmpl 0xe0(%rsp), %r14d
setge %bpl
jl 0x4b68
andb $0x1, %bpl
movl %ebp, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x221e8(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %r14
leaq 0x1701f(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %r14, %rdi
callq 0x4330
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
jmp 0x5259
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x51ae
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x51ae
movq %rax, %r14
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x51d8
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x51d8
movq %rax, %r14
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x51f9
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x51f9
movq %rax, %r14
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x525c
movq 0xf8(%rsp), %rsi
jmp 0x524f
jmp 0x5259
jmp 0x5259
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x523b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x523b
movq %rax, %r14
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x525c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x525c
movq %rax, %r14
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x52cd
movq 0x78(%rsp), %rsi
jmp 0x52a5
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x5291
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x5291
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x52cd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x52cd
jmp 0x52ca
jmp 0x52eb
jmp 0x52b7
jmp 0x52eb
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
jne 0x52dc
jmp 0x52ee
jmp 0x52eb
jmp 0x52ca
movq %rax, %r14
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x52ee
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x52ee
movq %rax, %r14
movq %r14, %rdi
callq 0x4580