// File: /workspace/github_cpp_makefile_star2_O3/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
movb $0x1, %al
testl %esi, %esi
jle 0x50fe
movq %rdx, %rbx
movl %esi, %r12d
leaq 0x38(%rsp), %r14
leaq 0x20(%rdi), %rax
movq %rax, 0xe0(%rsp)
leaq 0x28(%rdi), %rax
movq %rax, 0xd0(%rsp)
leaq 0x88(%rsp), %r13
leal -0x1(%r12), %eax
movl %eax, 0x9c(%rsp)
leaq 0x68(%rdi), %rax
movq %rax, 0x70(%rsp)
movq %rdi, 0xc8(%rsp)
leaq 0x50(%rdi), %rax
movq %rax, 0xd8(%rsp)
xorl %r15d, %r15d
movq %rdx, 0xc0(%rsp)
movq %r12, 0x48(%rsp)
movslq %r15d, %r12
movq (%rbx,%r12,8), %rbp
movq %r14, 0x28(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x174b1(%rip), %rsi     # 0x1c004
leaq 0x174dc(%rip), %rdx     # 0x1c036
callq 0x6058
testq %rbp, %rbp
je 0x5110
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x4b7f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42d0
movzbl (%rbp), %eax
cmpl $0x2d, %eax
je 0x4be6
testl %eax, %eax
je 0x50bb
movq %r14, 0x28(%rsp)
movq %rbp, %rdi
callq 0x4150
leaq (%rax,%rbp), %rdx
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
callq 0x6058
movq 0xd8(%rsp), %rdi
movq %r12, %rsi
callq 0x60ee
movq 0x48(%rsp), %r12
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x50ab
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x50ab
leaq 0x1(%rbp), %rbx
movq %r14, 0x28(%rsp)
movq %rbx, %rdi
callq 0x4150
leaq (%rax,%rbp), %rdx
incq %rdx
leaq 0x28(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x6058
movq 0xe0(%rsp), %rdi
movq %rbp, %rsi
callq 0x5f2e
movq %r13, %rbx
cmpq 0xd0(%rsp), %rax
je 0x4d0a
movslq 0x40(%rax), %rax
movq 0xc8(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx,%rax,8), %rbp
testq %rbp, %rbp
je 0x4d0a
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x10(%rax)
movq %rbx, 0x78(%rsp)
movq $0x0, 0x80(%rsp)
movb $0x0, 0x88(%rsp)
movb $0x1, %bl
cmpb $0x1, 0x88(%rbp)
jne 0x4d00
cmpl 0x9c(%rsp), %r15d
jge 0x4dd4
movq 0xc0(%rsp), %rax
movq 0x8(%rax,%r12,8), %rsi
leaq 0x8(%rsp), %r12
movq %r12, %rdi
leaq 0x50(%rsp), %rdx
callq 0x5e68
leaq 0x78(%rsp), %rdi
movq %r12, %rsi
callq 0x4380
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4cd4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
incl %r15d
cmpb $0x1, 0x88(%rbp)
leaq 0x60(%rsp), %r12
jne 0x4e31
movq (%rbp), %rax
movq %rbp, %rdi
leaq 0x78(%rsp), %rsi
callq *0x18(%rax)
testb %al, %al
je 0x4e31
movq 0x48(%rsp), %r12
jmp 0x506e
leaq 0x18(%rsp), %r12
movq %r12, 0x8(%rsp)
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x17342(%rip), %rsi     # 0x1c065
leaq 0x1734b(%rip), %rdx     # 0x1c075
callq 0x6058
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %rbp, %rdi
callq 0x4110
movq %rbx, 0x78(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4d67
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x4d6d
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x70(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x4180
movq 0x78(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4db1
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4dc8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
xorl %ebx, %ebx
movq 0x48(%rsp), %r12
jmp 0x5088
leaq 0x60(%rsp), %rbx
movq %rbx, 0x50(%rsp)
leaq 0x50(%rsp), %r12
movq %r12, %rdi
leaq 0x17289(%rip), %rsi     # 0x1c076
leaq 0x1729f(%rip), %rdx     # 0x1c093
callq 0x6058
movq 0x8(%rbp), %rsi
movq 0x10(%rbp), %rdx
movq %r12, %rdi
callq 0x4110
leaq 0x18(%rsp), %r12
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4e7e
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4e86
leaq 0x8(%rbp), %rdx
leaq 0xe8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x1724d(%rip), %rsi     # 0x1c094
callq 0x5ea5
movq %rbx, %rdi
leaq 0x17251(%rip), %rsi     # 0x1c0a7
callq 0x45d0
movq %r12, 0x50(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4ee1
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x4ee9
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x70(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x4180
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4ec4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
movq 0x48(%rsp), %r12
je 0x506c
movq 0x60(%rsp), %rsi
jmp 0x5064
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xb0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x68(%rbp), %rsi
movq 0x70(%rbp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0x5fc2
movq 0x50(%rsp), %rcx
movl $0xf, %edi
cmpq %r12, %rcx
leaq 0x18(%rsp), %rbp
je 0x4f42
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %r8
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x4f7f
movl $0xf, %edi
leaq 0xb0(%rsp), %r9
cmpq %r9, %rsi
je 0x4f7a
movq 0xb0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x4f8b
leaq 0x50(%rsp), %rdi
callq 0x4110
jmp 0x4f9c
leaq 0xa0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4320
movq %rbp, 0x8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x4fbc
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4fc3
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x70(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x4180
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5006
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x502b
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x5042
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
movq 0x48(%rsp), %r12
je 0x506c
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x42d0
xorl %ebx, %ebx
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x5088
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x509f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42d0
testb %bl, %bl
movq 0xc0(%rsp), %rbx
je 0x50fc
incl %r15d
cmpl %r12d, %r15d
jl 0x4b3b
movb $0x1, %al
jmp 0x50fe
leaq 0x28(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x16f6d(%rip), %rsi     # 0x1c037
leaq 0x16f93(%rip), %rdx     # 0x1c064
callq 0x6058
leaq 0x28(%rsp), %rsi
movq 0x70(%rsp), %rdi
callq 0x4180
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x50fc
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42d0
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x22219(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x17050(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
jmp 0x5296
jmp 0x52b2
jmp 0x5232
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5187
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x5187
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x51b1
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x51b1
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x51d2
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x51d2
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x5235
movq 0xf8(%rsp), %rsi
jmp 0x5228
jmp 0x5232
jmp 0x5232
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5214
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x5214
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x5235
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x5235
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x5299
movq 0x88(%rsp), %rsi
jmp 0x5282
movq %rbx, %rcx
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %rcx, %rdi
je 0x526e
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x526e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5299
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x5299
jmp 0x5296
jmp 0x5296
jmp 0x52b2
jmp 0x52b2
jmp 0x5296
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x52b5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x52b5
movq %rax, %rbx
movq %rbx, %rdi
callq 0x4580
nop