// File: /workspace/github_cpp_makefile_star2_O3/xelia-it[P]mustache/third-party/catch2/single_include/catch2/catch.hpp
// Function: Catch::clara::detail::Parser::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Catch::clara::detail::TokenStream const&) const
auto parse( std::string const& exeName, TokenStream const &tokens ) const -> InternalParseResult override {

            struct ParserInfo {
                ParserBase const* parser = nullptr;
                size_t count = 0;
            };
            const size_t totalParsers = m_options.size() + m_args.size();
            assert( totalParsers < 512 );
            // ParserInfo parseInfos[totalParsers]; // <-- this is what we really want to do
            ParserInfo parseInfos[512];

            {
                size_t i = 0;
                for (auto const &opt : m_options) parseInfos[i++].parser = &opt;
                for (auto const &arg : m_args) parseInfos[i++].parser = &arg;
            }

            m_exeName.set( exeName );

            auto result = InternalParseResult::ok( ParseState( ParseResultType::NoMatch, tokens ) );
            while( result.value().remainingTokens() ) {
                bool tokenParsed = false;

                for( size_t i = 0; i < totalParsers; ++i ) {
                    auto&  parseInfo = parseInfos[i];
                    if( parseInfo.parser->cardinality() == 0 || parseInfo.count < parseInfo.parser->cardinality() ) {
                        result = parseInfo.parser->parse(exeName, result.value().remainingTokens());
                        if (!result)
                            return result;
                        if (result.value().type() != ParseResultType::NoMatch) {
                            tokenParsed = true;
                            ++parseInfo.count;
                            break;
                        }
                    }
                }

                if( result.value().type() == ParseResultType::ShortCircuitAll )
                    return result;
                if( !tokenParsed )
                    return InternalParseResult::runtimeError( "Unrecognised token: " + result.value().remainingTokens()->token );
            }
            // !TBD Check missing required options
            return result;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2158, %rsp           # imm = 0x2158
movq %rcx, -0x50(%rbp)
movq %rdx, -0xc0(%rbp)
movq %rdi, -0x40(%rbp)
movq 0x30(%rsi), %rbx
movq 0x38(%rsi), %r14
movq %r14, %rax
subq %rbx, %rax
sarq $0x3, %rax
movabsq $-0x1111111111111111, %rcx # imm = 0xEEEEEEEEEEEEEEEF
imulq %rax, %rcx
movq 0x50(%rsi), %rax
movq %rsi, -0x48(%rbp)
movq 0x48(%rsi), %r13
movq %rax, -0x30(%rbp)
subq %r13, %rax
sarq $0x5, %rax
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
addq %rcx, %rdx
movq %rdx, -0x58(%rbp)
cmpq $0x200, %rdx            # imm = 0x200
jae 0x45d9d
leaq -0x2180(%rbp), %r12
xorl %r15d, %r15d
movl $0x2000, %edx           # imm = 0x2000
movq %r12, %rdi
xorl %esi, %esi
callq 0x1b2a0
cmpq %r14, %rbx
je 0x458a1
xorl %r15d, %r15d
movq -0x48(%rbp), %rsi
movq -0x30(%rbp), %rcx
incq %r15
movq %rbx, (%r12)
addq $0x78, %rbx
addq $0x10, %r12
cmpq %r14, %rbx
jne 0x4588b
jmp 0x458a9
movq -0x48(%rbp), %rsi
movq -0x30(%rbp), %rcx
cmpq %rcx, %r13
je 0x458cc
shlq $0x4, %r15
leaq (%r15,%rbp), %rax
addq $-0x2180, %rax          # imm = 0xDE80
movq %r13, (%rax)
addq $0x60, %r13
addq $0x10, %rax
cmpq %rcx, %r13
jne 0x458bc
addq $0x8, %rsi
leaq -0x180(%rbp), %r12
movq %r12, %rdi
movq -0xc0(%rbp), %rdx
callq 0x45e52
leaq 0x62d9b(%rip), %rax     # 0xa8688
addq $0x10, %rax
movq %rax, (%r12)
movq 0x10(%r12), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0x4590b
callq 0x1b4d0
leaq 0x62dce(%rip), %rax     # 0xa86e0
addq $0x10, %rax
movq %rax, -0x180(%rbp)
leaq -0x138(%rbp), %r14
movl $0x1, -0x18(%r14)
movq -0x50(%rbp), %rsi
movups (%rsi), %xmm0
movups %xmm0, -0x10(%r14)
addq $0x10, %rsi
movq %r14, %rdi
callq 0x43686
leaq -0x90(%rbp), %rdi
movl $0x0, -0x20(%rdi)
leaq 0x62c27(%rip), %rax     # 0xa8580
addq $0x10, %rax
movq %rax, -0x30(%rbp)
movq %rax, -0x28(%rdi)
movl -0x18(%r14), %eax
movl %eax, -0x18(%rdi)
movups -0x10(%r14), %xmm0
movups %xmm0, -0x10(%rdi)
movq %r14, %rsi
callq 0x43686
leaq -0xa0(%rbp), %rcx
leaq 0x62b9d(%rip), %rax     # 0xa8528
addq $0x10, %rax
movq %rax, -0x38(%rbp)
movq %rax, -0x18(%rcx)
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
callq 0x43810
leaq -0x140(%rbp), %r13
movq -0x58(%rbp), %rax
negq %rax
movq %rax, -0x48(%rbp)
leaq -0xb8(%rbp), %rbx
movq -0xb8(%rbp), %rax
movq %rbx, %rdi
callq *0x10(%rax)
leaq -0xa0(%rbp), %rax
movups (%rax), %xmm0
movaps %xmm0, -0x150(%rbp)
movq %r13, %rdi
leaq -0x90(%rbp), %rsi
callq 0x43686
movq -0x140(%rbp), %r15
movq -0x138(%rbp), %r12
movq -0x150(%rbp), %rbx
movq -0x148(%rbp), %r14
movq %r13, %rdi
callq 0x43810
cmpq %r12, %r15
jne 0x45a2a
cmpq %r14, %rbx
je 0x45cfc
cmpq $0x0, -0x58(%rbp)
je 0x45b84
movb $0x1, %cl
movl $0x1, %r15d
leaq -0x2178(%rbp), %r13
movl %ecx, -0x50(%rbp)
movq -0x8(%r13), %rbx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x20(%rax)
testq %rax, %rax
je 0x45a6f
movq (%r13), %r14
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x20(%rax)
cmpq %rax, %r14
jae 0x45b56
movq -0xb8(%rbp), %rax
leaq -0xb8(%rbp), %r14
movq %r14, %rdi
callq *0x10(%rax)
leaq -0xa0(%rbp), %rax
movups (%rax), %xmm0
movaps %xmm0, -0xf0(%rbp)
leaq -0xe0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x43686
movq (%rbx), %rax
leaq -0x150(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq -0xc0(%rbp), %rdx
leaq -0xf0(%rbp), %rcx
callq *0x18(%rax)
movq %r14, %rdi
movq %r12, %rsi
callq 0x45f46
leaq -0x78(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x1b640
movq -0x38(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0x45b06
callq 0x1b4d0
movq -0x30(%rbp), %rax
movq %rax, -0x150(%rbp)
cmpl $0x0, -0x148(%rbp)
jne 0x45b26
leaq -0x128(%rbp), %rdi
callq 0x43810
leaq -0xe0(%rbp), %rdi
callq 0x43810
movl -0xb0(%rbp), %eax
testl %eax, %eax
jne 0x45c77
movq -0xb8(%rbp), %rax
movq %r14, %rdi
callq *0x10(%rax)
cmpl $0x1, -0xa8(%rbp)
jne 0x45b89
cmpq -0x58(%rbp), %r15
setb %cl
movq -0x48(%rbp), %rax
addq %r15, %rax
incq %rax
incq %r15
addq $0x10, %r13
cmpq $0x1, %rax
jne 0x45a44
xorl %r14d, %r14d
leaq -0x140(%rbp), %r13
jmp 0x45b98
xorl %r14d, %r14d
jmp 0x45b98
incq (%r13)
leaq -0x140(%rbp), %r13
movl -0x50(%rbp), %r14d
movq -0xb8(%rbp), %rax
leaq -0xb8(%rbp), %rbx
movq %rbx, %rdi
callq *0x10(%rax)
cmpl $0x2, -0xa8(%rbp)
je 0x45d57
testb $0x1, %r14b
jne 0x459cb
leaq -0xb8(%rbp), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
leaq -0xa0(%rbp), %rax
movups (%rax), %xmm0
leaq -0x140(%rbp), %r14
movaps %xmm0, -0x10(%r14)
movq %r14, %rdi
leaq -0x90(%rbp), %rsi
callq 0x43686
movq -0x140(%rbp), %rdx
cmpq -0x138(%rbp), %rdx
movq -0x40(%rbp), %rbx
leaq -0x68(%rbp), %r15
je 0x45dbc
addq $0x8, %rdx
leaq 0x369bb(%rip), %rsi     # 0x7c5d7
leaq -0xf0(%rbp), %rdi
callq 0x3f209
leaq -0xf0(%rbp), %rdx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x44f20
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x45c54
callq 0x1b4d0
movq %r14, %rdi
callq 0x43810
movq -0x78(%rbp), %rdi
movq -0x38(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpq %r15, %rdi
je 0x45cc7
callq 0x1b4d0
jmp 0x45cc7
movq -0x40(%rbp), %rbx
movl %eax, 0x8(%rbx)
movq -0x38(%rbp), %rax
movq %rax, (%rbx)
leaq 0x50(%rbx), %rax
movq %rax, 0x40(%rbx)
movq -0x78(%rbp), %rcx
leaq -0x68(%rbp), %r14
cmpq %r14, %rcx
je 0x45ca8
movq %rcx, 0x40(%rbx)
movq -0x68(%rbp), %rax
movq %rax, 0x50(%rbx)
jmp 0x45caf
movups (%r14), %xmm0
movups %xmm0, (%rax)
movq -0x70(%rbp), %rax
movq %rax, 0x48(%rbx)
movq %r14, -0x78(%rbp)
movq $0x0, -0x70(%rbp)
movb $0x0, -0x68(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpl $0x0, -0xb0(%rbp)
jne 0x45ce7
leaq -0x90(%rbp), %rdi
callq 0x43810
movq %rbx, %rax
addq $0x2158, %rsp           # imm = 0x2158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl -0xb0(%rbp), %eax
movq -0x40(%rbp), %rbx
movl %eax, 0x8(%rbx)
movq -0x30(%rbp), %rcx
movq %rcx, (%rbx)
testl %eax, %eax
leaq -0x68(%rbp), %r14
jne 0x45d3f
movl -0xa8(%rbp), %eax
movl %eax, 0x10(%rbx)
leaq -0xa0(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x18(%rbx)
leaq 0x28(%rbx), %rdi
leaq -0x90(%rbp), %rsi
callq 0x43686
movq -0x38(%rbp), %rax
movq %rax, (%rbx)
leaq 0x50(%rbx), %rax
movq %rax, 0x40(%rbx)
movq -0x78(%rbp), %rcx
jmp 0x45c95
movl -0xb0(%rbp), %eax
movq -0x40(%rbp), %rbx
movl %eax, 0x8(%rbx)
movq -0x30(%rbp), %rcx
movq %rcx, (%rbx)
testl %eax, %eax
jne 0x45c7e
movl $0x2, 0x10(%rbx)
leaq -0xa0(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x18(%rbx)
leaq 0x28(%rbx), %rdi
leaq -0x90(%rbp), %rsi
callq 0x43686
jmp 0x45c7e
leaq 0x367b0(%rip), %rdi     # 0x7c554
leaq 0x3512a(%rip), %rsi     # 0x7aed5
leaq 0x367b5(%rip), %rcx     # 0x7c567
movl $0x2585, %edx           # imm = 0x2585
callq 0x1b320
leaq 0x364e9(%rip), %rdi     # 0x7c2ac
leaq 0x3510b(%rip), %rsi     # 0x7aed5
leaq 0x364f2(%rip), %rcx     # 0x7c2c3
movl $0x22d7, %edx           # imm = 0x22D7
callq 0x1b320
jmp 0x45e3b
jmp 0x45e3b
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x45dff
callq 0x1b4d0
jmp 0x45dff
movq %rax, %rbx
movq %r14, %rdi
jmp 0x45e32
jmp 0x45e3b
movq %rax, %rbx
movq %r14, %rdi
callq 0x43810
jmp 0x45e4a
jmp 0x45e3b
jmp 0x45e3b
movq %rax, %rbx
leaq -0x150(%rbp), %rdi
callq 0x3fa7a
jmp 0x45e2b
movq %rax, %rbx
leaq -0xe0(%rbp), %rdi
callq 0x43810
jmp 0x45e3e
jmp 0x45e3b
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x3fa7a
movq %rbx, %rdi
callq 0x1b910