// File: /workspace/github_cpp_makefile_star2_O1/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 $0x1a8, %rsp            # imm = 0x1A8
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rax
callq *0x28(%rax)
movq %r15, 0x10(%rsp)
cmpq %rbx, %r15
sete %r12b
je 0xf6ab
movl $0x0, 0xc(%rsp)
testb $0x1, 0xc(%rsp)
je 0xf5cd
movq %r14, %rdi
callq 0xfe8e
testq %rax, %rax
je 0xf62b
movq %rax, %r13
movq (%rax), %rax
movq %r13, %rdi
movq %r15, %rsi
callq *0x38(%rax)
movb $0x1, %al
cmpb $0x1, 0x50(%r13)
jne 0xf68a
movq 0x10(%rsp), %rbp
addq $0x20, %rbp
movq %rbp, 0x10(%rsp)
jmp 0xf666
movq 0x8(%r15), %rdx
cmpq 0x150(%r14), %rdx
jne 0xf5f6
testq %rdx, %rdx
je 0xf66a
movq 0x148(%r14), %rsi
movq (%r15), %rdi
callq 0x6350
testl %eax, %eax
je 0xf66a
movq %r14, %rdi
movq %r15, %rsi
callq 0xf7e8
movq %r14, %rdi
testl %eax, %eax
je 0xf674
movq %r15, %rsi
callq 0xf7e8
cmpl $0x1, %eax
jne 0xf58d
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movq %rbx, %rdx
callq 0xface
jmp 0xf681
leaq 0x30(%rsp), %r13
movq %r13, %rdi
leaq 0xfeaa(%rip), %rsi      # 0x1f4e4
movq %r15, %rdx
callq 0xae4a
movq %r14, %rdi
movq %r13, %rsi
callq 0xff34
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xf661
callq 0x6320
movq 0x10(%rsp), %rbp
xorl %eax, %eax
jmp 0xf68a
movb $0x1, %al
movb $0x1, %cl
movl %ecx, 0xc(%rsp)
jmp 0xf68a
leaq 0x10(%rsp), %rsi
movq %rbx, %rdx
callq 0xf860
testb %al, %al
jne 0xf68a
movq 0x10(%rsp), %rbp
testb %al, %al
je 0xf6ab
movq 0x10(%rsp), %r15
addq $0x20, %r15
movq %r15, 0x10(%rsp)
cmpq %rbx, %r15
sete %r12b
jne 0xf586
jmp 0xf6ab
testb $0x1, %r12b
je 0xf6f4
movq %rbx, %rbp
movq 0x30(%r14), %rbx
movq 0x38(%r14), %r13
cmpq %r13, %rbx
je 0xf6e7
leaq 0x108(%r14), %r15
leaq 0xe8(%r14), %r12
movq (%rbx), %rdi
movq (%rdi), %rax
movq %r15, %rsi
movq %r12, %rdx
callq *0x18(%rax)
addq $0x8, %rbx
cmpq %r13, %rbx
jne 0xf6cf
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
testb %al, %al
je 0xf709
movq %rbp, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x6460
leaq 0xfe12(%rip), %rsi      # 0x1f52f
movl $0x22, %edx
movq %rbx, %rdi
callq 0x63a0
movl $0x10, %edi
callq 0x6150
movq %rax, %rbx
leaq 0x38(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x6540
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x6410
leaq 0x183a3(%rip), %rax     # 0x27b00
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x1832f(%rip), %rsi     # 0x27a98
movq 0x18848(%rip), %rdx     # 0x27fb8
movq %rbx, %rdi
callq 0x65d0
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf796
callq 0x6320
jmp 0xf796
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0xf7a8
movq %rbx, %rdi
callq 0x6260
jmp 0xf7a8
movq %rax, %r14
movq 0x18801(%rip), %rsi     # 0x27fb0
leaq 0x30(%rsp), %rdi
callq 0x6170
leaq 0xa0(%rsp), %rdi
callq 0x60d0
jmp 0xf7df
movq %rax, %r14
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xf7df
callq 0x6320
movq %r14, %rdi
callq 0x65f0
nop