// File: xelia-it[P]mustache/third-party/catch2/single_include/catch2/catch.hpp
// Function: Catch::Capturer::Capturer(Catch::StringRef, Catch::SourceLineInfo const&, Catch::ResultWas::OfType, Catch::StringRef)
Capturer::Capturer( StringRef macroName, SourceLineInfo const& lineInfo, ResultWas::OfType resultType, StringRef names ) {
        auto trimmed = [&] (size_t start, size_t end) {
            while (names[start] == ',' || isspace(static_cast<unsigned char>(names[start]))) {
                ++start;
            }
            while (names[end] == ',' || isspace(static_cast<unsigned char>(names[end]))) {
                --end;
            }
            return names.substr(start, end - start + 1);
        };
        auto skipq = [&] (size_t start, char quote) {
            for (auto i = start + 1; i < names.size() ; ++i) {
                if (names[i] == quote)
                    return i;
                if (names[i] == '\\')
                    ++i;
            }
            CATCH_INTERNAL_ERROR("CAPTURE parsing encountered unmatched quote");
        };

        size_t start = 0;
        std::stack<char> openings;
        for (size_t pos = 0; pos < names.size(); ++pos) {
            char c = names[pos];
            switch (c) {
            case '[':
            case '{':
            case '(':
            // It is basically impossible to disambiguate between
            // comparison and start of template args in this context
//            case '<':
                openings.push(c);
                break;
            case ']':
            case '}':
            case ')':
//           case '>':
                openings.pop();
                break;
            case '"':
            case '\'':
                pos = skipq(pos, c);
                break;
            case ',':
                if (start != pos && openings.empty()) {
                    m_messages.emplace_back(macroName, lineInfo, resultType);
                    m_messages.back().message = static_cast<std::string>(trimmed(start, pos));
                    m_messages.back().message += " := ";
                    start = pos;
                }
            }
        }
        assert(openings.empty() && "Mismatched openings");
        m_messages.emplace_back(macroName, lineInfo, resultType);
        m_messages.back().message = static_cast<std::string>(trimmed(start, names.size() - 1));
        m_messages.back().message += " := ";
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
leaq 0x10(%rbp), %rax
movq %rax, -0x138(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq -0x18(%rbp), %rdi
movq %rdi, -0x128(%rbp)
movq %rdi, %rax
movq %rax, -0x130(%rbp)
callq 0x8eb30
movq -0x128(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x120(%rbp)
callq 0x541c0
movq %rax, -0x118(%rbp)
jmp 0x61714
movq -0x138(%rbp), %rax
movq -0x130(%rbp), %rcx
movq -0x120(%rbp), %rdx
movq -0x118(%rbp), %rsi
movq %rsi, (%rdx)
movq $0x0, 0x20(%rcx)
movq %rax, -0x40(%rbp)
movq %rax, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x8eb50
jmp 0x61759
movq $0x0, -0xa8(%rbp)
movq -0x138(%rbp), %rdi
movq -0xa8(%rbp), %rax
movq %rax, -0x140(%rbp)
callq 0x8af50
movq %rax, %rcx
movq -0x140(%rbp), %rax
cmpq %rcx, %rax
jae 0x619e3
movq -0x138(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x8eb80
movb %al, -0xa9(%rbp)
movsbl -0xa9(%rbp), %eax
movl %eax, -0x144(%rbp)
subl $0x22, %eax
je 0x61894
jmp 0x617c2
movl -0x144(%rbp), %eax
subl $0x27, %eax
je 0x61894
jmp 0x617d3
movl -0x144(%rbp), %eax
subl $0x28, %eax
je 0x6184a
jmp 0x617e0
movl -0x144(%rbp), %eax
subl $0x29, %eax
je 0x61881
jmp 0x617f1
movl -0x144(%rbp), %eax
subl $0x2c, %eax
je 0x618c7
jmp 0x61802
movl -0x144(%rbp), %eax
subl $0x5b, %eax
je 0x6184a
jmp 0x6180f
movl -0x144(%rbp), %eax
subl $0x5d, %eax
je 0x61881
jmp 0x6181c
movl -0x144(%rbp), %eax
subl $0x7b, %eax
je 0x6184a
jmp 0x61829
movl -0x144(%rbp), %eax
subl $0x7d, %eax
je 0x61881
jmp 0x619ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x61b33
leaq -0xa0(%rbp), %rdi
leaq -0xa9(%rbp), %rsi
callq 0x8ebe0
jmp 0x6185f
jmp 0x619ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x8ed20
jmp 0x61b33
leaq -0xa0(%rbp), %rdi
callq 0x8ec10
jmp 0x6188f
jmp 0x619ca
movq -0xa8(%rbp), %rsi
movsbl -0xa9(%rbp), %edx
leaq -0x48(%rbp), %rdi
callq 0x61b50
movq %rax, -0x150(%rbp)
jmp 0x618b4
movq -0x150(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x619ca
movq -0x50(%rbp), %rax
cmpq -0xa8(%rbp), %rax
je 0x619c8
leaq -0xa0(%rbp), %rdi
callq 0x8ec30
movb %al, -0x151(%rbp)
jmp 0x618ec
movb -0x151(%rbp), %al
testb $0x1, %al
jne 0x618fb
jmp 0x619c8
movq -0x130(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq -0x10(%rbp), %rsi
leaq -0x24(%rbp), %rcx
callq 0x8ec50
jmp 0x61915
movq -0x50(%rbp), %rsi
movq -0xa8(%rbp), %rdx
leaq -0x40(%rbp), %rdi
callq 0x61ce0
movq %rdx, -0x168(%rbp)
movq %rax, -0x160(%rbp)
jmp 0x61939
movq -0x168(%rbp), %rax
movq -0x160(%rbp), %rcx
movq %rcx, -0xe0(%rbp)
movq %rax, -0xd8(%rbp)
leaq -0xd0(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x8af90
jmp 0x6196a
movq -0x130(%rbp), %rdi
callq 0x8ece0
movq %rax, %rdi
addq $0x10, %rdi
leaq -0xd0(%rbp), %rsi
movq %rsi, -0x170(%rbp)
callq 0x528a0
movq -0x170(%rbp), %rdi
callq 0x52e58
movq -0x130(%rbp), %rdi
callq 0x8ece0
movq %rax, %rdi
addq $0x10, %rdi
leaq 0xdda72(%rip), %rsi     # 0x13f428
callq 0x526e0
jmp 0x619bd
movq -0xa8(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x619ca
jmp 0x619cc
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x61764
leaq -0xa0(%rbp), %rdi
callq 0x8ec30
movb %al, -0x171(%rbp)
jmp 0x619f7
movb -0x171(%rbp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0x172(%rbp)
jne 0x61a0c
jmp 0x61a16
movb $0x1, %al
movb %al, -0x172(%rbp)
jmp 0x61a16
movb -0x172(%rbp), %al
testb $0x1, %al
jne 0x61a22
jmp 0x61a24
jmp 0x61a43
leaq 0xdda16(%rip), %rdi     # 0x13f441
leaq 0xdd59f(%rip), %rsi     # 0x13efd1
movl $0x2e8e, %edx           # imm = 0x2E8E
leaq 0xdda2d(%rip), %rcx     # 0x13f46b
callq 0x524b0
movq -0x130(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq -0x10(%rbp), %rsi
leaq -0x24(%rbp), %rcx
callq 0x8ec50
jmp 0x61a5d
movq -0x138(%rbp), %rdi
movq -0x50(%rbp), %rax
movq %rax, -0x190(%rbp)
callq 0x8af50
movq -0x190(%rbp), %rsi
movq %rax, %rdx
decq %rdx
leaq -0x40(%rbp), %rdi
callq 0x61ce0
movq %rdx, -0x188(%rbp)
movq %rax, -0x180(%rbp)
jmp 0x61a9a
movq -0x188(%rbp), %rax
movq -0x180(%rbp), %rcx
movq %rcx, -0x110(%rbp)
movq %rax, -0x108(%rbp)
leaq -0x100(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x8af90
jmp 0x61acb
movq -0x130(%rbp), %rdi
callq 0x8ece0
movq %rax, %rdi
addq $0x10, %rdi
leaq -0x100(%rbp), %rsi
movq %rsi, -0x198(%rbp)
callq 0x528a0
movq -0x198(%rbp), %rdi
callq 0x52e58
movq -0x130(%rbp), %rdi
callq 0x8ece0
movq %rax, %rdi
addq $0x10, %rdi
leaq 0xdd911(%rip), %rsi     # 0x13f428
callq 0x526e0
jmp 0x61b1e
leaq -0xa0(%rbp), %rdi
callq 0x8ed20
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
movq -0x128(%rbp), %rdi
callq 0x8cf60
movq -0x30(%rbp), %rdi
callq 0x52c90
nopl (%rax,%rax)