// File: /workspace/github_cpp_makefile_star2_O1/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, %r12
movq 0x8(%rdi), %rdi
leaq 0x50e2f(%rip), %rsi     # 0x5dce0
leaq 0x50e48(%rip), %rdx     # 0x5dd00
xorl %ecx, %ecx
callq 0x9300
testq %rax, %rax
je 0xd14c
movq %rax, %r13
leaq 0x248(%rbx), %rax
movq %rax, -0x30(%rbp)
leaq 0x258(%rbx), %r14
cmpq $0x0, 0x258(%rbx)
je 0xcf44
movq 0x50(%r13), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xcf0d
leaq 0x50de6(%rip), %rsi     # 0x5dce0
leaq 0x50dff(%rip), %rdx     # 0x5dd00
xorl %ecx, %ecx
callq 0x9300
movq %rax, %r15
jmp 0xcf10
xorl %r15d, %r15d
testq %r15, %r15
je 0xcf44
movq 0x68(%r15), %rsi
cmpq $0x0, 0x1a0(%rsi)
je 0xcf44
addq $0x198, %rsi            # imm = 0x198
movq %r12, 0x38(%rbx)
leaq 0x40(%rbx), %rdi
callq 0x9170
movq 0x68(%r15), %rsi
leaq 0x60(%rbx), %rdi
callq 0x9170
leaq -0x80(%rbp), %r15
movq %r15, %rdi
movq -0x30(%rbp), %rsi
callq 0xd1a0
movq (%r14), %rax
testq %rax, %rax
je 0xcf71
movq -0x30(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq %rbx, -0x60(%rbp)
movq %r15, -0x58(%rbp)
movb $0x1, -0x50(%rbp)
leaq -0x90(%rbp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, -0x20(%r14)
movaps %xmm0, -0x30(%r14)
movaps %xmm0, -0x40(%r14)
movaps %xmm0, -0x50(%r14)
movaps %xmm0, -0x60(%r14)
movaps %xmm0, -0x70(%r14)
movaps %xmm0, -0x80(%r14)
movaps %xmm0, -0x90(%r14)
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
leaq -0x40(%rbp), %r9
movaps %xmm0, (%r9)
leaq -0x120(%rbp), %rcx
movq %r13, %rdi
movq %r12, %rsi
movq -0x48(%rbp), %rdx
movq %rbx, %r8
callq 0xb7ee
movq %rax, %r15
movq -0x40(%rbp), %rax
testq %rax, %rax
je 0xd004
leaq -0x40(%rbp), %rsi
movl $0x3, %edi
xorl %edx, %edx
callq *%rax
movq $0x0, -0x40(%rbp)
movq -0xa0(%rbp), %rdi
cmpq %r14, %rdi
je 0xd01f
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x92b0
movq -0xe0(%rbp), %rdi
testq %rdi, %rdi
je 0xd03a
movq -0xd0(%rbp), %rsi
subq %rdi, %rsi
callq 0x92b0
movq -0xf8(%rbp), %rdi
testq %rdi, %rdi
je 0xd055
movq -0xe8(%rbp), %rsi
subq %rdi, %rsi
callq 0x92b0
leaq -0x120(%rbp), %rdi
callq 0x3da52
leaq -0x60(%rbp), %rdi
callq 0xd206
movq -0x70(%rbp), %rax
testq %rax, %rax
je 0xd081
leaq -0x80(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
cmpq $-0x1, %r15
je 0xd0d4
movb $0x1, 0x90(%rbx)
cmpq $0x0, 0x258(%rbx)
je 0xd0d4
leaq 0x18(%rbx), %rdi
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
movq -0x30(%rbp), %rsi
callq 0xd22e
movq $0x0, 0x18(%rbx)
movq 0x20(%rbx), %rax
cmpq %rax, 0x28(%rbx)
je 0xd0c3
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 0xd137
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 0x9470
jmp 0xd197
jmp 0xd197
jmp 0xd197
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0xb7ba
leaq -0x120(%rbp), %rdi
callq 0xbbe8
leaq -0x60(%rbp), %rdi
callq 0xd206
movq -0x70(%rbp), %rax
testq %rax, %rax
je 0xd18f
leaq -0x80(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x9420
movq %rax, %rdi
callq 0xf084
nop