// File: /workspace/github_cpp_makefile_star2_O1/yhirose[P]fizzbuzzlang/./peglib.h
// Function: peg::Reference::parse_core(char const*, unsigned long, peg::SemanticValues&, peg::Context&, std::any&) const
inline size_t Reference::parse_core(const char *s, size_t n, SemanticValues &vs,
                                    Context &c, std::any &dt) const {
  auto save_ignore_trace_state = c.ignore_trace_state;
  if (rule_ && rule_->ignoreSemanticValue) {
    c.ignore_trace_state = !c.verbose_trace;
  }
  auto se =
      scope_exit([&]() { c.ignore_trace_state = save_ignore_trace_state; });

  if (rule_) {
    // Reference rule
    if (rule_->is_macro) {
      // Macro
      FindReference vis(c.top_args(), c.rule_stack.back()->params);

      // Collect arguments
      std::vector<std::shared_ptr<Ope>> args;
      for (auto arg : args_) {
        arg->accept(vis);
        args.emplace_back(std::move(vis.found_ope));
      }

      c.push_args(std::move(args));
      auto se = scope_exit([&]() { c.pop_args(); });
      auto ope = get_core_operator();
      return ope->parse(s, n, vs, c, dt);
    } else {
      // Definition
      c.push_args(std::vector<std::shared_ptr<Ope>>());
      auto se = scope_exit([&]() { c.pop_args(); });
      auto ope = get_core_operator();
      return ope->parse(s, n, vs, c, dt);
    }
  } else {
    // Reference parameter in macro
    const auto &args = c.top_args();
    return args[iarg_]->parse(s, n, vs, c, dt);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r13
movq %rdi, %rbx
movb 0x288(%r8), %r12b
movq 0x68(%rdi), %rax
testq %rax, %rax
je 0xc88a
cmpb $0x1, 0xc0(%rax)
jne 0xc742
movb 0x240(%r15), %cl
xorb $0x1, %cl
movb %cl, 0x288(%r15)
testq %rax, %rax
je 0xc88a
leaq 0xd0(%r15), %r8
cmpb $0x1, 0xe9(%rax)
movq %rdx, -0x48(%rbp)
movq %rsi, -0x40(%rbp)
jne 0xc8b7
movq %r13, -0xa0(%rbp)
movq %r14, -0xa8(%rbp)
movb %r12b, -0x29(%rbp)
movq 0xc0(%r15), %rax
movq %r15, -0x38(%rbp)
movq 0xd8(%r15), %rcx
movl $0xf0, %edx
addq -0x8(%rax), %rdx
addq $-0x18, %rcx
leaq 0x52291(%rip), %rax     # 0x5ea30
movq %rax, -0x70(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x68(%rbp)
movq %rcx, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movaps %xmm0, -0x90(%rbp)
movq $0x0, -0x80(%rbp)
movq 0x50(%rbx), %r14
movq %rbx, -0x98(%rbp)
movq 0x58(%rbx), %r15
cmpq %r15, %r14
je 0xc82f
leaq -0x90(%rbp), %r13
movq (%r14), %rdi
movq 0x8(%r14), %rbx
testq %rbx, %rbx
je 0xc7fd
movq 0x53781(%rip), %rax     # 0x5ff70
cmpb $0x0, (%rax)
je 0xc7f9
incl 0x8(%rbx)
jmp 0xc7fd
lock
incl 0x8(%rbx)
movq %r8, %r12
movq (%rdi), %rax
leaq -0x70(%rbp), %rsi
callq *0x18(%rax)
movq %r13, %rdi
leaq -0x68(%rbp), %rsi
callq 0xca94
testq %rbx, %rbx
je 0xc823
movq %rbx, %rdi
callq 0x13612
addq $0x10, %r14
cmpq %r15, %r14
movq %r12, %r8
jne 0xc7dc
leaq -0x90(%rbp), %rsi
movq %r8, %rdi
callq 0x13bde
movq -0x98(%rbp), %rax
movq 0x68(%rax), %rax
movq 0x1c0(%rax), %rdi
movq 0x1c8(%rax), %rbx
testq %rbx, %rbx
movq -0x38(%rbp), %r15
movq -0xa8(%rbp), %r9
movq -0xa0(%rbp), %rcx
je 0xc949
movq 0x536f7(%rip), %rax     # 0x5ff70
cmpb $0x0, (%rax)
je 0xc945
incl 0x8(%rbx)
jmp 0xc949
movq 0xd8(%r15), %rax
movq 0x70(%rbx), %rcx
movq -0x18(%rax), %rax
shlq $0x4, %rcx
movq (%rax,%rcx), %rdi
movq %r13, %rcx
movq %r15, %r8
movq %r14, %r9
callq 0xb7ee
movq %rax, %r14
jmp 0xc9a9
xorps %xmm0, %xmm0
leaq -0x70(%rbp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq %r8, %rdi
callq 0x13bde
leaq -0x70(%rbp), %rdi
callq 0xcae6
movq 0x68(%rbx), %rax
movq 0x1c0(%rax), %rdi
movq 0x1c8(%rax), %rbx
testq %rbx, %rbx
je 0xc906
movq 0x53678(%rip), %rax     # 0x5ff70
cmpb $0x0, (%rax)
je 0xc902
incl 0x8(%rbx)
jmp 0xc906
lock
incl 0x8(%rbx)
movq -0x40(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r13, %rcx
movq %r15, %r8
movq %r14, %r9
callq 0xb7ee
movq %rax, %r14
testq %rbx, %rbx
je 0xc92c
movq %rbx, %rdi
callq 0x13612
movq 0xd8(%r15), %rdi
addq $-0x18, %rdi
movq %rdi, 0xd8(%r15)
callq 0xcae6
jmp 0xc9a9
lock
incl 0x8(%rbx)
movq -0x40(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r15, %r8
movb -0x29(%rbp), %r12b
callq 0xb7ee
movq %rax, %r14
testq %rbx, %rbx
je 0xc96d
movq %rbx, %rdi
callq 0x13612
movq 0xd8(%r15), %rdi
addq $-0x18, %rdi
movq %rdi, 0xd8(%r15)
callq 0xcae6
leaq -0x90(%rbp), %rdi
callq 0xcae6
leaq 0x52099(%rip), %rax     # 0x5ea30
movq %rax, -0x70(%rbp)
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0xc9a9
callq 0x13612
movb %r12b, 0x288(%r15)
movq %r14, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
testq %rbx, %rbx
je 0xc9d5
movq %rbx, %rdi
callq 0x13612
movq -0x38(%rbp), %rax
movq 0xd8(%rax), %rdi
addq $-0x18, %rdi
movq %rdi, 0xd8(%rax)
callq 0xcae6
jmp 0xca5a
movq %rax, %r14
jmp 0xca5a
movb %r12b, -0x29(%rbp)
movq %r15, -0x38(%rbp)
movq %rax, %r14
testq %rbx, %rbx
je 0xca0f
movq %rbx, %rdi
callq 0x13612
movq -0x38(%rbp), %rax
movq 0xd8(%rax), %rdi
addq $-0x18, %rdi
movq %rdi, 0xd8(%rax)
jmp 0xca36
movb %r12b, -0x29(%rbp)
movq %r15, -0x38(%rbp)
movq %rax, %r14
leaq -0x70(%rbp), %rdi
callq 0xcae6
jmp 0xca7f
movb %r12b, -0x29(%rbp)
movq %r15, -0x38(%rbp)
movq %rax, %r14
jmp 0xca7f
movq %rax, %r14
testq %rbx, %rbx
je 0xca5a
movq %rbx, %rdi
callq 0x13612
leaq -0x90(%rbp), %rdi
callq 0xcae6
leaq 0x51fc3(%rip), %rax     # 0x5ea30
movq %rax, -0x70(%rbp)
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0xca7f
callq 0x13612
movq -0x38(%rbp), %rax
movb -0x29(%rbp), %cl
movb %cl, 0x288(%rax)
movq %r14, %rdi
callq 0x9420