// File: 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
subq $0x130, %rsp            # imm = 0x130
leaq 0x10(%rbp), %rax
movq %rax, -0x100(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xf8(%rbp)
testb $0x1, 0x168(%rax)
jne 0xee33
movq -0x100(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x93210
jmp 0xf09e
movq -0xf8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rdi), %rcx
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq 0x160(%rdi), %rax
imulq -0x30(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
addq $0x170, %rdi            # imm = 0x170
movq -0x38(%rbp), %rsi
callq 0x93870
movq %rax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x88320
testb $0x1, %al
jne 0xee87
jmp 0xef3a
movq -0xf8(%rbp), %rdi
addq $0x198, %rdi            # imm = 0x198
movq -0x38(%rbp), %rsi
callq 0x93870
movq %rax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x88320
testb $0x1, %al
jne 0xeeb5
jmp 0xef2a
leaq -0x68(%rbp), %rdi
leaq -0x30(%rbp), %rsi
leaq -0x18(%rbp), %rdx
callq 0x938d0
movq -0xf8(%rbp), %rax
addq $0x1c0, %rax            # imm = 0x1C0
movq %rax, -0x110(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x939e0
movq -0x110(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x93900
movq %rax, -0x108(%rbp)
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
leaq -0x88(%rbp), %rdi
callq 0x93a10
movq -0x108(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0x93a50
jmp 0xf09e
movq -0x20(%rbp), %rax
movq $-0x1, (%rax)
jmp 0xf09e
movq -0x100(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x93210
movq -0xf8(%rbp), %rdi
addq $0x170, %rdi            # imm = 0x170
movq -0x38(%rbp), %rsi
callq 0x93870
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
leaq -0x98(%rbp), %rdi
movl $0x1, %esi
callq 0x10f50
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0xe9a0
movq -0xf8(%rbp), %rdi
movb %al, -0x111(%rbp)
addq $0x198, %rdi            # imm = 0x198
movq -0x38(%rbp), %rsi
callq 0x93870
movq %rax, %rcx
movb -0x111(%rbp), %al
movq %rcx, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movzbl %al, %esi
andl $0x1, %esi
leaq -0xa8(%rbp), %rdi
callq 0x10f50
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0xe9a0
testb $0x1, %al
jne 0xefe7
jmp 0xf09c
leaq -0xb8(%rbp), %rdi
movq %rdi, -0x128(%rbp)
leaq -0x30(%rbp), %rsi
leaq -0x18(%rbp), %rdx
callq 0x938d0
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
leaq -0xd0(%rbp), %rdi
callq 0x93a80
movq -0xf8(%rbp), %rax
movq -0x128(%rbp), %rsi
addq $0x1c0, %rax            # imm = 0x1C0
movq %rax, -0x120(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x939e0
jmp 0xf03f
movq -0x120(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x93900
movq %rax, -0x130(%rbp)
jmp 0xf05b
movq -0x130(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x93ac0
leaq -0xd0(%rbp), %rdi
callq 0x93b30
jmp 0xf09c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x93b30
jmp 0xf0a7
jmp 0xf09e
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
movq -0xe8(%rbp), %rdi
callq 0xa650
nopw %cs:(%rax,%rax)
nopl (%rax)