// File: /workspace/github_cpp_makefile_star2_O3/BohangZhang[P]Sorcery-C-Project/player.cc
// Function: Player::notifyRitual(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<Ritual>)
void Player::notifyRitual(string t, shared_ptr<Ritual> r) {
    shared_ptr<Slot> s = this->slot;
    for (auto it = s->getSlot().begin(); it != s->getSlot().end(); ++it) {
        if ((*it)->getType() == "Enchantment") {
            if (((*it)->getOriginType() == "Tri_Minion") && ((*it)->getTriggerType() == t) && ((*it)->getSilent() == 0)) {
                (*it)->actionRitual(r);
                continue;
            }
        } else {
            if (((*it)->getType() == "Tri_Minion") && ((*it)->getTrigger() == t) && ((*it)->getSilent() == 0)) {
                (*it)->actionRitual(r);
                continue;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movq %rsi, 0x8(%rsp)
movq 0x48(%rdi), %r12
movq 0x50(%rdi), %rcx
testq %rcx, %rcx
je 0x1c776
movq 0x16858(%rip), %rax     # 0x32fc0
cmpb $0x0, (%rax)
je 0x1c772
incl 0x8(%rcx)
jmp 0x1c776
lock
incl 0x8(%rcx)
movq %rcx, 0x30(%rsp)
movq %r12, %rdi
callq 0x243d6
movq (%rax), %rbx
leaq 0x48(%rsp), %rbp
leaq 0x38(%rsp), %r13
movq %r12, %rdi
callq 0x243d6
cmpq 0x8(%rax), %rbx
je 0x1c9e3
movq (%rbx), %rsi
movq %r13, %rdi
callq 0xe5f6
movq %r13, %rdi
leaq 0xb0bb(%rip), %rsi      # 0x27872
callq 0x50a0
movl %eax, %r15d
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1c7d6
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x51f0
testl %r15d, %r15d
je 0x1c801
movq (%rbx), %rsi
movq %r13, %rdi
callq 0xe5f6
movq %r13, %rdi
leaq 0xb0f1(%rip), %rsi      # 0x278e1
callq 0x50a0
testl %eax, %eax
je 0x1c82b
xorl %r15d, %r15d
jmp 0x1c8e1
movq (%rbx), %rsi
movq (%rsi), %rax
movq %r13, %rdi
callq *0x88(%rax)
movq %r13, %rdi
leaq 0xb0c7(%rip), %rsi      # 0x278e1
callq 0x50a0
testl %eax, %eax
je 0x1c869
xorl %r15d, %r15d
jmp 0x1c973
movq (%rbx), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
callq *0x30(%rax)
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %rax
cmpq 0x8(%rax), %rdx
jne 0x1c864
testq %rdx, %rdx
je 0x1c8b5
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x10(%rsp), %rdi
callq 0x5200
testl %eax, %eax
je 0x1c8b5
xorl %r15d, %r15d
jmp 0x1c8c5
movq (%rbx), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
callq *0x98(%rax)
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %rax
cmpq 0x8(%rax), %rdx
jne 0x1c8ad
testq %rdx, %rdx
je 0x1c947
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x10(%rsp), %rdi
callq 0x5200
testl %eax, %eax
je 0x1c947
xorl %r15d, %r15d
jmp 0x1c957
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movl %eax, %r15d
xorb $0x1, %r15b
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1c8e1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1c8f8
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x51f0
testb %r15b, %r15b
je 0x1c9da
movq (%rbx), %rdi
movq (%r14), %rax
movq %rax, 0x58(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x1c92f
movq 0x1669f(%rip), %rcx     # 0x32fc0
cmpb $0x0, (%rcx)
je 0x1c92b
incl 0x8(%rax)
jmp 0x1c92f
lock
incl 0x8(%rax)
movq (%rdi), %rax
leaq 0x58(%rsp), %rsi
callq *0xf0(%rax)
movq 0x60(%rsp), %rdi
jmp 0x1c9d0
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movl %eax, %r15d
xorb $0x1, %r15b
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1c973
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1c98a
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x51f0
testb %r15b, %r15b
je 0x1c9da
movq (%rbx), %rdi
movq (%r14), %rax
movq %rax, 0x68(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x70(%rsp)
testq %rax, %rax
je 0x1c9bd
movq 0x16611(%rip), %rcx     # 0x32fc0
cmpb $0x0, (%rcx)
je 0x1c9b9
incl 0x8(%rax)
jmp 0x1c9bd
lock
incl 0x8(%rax)
movq (%rdi), %rax
leaq 0x68(%rsp), %rsi
callq *0xf0(%rax)
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1c9da
callq 0xb478
addq $0x10, %rbx
jmp 0x1c790
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1c9f2
callq 0xb478
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1ca68
jmp 0x1ca05
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1ca35
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0x1ca35
jmp 0x1ca32
movq %rax, %rbx
movq 0x70(%rsp), %rdi
jmp 0x1ca56
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1ca6b
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0x1ca6b
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x1ca6b
callq 0xb478
jmp 0x1ca6b
jmp 0x1ca68
jmp 0x1ca68
jmp 0x1ca68
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1ca7a
callq 0xb478
movq %rbx, %rdi
callq 0x5320