// File: /workspace/github_cpp_makefile_star2_O2/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 $0x158, %rsp            # imm = 0x158
movq %rsi, 0x8(%rsp)
movq %rdi, %rbx
leaq 0x48(%rdi), %rax
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x50(%rdi)
jne 0x410ea9
cmpb $0x1, 0x38(%rbx)
jne 0x410ea9
movq 0x8(%rsp), %rax
movq (%rax), %rsi
cmpq 0x8(%rax), %rsi
je 0x410ea9
movq 0x38(%rsp), %rdi
callq 0x490660
leaq 0x88(%rsp), %rdi
callq 0x411492
leaq 0x68(%rbx), %r14
cmpq $0x0, 0x70(%rbx)
je 0x410ee6
movq %rbx, %rdi
movq %r14, %rsi
callq 0x410620
imulq $0x58, (%rax), %rsi
addq 0x88(%rbx), %rsi
leaq 0x100(%rsp), %rdi
callq 0x40ffc6
jmp 0x410ef3
leaq 0x100(%rsp), %rdi
callq 0x411492
movzbl 0x140(%rsp), %ecx
movq 0x40(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rcx, %rax
xorq $0x1, %rax
testq %rcx, %rcx
movq %r14, 0x40(%rsp)
je 0x410f19
xorl %ecx, %ecx
jmp 0x410f3a
cmpb $0x1, 0x150(%rsp)
jne 0x410f2d
movq 0x148(%rsp), %rcx
jmp 0x410f3a
xorl %ecx, %ecx
cmpb $0x2b, 0x148(%rsp)
sete %cl
subq %rax, 0x10(%rsp)
movzbl 0x38(%rbx), %r13d
shll $0x5, %r13d
movq 0x8(%rsp), %rax
addq (%rax), %r13
movq %rcx, %rax
negq %rax
leaq 0x1(%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
notq %rcx
movq %rcx, 0x58(%rsp)
movq %r13, %rbp
negq %rbp
xorl %r15d, %r15d
shlq $0x5, %rax
movq %rax, 0x60(%rsp)
leaq 0xe0(%rsp), %r12
leaq 0x68(%rsp), %r14
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x60(%rsp), %rcx
addq %rax, %rcx
cmpq %rcx, %r13
jae 0x411254
leaq 0x18(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x410e44
movq %r12, %rdi
movq %r13, %rsi
callq 0x4931c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4115a6
movb 0xd8(%rsp), %cl
movq 0xd0(%rsp), %rdx
testq %rax, %rax
je 0x411106
cmpq %r15, %rdx
setne %al
testb %al, %cl
jne 0x411006
notb %cl
cmpb $0x2b, %dl
sete %al
testq %r15, %r15
sete %dl
andb %cl, %dl
andb %al, %dl
cmpb $0x1, %dl
jne 0x411057
movq %r14, %rdi
leaq 0x1813fb(%rip), %rsi    # 0x59240b
leaq 0x7(%rsp), %rdx
callq 0x40a3b4
movq %r14, %rdi
movq %r12, %rsi
callq 0x492140
movq %rax, %rdi
leaq 0x1813f2(%rip), %rsi    # 0x592421
callq 0x4921e0
movq %rax, %rdi
leaq 0x18(%rsp), %rsi
callq 0x492140
movq %rbx, %rdi
movq %rax, %rsi
pushq $0x1
popq %rdx
callq 0x40fd3c
movq %r14, %rdi
callq 0x490a30
movq %rbx, %rdi
movq %r12, %rsi
callq 0x410620
imulq $0x58, (%rax), %rsi
addq 0x88(%rbx), %rsi
leaq 0x88(%rsp), %rdi
callq 0x41156e
cmpb $0x1, 0xc8(%rsp)
jne 0x4110d0
cmpq $0x0, 0x10(%rsp)
je 0x4110d0
movq %r14, %rdi
leaq 0x1813ab(%rip), %rsi    # 0x592441
leaq 0x7(%rsp), %rdx
callq 0x40a3b4
movq %r14, %rdi
movq %r12, %rsi
callq 0x492140
movq %rax, %rdi
leaq 0x1813ab(%rip), %rsi    # 0x592460
callq 0x4921e0
movq %rbx, %rdi
movq %rax, %rsi
pushq $0x1
popq %rdx
callq 0x40fd3c
movq %r14, %rdi
callq 0x490a30
cmpb $0x1, 0xd8(%rsp)
jne 0x41119b
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
addq %rbp, %rax
sarq $0x5, %rax
addq 0x58(%rsp), %rax
cmpq %rax, 0xd0(%rsp)
ja 0x4111bc
jmp 0x4111f1
cmpq %r15, %rdx
setbe %al
andb %cl, %al
cmpb $0x1, %al
jne 0x411158
movq %r14, %rdi
leaq 0x1812cb(%rip), %rsi    # 0x5923e7
leaq 0x7(%rsp), %rdx
callq 0x40a3b4
movq %r14, %rdi
leaq 0x18(%rsp), %rsi
callq 0x492140
movq %rbx, %rdi
movq %rax, %rsi
pushq $0x1
popq %rdx
callq 0x40fd3c
movq %r14, %rdi
callq 0x490a30
movb 0xd8(%rsp), %cl
movq 0xd0(%rsp), %rdx
testb $0x1, %cl
je 0x411207
cmpq $0x1, %rdx
jne 0x411207
movq %rbx, %rdi
leaq 0x18(%rsp), %rsi
callq 0x410620
movq (%rax), %rdi
shlq $0x3, %rdi
addq 0xa0(%rbx), %rdi
callq 0x4114e6
movq %rax, %rdi
movq %r12, %rsi
callq 0x490660
jmp 0x411232
cmpb $0x2b, 0xd0(%rsp)
jne 0x4111f1
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
addq %rbp, %rax
sarq $0x5, %rax
cmpq 0x50(%rsp), %rax
jne 0x4111f1
movq %r14, %rdi
leaq 0x1812c2(%rip), %rsi    # 0x592488
leaq 0x7(%rsp), %rdx
callq 0x40a3b4
movq %r14, %rdi
movq %r12, %rsi
callq 0x492140
movq %rbx, %rdi
movq %rax, %rsi
pushq $0x1
popq %rdx
callq 0x40fd3c
movq %r14, %rdi
callq 0x490a30
movzbl 0xc8(%rsp), %eax
xorq $0x1, %rax
subq %rax, 0x10(%rsp)
xorl %r15d, %r15d
jmp 0x411235
movq %rbx, %rdi
leaq 0x18(%rsp), %rsi
callq 0x410620
movq (%rax), %rdi
shlq $0x3, %rdi
addq 0xa0(%rbx), %rdi
callq 0x41152a
movq %rax, %rdi
movq %r12, %rsi
callq 0x40a2a0
incq %r15
movq %r12, %rdi
callq 0x490a30
leaq 0x18(%rsp), %rdi
callq 0x490a30
addq $0x20, %r13
addq $-0x20, %rbp
jmp 0x410f8b
movzbl 0x38(%rbx), %r14d
shll $0x5, %r14d
movq 0x8(%rsp), %rdx
addq (%rdx), %r14
cmpq %rcx, %r14
cmovbq %rcx, %r14
leaq 0x18(%rsp), %r12
leaq 0x181233(%rip), %r15    # 0x5924ab
leaq 0xe0(%rsp), %rbp
pushq $0x1
popq %r13
cmpq %rax, %r14
je 0x411374
movq %r12, %rdi
movq %r14, %rsi
callq 0x4931c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4115a6
testq %rax, %rax
je 0x4112e8
movq %rbp, %rdi
movq %r15, %rsi
leaq 0x68(%rsp), %rdx
callq 0x40a3b4
movq %rbp, %rdi
movq %r12, %rsi
callq 0x492140
movq %rax, %rdi
leaq 0x1811fe(%rip), %rsi    # 0x5924cb
callq 0x4921e0
movq %rbx, %rdi
movq %rax, %rsi
movl %r13d, %edx
callq 0x40fd3c
movq %rbp, %rdi
callq 0x490a30
cmpb $0x1, 0x150(%rsp)
jne 0x41132a
cmpq $0x1, 0x148(%rsp)
jne 0x41132a
movq %rbx, %rdi
movq 0x40(%rsp), %rsi
callq 0x410620
movq (%rax), %rdi
shlq $0x3, %rdi
addq 0xa0(%rbx), %rdi
callq 0x4114e6
movq %rax, %rdi
movq %r12, %rsi
callq 0x490660
jmp 0x411355
movq %rbx, %rdi
movq 0x40(%rsp), %rsi
callq 0x410620
movq (%rax), %rdi
shlq $0x3, %rdi
addq 0xa0(%rbx), %rdi
callq 0x41152a
movq %rax, %rdi
movq %r12, %rsi
callq 0x40a2a0
decq 0x48(%rsp)
movq %r12, %rdi
callq 0x490a30
addq $0x20, %r14
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
jmp 0x411284
movq 0x48(%rsp), %rax
orq %rax, 0x10(%rsp)
je 0x4113c0
leaq 0x181169(%rip), %rsi    # 0x5924f0
leaq 0x18(%rsp), %rdi
leaq 0xe0(%rsp), %rdx
callq 0x40a3b4
leaq 0x18(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x492140
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x40fd3c
leaq 0x18(%rsp), %rdi
callq 0x490a30
leaq 0x100(%rsp), %rdi
callq 0x40fd26
leaq 0x88(%rsp), %rdi
callq 0x40fd26
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x411407
jmp 0x411431
movq %rax, %rbx
jmp 0x41144b
jmp 0x41141f
jmp 0x41141f
jmp 0x41141f
jmp 0x411410
jmp 0x411410
jmp 0x41141f
jmp 0x411431
jmp 0x411410
jmp 0x411407
movq %rax, %rbx
jmp 0x41143e
jmp 0x411431
jmp 0x41141f
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x490a30
jmp 0x411422
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x490a30
jmp 0x411434
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x490a30
leaq 0x100(%rsp), %rdi
callq 0x40fd26
leaq 0x88(%rsp), %rdi
callq 0x40fd26
movq %rbx, %rdi
callq 0x4bea70