// File: /workspace/github_cpp_makefile_star2_O3/yhirose[P]fizzbuzzlang/./peglib.h
// Function: peg::ParserGenerator::apply_precedence_instruction(peg::Definition&, std::map<std::basic_string_view<char, std::char_traits<char>>, std::pair<unsigned long, char>, std::less<std::basic_string_view<char, std::char_traits<char>>>, std::allocator<std::pair<std::basic_string_view<char, std::char_traits<char>> const, std::pair<unsigned long, char>>>> const&, char const*, std::function<void (unsigned long, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)>)
bool apply_precedence_instruction(Definition &rule,
                                    const PrecedenceClimbing::BinOpeInfo &info,
                                    const char *s, Log log) {
    try {
      auto &seq = dynamic_cast<Sequence &>(*rule.get_core_operator());
      auto atom = seq.opes_[0];
      auto &rep = dynamic_cast<Repetition &>(*seq.opes_[1]);
      auto &seq1 = dynamic_cast<Sequence &>(*rep.ope_);
      auto binop = seq1.opes_[0];
      auto atom1 = seq1.opes_[1];

      auto atom_name = dynamic_cast<Reference &>(*atom).name_;
      auto binop_name = dynamic_cast<Reference &>(*binop).name_;
      auto atom1_name = dynamic_cast<Reference &>(*atom1).name_;

      if (!rep.is_zom() || atom_name != atom1_name || atom_name == binop_name) {
        if (log) {
          auto line = line_info(s, rule.s_);
          log(line.first, line.second,
              "'precedence' instruction cannot be applied to '" + rule.name +
                  "'.",
              "");
        }
        return false;
      }

      rule.holder_->ope_ = pre(atom, binop, info, rule);
      rule.disable_action = true;
    } catch (...) {
      if (log) {
        auto line = line_info(s, rule.s_);
        log(line.first, line.second,
            "'precedence' instruction cannot be applied to '" + rule.name +
                "'.",
            "");
      }
      return false;
    }
    return true;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %r8, -0x58(%rbp)
movq %rcx, -0xc0(%rbp)
movq %rdx, %rbx
movq %rsi, %r14
movq 0x1c0(%rsi), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x3745f
movq 0x26b1c(%rip), %rax     # 0x5df70
cmpb $0x0, (%rax)
je 0x37481
incl 0x8(%r15)
jmp 0x37486
leaq 0x248b2(%rip), %rsi     # 0x5bd18
leaq 0x24933(%rip), %rdx     # 0x5bda0
xorl %ecx, %ecx
callq 0x8300
movq %rax, %r12
testq %rax, %rax
jne 0x374af
jmp 0x379dc
lock
incl 0x8(%r15)
leaq 0x2488b(%rip), %rsi     # 0x5bd18
leaq 0x2490c(%rip), %rdx     # 0x5bda0
xorl %ecx, %ecx
callq 0x8300
testq %rax, %rax
je 0x379dc
movq %rax, %r12
movq %r15, %rdi
callq 0x123fc
movq 0x8(%r12), %rax
movq (%rax), %rcx
movq %rcx, -0xe0(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0xd8(%rbp)
testq %rcx, %rcx
je 0x374e8
movq 0x26a9b(%rip), %rdx     # 0x5df70
cmpb $0x0, (%rdx)
je 0x374df
incl 0x8(%rcx)
jmp 0x374e8
lock
incl 0x8(%rcx)
movq 0x8(%r12), %rax
movq 0x10(%rax), %rdi
leaq 0x24825(%rip), %rsi     # 0x5bd18
leaq 0x24936(%rip), %rdx     # 0x5be30
xorl %ecx, %ecx
callq 0x8300
testq %rax, %rax
je 0x379e5
movq %rax, %r15
movq 0x8(%rax), %rdi
leaq 0x24800(%rip), %rsi     # 0x5bd18
leaq 0x24881(%rip), %rdx     # 0x5bda0
xorl %ecx, %ecx
callq 0x8300
testq %rax, %rax
je 0x379ee
movq 0x8(%rax), %rcx
movq (%rcx), %rdx
movq %rdx, -0xd0(%rbp)
movq 0x8(%rcx), %rdx
movq %rdx, -0xc8(%rbp)
testq %rdx, %rdx
je 0x37566
movq 0x26a1c(%rip), %rsi     # 0x5df70
cmpb $0x0, (%rsi)
je 0x3755e
incl 0x8(%rdx)
jmp 0x37566
lock
incl 0x8(%rdx)
movq 0x8(%rax), %rcx
movq 0x10(%rcx), %r13
movq 0x18(%rcx), %r12
testq %r12, %r12
je 0x3758c
movq 0x269f6(%rip), %rax     # 0x5df70
cmpb $0x0, (%rax)
je 0x37586
incl 0x8(%r12)
jmp 0x3758c
lock
incl 0x8(%r12)
movq -0xe0(%rbp), %rdi
leaq 0x2477e(%rip), %rsi     # 0x5bd18
leaq 0x24797(%rip), %rdx     # 0x5bd38
xorl %ecx, %ecx
callq 0x8300
testq %rax, %rax
je 0x379f7
leaq -0x40(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x13028
movq -0xd0(%rbp), %rdi
leaq 0x2473d(%rip), %rsi     # 0x5bd18
leaq 0x24756(%rip), %rdx     # 0x5bd38
xorl %ecx, %ecx
callq 0x8300
testq %rax, %rax
je 0x379fc
leaq -0x88(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0x13028
leaq 0x246fd(%rip), %rsi     # 0x5bd18
leaq 0x24716(%rip), %rdx     # 0x5bd38
movq %r13, %rdi
xorl %ecx, %ecx
callq 0x8300
testq %rax, %rax
je 0x37a01
leaq -0x68(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq -0x78(%rbp), %rdi
callq 0x13028
cmpq $0x0, 0x18(%r15)
jne 0x376b0
cmpq $-0x1, 0x20(%r15)
jne 0x376b0
movq -0x48(%rbp), %r15
cmpq -0x70(%rbp), %r15
jne 0x376b0
testq %r15, %r15
je 0x378cb
movq -0x78(%rbp), %rsi
movq -0x50(%rbp), %r13
movq %r13, %rdi
movq %r15, %rdx
callq 0x82c0
testl %eax, %eax
jne 0x376b0
cmpq -0x90(%rbp), %r15
jne 0x378d9
movq -0x98(%rbp), %rsi
movq %r13, %rdi
movq %r15, %rdx
callq 0x82c0
testl %eax, %eax
jne 0x378d9
movq -0x58(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x377e7
movq 0x20(%r14), %rax
movl $0x1, %r15d
movl $0x1, %r13d
movq -0xc0(%rbp), %rdx
cmpq %rdx, %rax
jbe 0x3778d
movq %rdx, %rcx
xorl %esi, %esi
cmpb $0xa, (%rdx)
leaq 0x1(%rdx), %rdi
cmoveq %rdi, %rcx
sete %sil
addl %esi, %r13d
movq %rdi, %rdx
cmpq %rax, %rdi
jne 0x376e2
subq %rcx, %rax
je 0x3778d
movl $0x1, %r15d
xorl %edx, %edx
movzbl (%rcx,%rdx), %esi
movl $0x1, %r8d
testb %sil, %sil
jns 0x3777e
movq %rax, %rdi
subq %rdx, %rdi
cmpq $0x1, %rdi
je 0x37740
movl %esi, %r9d
andl $-0x20, %r9d
movl $0x2, %r8d
cmpl $0xc0, %r9d
je 0x3777e
cmpq $0x3, %rdi
jb 0x3775c
movl %esi, %r9d
andl $-0x10, %r9d
movl $0x3, %r8d
cmpl $0xe0, %r9d
je 0x3777e
andl $-0x8, %esi
xorl %r9d, %r9d
cmpl $0xf0, %esi
sete %r9b
shll $0x2, %r9d
cmpq $0x4, %rdi
movl $0x0, %r8d
cmovaeq %r9, %r8
cmpq $0x1, %r8
adcq %r8, %rdx
incq %r15
cmpq %rax, %rdx
jb 0x3770f
leaq 0xb73d(%rip), %rsi      # 0x42ed1
leaq -0x130(%rbp), %rdi
movq %r14, %rdx
movq %r14, -0x30(%rbp)
callq 0xbe0e
leaq 0xb6af(%rip), %rsi      # 0x42e5d
leaq -0x130(%rbp), %rdi
callq 0x8480
leaq -0xa8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x377ee
movq %rdx, -0xb8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa8(%rbp)
jmp 0x377f4
xorl %ebx, %ebx
jmp 0x37945
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0xb0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x100(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xb1ba(%rip), %rdx      # 0x429da
leaq -0x110(%rbp), %rdi
movq %rdx, %rsi
callq 0x11634
movl %r13d, %eax
movq %rax, -0xf0(%rbp)
movq %r15, -0xe8(%rbp)
movq -0x58(%rbp), %rdi
cmpq $0x0, 0x10(%rdi)
je 0x37a06
leaq -0xf0(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
leaq -0xb8(%rbp), %rcx
leaq -0x110(%rbp), %r8
callq *0x18(%rdi)
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x37889
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x82b0
movq -0xb8(%rbp), %rdi
cmpq %rbx, %rdi
leaq -0x40(%rbp), %r14
je 0x378a8
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x82b0
leaq -0x120(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x378c7
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x82b0
xorl %ebx, %ebx
jmp 0x37949
cmpq $0x0, -0x90(%rbp)
je 0x376b0
leaq -0xb0(%rbp), %rdi
movq $0x0, -0x8(%rdi)
movq %r14, (%rsp)
leaq -0xb8(%rbp), %rsi
leaq -0x130(%rbp), %rdx
leaq -0xe0(%rbp), %rcx
leaq -0xd0(%rbp), %r8
movq %rbx, %r9
callq 0x39590
movq -0xb8(%rbp), %rax
movq -0xb0(%rbp), %rcx
movq 0x1c0(%r14), %rdx
movq %rax, 0x8(%rdx)
movq 0x10(%rdx), %rdi
movq %rcx, 0x10(%rdx)
testq %rdi, %rdi
je 0x3793b
callq 0x123fc
movb $0x1, 0x108(%r14)
movb $0x1, %bl
leaq -0x40(%rbp), %r14
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x37962
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x82b0
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x37984
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x82b0
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x37999
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x82b0
testq %r12, %r12
je 0x379a6
movq %r12, %rdi
callq 0x123fc
movq -0xc8(%rbp), %rdi
testq %rdi, %rdi
je 0x379b7
callq 0x123fc
movq -0xd8(%rbp), %rdi
testq %rdi, %rdi
je 0x379c8
callq 0x123fc
movl %ebx, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, -0x30(%rbp)
callq 0x8470
movq %r14, -0x30(%rbp)
callq 0x8470
movq %r14, -0x30(%rbp)
callq 0x8470
callq 0x8470
callq 0x8470
callq 0x8470
callq 0x80f0
movq %r14, -0x30(%rbp)
jmp 0x37a1b
movq %rax, %r13
jmp 0x37a5c
movq %rax, %r13
jmp 0x37a77
movq %rax, %r13
jmp 0x37a96
jmp 0x37a22
movq %rax, %r13
jmp 0x37b23
movq %rax, %r13
testq %r15, %r15
je 0x37b34
movq %r15, %rdi
jmp 0x37b2f
movq %rax, %r13
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x37a5c
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x82b0
movq -0xb8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x37a77
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x82b0
leaq -0x120(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37a96
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x82b0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x37ab8
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x82b0
jmp 0x37ab8
movq %r14, -0x30(%rbp)
movq %rax, %r13
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x37ae3
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x82b0
jmp 0x37ae3
movq %r14, -0x30(%rbp)
movq %rax, %r13
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x37b05
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x82b0
jmp 0x37b05
movq %r14, -0x30(%rbp)
movq %rax, %r13
testq %r12, %r12
je 0x37b12
movq %r12, %rdi
callq 0x123fc
movq -0xc8(%rbp), %rdi
testq %rdi, %rdi
je 0x37b23
callq 0x123fc
movq -0xd8(%rbp), %rdi
testq %rdi, %rdi
je 0x37b34
callq 0x123fc
movq %r13, %rdi
callq 0x8110
movq -0x58(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x37c4c
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rsi
movq -0xc0(%rbp), %rdi
callq 0x12cc4
movq %rax, %r15
movq %rdx, %r12
leaq 0xb365(%rip), %rsi      # 0x42ed1
leaq -0x98(%rbp), %rdi
movq -0x30(%rbp), %rdx
callq 0xbe0e
leaq 0xb2da(%rip), %rsi      # 0x42e5d
leaq -0x98(%rbp), %rdi
callq 0x8480
leaq -0x40(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x37bb3
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x37bba
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x68(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0xadfa(%rip), %rdx      # 0x429da
leaq -0x78(%rbp), %rdi
movq %rdx, %rsi
callq 0x11634
leaq -0x50(%rbp), %rcx
leaq -0x78(%rbp), %r8
movq -0x58(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x12ffa
movq -0x78(%rbp), %rdi
cmpq %r13, %rdi
je 0x37c18
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x82b0
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x37c2d
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x82b0
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37c4c
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x82b0
callq 0x83f0
xorl %ebx, %ebx
jmp 0x379c8
movq %rax, %rbx
movq -0x78(%rbp), %rdi
cmpq %r13, %rdi
je 0x37c75
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x82b0
jmp 0x37c75
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x37c8f
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x82b0
jmp 0x37c8f
movq %rax, %rbx
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37cb5
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x82b0
jmp 0x37cb5
jmp 0x37cb2
movq %rax, %rbx
callq 0x83f0
movq %rbx, %rdi
callq 0x8420
movq %rax, %rdi
callq 0xe032