// File: /workspace/github_cpp_makefile_star2_O2/travisdowns[P]avx-turbo/./args.hxx
// Function: _gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const*, 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>>>>> args::ArgumentParser::ParseArgs<__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const*, 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>>>>>>(__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const*, 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>>>>>, __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const*, 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>>>>>)
It ParseArgs(It begin, It end)
            {
                // Reset all Matched statuses and errors
                Reset();
                bool terminated = false;

                // Check all arg chunks
                for (auto it = begin; it != end; ++it)
                {
                    const auto &chunk = *it;

                    if (!terminated && chunk == terminator)
                    {
                        terminated = true;
                    } else if (!terminated && ParseOption(chunk) == OptionType::LongFlag)
                    {
                        if (!ParseLong(it, end))
                        {
                            return it;
                        }
                    } else if (!terminated && ParseOption(chunk) == OptionType::ShortFlag)
                    {
                        if (!ParseShort(it, end))
                        {
                            return it;
                        }
                    } else
                    {
                        auto pos = GetNextPositional();
                        if (pos)
                        {
                            pos->ParseValue(chunk);

                            if (pos->KickOut())
                            {
                                return ++it;
                            }
                        } else
                        {
                            RaiseParseError("Passed in argument, but no positional arguments were ready to receive it: " + chunk);
                            return it;
                        }
                    }
                }

                for (Base *child: Children())
                {
                    child->Validate(shortprefix, longprefix);
                }

                if (!Matched())
                {
#ifdef ARGS_NOEXCEPT
                    error = Error::Validation;
#else
                    std::ostringstream problem;
                    problem << "Group validation failed somewhere!";
                    throw ValidationError(problem.str());
#endif
                }

                return end;
            }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rax
callq *0x28(%rax)
leaq 0x148(%r14), %r12
xorl %r13d, %r13d
movq %r15, (%rsp)
cmpq %rbx, %r15
je 0xdbe0
testb $0x1, %r13b
je 0xdb76
movq %r14, %rdi
callq 0xe202
testq %rax, %rax
je 0xdc7c
movq %rax, %rbp
movq (%rax), %rax
movq %rbp, %rdi
movq %r15, %rsi
callq *0x38(%rax)
movq (%rsp), %r15
cmpb $0x1, 0x50(%rbp)
jne 0xdbd7
jmp 0xdcae
movq %r15, %rdi
movq %r12, %rsi
callq 0xb364
testb %al, %al
je 0xdb8e
movb $0x1, %r13b
movq (%rsp), %r15
jmp 0xdbd7
movq %r14, %rdi
movq %r15, %rsi
callq 0xdd0e
movq %r14, %rdi
testl %eax, %eax
je 0xdbbd
movq %r15, %rsi
callq 0xdd0e
cmpl $0x1, %eax
jne 0xdb47
movq %r14, %rdi
movq %rsp, %rsi
movq %rbx, %rdx
callq 0xdf5c
jmp 0xdbc8
movq %rsp, %rsi
movq %rbx, %rdx
callq 0xdd74
movq (%rsp), %r15
testb %al, %al
je 0xdcb2
xorl %r13d, %r13d
addq $0x20, %r15
jmp 0xdb34
movq 0x30(%r14), %r13
movq 0x38(%r14), %rbp
leaq 0x108(%r14), %r15
leaq 0xe8(%r14), %r12
cmpq %rbp, %r13
je 0xdc11
movq (%r13), %rdi
movq (%rdi), %rax
movq %r15, %rsi
movq %r12, %rdx
callq *0x18(%rax)
addq $0x8, %r13
jmp 0xdbf6
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
testb %al, %al
jne 0xdcb5
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x6480
leaq 0xe928(%rip), %rsi      # 0x1c55e
movq %rbx, %rdi
callq 0x6350
pushq $0x10
popq %rdi
callq 0x6170
movq %rax, %rbx
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x6550
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xe2d6
xorl %ebp, %ebp
leaq 0x18de3(%rip), %rsi     # 0x26a50
movq 0x1934c(%rip), %rdx     # 0x26fc0
movq %rbx, %rdi
callq 0x65e0
leaq 0xe890(%rip), %rsi      # 0x1c513
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rdx
callq 0x9a7d
movq %r14, %rdi
movq %rbx, %rsi
callq 0xe290
leaq 0x20(%rsp), %rdi
callq 0x6140
movq (%rsp), %r15
jmp 0xdcb2
addq $0x20, %r15
movq %r15, %rbx
movq %rbx, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rsp, %rdi
callq 0x6140
testb %bpl, %bpl
jne 0xdcdf
jmp 0xdcec
movq %rax, %r14
movq %rbx, %rdi
callq 0x6270
jmp 0xdcec
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x60a0
jmp 0xdd05
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x6140
movq %r14, %rdi
callq 0x65f0
nop