// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/../argparse/argparse.hpp
// Function: ArgumentParser::parse(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
void parse(const StringVector& argv) {
        // check if the app is named
        if (app_name_.empty() && ignore_first_ && !argv.empty()) app_name_ = argv[0];

        // set up the working set
        Argument active;
        Argument final = final_name_.empty() ? Argument() : arguments_[index_[final_name_]];
        size_t consumed = 0;
        size_t nrequired = final.optional ? required_ : required_ - 1;
        size_t nfinal = final.optional ? 0 : (final.fixed ? final.fixed_nargs
                                                          : (final.variable_nargs == '+' ? 1 : 0));

        // iterate over each element of the array
        for (StringVector::const_iterator in = argv.begin() + ignore_first_;
             in < argv.end() - nfinal; ++in) {
            String active_name = active.canonicalName();
            String el = *in;
            //  check if the element is a key
            if (index_.count(el) == 0) {
                // input
                // is the current active argument expecting more inputs?
                if (active.fixed && active.fixed_nargs <= consumed)
                    argumentError(String("attempt to pass too many inputs to ").append(active_name),
                                  true);
                if (active.fixed && active.fixed_nargs == 1) {
                    variables_[index_[active_name]].castTo<String>() = el;
                } else {
                    variables_[index_[active_name]].castTo<StringVector>().push_back(el);
                }
                consumed++;
            } else {
                // new key!
                // has the active argument consumed enough elements?
                if ((active.fixed && active.fixed_nargs != consumed) ||
                    (!active.fixed && active.variable_nargs == '+' && consumed < 1))
                    argumentError(String("encountered argument ")
                                      .append(el)
                                      .append(" when expecting more inputs to ")
                                      .append(active_name),
                                  true);
                active = arguments_[index_[el]];
                // check if we've satisfied the required arguments
                if (active.optional && nrequired > 0)
                    argumentError(String("encountered optional argument ")
                                      .append(el)
                                      .append(" when expecting more required arguments"),
                                  true);
                // are there enough arguments for the new argument to consume?
                if ((active.fixed && active.fixed_nargs > (argv.end() - in - nfinal - 1)) ||
                    (!active.fixed && active.variable_nargs == '+' &&
                     !(argv.end() - in - nfinal - 1)))
                    argumentError(String("too few inputs passed to argument ").append(el), true);
                if (!active.optional) nrequired--;
                consumed = 0;
            }
        }

        for (StringVector::const_iterator in =
                 std::max(argv.begin() + ignore_first_, argv.end() - nfinal);
             in != argv.end(); ++in) {
            String el = *in;
            // check if we accidentally find an argument specifier
            if (index_.count(el))
                argumentError(String("encountered argument specifier ")
                                  .append(el)
                                  .append(" while parsing final required inputs"),
                              true);
            if (final.fixed && final.fixed_nargs == 1) {
                variables_[index_[final_name_]].castTo<String>() = el;
            } else {
                variables_[index_[final_name_]].castTo<StringVector>().push_back(el);
            }
            nfinal--;
        }

        // check that all of the required arguments have been encountered
        if (nrequired > 0 || nfinal > 0)
            argumentError(String("too few required arguments passed to ").append(app_name_), true);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rsi, %rbp
movq %rdi, %rbx
cmpq $0x0, 0x50(%rdi)
jne 0x415547
cmpb $0x1, 0x38(%rbx)
jne 0x415547
movq (%rbp), %rsi
cmpq 0x8(%rbp), %rsi
je 0x415547
leaq 0x48(%rbx), %rdi
callq 0x4951f0
leaq 0x80(%rsp), %rdi
callq 0x415e5c
leaq 0x68(%rbx), %r13
cmpq $0x0, 0x70(%rbx)
je 0x4155db
movq %rbx, %rdi
movq %r13, %rsi
callq 0x414c08
movq 0x88(%rbx), %r14
imulq $0x58, (%rax), %r12
leaq 0x100(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14,%r12), %rsi
movq 0x8(%r14,%r12), %rdx
addq %rsi, %rdx
leaq 0xf0(%rsp), %rdi
callq 0x40e292
addq %r12, %r14
leaq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
callq 0x40e292
movb 0x50(%r14), %al
movb %al, 0x140(%rsp)
movups 0x40(%r14), %xmm0
movups %xmm0, 0x130(%rsp)
jmp 0x4155e8
leaq 0xf0(%rsp), %rdi
callq 0x415e5c
movzbl 0x130(%rsp), %ecx
movq 0x40(%rbx), %rsi
movq %rcx, %rax
xorq $0x1, %rax
testq %rcx, %rcx
movq %r13, 0x78(%rsp)
je 0x41560a
xorl %r13d, %r13d
jmp 0x41562d
cmpb $0x1, 0x140(%rsp)
jne 0x41561e
movq 0x138(%rsp), %r13
jmp 0x41562d
xorl %r13d, %r13d
cmpb $0x2b, 0x138(%rsp)
sete %r13b
subq %rax, %rsi
movq (%rbp), %r12
movq %rbp, 0x70(%rsp)
movq 0x8(%rbp), %rax
movzbl 0x38(%rbx), %ebp
movl %ebp, %r14d
shll $0x5, %r14d
addq %r12, %r14
movq %r13, %rdx
shlq $0x5, %rdx
movq %rax, %rcx
subq %rdx, %rcx
cmpq %rcx, %r14
jae 0x415aea
movq %rsi, 0x68(%rsp)
movq %r13, %rax
negq %rax
leaq 0x1(%r13), %rcx
movq %rcx, 0xd8(%rsp)
movq %r13, %rcx
notq %rcx
movq %rcx, 0xe0(%rsp)
shll $0x5, %ebp
addq %rbp, %r12
negq %r12
xorl %r15d, %r15d
shlq $0x5, %rax
movq %rax, 0xe8(%rsp)
cmpq $0x0, 0xa8(%rsp)
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0xa0(%rsp), %rax
leaq 0x80(%rsp), %rcx
cmoveq %rcx, %rax
movq (%rax), %rsi
leaq 0xa8(%rsp), %rax
leaq 0x88(%rsp), %rcx
cmoveq %rcx, %rax
movq (%rax), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x40e292
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rbp
movq %rbp, %rdi
callq 0x40e292
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x415f54
movb 0xd0(%rsp), %cl
movq 0xc8(%rsp), %rdx
testq %rax, %rax
je 0x4158e9
cmpq %r15, %rdx
setne %al
testb %al, %cl
jne 0x415755
notb %cl
cmpb $0x2b, %dl
sete %al
testq %r15, %r15
sete %dl
andb %cl, %dl
andb %al, %dl
cmpb $0x1, %dl
jne 0x4157d9
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
leaq 0x180c9d(%rip), %rsi    # 0x59640b
leaq 0x180cab(%rip), %rdx    # 0x596420
callq 0x40e328
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %r15, %rdi
callq 0x496c30
movq %rax, %rdi
leaq 0x180c8b(%rip), %rsi    # 0x596421
callq 0x496d70
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %rax, %rdi
callq 0x496c30
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x414102
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4157d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
callq 0x414c08
imulq $0x58, (%rax), %r15
addq 0x88(%rbx), %r15
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x4951f0
leaq 0x20(%r15), %rsi
leaq 0xa0(%rsp), %rdi
callq 0x4951f0
movb 0x50(%r15), %al
leaq 0xa0(%rsp), %rcx
movb %al, 0x30(%rcx)
movups 0x40(%r15), %xmm0
movups %xmm0, 0x20(%rcx)
cmpb $0x1, 0xc0(%rsp)
movq 0x68(%rsp), %r15
jne 0x4158b0
testq %r15, %r15
je 0x4158b0
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x180bea(%rip), %rsi    # 0x596441
leaq 0x180c01(%rip), %rdx    # 0x59645f
callq 0x40e328
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %rbp, %rdi
callq 0x496c30
movq %rax, %rdi
leaq 0x180be1(%rip), %rsi    # 0x596460
callq 0x496d70
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x414102
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4158b0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4177e0
cmpb $0x1, 0xd0(%rsp)
jne 0x4159ac
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rax
addq %r12, %rax
sarq $0x5, %rax
addq 0xe0(%rsp), %rax
cmpq %rax, 0xc8(%rsp)
ja 0x4159d0
jmp 0x415a33
cmpq %r15, %rdx
setbe %al
andb %cl, %al
cmpb $0x1, %al
jne 0x415967
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x180ad9(%rip), %rsi    # 0x5963e7
leaq 0x180af5(%rip), %rdx    # 0x59640a
callq 0x40e328
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %rbp, %rdi
callq 0x496c30
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x414102
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x415958
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4177e0
movb 0xd0(%rsp), %cl
movq 0xc8(%rsp), %rdx
testb $0x1, %cl
je 0x415a4c
cmpq $0x1, %rdx
jne 0x415a4c
movq %rbx, %rdi
leaq 0x28(%rsp), %rsi
callq 0x414c08
movq (%rax), %rdi
shlq $0x3, %rdi
addq 0xa0(%rbx), %rdi
callq 0x415ec8
movq %rax, %rdi
leaq 0x48(%rsp), %rsi
callq 0x4951f0
jmp 0x415a79
cmpb $0x2b, 0xc8(%rsp)
jne 0x415a33
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rax
addq %r12, %rax
sarq $0x5, %rax
cmpq 0xd8(%rsp), %rax
jne 0x415a33
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x180a9f(%rip), %rsi    # 0x596488
leaq 0x180aba(%rip), %rdx    # 0x5964aa
callq 0x40e328
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %rbp, %rdi
callq 0x496c30
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x414102
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x415a33
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4177e0
movzbl 0xc0(%rsp), %eax
xorq $0x1, %rax
subq %rax, %r15
movq %r15, 0x68(%rsp)
xorl %r15d, %r15d
jmp 0x415a7c
movq %rbx, %rdi
leaq 0x28(%rsp), %rsi
callq 0x414c08
movq (%rax), %rdi
shlq $0x3, %rdi
addq 0xa0(%rbx), %rdi
callq 0x415f0e
movq %rax, %rdi
leaq 0x48(%rsp), %rsi
callq 0x40e050
incq %r15
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x415a98
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x415ab4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4177e0
addq $0x20, %r14
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rax
movq 0xe8(%rsp), %rcx
addq %rax, %rcx
addq $-0x20, %r12
cmpq %rcx, %r14
jb 0x41569e
movq 0x70(%rsp), %rdx
movq (%rdx), %r12
movzbl 0x38(%rbx), %ebp
movq 0x68(%rsp), %rsi
movq %rsi, 0x68(%rsp)
shll $0x5, %ebp
addq %r12, %rbp
cmpq %rcx, %rbp
cmovbq %rcx, %rbp
cmpq %rax, %rbp
je 0x415c4b
leaq 0x28(%rsp), %r12
leaq 0x48(%rsp), %r15
leaq 0x1809b5(%rip), %r14    # 0x5964cb
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x40e292
movq %rbx, %rdi
movq %r12, %rsi
callq 0x415f54
testq %rax, %rax
je 0x415bac
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq %r15, %rdi
leaq 0x180954(%rip), %rsi    # 0x5964ab
leaq 0x18096c(%rip), %rdx    # 0x5964ca
callq 0x40e328
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r15, %rdi
callq 0x496c30
movq %rax, %rdi
movq %r14, %rsi
callq 0x496d70
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x414102
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x415bac
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4177e0
cmpb $0x1, 0x140(%rsp)
jne 0x415bee
cmpq $0x1, 0x138(%rsp)
jne 0x415bee
movq %rbx, %rdi
movq 0x78(%rsp), %rsi
callq 0x414c08
movq (%rax), %rdi
shlq $0x3, %rdi
addq 0xa0(%rbx), %rdi
callq 0x415ec8
movq %rax, %rdi
movq %r12, %rsi
callq 0x4951f0
jmp 0x415c19
movq %rbx, %rdi
movq 0x78(%rsp), %rsi
callq 0x414c08
movq (%rax), %rdi
shlq $0x3, %rdi
addq 0xa0(%rbx), %rdi
callq 0x415f0e
movq %rax, %rdi
movq %r12, %rsi
callq 0x40e050
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x415c35
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4177e0
addq $0x20, %rbp
decq %r13
movq 0x70(%rsp), %rax
cmpq 0x8(%rax), %rbp
jne 0x415b16
orq %r13, 0x68(%rsp)
je 0x415cb0
leaq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
movq %rax, (%rdi)
leaq 0x18088a(%rip), %rsi    # 0x5964f0
leaq 0x1808a8(%rip), %rdx    # 0x596515
callq 0x40e328
movq 0x48(%rbx), %rsi
movq 0x50(%rbx), %rdx
leaq 0x28(%rsp), %rdi
callq 0x496c30
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x414102
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x415cb0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4177e0
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x415cd1
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x4177e0
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x415cf2
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4177e0
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x415d13
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x4177e0
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x415d34
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4177e0
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x415d8f
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r15, %rdi
je 0x415e04
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4177e0
jmp 0x415e04
jmp 0x415dd8
movq %rax, %rbx
jmp 0x415e04
jmp 0x415db7
jmp 0x415db7
jmp 0x415db7
jmp 0x415d94
jmp 0x415db7
jmp 0x415d94
jmp 0x415dd8
jmp 0x415d94
jmp 0x415d8f
jmp 0x415dd8
movq %rax, %rbx
jmp 0x415df7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x415dba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4177e0
jmp 0x415dba
jmp 0x415db7
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x415ddb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4177e0
jmp 0x415ddb
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x415df7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4177e0
leaq 0xf0(%rsp), %rdi
callq 0x4140cc
leaq 0x80(%rsp), %rdi
callq 0x4140cc
movq %rbx, %rdi
callq 0x4c34a0
nop