// File: /workspace/github_cpp_makefile_star2_O2/yhirose[P]fizzbuzzlang/./peglib.h
// Function: peg::Dictionary::parse_core(char const*, unsigned long, peg::SemanticValues&, peg::Context&, std::any&) const
inline size_t Dictionary::parse_core(const char *s, size_t n,
                                     SemanticValues &vs, Context &c,
                                     std::any &dt) const {
  size_t id;
  auto i = trie_.match(s, n, id);

  if (i == 0) {
    c.set_error_pos(s);
    return static_cast<size_t>(-1);
  }

  vs.choice_count_ = trie_.size();
  vs.choice_ = id;

  // Word check
  if (c.wordOpe) {
    auto save_ignore_trace_state = c.ignore_trace_state;
    c.ignore_trace_state = !c.verbose_trace;
    auto se =
        scope_exit([&]() { c.ignore_trace_state = save_ignore_trace_state; });

    {
      SemanticValues dummy_vs;
      Context dummy_c(nullptr, c.s, c.l, 0, nullptr, nullptr, false, nullptr,
                      nullptr, nullptr, false, nullptr);
      std::any dummy_dt;

      NotPredicate ope(c.wordOpe);
      auto len = ope.parse(s + i, n - i, dummy_vs, dummy_c, dummy_dt);
      if (fail(len)) {
        c.set_error_pos(s);
        return len;
      }
      i += len;
    }
  }

  // Skip whitespace
  if (!c.in_token_boundary_count && c.whitespaceOpe) {
    auto save_ignore_trace_state = c.ignore_trace_state;
    c.ignore_trace_state = !c.verbose_trace;
    auto se =
        scope_exit([&]() { c.ignore_trace_state = save_ignore_trace_state; });

    auto len = c.whitespaceOpe->parse(s + i, n - i, vs, c, dt);
    if (fail(len)) { return len; }
    i += len;
  }

  return i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x478, %rsp            # imm = 0x478
movq %r9, %r15
movq %r8, %r14
movq %rcx, %r12
movq %rsi, %rbx
movq %rdi, %r13
addq $0x18, %rdi
leaq -0x60(%rbp), %rcx
movq %rdx, -0x40(%rbp)
callq 0xa690
movq %rax, -0x48(%rbp)
testq %rax, %rax
je 0xa51b
movq %rbx, -0x38(%rbp)
movq 0x40(%r13), %rax
movq %rax, 0x70(%r12)
movq -0x60(%rbp), %rax
movq %rax, 0x78(%r12)
cmpq $0x0, 0x108(%r14)
movq %r14, %rbx
je 0xa52d
movq %r15, -0x50(%rbp)
movb 0x240(%rbx), %al
movb 0x288(%rbx), %cl
movb %cl, -0x29(%rbp)
xorb $0x1, %al
movb %al, 0x288(%rbx)
leaq -0x130(%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 $0x0, (%rax)
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
leaq -0x90(%rbp), %r9
movaps %xmm0, (%r9)
leaq -0x80(%rbp), %rax
movaps %xmm0, (%rax)
leaq -0x120(%rbp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
leaq -0x100(%rbp), %rdi
movaps %xmm0, (%rdi)
leaq 0x29dab(%rip), %r8      # 0x341c8
leaq -0xa0(%rbp), %r10
movq %r8, (%r10)
andq $0x0, 0x8(%r10)
movaps %xmm0, 0x10(%rdi)
leaq -0xe0(%rbp), %r8
movaps %xmm0, (%r8)
movaps %xmm0, 0x10(%r8)
movq %r8, 0x30(%rsp)
movq %r10, 0x20(%rsp)
movq %rdi, 0x18(%rsp)
andl $0x0, 0x28(%rsp)
movq %rsi, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
movq %rax, (%rsp)
leaq -0x468(%rbp), %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xa898
movq -0x48(%rbp), %r14
leaq 0x108(%rbx), %rax
movq %rax, -0x58(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x3209c
leaq -0xa0(%rbp), %rdi
callq 0x1113a
leaq -0x100(%rbp), %rdi
callq 0x3209c
leaq -0x120(%rbp), %rdi
callq 0x3209c
leaq -0x78(%rbp), %rdi
callq 0x1106c
leaq -0x88(%rbp), %rdi
callq 0x1106c
leaq -0x70(%rbp), %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
leaq -0xb8(%rbp), %r13
movq %r13, %rdi
movq -0x58(%rbp), %rsi
callq 0xabb0
movq -0x38(%rbp), %rax
leaq (%rax,%r14), %rsi
movq -0x40(%rbp), %rdx
subq %r14, %rdx
leaq -0x1c0(%rbp), %rcx
leaq -0x468(%rbp), %r8
movq %r13, %rdi
movq %r15, %r9
callq 0xabc8
movq %rax, %r13
cmpq $-0x1, %rax
je 0xa533
addq %r13, %r14
jmp 0xa541
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xa79a
jmp 0xa5dc
movq -0x48(%rbp), %r14
jmp 0xa581
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0xa79a
leaq -0xb8(%rbp), %rdi
callq 0xac90
leaq -0x70(%rbp), %rdi
callq 0x1113a
leaq -0x468(%rbp), %rdi
callq 0xaca8
leaq -0x1c0(%rbp), %rdi
callq 0xae2c
movb -0x29(%rbp), %al
movb %al, 0x288(%rbx)
cmpq $-0x1, %r13
movq -0x50(%rbp), %r15
je 0xa5dc
cmpq $0x0, 0xe8(%rbx)
jne 0xa5e0
movq 0xf0(%rbx), %rdi
testq %rdi, %rdi
je 0xa5e0
movb 0x240(%rbx), %al
movq %r15, %r9
movb 0x288(%rbx), %r15b
xorb $0x1, %al
movb %al, 0x288(%rbx)
movq -0x38(%rbp), %rsi
addq %r14, %rsi
movq -0x40(%rbp), %rdx
subq %r14, %rdx
movq %r12, %rcx
movq %rbx, %r8
callq 0xabc8
addq %rax, %r14
cmpq $-0x1, %rax
movb %r15b, 0x288(%rbx)
cmoveq %rax, %r14
jmp 0xa5e0
pushq $-0x1
popq %r14
movq %r14, %rax
addq $0x478, %rsp            # imm = 0x478
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movb %r15b, 0x288(%rbx)
jmp 0xa687
movq %rax, %r14
leaq -0xe0(%rbp), %rdi
callq 0x3209c
leaq -0xa0(%rbp), %rdi
callq 0x1113a
leaq -0x100(%rbp), %rdi
callq 0x3209c
leaq -0x120(%rbp), %rdi
callq 0x3209c
leaq -0x78(%rbp), %rdi
callq 0x1106c
leaq -0x88(%rbp), %rdi
callq 0x1106c
jmp 0xa672
movq %rax, %r14
leaq -0xb8(%rbp), %rdi
callq 0xac90
leaq -0x70(%rbp), %rdi
callq 0x1113a
leaq -0x468(%rbp), %rdi
callq 0xaca8
leaq -0x1c0(%rbp), %rdi
callq 0xae2c
movb -0x29(%rbp), %al
movb %al, 0x288(%rbx)
movq %r14, %rdi
callq 0x9430
nop