// File: 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
subq $0x2320, %rsp           # imm = 0x2320
movq %rdi, -0x2280(%rbp)
movq %rdi, %rax
movq %rax, -0x2278(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x2270(%rbp)
addq $0x30, %rdi
callq 0xa1130
movq -0x2270(%rbp), %rdi
movq %rax, -0x2268(%rbp)
addq $0x48, %rdi
callq 0xa1160
movq %rax, %rcx
movq -0x2268(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x28(%rbp)
cmpq $0x200, -0x28(%rbp)     # imm = 0x200
jae 0xa04b4
jmp 0xa04d3
leaq 0xa0200(%rip), %rdi     # 0x1406bb
leaq 0x9eb0f(%rip), %rsi     # 0x13efd1
movl $0x2585, %edx           # imm = 0x2585
leaq 0xa0200(%rip), %rcx     # 0x1406ce
callq 0x524b0
leaq -0x2030(%rbp), %rax
movq %rax, %rcx
addq $0x2000, %rcx           # imm = 0x2000
movq %rcx, -0x2290(%rbp)
movq %rax, -0x2288(%rbp)
movq -0x2288(%rbp), %rdi
movq %rdi, -0x2298(%rbp)
callq 0xa1190
movq -0x2298(%rbp), %rax
movq -0x2290(%rbp), %rcx
addq $0x10, %rax
cmpq %rcx, %rax
movq %rax, -0x2288(%rbp)
jne 0xa04f2
movq -0x2270(%rbp), %rax
movq $0x0, -0x2038(%rbp)
addq $0x30, %rax
movq %rax, -0x2040(%rbp)
movq -0x2040(%rbp), %rdi
callq 0xa0f10
movq %rax, -0x2048(%rbp)
movq -0x2040(%rbp), %rdi
callq 0xa0f40
movq %rax, -0x2050(%rbp)
leaq -0x2048(%rbp), %rdi
leaq -0x2050(%rbp), %rsi
callq 0xa0f70
testb $0x1, %al
jne 0xa057f
jmp 0xa05cd
leaq -0x2048(%rbp), %rdi
callq 0xa0fb0
movq %rax, -0x2058(%rbp)
movq -0x2058(%rbp), %rcx
movq -0x2038(%rbp), %rdx
movq %rdx, %rax
addq $0x1, %rax
movq %rax, -0x2038(%rbp)
leaq -0x2030(%rbp), %rax
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
leaq -0x2048(%rbp), %rdi
callq 0xa0fd0
jmp 0xa0566
movq -0x2270(%rbp), %rax
addq $0x48, %rax
movq %rax, -0x2060(%rbp)
movq -0x2060(%rbp), %rdi
callq 0xa0ff0
movq %rax, -0x2068(%rbp)
movq -0x2060(%rbp), %rdi
callq 0xa1020
movq %rax, -0x2070(%rbp)
leaq -0x2068(%rbp), %rdi
leaq -0x2070(%rbp), %rsi
callq 0xa1050
testb $0x1, %al
jne 0xa061e
jmp 0xa066c
leaq -0x2068(%rbp), %rdi
callq 0xa1090
movq %rax, -0x2078(%rbp)
movq -0x2078(%rbp), %rcx
movq -0x2038(%rbp), %rdx
movq %rdx, %rax
addq $0x1, %rax
movq %rax, -0x2038(%rbp)
leaq -0x2030(%rbp), %rax
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
leaq -0x2068(%rbp), %rdi
callq 0xa10b0
jmp 0xa0605
movq -0x2270(%rbp), %rsi
addq $0x8, %rsi
movq -0x18(%rbp), %rdx
leaq -0x20a8(%rbp), %rdi
movq %rdi, -0x22a8(%rbp)
callq 0xa11b0
movq -0x22a8(%rbp), %rdi
callq 0x9a630
movq -0x20(%rbp), %rdx
leaq -0x2138(%rbp), %rdi
movq %rdi, -0x22a0(%rbp)
movl $0x1, %esi
callq 0x98f60
movq -0x22a0(%rbp), %rsi
leaq -0x2108(%rbp), %rdi
callq 0x98f30
jmp 0xa06cb
leaq -0x2138(%rbp), %rdi
callq 0x98f90
leaq -0x2108(%rbp), %rdi
callq 0xa12d0
movq %rax, -0x22b0(%rbp)
jmp 0xa06ec
movq -0x22b0(%rbp), %rsi
leaq -0x2170(%rbp), %rdi
callq 0xa1300
jmp 0xa0701
leaq -0x2170(%rbp), %rdi
callq 0x9c860
movb %al, -0x22b1(%rbp)
leaq -0x2170(%rbp), %rdi
callq 0x99ab0
movb -0x22b1(%rbp), %al
testb $0x1, %al
jne 0xa072e
jmp 0xa0ad1
movb $0x0, -0x2171(%rbp)
movq $0x0, -0x2180(%rbp)
movq -0x2180(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0xa099c
movq -0x2180(%rbp), %rax
shlq $0x4, %rax
leaq -0x2030(%rbp,%rax), %rax
movq %rax, -0x2188(%rbp)
movq -0x2188(%rbp), %rax
movq (%rax), %rdi
movq (%rdi), %rax
movq 0x20(%rax), %rax
callq *%rax
movq %rax, -0x22c0(%rbp)
jmp 0xa0787
movq -0x22c0(%rbp), %rax
cmpq $0x0, %rax
je 0xa07d2
movq -0x2188(%rbp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rax
movq %rax, -0x22d0(%rbp)
movq (%rdi), %rax
movq 0x20(%rax), %rax
callq *%rax
movq %rax, -0x22c8(%rbp)
jmp 0xa07bb
movq -0x22d0(%rbp), %rax
movq -0x22c8(%rbp), %rcx
cmpq %rcx, %rax
jae 0xa0983
movq -0x2188(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x22e8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x22e0(%rbp)
leaq -0x2108(%rbp), %rdi
callq 0xa12d0
movq %rax, -0x22d8(%rbp)
jmp 0xa0803
movq -0x22d8(%rbp), %rsi
leaq -0x2210(%rbp), %rdi
callq 0xa1300
jmp 0xa0818
movq -0x22e0(%rbp), %rdx
movq -0x22e8(%rbp), %rsi
movq (%rsi), %rax
movq 0x18(%rax), %rax
leaq -0x21e8(%rbp), %rdi
leaq -0x2210(%rbp), %rcx
callq *%rax
jmp 0xa083f
leaq -0x2108(%rbp), %rdi
leaq -0x21e8(%rbp), %rsi
callq 0xa1330
jmp 0xa0854
leaq -0x21e8(%rbp), %rdi
callq 0x905f0
leaq -0x2210(%rbp), %rdi
callq 0x99ab0
leaq -0x2108(%rbp), %rdi
callq 0x90560
movb %al, -0x22e9(%rbp)
jmp 0xa0880
movb -0x22e9(%rbp), %al
testb $0x1, %al
jne 0xa0931
jmp 0xa0890
movq -0x2280(%rbp), %rdi
leaq -0x2108(%rbp), %rsi
callq 0xa1370
jmp 0xa08a5
movl $0x1, -0x2214(%rbp)
jmp 0xa0af0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2140(%rbp)
movl %eax, -0x2144(%rbp)
leaq -0x2138(%rbp), %rdi
callq 0x98f90
jmp 0xa0b18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2140(%rbp)
movl %eax, -0x2144(%rbp)
jmp 0xa0b0c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2140(%rbp)
movl %eax, -0x2144(%rbp)
jmp 0xa0920
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2140(%rbp)
movl %eax, -0x2144(%rbp)
leaq -0x21e8(%rbp), %rdi
callq 0x905f0
leaq -0x2210(%rbp), %rdi
callq 0x99ab0
jmp 0xa0b0c
leaq -0x2108(%rbp), %rdi
callq 0xa12d0
movq %rax, -0x22f8(%rbp)
jmp 0xa0946
movq -0x22f8(%rbp), %rdi
callq 0xa13c0
movl %eax, -0x22fc(%rbp)
jmp 0xa095a
movl -0x22fc(%rbp), %eax
cmpl $0x1, %eax
je 0xa0981
movb $0x1, -0x2171(%rbp)
movq -0x2188(%rbp), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
jmp 0xa099c
jmp 0xa0983
jmp 0xa0985
movq -0x2180(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x2180(%rbp)
jmp 0xa0740
leaq -0x2108(%rbp), %rdi
callq 0xa12d0
movq %rax, -0x2308(%rbp)
jmp 0xa09b1
movq -0x2308(%rbp), %rdi
callq 0xa13c0
movl %eax, -0x230c(%rbp)
jmp 0xa09c5
movl -0x230c(%rbp), %eax
cmpl $0x2, %eax
jne 0xa09f4
movq -0x2280(%rbp), %rdi
leaq -0x2108(%rbp), %rsi
callq 0xa1370
jmp 0xa09e5
movl $0x1, -0x2214(%rbp)
jmp 0xa0af0
testb $0x1, -0x2171(%rbp)
jne 0xa0acc
leaq -0x2108(%rbp), %rdi
callq 0xa12d0
movq %rax, -0x2318(%rbp)
jmp 0xa0a16
movq -0x2318(%rbp), %rsi
leaq -0x2260(%rbp), %rdi
callq 0xa1300
jmp 0xa0a2b
leaq -0x2260(%rbp), %rdi
callq 0x9c8b0
movq %rax, %rdx
addq $0x8, %rdx
leaq 0x9fcf9(%rip), %rsi     # 0x14073e
leaq -0x2238(%rbp), %rdi
callq 0x8e240
jmp 0xa0a53
movq -0x2280(%rbp), %rdi
leaq -0x2238(%rbp), %rsi
callq 0x9cc90
jmp 0xa0a68
leaq -0x2238(%rbp), %rdi
callq 0x52e58
leaq -0x2260(%rbp), %rdi
callq 0x99ab0
movl $0x1, -0x2214(%rbp)
jmp 0xa0af0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2140(%rbp)
movl %eax, -0x2144(%rbp)
jmp 0xa0abe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2140(%rbp)
movl %eax, -0x2144(%rbp)
leaq -0x2238(%rbp), %rdi
callq 0x52e58
leaq -0x2260(%rbp), %rdi
callq 0x99ab0
jmp 0xa0b0c
jmp 0xa06d7
movq -0x2280(%rbp), %rdi
leaq -0x2108(%rbp), %rsi
callq 0xa1370
jmp 0xa0ae6
movl $0x1, -0x2214(%rbp)
leaq -0x2108(%rbp), %rdi
callq 0x905f0
movq -0x2278(%rbp), %rax
addq $0x2320, %rsp           # imm = 0x2320
popq %rbp
retq
leaq -0x2108(%rbp), %rdi
callq 0x905f0
movq -0x2140(%rbp), %rdi
callq 0x52c90
nopw %cs:(%rax,%rax)
nop