// File: /workspace/github_cpp_makefile_star2_O1/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 $0x2168, %rsp           # imm = 0x2168
movq %rcx, -0x40(%rbp)
movq %rdx, -0xc8(%rbp)
movq %rdi, -0x30(%rbp)
movq 0x30(%rsi), %r12
movq 0x38(%rsi), %rbx
movq %rbx, %rax
subq %r12, %rax
sarq $0x3, %rax
movabsq $-0x1111111111111111, %rcx # imm = 0xEEEEEEEEEEEEEEEF
imulq %rax, %rcx
movq 0x50(%rsi), %rax
movq %rsi, -0x38(%rbp)
movq 0x48(%rsi), %r15
movq %rax, -0x48(%rbp)
subq %r15, %rax
sarq $0x5, %rax
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
addq %rcx, %rdx
movq %rdx, -0x100(%rbp)
cmpq $0x200, %rdx            # imm = 0x200
jae 0x46245
leaq -0x2190(%rbp), %r14
xorl %r13d, %r13d
movl $0x2000, %edx           # imm = 0x2000
movq %r14, %rdi
xorl %esi, %esi
callq 0x1b2a0
cmpq %rbx, %r12
je 0x45c41
xorl %r13d, %r13d
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rcx
incq %r13
movq %r12, (%r14)
addq $0x78, %r12
addq $0x10, %r14
cmpq %rbx, %r12
jne 0x45c2c
jmp 0x45c49
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rcx
cmpq %rcx, %r15
je 0x45c6d
shlq $0x4, %r13
leaq -0x2190(,%r13), %rax
addq %rbp, %rax
movq %r15, (%rax)
addq $0x60, %r15
addq $0x10, %rax
cmpq %rcx, %r15
jne 0x45c5d
addq $0x8, %rsi
leaq -0x190(%rbp), %r14
movq %r14, %rdi
movq -0xc8(%rbp), %rdx
callq 0x462de
leaq 0x648fa(%rip), %rax     # 0xaa588
addq $0x10, %rax
movq %rax, (%r14)
movq 0x10(%r14), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0x45caa
callq 0x1b4d0
leaq 0x6492f(%rip), %rax     # 0xaa5e0
addq $0x10, %rax
movq %rax, -0x190(%rbp)
leaq -0x148(%rbp), %r14
movl $0x1, -0x18(%r14)
movq -0x40(%rbp), %rsi
movups (%rsi), %xmm0
movups %xmm0, -0x10(%r14)
addq $0x10, %rsi
movq %r14, %rdi
callq 0x4390a
leaq -0x88(%rbp), %rdi
movl $0x0, -0x20(%rdi)
leaq 0x64788(%rip), %rax     # 0xaa480
addq $0x10, %rax
movq %rax, -0x38(%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 0x4390a
leaq -0x98(%rbp), %rcx
leaq 0x646fe(%rip), %rax     # 0xaa428
addq $0x10, %rax
movq %rax, -0x40(%rbp)
movq %rax, -0x18(%rcx)
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
callq 0x43a94
leaq -0x150(%rbp), %r15
movq -0x30(%rbp), %rcx
leaq 0x50(%rcx), %r14
leaq 0x18(%rcx), %rax
movq %rax, -0xf8(%rbp)
leaq 0x28(%rcx), %rax
movq %rax, -0xb8(%rbp)
leaq -0xb0(%rbp), %r12
leaq 0x6467c(%rip), %rax     # 0xaa400
addq $0x10, %rax
movq %rax, -0xc0(%rbp)
movq %r14, -0x48(%rbp)
movq -0xb0(%rbp), %rax
movq %r12, %rdi
callq *0x10(%rax)
leaq -0x98(%rbp), %rax
movups (%rax), %xmm0
movaps %xmm0, -0x160(%rbp)
movq %r15, %rdi
leaq -0x88(%rbp), %rsi
callq 0x4390a
movq -0x150(%rbp), %r12
movq -0x148(%rbp), %r13
movq -0x160(%rbp), %r14
movq %r15, %rdi
movq -0x158(%rbp), %r15
callq 0x43a94
cmpq %r13, %r12
jne 0x45df2
cmpq %r15, %r14
je 0x4613c
movq -0x100(%rbp), %r13
testq %r13, %r13
je 0x45fa9
movl $0x0, -0x4c(%rbp)
leaq -0x2188(%rbp), %r15
movq -0x8(%r15), %r14
movq (%r14), %rax
movq %r14, %rdi
callq *0x20(%rax)
testq %rax, %rax
je 0x45e37
movq (%r15), %r12
movq (%r14), %rax
movq %r14, %rdi
callq *0x20(%rax)
cmpq %rax, %r12
jae 0x45f4c
movq -0xb0(%rbp), %rax
leaq -0xb0(%rbp), %r12
movq %r12, %rdi
callq *0x10(%rax)
leaq -0x98(%rbp), %rax
movups (%rax), %xmm0
movaps %xmm0, -0xf0(%rbp)
leaq -0xe0(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x4390a
movq (%r14), %rax
leaq -0x160(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq -0xc8(%rbp), %rdx
leaq -0xf0(%rbp), %rcx
callq *0x18(%rax)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x463d2
movq -0x30(%rbp), %r14
leaq -0x70(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x1b640
movq -0x40(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x45ed2
callq 0x1b4d0
movq -0x38(%rbp), %rax
movq %rax, -0x160(%rbp)
cmpl $0x0, -0x158(%rbp)
jne 0x45ef2
leaq -0x138(%rbp), %rdi
callq 0x43a94
leaq -0xe0(%rbp), %rdi
callq 0x43a94
movl -0xa8(%rbp), %eax
testl %eax, %eax
je 0x45f36
movl %eax, 0x8(%r14)
movq -0x40(%rbp), %rax
movq %rax, (%r14)
movq -0x48(%rbp), %rdx
movq %rdx, 0x40(%r14)
movq -0x70(%rbp), %rax
leaq -0x60(%rbp), %rcx
cmpq %rcx, %rax
je 0x45f52
movq %rax, 0x40(%r14)
movq -0x60(%rbp), %rax
movq %rax, 0x50(%r14)
jmp 0x45f58
movq -0xb0(%rbp), %rax
movq %r12, %rdi
callq *0x10(%rax)
cmpl $0x1, -0xa0(%rbp)
jne 0x45f77
xorl %eax, %eax
movb $0x1, %cl
jmp 0x45f86
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq -0x68(%rbp), %rax
movq %rax, 0x48(%r14)
movq %rcx, -0x70(%rbp)
movq $0x0, -0x68(%rbp)
movb $0x0, -0x60(%rbp)
movl $0x1, %eax
jmp 0x45f84
incq (%r15)
movl $0x8, %eax
movb $0x1, %cl
movl %ecx, -0x4c(%rbp)
xorl %ecx, %ecx
testb %cl, %cl
je 0x45f9c
addq $0x10, %r15
decq %r13
jne 0x45e10
movl $0x8, %eax
leaq -0xb0(%rbp), %r12
movl -0x4c(%rbp), %r13d
jmp 0x45fb8
movl $0x8, %eax
xorl %r13d, %r13d
leaq -0xb0(%rbp), %r12
cmpl $0x8, %eax
movq -0x48(%rbp), %r14
leaq -0x150(%rbp), %r15
leaq -0xf0(%rbp), %rbx
jne 0x4612f
movq -0xb0(%rbp), %rax
movq %r12, %rdi
callq *0x10(%rax)
movl -0xa0(%rbp), %eax
cmpl $0x2, %eax
jne 0x46070
movq -0xc0(%rbp), %rcx
movq -0x30(%rbp), %rsi
movq %rcx, (%rsi)
movl -0xa8(%rbp), %ecx
movl %ecx, 0x8(%rsi)
movq -0x38(%rbp), %rdx
movq %rdx, (%rsi)
testl %ecx, %ecx
jne 0x4603f
movq -0x30(%rbp), %rcx
movl %eax, 0x10(%rcx)
leaq -0x98(%rbp), %rax
movups (%rax), %xmm0
movq -0xf8(%rbp), %rax
movups %xmm0, (%rax)
movq -0xb8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x4390a
movq -0x40(%rbp), %rax
movq -0x30(%rbp), %rdx
movq %rax, (%rdx)
movq %r14, 0x40(%rdx)
movq -0x70(%rbp), %rax
leaq -0x60(%rbp), %rcx
cmpq %rcx, %rax
je 0x4610b
movq %rax, 0x40(%rdx)
movq -0x60(%rbp), %rax
movq %rax, 0x50(%rdx)
jmp 0x46112
xorl %eax, %eax
testb $0x1, %r13b
jne 0x4612f
movq -0xb0(%rbp), %rax
movq %r12, %rdi
callq *0x10(%rax)
leaq -0x98(%rbp), %rax
movups (%rax), %xmm0
movaps %xmm0, -0x160(%rbp)
leaq -0x150(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x4390a
movq -0x150(%rbp), %rdx
cmpq -0x148(%rbp), %rdx
je 0x46226
addq $0x8, %rdx
movq %rbx, %rdi
leaq 0x37508(%rip), %rsi     # 0x7d5d7
callq 0x3f511
movq -0x30(%rbp), %rdi
movl $0x2, %esi
movq %rbx, %rdx
callq 0x45264
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x460fd
callq 0x1b4d0
leaq -0x150(%rbp), %rdi
callq 0x43a94
jmp 0x4612a
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq -0x68(%rbp), %rax
movq %rax, 0x48(%rdx)
movq %rcx, -0x70(%rbp)
movq $0x0, -0x68(%rbp)
movb $0x0, -0x60(%rbp)
movl $0x1, %eax
testl %eax, %eax
je 0x45d93
jmp 0x461d0
movq -0xc0(%rbp), %rax
movq -0x30(%rbp), %rbx
movq %rax, (%rbx)
movl -0xa8(%rbp), %eax
movl %eax, 0x8(%rbx)
movq -0x38(%rbp), %rcx
movq %rcx, (%rbx)
testl %eax, %eax
jne 0x46188
movl -0xa0(%rbp), %eax
movl %eax, 0x10(%rbx)
leaq -0x98(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x18(%rbx)
movq -0xb8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x4390a
movq -0x40(%rbp), %rax
movq %rax, (%rbx)
movq -0x48(%rbp), %rdx
movq %rdx, 0x40(%rbx)
movq -0x70(%rbp), %rax
leaq -0x60(%rbp), %rcx
cmpq %rcx, %rax
je 0x461b2
movq %rax, 0x40(%rbx)
movq -0x60(%rbp), %rax
movq %rax, 0x50(%rbx)
jmp 0x461b8
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq -0x68(%rbp), %rax
movq %rax, 0x48(%rbx)
movq %rcx, -0x70(%rbp)
movq $0x0, -0x68(%rbp)
movb $0x0, -0x60(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x461ed
callq 0x1b4d0
movq -0x38(%rbp), %rax
movq %rax, -0xb0(%rbp)
cmpl $0x0, -0xa8(%rbp)
movq -0x30(%rbp), %rbx
jne 0x46211
leaq -0x88(%rbp), %rdi
callq 0x43a94
movq %rbx, %rax
addq $0x2168, %rsp           # imm = 0x2168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3707f(%rip), %rdi     # 0x7d2ac
leaq 0x35ca1(%rip), %rsi     # 0x7bed5
leaq 0x37088(%rip), %rcx     # 0x7d2c3
movl $0x22d7, %edx           # imm = 0x22D7
callq 0x1b320
leaq 0x37308(%rip), %rdi     # 0x7d554
leaq 0x35c82(%rip), %rsi     # 0x7bed5
leaq 0x3730d(%rip), %rcx     # 0x7d567
movl $0x2585, %edx           # imm = 0x2585
callq 0x1b320
jmp 0x462c6
movq %rax, %rbx
movq %r14, %rdi
callq 0x43a94
jmp 0x462d5
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x46293
callq 0x1b4d0
jmp 0x46293
movq %rax, %rbx
leaq -0x150(%rbp), %rdi
jmp 0x462bd
jmp 0x462c6
jmp 0x462c6
jmp 0x462c6
movq %rax, %rbx
leaq -0x160(%rbp), %rdi
callq 0x3fd58
jmp 0x462b6
movq %rax, %rbx
leaq -0xe0(%rbp), %rdi
callq 0x43a94
jmp 0x462c9
jmp 0x462c6
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x3fd58
movq %rbx, %rdi
callq 0x1b910
nop