// File: /workspace/github_cpp_makefile_star2_O1/yhirose[P]fizzbuzzlang/./peglib.h
// Function: peg::PrecedenceClimbing::parse_expression(char const*, unsigned long, peg::SemanticValues&, peg::Context&, std::any&, unsigned long) const
inline size_t PrecedenceClimbing::parse_expression(const char *s, size_t n,
                                                   SemanticValues &vs,
                                                   Context &c, std::any &dt,
                                                   size_t min_prec) const {
  auto len = atom_->parse(s, n, vs, c, dt);
  if (fail(len)) { return len; }

  std::string tok;
  auto &rule = get_reference_for_binop(c);
  auto action = std::move(rule.action);

  rule.action = [&](SemanticValues &vs2, std::any &dt2) {
    tok = vs2.token();
    if (action) {
      return action(vs2, dt2);
    } else if (!vs2.empty()) {
      return vs2[0];
    }
    return std::any();
  };
  auto action_se = scope_exit([&]() { rule.action = std::move(action); });

  auto i = len;
  while (i < n) {
    std::vector<std::any> save_values(vs.begin(), vs.end());
    auto save_tokens = vs.tokens;

    auto chvs = c.push_semantic_values_scope();
    auto chlen = binop_->parse(s + i, n - i, chvs, c, dt);
    c.pop_semantic_values_scope();

    if (fail(chlen)) { break; }

    auto it = info_.find(tok);
    if (it == info_.end()) { break; }

    auto level = std::get<0>(it->second);
    auto assoc = std::get<1>(it->second);

    if (level < min_prec) { break; }

    vs.emplace_back(std::move(chvs[0]));
    i += chlen;

    auto next_min_prec = level;
    if (assoc == 'L') { next_min_prec = level + 1; }

    chvs = c.push_semantic_values_scope();
    chlen = parse_expression(s + i, n - i, chvs, c, dt, next_min_prec);
    c.pop_semantic_values_scope();

    if (fail(chlen)) {
      vs.assign(save_values.begin(), save_values.end());
      vs.tokens = save_tokens;
      i = chlen;
      break;
    }

    vs.emplace_back(std::move(chvs[0]));
    i += chlen;

    std::any val;
    if (rule_.action) {
      vs.sv_ = std::string_view(s, i);
      val = rule_.action(vs, dt);
    } else if (!vs.empty()) {
      val = vs[0];
    }
    vs.clear();
    vs.emplace_back(std::move(val));
  }

  return i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %r9, %r15
movq %r8, %r12
movq %rcx, %r14
movq %rdi, %r13
movq 0x8(%rdi), %rdi
movq %rsi, -0x70(%rbp)
movq %rdx, -0x80(%rbp)
callq 0xb7ee
movq %rax, %rbx
cmpq $-0x1, %rax
je 0x3d5aa
movq %r14, -0x38(%rbp)
leaq -0xb0(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %r13, -0x60(%rbp)
movq %r13, %rdi
movq %r12, %rsi
callq 0x3d698
movq %rax, %r14
leaq 0x60(%rax), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, -0xa0(%rbp)
movq $0x0, -0x90(%rbp)
movq 0x78(%rax), %rax
movq %rax, -0x88(%rbp)
movq 0x70(%r14), %rax
testq %rax, %rax
je 0x3d162
movq %r14, %rcx
addq $0x70, %rcx
movups (%rdi), %xmm1
movaps %xmm1, -0xa0(%rbp)
movq %rax, -0x90(%rbp)
movups %xmm0, (%rcx)
leaq -0xc0(%rbp), %rsi
leaq -0xa0(%rbp), %r13
movq %r13, %rdx
callq 0x3d76a
movq %r14, -0x128(%rbp)
movq %r13, -0x120(%rbp)
movb $0x1, -0x118(%rbp)
movq -0x38(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x78(%rbp)
movq -0x60(%rbp), %rax
leaq 0x28(%rax), %rcx
movq %rcx, -0xd0(%rbp)
addq $0x30, %rax
movq %rax, -0xc8(%rbp)
leaq -0x1c8(%rbp), %r13
movq %r15, -0x58(%rbp)
movq %r12, -0x30(%rbp)
movq -0x80(%rbp), %r14
subq %rbx, %r14
jbe 0x3d55f
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq -0x110(%rbp), %rdi
movq %r13, %rcx
callq 0x3d7cc
leaq -0xf8(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x377f2
movq %r12, %rdi
callq 0x3c696
movq %r13, %rdi
movq %rax, %rsi
callq 0x3d80e
movq -0x60(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x70(%rbp), %rax
leaq (%rax,%rbx), %rsi
movq %r14, %rdx
movq %r13, %rcx
movq %r12, %r8
movq %r15, %r9
callq 0xb7ee
movq %rax, %r14
decq 0xb0(%r12)
cmpq $-0x1, %rax
je 0x3d284
movq -0xc0(%rbp), %rax
movq -0xb8(%rbp), %rcx
movq %rcx, -0x50(%rbp)
movq %rax, -0x48(%rbp)
movq -0xd0(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x3df46
cmpq -0xc8(%rbp), %rax
je 0x3d284
movq 0x30(%rax), %r12
cmpq 0x10(%rbp), %r12
jae 0x3d31c
xorl %r14d, %r14d
movq -0x30(%rbp), %r12
jmp 0x3d287
xorl %r14d, %r14d
movq -0x148(%rbp), %rdi
leaq -0x138(%rbp), %rax
cmpq %rax, %rdi
je 0x3d2a9
movq -0x138(%rbp), %rsi
incq %rsi
callq 0x92b0
movq -0x188(%rbp), %rdi
testq %rdi, %rdi
je 0x3d2c4
movq -0x178(%rbp), %rsi
subq %rdi, %rsi
callq 0x92b0
movq -0x1a0(%rbp), %rdi
testq %rdi, %rdi
je 0x3d2df
movq -0x190(%rbp), %rsi
subq %rdi, %rsi
callq 0x92b0
movq %r13, %rdi
callq 0x3da52
movq -0xf8(%rbp), %rdi
testq %rdi, %rdi
je 0x3d302
movq -0xe8(%rbp), %rsi
subq %rdi, %rsi
callq 0x92b0
leaq -0x110(%rbp), %rdi
callq 0x3da52
testb %r14b, %r14b
jne 0x3d1c2
jmp 0x3d55f
movq %rbx, -0x68(%rbp)
movb 0x38(%rax), %r15b
movq -0x1c8(%rbp), %rsi
movq -0x38(%rbp), %rdi
callq 0xc6b4
xorl %ebx, %ebx
cmpb $0x4c, %r15b
sete %r15b
movq -0x30(%rbp), %rdi
callq 0x3c696
movq %rax, %r13
leaq -0x1c8(%rbp), %rdi
movq %rax, %rsi
callq 0x3dfbc
movups 0x18(%r13), %xmm0
leaq -0x1b0(%rbp), %rax
movups %xmm0, (%rax)
leaq 0x28(%r13), %rsi
leaq -0x1a0(%rbp), %rdi
callq 0x3e0e4
leaq 0x40(%r13), %rsi
leaq -0x188(%rbp), %rdi
callq 0x3d8e2
movq 0x78(%r13), %rax
leaq -0x1b0(%rbp), %rcx
movq %rax, 0x60(%rcx)
movups 0x58(%r13), %xmm0
movups 0x68(%r13), %xmm1
movups %xmm1, 0x50(%rcx)
movups %xmm0, 0x40(%rcx)
subq $-0x80, %r13
leaq -0x148(%rbp), %rdi
movq %r13, %rsi
callq 0x9170
addq -0x68(%rbp), %r14
movb %r15b, %bl
addq %rbx, %r12
movq -0x70(%rbp), %rax
leaq (%rax,%r14), %rsi
movq -0x80(%rbp), %rdx
subq %r14, %rdx
movq %r12, (%rsp)
movq -0x60(%rbp), %rdi
leaq -0x1c8(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x58(%rbp), %r9
callq 0x3d0b0
movq %rax, %rbx
movq -0x30(%rbp), %rax
decq 0xb0(%rax)
cmpq $-0x1, %rbx
je 0x3d4bf
movq -0x1c8(%rbp), %rsi
movq -0x38(%rbp), %rdi
callq 0xc6b4
addq %r14, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq -0x60(%rbp), %rcx
movq 0x58(%rcx), %rax
cmpq $0x0, 0x70(%rax)
je 0x3d4fd
movq -0x38(%rbp), %r14
movq %rbx, -0x68(%rbp)
movq %rbx, 0x60(%r14)
movq -0x70(%rbp), %rax
movq %rax, 0x68(%r14)
movq 0x58(%rcx), %rax
cmpq $0x0, 0x70(%rax)
movq -0x30(%rbp), %r12
leaq -0x1c8(%rbp), %r13
je 0x3d5bf
leaq 0x60(%rax), %rsi
leaq -0xe0(%rbp), %r15
movq %r15, %rdi
movq %r14, %rdx
movq -0x58(%rbp), %rcx
movq %rcx, %rbx
callq *0x78(%rax)
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x37c64
movq -0xe0(%rbp), %rax
testq %rax, %rax
movq %rbx, %r15
movq -0x68(%rbp), %rbx
je 0x3d522
movl $0x3, %edi
leaq -0xe0(%rbp), %rsi
xorl %edx, %edx
callq *%rax
movq $0x0, -0xe0(%rbp)
jmp 0x3d522
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
movq -0x38(%rbp), %rdi
callq 0x3e328
movq -0x78(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x3d8e2
xorl %r14d, %r14d
movq -0x58(%rbp), %r15
movq -0x30(%rbp), %r12
leaq -0x1c8(%rbp), %r13
jmp 0x3d287
movq -0x38(%rbp), %r14
movq (%r14), %rsi
cmpq 0x8(%r14), %rsi
movq -0x58(%rbp), %r15
movq -0x30(%rbp), %r12
leaq -0x1c8(%rbp), %r13
je 0x3d522
leaq -0x50(%rbp), %rdi
callq 0x3d9d8
movq (%r14), %rsi
movq %r14, %rdi
callq 0x3cbbc
movq %r14, %rdi
leaq -0x50(%rbp), %rsi
callq 0xc6b4
movq -0x50(%rbp), %rax
testq %rax, %rax
je 0x3d557
movl $0x3, %edi
leaq -0x50(%rbp), %rsi
xorl %edx, %edx
callq *%rax
movq $0x0, -0x50(%rbp)
movb $0x1, %r14b
jmp 0x3d287
leaq -0x128(%rbp), %rdi
callq 0x3da90
movq -0x90(%rbp), %rax
testq %rax, %rax
je 0x3d588
leaq -0xa0(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x3d5aa
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x92b0
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x90f0
jmp 0x3d690
jmp 0x3d690
movq %rax, %rbx
jmp 0x3d649
movq %rax, %rbx
jmp 0x3d666
jmp 0x3d690
jmp 0x3d5e4
jmp 0x3d5e4
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0xb7ba
jmp 0x3d605
jmp 0x3d602
jmp 0x3d602
movq %rax, %rbx
jmp 0x3d63d
jmp 0x3d602
movq %rax, %rbx
jmp 0x3d631
movq %rax, %rbx
leaq -0x1c8(%rbp), %rdi
callq 0xbbe8
jmp 0x3d616
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
testq %rdi, %rdi
je 0x3d631
movq -0xe8(%rbp), %rsi
subq %rdi, %rsi
callq 0x92b0
leaq -0x110(%rbp), %rdi
callq 0x3da52
leaq -0x128(%rbp), %rdi
callq 0x3da90
movq -0x90(%rbp), %rax
testq %rax, %rax
je 0x3d666
leaq -0xa0(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x3d688
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x92b0
movq %rbx, %rdi
callq 0x9420
movq %rax, %rdi
callq 0xf084