// File: /workspace/github_cpp_makefile_star2_O1/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, -0x80(%rbp)
movq %r8, %r13
movq %rcx, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq %rsi, -0x30(%rbp)
movq %rdi, %rdx
movq 0x130(%r8), %rbx
movl %ebx, %eax
leaq (%rax,%rax,2), %r12
shlq $0x4, %r12
addq $-0x30, %r12
incl %ebx
leaq -0x60(%rbp), %r15
movq %r8, -0x40(%rbp)
movq %rdi, -0x38(%rbp)
decl %ebx
testl %ebx, %ebx
jle 0xcc6d
movq 0x118(%r13), %r14
leaq (%r14,%r12), %r13
movq 0x8(%rdx), %rax
movq 0x10(%rdx), %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
movq %r13, %rdi
movq %r15, %rsi
callq 0x3fd1c
movq %r15, %rsi
movq %rax, %r15
leaq (%r14,%r12), %rax
addq $0x8, %rax
cmpq %r15, %rax
je 0xcc4d
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rax
movq 0x10(%rcx), %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
movq %r13, %rdi
movq %rsi, %r13
callq 0xcd72
xorl %r10d, %r10d
movl %r10d, -0x60(%rbp)
movb $0x0, -0xa0(%rbp)
subq $0x8, %rsp
movq -0x30(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq -0x80(%rbp), %r8
movq %rax, %r9
pushq %r10
leaq -0xa0(%rbp), %rax
pushq %rax
pushq %r13
callq 0xbc87
movq %r13, %rsi
addq $0x20, %rsp
movq %rax, -0x68(%rbp)
addq $-0x30, %r12
leaq (%r14,%r12), %rax
addq $0x38, %rax
cmpq %r15, %rax
movq -0x40(%rbp), %r13
movq -0x38(%rbp), %rdx
movq %rsi, %r15
je 0xcba6
testl %ebx, %ebx
movq -0x68(%rbp), %rax
jg 0xcd38
movq -0x30(%rbp), %rax
movq %rax, 0x38(%r13)
addq $0x8, %rdx
leaq 0x37599(%rip), %rsi     # 0x44225
leaq -0xa0(%rbp), %r15
movq %r15, %rdi
callq 0xcdf6
leaq 0x3759f(%rip), %rsi     # 0x44241
movq %r15, %rdi
callq 0x9480
leaq -0x50(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xccce
movq %rdx, -0x60(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x50(%rbp)
jmp 0xccd4
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x60(%rbp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
addq $0x40, %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x9330
movq (%r14), %rdi
cmpq %rbx, %rdi
je 0xcd12
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x92b0
leaq -0x90(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcd31
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x92b0
movq $-0x1, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x90(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcd69
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x92b0
movq %rbx, %rdi
callq 0x9420
nop