// File: /workspace/github_cpp_makefile_star2_O3/yhirose[P]fizzbuzzlang/./peglib.h
// Function: peg::Recovery::parse_core(char const*, unsigned long, peg::SemanticValues&, peg::Context&, std::any&) const
inline size_t Recovery::parse_core(const char *s, size_t n,
                                   SemanticValues & /*vs*/, Context &c,
                                   std::any & /*dt*/) const {
  const auto &rule = dynamic_cast<Reference &>(*ope_);

  // Custom error message
  if (c.log) {
    auto label = dynamic_cast<Reference *>(rule.args_[0].get());
    if (label && !label->rule_->error_message.empty()) {
      c.error_info.message_pos = s;
      c.error_info.message = label->rule_->error_message;
      c.error_info.label = label->rule_->name;
    }
  }

  // Recovery
  auto len = static_cast<size_t>(-1);
  {
    auto save_log = c.log;
    c.log = nullptr;
    auto se = scope_exit([&]() { c.log = save_log; });

    SemanticValues dummy_vs;
    std::any dummy_dt;

    len = rule.parse(s, n, dummy_vs, c, dummy_dt);
  }

  if (success(len)) {
    c.recovered = true;

    if (c.log) {
      c.error_info.output_log(c.log, c.s, c.l);
      c.error_info.clear();
    }
  }

  // Cut
  if (!c.cut_stack.empty()) {
    c.cut_stack.back() = true;

    if (c.cut_stack.size() == 1) {
      // TODO: Remove unneeded entries in packrat memoise table
    }
  }

  return len;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %r8, %rbx
movq %rdx, -0x48(%rbp)
movq %rsi, -0x30(%rbp)
movq 0x8(%rdi), %rdi
leaq 0x4fe4e(%rip), %rsi     # 0x5bd18
leaq 0x4fe67(%rip), %rdx     # 0x5bd38
xorl %ecx, %ecx
callq 0x8300
testq %rax, %rax
je 0xc163
movq %rax, %r13
leaq 0x248(%rbx), %r14
leaq 0x258(%rbx), %r12
cmpq $0x0, 0x258(%rbx)
je 0xbf58
movq 0x50(%r13), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbf58
leaq 0x4fe09(%rip), %rsi     # 0x5bd18
leaq 0x4fe22(%rip), %rdx     # 0x5bd38
xorl %ecx, %ecx
callq 0x8300
testq %rax, %rax
je 0xbf58
movq %rax, %r15
movq 0x68(%rax), %rsi
cmpq $0x0, 0x1a0(%rsi)
je 0xbf58
addq $0x198, %rsi            # imm = 0x198
movq -0x30(%rbp), %rax
movq %rax, 0x38(%rbx)
leaq 0x40(%rbx), %rdi
callq 0x8170
movq 0x68(%r15), %rsi
leaq 0x60(%rbx), %rdi
callq 0x8170
leaq -0x80(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xc1b6
movq (%r12), %rax
testq %rax, %rax
je 0xbf85
movq %r14, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movq %rbx, -0x60(%rbp)
movq %r15, -0x58(%rbp)
movb $0x1, -0x50(%rbp)
leaq -0x90(%rbp), %r12
xorps %xmm0, %xmm0
movaps %xmm0, -0x20(%r12)
movaps %xmm0, -0x30(%r12)
movaps %xmm0, -0x40(%r12)
movaps %xmm0, -0x50(%r12)
movaps %xmm0, -0x60(%r12)
movaps %xmm0, -0x70(%r12)
movaps %xmm0, -0x80(%r12)
movaps %xmm0, -0x90(%r12)
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq -0x40(%rbp), %r9
movaps %xmm0, (%r9)
leaq -0x120(%rbp), %rcx
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %rbx, %r8
callq 0xa7b8
movq %rax, %r15
movq -0x40(%rbp), %rax
testq %rax, %rax
je 0xc01c
leaq -0x40(%rbp), %rsi
movl $0x3, %edi
xorl %edx, %edx
callq *%rax
movq -0xa0(%rbp), %rdi
cmpq %r12, %rdi
je 0xc037
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x82b0
movq -0xe0(%rbp), %rdi
testq %rdi, %rdi
je 0xc052
movq -0xd0(%rbp), %rsi
subq %rdi, %rsi
callq 0x82b0
movq -0xf8(%rbp), %rdi
testq %rdi, %rdi
je 0xc06d
movq -0xe8(%rbp), %rsi
subq %rdi, %rsi
callq 0x82b0
leaq -0x120(%rbp), %rdi
callq 0x3b960
leaq -0x60(%rbp), %rdi
callq 0xc21c
movq -0x70(%rbp), %rax
testq %rax, %rax
je 0xc099
leaq -0x80(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
cmpq $-0x1, %r15
je 0xc0eb
movb $0x1, 0x90(%rbx)
cmpq $0x0, 0x258(%rbx)
je 0xc0eb
leaq 0x18(%rbx), %rdi
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
movq %r14, %rsi
callq 0xc244
movq $0x0, 0x18(%rbx)
movq 0x20(%rbx), %rax
cmpq %rax, 0x28(%rbx)
je 0xc0da
movq %rax, 0x28(%rbx)
xorl %eax, %eax
movq %rax, 0x38(%rbx)
movq %rax, 0x48(%rbx)
movq 0x40(%rbx), %rax
movb $0x0, (%rax)
movq 0x148(%rbx), %rax
movl 0x150(%rbx), %ecx
cmpq %rax, 0x138(%rbx)
sete %dl
testl %ecx, %ecx
sete %sil
testb %sil, %dl
jne 0xc14e
movl %ecx, %edx
leaq -0x1(%rdx), %rcx
addq $0x3e, %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
leaq 0x3f(%rsi), %rdi
andq %rcx, %rdi
xorl %r8d, %r8d
cmpq %rsi, %rdi
setbe %r8b
movl $0x1, %esi
shlq %cl, %rsi
leaq (%rax,%rdx,8), %rax
orq %rsi, -0x8(%rax,%r8,8)
movq %r15, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x8470
jmp 0xc1ae
jmp 0xc1ae
jmp 0xc1ae
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0xa784
leaq -0x120(%rbp), %rdi
callq 0xabbc
leaq -0x60(%rbp), %rdi
callq 0xc21c
movq -0x70(%rbp), %rax
testq %rax, %rax
je 0xc1a6
leaq -0x80(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x8420
movq %rax, %rdi
callq 0xe032