// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movq %rcx, -0x60(%rbp)
movq %rdx, %r13
movq %rsi, %r15
movq 0x1c0(%rsi), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rax), %rbx
testq %rbx, %rbx
je 0x394aa
movq 0x26ad4(%rip), %rax     # 0x5ff70
cmpb $0x0, (%rax)
je 0x394a6
incl 0x8(%rbx)
jmp 0x394aa
lock
incl 0x8(%rbx)
leaq 0x2482f(%rip), %rsi     # 0x5dce0
leaq 0x248b0(%rip), %rdx     # 0x5dd68
xorl %ecx, %ecx
callq 0x9300
testq %rax, %rax
je 0x39a26
movq %rax, %r12
testq %rbx, %rbx
je 0x394d8
movq %rbx, %rdi
callq 0x13612
movq 0x8(%r12), %rax
movq (%rax), %rcx
movq %rcx, -0xe0(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0xd8(%rbp)
testq %rax, %rax
je 0x3950c
movq 0x26a72(%rip), %rcx     # 0x5ff70
cmpb $0x0, (%rcx)
je 0x39508
incl 0x8(%rax)
jmp 0x3950c
lock
incl 0x8(%rax)
movq %r13, -0xe8(%rbp)
movq 0x8(%r12), %rax
movq 0x10(%rax), %rdi
leaq 0x247bd(%rip), %rsi     # 0x5dce0
leaq 0x248ce(%rip), %rdx     # 0x5ddf8
xorl %ecx, %ecx
callq 0x9300
testq %rax, %rax
je 0x39a33
movq %rax, %r13
movq 0x8(%rax), %rdi
leaq 0x24798(%rip), %rsi     # 0x5dce0
leaq 0x24819(%rip), %rdx     # 0x5dd68
xorl %ecx, %ecx
callq 0x9300
testq %rax, %rax
je 0x39a40
movq 0x8(%rax), %rcx
movq (%rcx), %rdx
movq %rdx, -0xd0(%rbp)
movq 0x8(%rcx), %rcx
movq %rcx, -0xc8(%rbp)
testq %rcx, %rcx
je 0x39592
movq 0x269ec(%rip), %rdx     # 0x5ff70
cmpb $0x0, (%rdx)
je 0x3958e
incl 0x8(%rcx)
jmp 0x39592
lock
incl 0x8(%rcx)
movq 0x8(%rax), %rax
movq 0x10(%rax), %rbx
movq 0x18(%rax), %r12
testq %r12, %r12
je 0x395bc
movq 0x269c6(%rip), %rax     # 0x5ff70
cmpb $0x0, (%rax)
je 0x395b6
incl 0x8(%r12)
jmp 0x395bc
lock
incl 0x8(%r12)
movq -0xe0(%rbp), %rdi
leaq 0x24716(%rip), %rsi     # 0x5dce0
leaq 0x2472f(%rip), %rdx     # 0x5dd00
xorl %ecx, %ecx
callq 0x9300
testq %rax, %rax
je 0x39a4d
leaq -0x48(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq -0x58(%rbp), %rdi
callq 0x14292
movq -0xd0(%rbp), %rdi
leaq 0x246d5(%rip), %rsi     # 0x5dce0
leaq 0x246ee(%rip), %rdx     # 0x5dd00
xorl %ecx, %ecx
callq 0x9300
testq %rax, %rax
je 0x39a52
leaq -0x70(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x14292
leaq 0x2469b(%rip), %rsi     # 0x5dce0
leaq 0x246b4(%rip), %rdx     # 0x5dd00
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x9300
testq %rax, %rax
je 0x39a57
leaq -0x90(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0x14292
cmpq $0x0, 0x18(%r13)
jne 0x39760
cmpq $-0x1, 0x20(%r13)
jne 0x39760
movq -0x50(%rbp), %rbx
cmpq -0x98(%rbp), %rbx
jne 0x39760
testq %rbx, %rbx
je 0x396c8
movq -0xa0(%rbp), %rsi
movq -0x58(%rbp), %rdi
movq %rbx, %rdx
callq 0x92c0
testl %eax, %eax
jne 0x39760
cmpq -0x78(%rbp), %rbx
jne 0x396eb
testq %rbx, %rbx
je 0x39760
movq -0x80(%rbp), %rsi
movq -0x58(%rbp), %rdi
movq %rbx, %rdx
callq 0x92c0
testl %eax, %eax
je 0x39760
leaq -0xb8(%rbp), %rdi
movq $0x0, -0x8(%rdi)
movq %r15, (%rsp)
leaq -0xc0(%rbp), %rsi
leaq -0x138(%rbp), %rdx
leaq -0xe0(%rbp), %rcx
leaq -0xd0(%rbp), %r8
movq -0xe8(%rbp), %r9
callq 0x3b61c
movq -0xc0(%rbp), %rax
movq -0xb8(%rbp), %rcx
movq 0x1c0(%r15), %rdx
movq %rax, 0x8(%rdx)
movq 0x10(%rdx), %rdi
movq %rcx, 0x10(%rdx)
testq %rdi, %rdi
je 0x39751
callq 0x13612
movb $0x1, 0x108(%r15)
movb $0x1, %bl
jmp 0x398ad
cmpq $0x0, 0x10(%r14)
je 0x398ab
movq 0x20(%r15), %rsi
movl $0x1, %ebx
movq %rsi, %rdx
movl $0x1, %r13d
movq -0x60(%rbp), %rdi
movq %rdi, %rcx
movq %rdi, %rax
subq %rdi, %rdx
jbe 0x397bf
movl $0x1, %ecx
movq -0x60(%rbp), %rdi
movq %rdi, %rax
xorl %r8d, %r8d
cmpb $0xa, (%rdi)
leaq 0x1(%rdi), %r9
cmoveq %r9, %rax
sete %r8b
addl %r8d, %ecx
movq %r9, %rdi
cmpq %rsi, %r9
jne 0x39798
addq -0x60(%rbp), %rdx
movl %ecx, %r13d
movq %rdx, %rcx
subq %rax, %rcx
je 0x3984d
movl $0x1, %ebx
xorl %edx, %edx
movzbl (%rax,%rdx), %esi
movl $0x1, %r8d
testb %sil, %sil
jns 0x3983e
movq %rcx, %rdi
subq %rdx, %rdi
cmpq $0x1, %rdi
je 0x39800
movl %esi, %r9d
andl $-0x20, %r9d
movl $0x2, %r8d
cmpl $0xc0, %r9d
je 0x3983e
cmpq $0x3, %rdi
jb 0x3981c
movl %esi, %r9d
andl $-0x10, %r9d
movl $0x3, %r8d
cmpl $0xe0, %r9d
je 0x3983e
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 %rbx
cmpq %rcx, %rdx
jb 0x397cf
leaq 0xb67d(%rip), %rsi      # 0x44ed1
leaq -0x138(%rbp), %rdi
movq %r15, %rdx
movq %r14, -0x30(%rbp)
movq %r15, -0x38(%rbp)
callq 0xcdf6
leaq 0xb5eb(%rip), %rsi      # 0x44e5d
leaq -0x138(%rbp), %rdi
callq 0x9480
leaq -0xb0(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x398ba
movq %rdx, -0xc0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb0(%rbp)
jmp 0x398c1
xorl %ebx, %ebx
leaq -0x48(%rbp), %r14
leaq -0x70(%rbp), %r15
jmp 0x39997
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, -0xb8(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x108(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xb0ed(%rip), %rdx      # 0x449da
leaq -0x118(%rbp), %rdi
movq %rdx, %rsi
callq 0x12846
movq %r13, -0xf8(%rbp)
movq %rbx, -0xf0(%rbp)
movq -0x30(%rbp), %rdi
cmpq $0x0, 0x10(%rdi)
je 0x39a5c
leaq -0xf8(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
leaq -0x118(%rbp), %r8
callq *0x18(%rdi)
movq -0x118(%rbp), %rdi
cmpq %r15, %rdi
je 0x39953
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x92b0
movq -0xc0(%rbp), %rdi
cmpq %r14, %rdi
leaq -0x48(%rbp), %r14
leaq -0x70(%rbp), %r15
je 0x39976
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x92b0
leaq -0x128(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39995
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x92b0
xorl %ebx, %ebx
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x399b9
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x92b0
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x399ce
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x92b0
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x399e3
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x92b0
testq %r12, %r12
je 0x399f0
movq %r12, %rdi
callq 0x13612
movq -0xc8(%rbp), %rdi
testq %rdi, %rdi
je 0x39a01
callq 0x13612
movq -0xd8(%rbp), %rdi
testq %rdi, %rdi
je 0x39a12
callq 0x13612
movl %ebx, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, -0x38(%rbp)
movq %r14, -0x30(%rbp)
callq 0x9470
movq %r15, -0x38(%rbp)
movq %r14, -0x30(%rbp)
callq 0x9470
movq %r15, -0x38(%rbp)
movq %r14, -0x30(%rbp)
callq 0x9470
callq 0x9470
callq 0x9470
callq 0x9470
callq 0x90f0
movq %r15, -0x38(%rbp)
movq %r14, -0x30(%rbp)
jmp 0x39a75
movq %rax, %r13
jmp 0x39ab6
movq %rax, %r13
jmp 0x39ad1
movq %rax, %r13
jmp 0x39af0
jmp 0x39a7c
movq %rax, %r13
jmp 0x39b89
movq %rax, %r13
testq %rbx, %rbx
je 0x39b9a
movq %rbx, %rdi
jmp 0x39b95
movq %rax, %r13
movq -0x118(%rbp), %rdi
cmpq %r15, %rdi
je 0x39ab6
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x92b0
movq -0xc0(%rbp), %rdi
cmpq %r14, %rdi
je 0x39ad1
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x92b0
leaq -0x128(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39af0
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x92b0
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x39b1f
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x92b0
jmp 0x39b1f
movq %r15, -0x38(%rbp)
movq %r14, -0x30(%rbp)
movq %rax, %r13
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x39b45
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x92b0
jmp 0x39b45
movq %r15, -0x38(%rbp)
movq %r14, -0x30(%rbp)
movq %rax, %r13
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x39b6b
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x92b0
jmp 0x39b6b
movq %r15, -0x38(%rbp)
movq %r14, -0x30(%rbp)
movq %rax, %r13
testq %r12, %r12
je 0x39b78
movq %r12, %rdi
callq 0x13612
movq -0xc8(%rbp), %rdi
testq %rdi, %rdi
je 0x39b89
callq 0x13612
movq -0xd8(%rbp), %rdi
testq %rdi, %rdi
je 0x39b9a
callq 0x13612
movq %r13, %rdi
callq 0x9110
movq -0x30(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x39cb3
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rsi
movq -0x60(%rbp), %rdi
callq 0x13efe
movq %rax, %rbx
movq %rdx, %r15
leaq 0xb302(%rip), %rsi      # 0x44ed1
leaq -0x80(%rbp), %rdi
movq -0x38(%rbp), %rdx
callq 0xcdf6
leaq 0xb27a(%rip), %rsi      # 0x44e5d
leaq -0x80(%rbp), %rdi
callq 0x9480
leaq -0x48(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x39c10
movq %rdx, -0x58(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x48(%rbp)
jmp 0x39c17
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, -0x50(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x90(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xad99(%rip), %rdx      # 0x449da
leaq -0xa0(%rbp), %rdi
movq %rdx, %rsi
callq 0x12846
leaq -0x58(%rbp), %rcx
leaq -0xa0(%rbp), %r8
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x141c0
movq -0xa0(%rbp), %rdi
cmpq %r12, %rdi
je 0x39c85
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x92b0
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x39c9a
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x92b0
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39cb3
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x92b0
callq 0x93f0
xorl %ebx, %ebx
jmp 0x39a12
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r12, %rdi
je 0x39ce2
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x92b0
jmp 0x39ce2
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x39cfc
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x92b0
jmp 0x39cfc
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39d1c
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x92b0
jmp 0x39d1c
jmp 0x39d19
movq %rax, %rbx
callq 0x93f0
movq %rbx, %rdi
callq 0x9420
movq %rax, %rdi
callq 0xf084
nop