// File: /workspace/github_cpp_makefile_star2_O2/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, %r12
movq %rsi, -0x30(%rbp)
movq 0x8(%rdi), %rdi
leaq 0x4eecd(%rip), %rsi     # 0x5ace0
leaq 0x4eee6(%rip), %rdx     # 0x5ad00
xorl %ecx, %ecx
callq 0x92f0
testq %rax, %rax
je 0xbfb9
movq %rax, %r13
leaq 0x248(%rbx), %r14
cmpq $0x0, 0x258(%rbx)
je 0xbe9a
movq 0x50(%r13), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbe9a
leaq 0x4ee8f(%rip), %rsi     # 0x5ace0
leaq 0x4eea8(%rip), %rdx     # 0x5ad00
xorl %ecx, %ecx
callq 0x92f0
testq %rax, %rax
je 0xbe9a
movq %rax, %r15
movq 0x68(%rax), %rsi
cmpq $0x0, 0x1a0(%rsi)
je 0xbe9a
addq $0x198, %rsi            # imm = 0x198
movq -0x30(%rbp), %rax
movq %rax, 0x38(%rbx)
leaq 0x40(%rbx), %rdi
callq 0x9190
movq 0x68(%r15), %rsi
leaq 0x60(%rbx), %rdi
callq 0x9190
leaq -0x80(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xbff0
movq %r14, %rdi
xorl %esi, %esi
callq 0xc03e
movq %rbx, -0x48(%rbp)
movq %r15, -0x40(%rbp)
leaq -0x90(%rbp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x20(%rax)
movaps %xmm0, -0x30(%rax)
movaps %xmm0, -0x40(%rax)
movaps %xmm0, -0x50(%rax)
movaps %xmm0, -0x60(%rax)
movaps %xmm0, -0x70(%rax)
movaps %xmm0, -0x80(%rax)
movaps %xmm0, -0x90(%rax)
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x1, -0x38(%rbp)
movb $0x0, (%rax)
leaq -0x60(%rbp), %r9
movaps %xmm0, (%r9)
leaq -0x120(%rbp), %rcx
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movq %r12, %rdx
movq %rbx, %r8
callq 0xabc8
movq %rax, %r15
leaq -0x60(%rbp), %rdi
callq 0x1113a
leaq -0x120(%rbp), %rdi
callq 0xae2c
leaq -0x48(%rbp), %rdi
callq 0xc078
leaq -0x80(%rbp), %rdi
callq 0x3209c
cmpq $-0x1, %r15
je 0xbf79
movb $0x1, 0x90(%rbx)
cmpq $0x0, 0x258(%rbx)
je 0xbf79
leaq 0x18(%rbx), %r12
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
movq %r12, %rdi
movq %r14, %rsi
callq 0xc092
movq %r12, %rdi
callq 0xc566
movq 0x138(%rbx), %rax
cmpq 0x148(%rbx), %rax
jne 0xbf92
cmpl $0x0, 0x150(%rbx)
je 0xbfa4
addq $0x138, %rbx            # imm = 0x138
movq %rbx, %rdi
callq 0xc590
orq %rdx, (%rax)
movq %r15, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x9480
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x1113a
leaq -0x120(%rbp), %rdi
callq 0xae2c
leaq -0x48(%rbp), %rdi
callq 0xc078
leaq -0x80(%rbp), %rdi
callq 0x3209c
movq %rbx, %rdi
callq 0x9430