// File: /workspace/github_cpp_makefile_star2_O3/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)
movq %r15, (%rsp)
cmpq %rbx, %r15
je 0xf4d7
xorl %ebp, %ebp
movq %rsp, %r12
testb $0x1, %bpl
je 0xf452
movq %r14, %rdi
callq 0xfcd2
testq %rax, %rax
je 0xf587
movq %rax, %r13
movq (%rax), %rax
movq %r13, %rdi
movq %r15, %rsi
callq *0x38(%rax)
movq (%rsp), %r15
cmpb $0x1, 0x50(%r13)
je 0xf5c2
movl %ebp, %r13d
jmp 0xf4c3
movq 0x8(%r15), %rdx
cmpq 0x150(%r14), %rdx
jne 0xf47a
movb $0x1, %r13b
testq %rdx, %rdx
je 0xf4c3
movq 0x148(%r14), %rsi
movq (%r15), %rdi
callq 0x6350
testl %eax, %eax
je 0xf4c3
movq %r14, %rdi
movq %r15, %rsi
callq 0xf64a
movq %r14, %rdi
testl %eax, %eax
je 0xf4a9
movq %r15, %rsi
callq 0xf64a
cmpl $0x1, %eax
jne 0xf41e
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xf91e
jmp 0xf4b4
movq %r12, %rsi
movq %rbx, %rdx
callq 0xf6c2
movq (%rsp), %r15
testb %al, %al
je 0xf5c6
xorl %r13d, %r13d
addq $0x20, %r15
movq %r15, (%rsp)
movl %r13d, %ebp
cmpq %rbx, %r15
jne 0xf418
movq 0x30(%r14), %r13
movq 0x38(%r14), %rbp
cmpq %rbp, %r13
je 0xf50b
leaq 0x108(%r14), %r15
leaq 0xe8(%r14), %r12
movq (%r13), %rdi
movq (%rdi), %rax
movq %r15, %rsi
movq %r12, %rdx
callq *0x18(%rax)
addq $0x8, %r13
cmpq %rbp, %r13
jne 0xf4f2
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
testb %al, %al
jne 0xf5c9
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x6460
leaq 0x1000f(%rip), %rsi     # 0x1f53f
movl $0x22, %edx
movq %rbx, %rdi
callq 0x63a0
movl $0x10, %edi
callq 0x6150
movq %rax, %rbx
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x6540
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x6410
leaq 0x18594(%rip), %rax     # 0x27b00
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x18520(%rip), %rsi     # 0x27a98
movq 0x18a39(%rip), %rdx     # 0x27fb8
movq %rbx, %rdi
callq 0x65d0
leaq 0xff66(%rip), %rsi      # 0x1f4f4
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rdx
callq 0xae00
movq %r14, %rdi
movq %rbx, %rsi
callq 0xfd64
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf5bc
callq 0x6320
movq (%rsp), %r15
jmp 0xf5c6
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
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf5f4
callq 0x6320
testb %bpl, %bpl
jne 0xf5fe
jmp 0xf623
movq %rax, %r14
movq %rbx, %rdi
callq 0x6260
jmp 0xf623
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf641
callq 0x6320
jmp 0xf641
movq %rax, %r14
movq 0x18986(%rip), %rsi     # 0x27fb0
leaq 0x20(%rsp), %rdi
callq 0x6170
leaq 0x90(%rsp), %rdi
callq 0x60d0
movq %r14, %rdi
callq 0x65f0
nop