// File: /workspace/github_cpp_makefile_star2_O2/yhirose[P]fizzbuzzlang/./peglib.h
// Function: peg::parse_literal(char const*, unsigned long, peg::SemanticValues&, peg::Context&, std::any&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::once_flag&, bool&, bool)
inline size_t parse_literal(const char *s, size_t n, SemanticValues &vs,
                            Context &c, std::any &dt, const std::string &lit,
                            std::once_flag &init_is_word, bool &is_word,
                            bool ignore_case) {
  size_t i = 0;
  for (; i < lit.size(); i++) {
    if (i >= n || (ignore_case ? (std::tolower(s[i]) != std::tolower(lit[i]))
                               : (s[i] != lit[i]))) {
      c.set_error_pos(s, lit.data());
      return static_cast<size_t>(-1);
    }
  }

  // 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; });

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

      auto len =
          c.wordOpe->parse(lit.data(), lit.size(), dummy_vs, dummy_c, dummy_dt);
      is_word = success(len);
    });

    if (is_word) {
      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, lit.data());
        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 %r8, -0x60(%rbp)
movq %rcx, -0x38(%rbp)
movq %rdx, -0x58(%rbp)
movq %rdi, %r12
movb 0x20(%rbp), %bl
movq (%r9), %rcx
movq %rcx, -0x30(%rbp)
movq %r9, -0x48(%rbp)
movq 0x8(%r9), %r14
xorl %r13d, %r13d
movq %rsi, -0x40(%rbp)
cmpq %r13, %r14
je 0xaf45
cmpq %r13, %rsi
je 0xaf2c
movsbl (%r12,%r13), %edi
testb %bl, %bl
je 0xaf1d
callq 0x93a0
movq %r14, %r15
movq %r12, %r14
movl %eax, %r12d
movq -0x30(%rbp), %rax
movsbl (%rax,%r13), %edi
callq 0x93a0
cmpl %eax, %r12d
movq %r14, %r12
movq %r15, %r14
movq -0x40(%rbp), %rsi
je 0xaf27
jmp 0xaf2c
movq -0x30(%rbp), %rcx
cmpb (%rcx,%r13), %dil
jne 0xaf2c
incq %r13
jmp 0xaedd
movq -0x38(%rbp), %rdi
movq %r12, %rsi
movq -0x30(%rbp), %rdx
callq 0xa79a
pushq $-0x1
popq %r14
jmp 0xb1c6
movq -0x38(%rbp), %r15
cmpq $0x0, 0x108(%r15)
je 0xb16a
movb 0x240(%r15), %al
movb 0x288(%r15), %bl
xorb $0x1, %al
movb %al, 0x288(%r15)
leaq -0x468(%rbp), %rsi
movq %r15, (%rsi)
movq -0x48(%rbp), %rax
movq %rax, 0x8(%rsi)
movq 0x18(%rbp), %r13
movq %r13, 0x10(%rsi)
movq 0x10(%rbp), %rdi
callq 0x11527
cmpb $0x0, (%r13)
je 0xb10b
movb %bl, -0x30(%rbp)
movq %r12, %r13
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(%r15), %rdx
movq 0x10(%r15), %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 0x291b4(%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
leaq 0x108(%r15), %rax
movq %rax, -0x50(%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), %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
leaq -0xb8(%rbp), %rbx
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
callq 0xabb0
leaq (%r14,%r13), %rsi
movq -0x40(%rbp), %rdx
subq %r14, %rdx
leaq -0x1c0(%rbp), %rcx
leaq -0x468(%rbp), %r8
movq %rbx, %rdi
movq %r12, %r9
callq 0xabc8
movq %rax, %rbx
cmpq $-0x1, %rax
je 0xb114
addq %rbx, %r14
jmp 0xb126
movb %bl, 0x288(%r15)
jmp 0xb16a
movq -0x48(%rbp), %rax
movq (%rax), %rdx
movq %r15, %rdi
movq %r13, %rsi
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 -0x30(%rbp), %al
movb %al, 0x288(%r15)
cmpq $-0x1, %rbx
movq %r13, %r12
je 0xaf3c
cmpq $0x0, 0xe8(%r15)
jne 0xb1c6
movq 0xf0(%r15), %rdi
testq %rdi, %rdi
je 0xb1c6
movb 0x240(%r15), %al
movb 0x288(%r15), %bl
xorb $0x1, %al
movb %al, 0x288(%r15)
addq %r14, %r12
movq -0x40(%rbp), %rdx
subq %r14, %rdx
movq %r12, %rsi
movq -0x58(%rbp), %rcx
movq %r15, %r8
movq -0x60(%rbp), %r9
callq 0xabc8
addq %rax, %r14
cmpq $-0x1, %rax
movb %bl, 0x288(%r15)
cmoveq %rax, %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 %bl, 0x288(%r15)
jmp 0xb279
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 0xb258
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
jmp 0xb26c
movb %bl, -0x30(%rbp)
movq %rax, %r14
movq -0x38(%rbp), %rax
movb -0x30(%rbp), %cl
movb %cl, 0x288(%rax)
movq %r14, %rdi
callq 0x9430
nop