// File: /workspace/github_cpp_makefile_star2_O3/yhirose[P]fizzbuzzlang/./peglib.h
// Function: peg::BackReference::parse_core(char const*, unsigned long, peg::SemanticValues&, peg::Context&, std::any&) const
inline size_t BackReference::parse_core(const char *s, size_t n,
                                        SemanticValues &vs, Context &c,
                                        std::any &dt) const {
  auto size = static_cast<int>(c.capture_scope_stack_size);
  for (auto i = size - 1; i >= 0; i--) {
    auto index = static_cast<size_t>(i);
    const auto &cs = c.capture_scope_stack[index];
    if (cs.find(name_) != cs.end()) {
      const auto &lit = cs.at(name_);
      std::once_flag init_is_word;
      auto is_word = false;
      return parse_literal(s, n, vs, c, dt, lit, init_is_word, is_word, false);
    }
  }

  c.error_info.message_pos = s;
  c.error_info.message = "undefined back reference '$" + name_ + "'...";
  return static_cast<size_t>(-1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, -0x70(%rbp)
movq %rcx, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdi, %r15
movq %r8, -0x30(%rbp)
movq 0x130(%r8), %r13
movl %r13d, %eax
leaq 0x8(%rdi), %rcx
movq %rcx, -0x78(%rbp)
incl %r13d
shlq $0x4, %rax
leaq (%rax,%rax,2), %rbx
negq %rbx
leaq (%rax,%rax,2), %r12
addq $0x8, %r12
decl %r13d
testl %r13d, %r13d
jle 0xbc8e
addq $0x30, %rbx
movq -0x30(%rbp), %rax
movq 0x118(%rax), %r14
leaq (%r14,%r12), %rdi
addq $-0x38, %rdi
addq $-0x30, %r12
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
movq %rcx, -0x58(%rbp)
movq %rax, -0x50(%rbp)
leaq -0x58(%rbp), %rsi
callq 0x3dbf2
leaq (%r14,%r12), %rcx
cmpq %rax, %rcx
je 0xbbe4
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
leaq -0x58(%rbp), %r15
movq %rcx, (%r15)
movq %rax, 0x8(%r15)
subq %rbx, %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0xbd8c
xorl %r10d, %r10d
movl %r10d, (%r15)
leaq -0x98(%rbp), %r11
movb $0x0, (%r11)
subq $0x8, %rsp
movq -0x38(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x70(%rbp), %r8
movq %rax, %r9
pushq %r10
pushq %r11
pushq %r15
callq 0xac5b
addq $0x20, %rsp
jmp 0xbd52
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, 0x38(%rax)
leaq 0x36584(%rip), %rsi     # 0x42225
leaq -0x98(%rbp), %r14
movq %r14, %rdi
movq -0x78(%rbp), %rdx
callq 0xbe0e
leaq 0x36586(%rip), %rsi     # 0x42241
movq %r14, %rdi
callq 0x8480
leaq -0x48(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xbce7
movq %rdx, -0x58(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x48(%rbp)
jmp 0xbced
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x58(%rbp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x30(%rbp), %rdi
addq $0x40, %rdi
movq %r14, %rsi
callq 0x8330
movq (%r14), %rdi
cmpq %rbx, %rdi
je 0xbd2c
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x82b0
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbd4b
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x82b0
movq $-0x1, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbd83
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x82b0
movq %rbx, %rdi
callq 0x8420
nop