// File: /workspace/github_cpp_makefile_star2_O1/yhirose[P]fizzbuzzlang/./peglib.h
// Function: void peg::Context::packrat<peg::Holder::parse_core(char const*, unsigned long, peg::SemanticValues&, peg::Context&, std::any&) const::'lambda'(std::any&)>(char const*, unsigned long, unsigned long&, std::any&, peg::Holder::parse_core(char const*, unsigned long, peg::SemanticValues&, peg::Context&, std::any&) const::'lambda'(std::any&))
void packrat(const char *a_s, size_t def_id, size_t &len, std::any &val,
               T fn) {
    if (!enablePackratParsing) {
      fn(val);
      return;
    }

    auto col = a_s - s;
    auto idx = def_count * static_cast<size_t>(col) + def_id;

    if (cache_registered[idx]) {
      if (cache_success[idx]) {
        auto key = std::pair(col, def_id);
        std::tie(len, val) = cache_values[key];
        return;
      } else {
        len = static_cast<size_t>(-1);
        return;
      }
    } else {
      fn(val);
      cache_registered[idx] = true;
      cache_success[idx] = success(len);
      if (success(len)) {
        auto key = std::pair(col, def_id);
        cache_values[key] = std::pair(len, val);
      }
      return;
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
leaq 0x10(%rbp), %rdi
cmpb $0x0, 0x168(%r14)
je 0xc59d
movq %rcx, %r11
movq %rsi, %r12
subq 0x8(%r14), %r12
movq 0x160(%r14), %rcx
imulq %r12, %rcx
leaq (%rcx,%rdx), %r13
addq $0x3f, %r13
addq %rdx, %rcx
cmovnsq %rcx, %r13
sarq $0x6, %r13
shlq $0x3, %r13
movq 0x170(%r14), %rax
addq %r13, %rax
movabsq $-0x8000000000000000, %r10 # imm = 0x8000000000000000
leaq 0x3f(%r10), %rsi
andq %rcx, %rsi
xorl %r9d, %r9d
cmpq %r10, %rsi
setbe %r9b
movl $0x1, %ebx
shlq %cl, %rbx
leaq -0x8(,%r9,8), %r15
movq -0x8(%rax,%r9,8), %rax
btq %rcx, %rax
jae 0xc5b4
addq 0x198(%r14), %r13
testq %rbx, (%r15,%r13)
je 0xc5ee
addq $0x1c0, %r14            # imm = 0x1C0
leaq -0x40(%rbp), %rsi
movq %r12, (%rsi)
movq %rdx, 0x8(%rsi)
movq %r14, %rdi
movq %r8, %rbx
movq %r11, %r14
callq 0x3f7aa
movq 0x10(%rax), %rcx
movq %rcx, (%r14)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3d9d8
jmp 0xc5a5
movq %r8, %rsi
callq 0x3f3bc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, -0x48(%rbp)
movq %r8, -0x58(%rbp)
movq %r8, %rsi
movq %r11, -0x50(%rbp)
callq 0x3f3bc
movq -0x50(%rbp), %rcx
movq 0x170(%r14), %rax
addq %r13, %rax
orq %rbx, (%r15,%rax)
addq 0x198(%r14), %r13
cmpq $-0x1, (%rcx)
je 0xc5f7
orq (%r13,%r15), %rbx
jmp 0xc5ff
movq $-0x1, (%r11)
jmp 0xc5a5
notq %rbx
andq (%r13,%r15), %rbx
movq %rbx, (%r13,%r15)
movq (%rcx), %rax
cmpq $-0x1, %rax
movq -0x58(%rbp), %rsi
je 0xc5a5
leaq -0x38(%rbp), %r13
movq %rax, -0x8(%r13)
movq $0x0, 0x8(%r13)
movq (%rsi), %rax
testq %rax, %rax
je 0xc639
leaq -0x68(%rbp), %rdx
movq %r13, (%rdx)
movl $0x2, %edi
callq *%rax
jmp 0xc641
movq $0x0, -0x38(%rbp)
addq $0x1c0, %r14            # imm = 0x1C0
leaq -0x68(%rbp), %rsi
movq %r12, (%rsi)
movq -0x48(%rbp), %rax
movq %rax, 0x8(%rsi)
movq %r14, %rdi
callq 0x3f7aa
movq -0x40(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq %rax, %rdi
movq %r13, %rsi
callq 0x37c64
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0xc5a5
movl $0x3, %edi
movq %r13, %rsi
xorl %edx, %edx
callq *%rax
movq $0x0, -0x38(%rbp)
jmp 0xc5a5
movq %rax, %rdi
callq 0xf084
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x3f840
movq %rbx, %rdi
callq 0x9420