// File: /workspace/github_cpp_makefile_star2_O1/BU-DiSC[P]BF-Shared-Hashing/./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::Parse<__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 Parse(It begin, It end)
            {
                bool terminated = false;
                std::vector<Command *> commands = GetCommands();

                // Check all arg chunks
                for (auto it = begin; it != end; ++it)
                {
                    if (Complete(it, end))
                    {
                        return end;
                    }

                    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 if (!terminated && !commands.empty())
                    {
                        auto itCommand = std::find_if(commands.begin(), commands.end(), [&chunk](Command *c) { return c->Name() == chunk; });
                        if (itCommand == commands.end())
                        {
                            const std::string errorMessage("Unknown command: " + chunk);
#ifndef ARGS_NOEXCEPT
                            throw ParseError(errorMessage);
#else
                            error = Error::Parse;
                            errorMsg = errorMessage;
                            return it;
#endif
                        }

                        SelectCommand(*itCommand);

                        if (const auto &coroutine = GetCoroutine())
                        {
                            ++it;
                            RaiiSubparser coro(*this, std::vector<std::string>(it, end));
                            coroutine(coro.Parser());
#ifdef ARGS_NOEXCEPT
                            error = GetError();
                            if (error != Error::None)
                            {
                                return end;
                            }

                            if (!coro.Parser().IsParsed())
                            {
                                error = Error::Usage;
                                return end;
                            }
#else
                            if (!coro.Parser().IsParsed())
                            {
                                throw UsageError("Subparser::Parse was not called");
                            }
#endif

                            break;
                        }

                        commands = GetCommands();
                    } else
                    {
                        auto pos = GetNextPositional();
                        if (pos)
                        {
                            pos->ParseValue(chunk);

                            if (pos->KickOut())
                            {
                                return ++it;
                            }
                        } else
                        {
                            const std::string errorMessage("Passed in argument, but no positional arguments were ready to receive it: " + chunk);
#ifndef ARGS_NOEXCEPT
                            throw ParseError(errorMessage);
#else
                            error = Error::Parse;
                            errorMsg = errorMessage;
                            return it;
#endif
                        }
                    }

                    if (!readCompletion && completion != nullptr && completion->Matched())
                    {
#ifdef ARGS_NOEXCEPT
                        error = Error::Completion;
#endif
                        readCompletion = true;
                        ++it;
                        size_t argsLeft = std::distance(it, end);
                        if (completion->cword == 0 || argsLeft <= 1 || completion->cword >= argsLeft)
                        {
#ifndef ARGS_NOEXCEPT
                            throw Completion("");
#endif
                        }

                        std::vector<std::string> curArgs(++it, end);
                        curArgs.resize(completion->cword);

                        if (completion->syntax == "bash")
                        {
                            // bash tokenizes --flag=value as --flag=value
                            for (size_t idx = 0; idx < curArgs.size(); )
                            {
                                if (idx > 0 && curArgs[idx] == "=")
                                {
                                    curArgs[idx - 1] += "=";
                                    if (idx + 1 < curArgs.size())
                                    {
                                        curArgs[idx - 1] += curArgs[idx + 1];
                                        curArgs.erase(curArgs.begin() + idx, curArgs.begin() + idx + 2);
                                    } else
                                    {
                                        curArgs.erase(curArgs.begin() + idx);
                                    }
                                } else
                                {
                                    ++idx;
                                }
                            }

                        }
#ifndef ARGS_NOEXCEPT
                        try
                        {
                            Parse(curArgs.begin(), curArgs.end());
                            throw Completion("");
                        }
                        catch (Completion &)
                        {
                            throw;
                        }
                        catch (args::Error&)
                        {
                            throw Completion("");
                        }
#else
                        return Parse(curArgs.begin(), curArgs.end());
#endif
                    }
                }

                Validate(shortprefix, longprefix);
                return end;
            }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movq (%rdi), %rax
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq *0x28(%rax)
movq %r12, (%rsp)
cmpq %r14, %r12
je 0x1d2ad
leaq 0x210(%rbx), %rax
movq %rax, 0x78(%rsp)
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x1d87c
testb %al, %al
jne 0x1d2b1
movq (%rsp), %r12
testb $0x1, %bpl
je 0x1d005
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x40(%rax)
movq %rax, %r13
testq %rax, %rax
je 0x1d303
movq (%r13), %rax
movq %r13, %rdi
movq %r12, %rsi
callq *0x98(%rax)
movl 0x8(%r13), %eax
testb $0x20, %al
je 0x1cff6
movq (%rsp), %r15
addq $0x20, %r15
movq %r15, (%rsp)
movl $0x1, %r12d
testb $0x20, %al
je 0x1d076
jmp 0x1d28b
movq 0x8(%r12), %rdx
cmpq 0x1e0(%rbx), %rdx
jne 0x1d02c
testq %rdx, %rdx
je 0x1d05f
movq 0x1d8(%rbx), %rsi
movq (%r12), %rdi
callq 0x5430
testl %eax, %eax
je 0x1d05f
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x1e094
testl %eax, %eax
je 0x1d064
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x1e094
cmpl $0x1, %eax
jne 0x1d0b8
movq %rbx, %rdi
movq %rsp, %rsi
movq %r14, %rdx
callq 0x1e4b0
jmp 0x1d072
movb $0x1, %bpl
jmp 0x1d076
movq %rbx, %rdi
movq %rsp, %rsi
movq %r14, %rdx
callq 0x1e122
testb %al, %al
je 0x1d0a9
xorl %r12d, %r12d
cmpb $0x0, 0x208(%rbx)
jne 0x1d28b
movq 0x200(%rbx), %rdi
testq %rdi, %rdi
je 0x1d28b
movq (%rdi), %rax
callq *0x10(%rax)
testb %al, %al
je 0x1d28b
jmp 0x1d35c
movl $0x1, %r12d
movq (%rsp), %r15
jmp 0x1d28b
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
cmpq %rsi, %rdi
je 0x1cfbd
movq %r12, %rdx
callq 0x1fe6a
cmpq 0x38(%rsp), %rax
je 0x1d4eb
movq (%rax), %rax
movq %rax, 0x130(%rbx)
testq %rax, %rax
je 0x1d0f1
movb $0x1, 0xc(%rax)
movq %rbx, %rdi
callq 0x1e8ee
movq %rax, %r12
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x1d1ff
movq %rax, 0x70(%rsp)
movq (%rsp), %rsi
addq $0x20, %rsi
movq %rsi, (%rsp)
leaq 0x50(%rsp), %rdi
movq %r14, %rdx
leaq 0xf(%rsp), %rcx
callq 0xe0d0
movq %rbx, %rax
movq %rax, %rcx
movq 0x130(%rax), %rax
testq %rax, %rax
jne 0x1d12f
movq %rcx, 0x80(%rsp)
movaps 0x50(%rsp), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x88(%rsp), %rdi
leaq 0x10(%rsp), %r13
movq %r13, %rsi
movq %rbx, %rdx
movq 0x78(%rsp), %r8
callq 0x1ff9e
movq %r13, %rdi
callq 0x6982
movq 0x80(%rsp), %rax
movq 0x170(%rax), %rcx
movq %rcx, 0x140(%rsp)
leaq 0x88(%rsp), %r13
movq %r13, 0x170(%rax)
leaq 0x50(%rsp), %rdi
callq 0x6982
cmpq $0x0, 0x10(%r12)
je 0x1d5a9
movq %r12, %rdi
movq %r13, %rsi
callq *0x18(%r12)
cmpb $0x0, 0x138(%rsp)
je 0x1d544
leaq 0x80(%rsp), %rdi
callq 0x18eae
movl $0x2, %r12d
movq 0x70(%rsp), %rax
jmp 0x1d202
xorl %r12d, %r12d
testq %rax, %rax
jne 0x1d282
movq (%rbx), %rax
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
callq *0x28(%rax)
movq 0x30(%rsp), %rdi
movaps 0x80(%rsp), %xmm0
movq 0x90(%rsp), %rax
movq %rdi, 0x80(%rsp)
movups 0x38(%rsp), %xmm1
movaps %xmm0, 0x30(%rsp)
movq %rax, 0x40(%rsp)
movups %xmm1, 0x88(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
testq %rdi, %rdi
je 0x1d26d
callq 0x53d0
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x1d27f
callq 0x53d0
xorl %r12d, %r12d
testl %r12d, %r12d
je 0x1d076
testl %r12d, %r12d
jne 0x1d2ba
movq (%rsp), %r12
addq $0x20, %r12
movq %r12, (%rsp)
cmpq %r14, %r12
jne 0x1cf9d
movl $0x2, %r12d
jmp 0x1d2ba
movb $0x1, %al
jmp 0x1d2c1
movl $0x1, %r12d
movq %r14, %r15
cmpl $0x2, %r12d
sete %al
testb %al, %al
je 0x1d2df
leaq 0x198(%rbx), %rsi
leaq 0x178(%rbx), %rdx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq %r14, %r15
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1d2ee
callq 0x53d0
movq %r15, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xcba1(%rip), %rsi      # 0x29eab
leaq 0x80(%rsp), %rdi
movq %r12, %rdx
callq 0xd1cf
movl $0x10, %edi
callq 0x51f0
movq %rax, %r14
leaq 0x80(%rsp), %rsi
movq %rax, %rdi
callq 0x54d0
leaq 0x1b812(%rip), %rax     # 0x38b50
movq %rax, (%r14)
leaq 0x1b128(%rip), %rsi     # 0x38470
movq 0x1bc79(%rip), %rdx     # 0x38fc8
movq %r14, %rdi
callq 0x5670
jmp 0x1d744
movb $0x1, 0x208(%rbx)
movq (%rsp), %rsi
leaq 0x20(%rsi), %rcx
movq %rcx, (%rsp)
movq %r14, %rax
subq %rcx, %rax
sarq $0x5, %rax
movq 0x200(%rbx), %rcx
movq 0x128(%rcx), %rcx
cmpq %rax, %rcx
jae 0x1d481
testq %rcx, %rcx
je 0x1d481
cmpq $0x1, %rax
jbe 0x1d481
addq $0x40, %rsi
movq %rsi, (%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x80(%rsp), %rcx
movq %r14, %rdx
callq 0xe0d0
movq 0x200(%rbx), %rax
movq 0x128(%rax), %rsi
leaq 0x10(%rsp), %rdi
callq 0x1e904
movl $0x130, %edi            # imm = 0x130
addq 0x200(%rbx), %rdi
leaq 0xcb0b(%rip), %rsi      # 0x29ef6
callq 0x5120
testl %eax, %eax
jne 0x1d404
movq 0x10(%rsp), %rdi
cmpq %rdi, 0x18(%rsp)
jne 0x1d5ae
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x1e97a
movl $0x10, %edi
callq 0x51f0
movq %rax, %r14
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xc022(%rip), %rdx      # 0x29459
leaq 0x80(%rsp), %rdi
movq %rdx, %rsi
callq 0xfa70
movb $0x1, %bpl
leaq 0x80(%rsp), %rsi
movq %r14, %rdi
callq 0x54d0
leaq 0x1b72f(%rip), %rax     # 0x38b90
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x1b6fb(%rip), %rsi     # 0x38b68
movq 0x1bb54(%rip), %rdx     # 0x38fc8
movq %r14, %rdi
callq 0x5670
jmp 0x1d744
movl $0x10, %edi
callq 0x51f0
movq %rax, %r14
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xbfb8(%rip), %rdx      # 0x29459
leaq 0x80(%rsp), %rdi
movq %rdx, %rsi
callq 0xfa70
movb $0x1, %bpl
leaq 0x80(%rsp), %rsi
movq %r14, %rdi
callq 0x54d0
leaq 0x1b6c5(%rip), %rax     # 0x38b90
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x1b691(%rip), %rsi     # 0x38b68
movq 0x1baea(%rip), %rdx     # 0x38fc8
movq %r14, %rdi
callq 0x5670
jmp 0x1d744
leaq 0xc987(%rip), %rsi      # 0x29e79
leaq 0x80(%rsp), %rdi
movq %r12, %rdx
callq 0xd1cf
movl $0x10, %edi
callq 0x51f0
movq %rax, %r14
leaq 0x80(%rsp), %rsi
movq %rax, %rdi
callq 0x54d0
leaq 0x1b62a(%rip), %rax     # 0x38b50
movq %rax, (%r14)
leaq 0x1af40(%rip), %rsi     # 0x38470
movq 0x1ba91(%rip), %rdx     # 0x38fc8
movq %r14, %rdi
callq 0x5670
jmp 0x1d744
movl $0x10, %edi
callq 0x51f0
movq %rax, %r14
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xc92a(%rip), %rsi      # 0x29e8b
leaq 0xc942(%rip), %rdx      # 0x29eaa
leaq 0x10(%rsp), %rdi
callq 0xfa70
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x54d0
leaq 0x1b1b7(%rip), %rax     # 0x38740
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x1b183(%rip), %rsi     # 0x38718
movq 0x1ba2c(%rip), %rdx     # 0x38fc8
movq %r14, %rdi
callq 0x5670
jmp 0x1d744
callq 0x5190
xorl %r13d, %r13d
leaq 0xba7b(%rip), %r14      # 0x29033
leaq 0x10(%rsp), %r15
testq %r13, %r13
je 0x1d5d8
movq %r13, %rbp
shlq $0x5, %rbp
addq %rbp, %rdi
movq %r14, %rsi
callq 0x5120
testl %eax, %eax
je 0x1d5f6
incq %r13
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
cmpq %rax, %r13
jb 0x1d5bd
jmp 0x1d404
leaq -0x1(%r13), %r12
shlq $0x5, %r12
movq 0x10(%rsp), %rdi
addq %r12, %rdi
movq %r14, %rsi
callq 0x5720
leaq 0x1(%r13), %rcx
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rax, %rcx
jae 0x1d661
shlq $0x5, %rcx
addq %rsi, %r12
movq (%rsi,%rcx), %rax
movq 0x8(%rsi,%rcx), %rdx
movq %r12, %rdi
movq %rax, %rsi
callq 0x5150
movq 0x10(%rsp), %rax
leaq (%rax,%rbp), %rsi
leaq (%rax,%rbp), %rdx
addq $0x40, %rdx
movq %r15, %rdi
callq 0x20228
jmp 0x1d5db
addq %rbp, %rsi
movq %r15, %rdi
callq 0x202be
jmp 0x1d5db
jmp 0x1d7ba
jmp 0x1d7ba
jmp 0x1d7ba
movq %rdx, %r15
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x1d6a3
callq 0x53d0
jmp 0x1d6a3
movq %rdx, %r15
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x1d6b8
movq %r14, %rdi
callq 0x52e0
jmp 0x1d6b8
movq %rdx, %r15
movq %rax, %rbx
cmpl $0x2, %r15d
jne 0x1d6cd
movq %rbx, %rdi
callq 0x51c0
callq 0x55b0
jmp 0x1d744
cmpl $0x1, %r15d
jne 0x1d7bd
movq %rbx, %rdi
callq 0x51c0
movl $0x10, %edi
callq 0x51f0
movq %rax, %r14
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xbd5a(%rip), %rdx      # 0x29459
leaq 0x80(%rsp), %rdi
movq %rdx, %rsi
callq 0xfa70
movb $0x1, %bpl
leaq 0x80(%rsp), %rsi
movq %r14, %rdi
callq 0x54d0
leaq 0x1b467(%rip), %rax     # 0x38b90
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x1b433(%rip), %rsi     # 0x38b68
movq 0x1b88c(%rip), %rdx     # 0x38fc8
movq %r14, %rdi
callq 0x5670
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d761
callq 0x53d0
jmp 0x1d761
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x1d76e
movq %r14, %rdi
callq 0x52e0
callq 0x5640
jmp 0x1d7bd
movq %rax, %rbx
callq 0x5640
jmp 0x1d7bd
movq %rax, %rdi
callq 0x6bea
jmp 0x1d834
jmp 0x1d839
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d7ab
callq 0x53d0
jmp 0x1d7ab
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x1d7d3
movq %r14, %rdi
callq 0x52e0
jmp 0x1d7d3
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x1d7f7
jmp 0x1d862
jmp 0x1d862
jmp 0x1d7d0
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x18eae
jmp 0x1d865
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x6982
leaq 0x50(%rsp), %rdi
callq 0x6982
jmp 0x1d865
jmp 0x1d862
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d81d
callq 0x53d0
jmp 0x1d81d
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x1d865
movq %r14, %rdi
callq 0x52e0
jmp 0x1d865
jmp 0x1d862
jmp 0x1d862
jmp 0x1d862
jmp 0x1d862
movq %rax, %rbx
jmp 0x1d844
movq %rax, %rbx
movq %r14, %rdi
callq 0x52e0
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d865
callq 0x53d0
jmp 0x1d865
jmp 0x1d862
jmp 0x1d862
jmp 0x1d862
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1d874
callq 0x53d0
movq %rbx, %rdi
callq 0x56b0