// File: /workspace/github_cpp_makefile_star2_O3/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 0xb5d5
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 0xb5ec
addq 0x198(%r14), %r13
testq %rbx, (%r15,%r13)
je 0xb626
addq $0x1c0, %r14            # imm = 0x1C0
leaq -0x58(%rbp), %rsi
movq %r12, (%rsi)
movq %rdx, 0x8(%rsi)
movq %r14, %rdi
movq %r8, %rbx
movq %r11, %r14
callq 0x3d6ba
movq 0x10(%rax), %rcx
movq %rcx, (%r14)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3b8ee
jmp 0xb5dd
movq %r8, %rsi
callq 0x3d2c8
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, -0x30(%rbp)
movq %r8, -0x40(%rbp)
movq %r8, %rsi
movq %r11, -0x38(%rbp)
callq 0x3d2c8
movq -0x38(%rbp), %rcx
movq 0x170(%r14), %rax
addq %r13, %rax
orq %rbx, (%r15,%rax)
addq 0x198(%r14), %r13
cmpq $-0x1, (%rcx)
je 0xb62f
orq (%r13,%r15), %rbx
jmp 0xb637
movq $-0x1, (%r11)
jmp 0xb5dd
notq %rbx
andq (%r13,%r15), %rbx
movq %rbx, (%r13,%r15)
movq (%rcx), %rax
cmpq $-0x1, %rax
movq -0x40(%rbp), %rsi
je 0xb5dd
leaq -0x50(%rbp), %r13
movq %rax, -0x8(%r13)
movq $0x0, 0x8(%r13)
movq (%rsi), %rax
testq %rax, %rax
je 0xb671
leaq -0x68(%rbp), %rdx
movq %r13, (%rdx)
movl $0x2, %edi
callq *%rax
jmp 0xb679
movq $0x0, -0x50(%rbp)
addq $0x1c0, %r14            # imm = 0x1C0
leaq -0x68(%rbp), %rsi
movq %r12, (%rsi)
movq -0x30(%rbp), %rax
movq %rax, 0x8(%rsi)
movq %r14, %rdi
callq 0x3d6ba
movq -0x58(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq %rax, %rdi
movq %r13, %rsi
callq 0x35c58
movq -0x50(%rbp), %rax
testq %rax, %rax
je 0xb5dd
movl $0x3, %edi
movq %r13, %rsi
xorl %edx, %edx
callq *%rax
jmp 0xb5dd
movq %rax, %rdi
callq 0xe032
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x3d74a
movq %rbx, %rdi
callq 0x8420