// File: /workspace/github_cpp_makefile_star2_O2/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 $0x88, %rsp
movq %rdx, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
leaq 0x48(%rdi), %rsi
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x1a802
movq (%rbx), %rdi
callq 0x1b2e2
movq (%rax), %r14
leaq 0x68(%rsp), %r13
leaq 0x90ef(%rip), %rbp      # 0x1e7d4
leaq 0x913d(%rip), %r15      # 0x1e829
leaq 0x48(%rsp), %r12
movq 0x28(%rsp), %rdi
callq 0x1b2e2
cmpq 0x8(%rax), %r14
je 0x15878
movq (%r14), %rsi
movq %r13, %rdi
callq 0xb3f4
movq %r13, %rdi
movq %rbp, %rsi
callq 0x8dc3
movl %eax, %ebx
movq %r13, %rdi
callq 0x5378
testb %bl, %bl
je 0x157da
movq (%r14), %rsi
movq (%rsi), %rax
movq %r13, %rdi
callq *0x88(%rax)
movq %r13, %rdi
movq %r15, %rsi
callq 0x8dc3
testb %al, %al
je 0x15867
movq (%r14), %rsi
movq (%rsi), %rax
movq %r12, %rdi
callq *0x98(%rax)
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x8dd8
testb %al, %al
je 0x1585f
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movl %eax, %ebx
movq %r12, %rdi
callq 0x5378
movq %r13, %rdi
callq 0x5378
testb %bl, %bl
jne 0x1586f
movq %r15, %r12
movq %rbp, %r15
movq (%r14), %rbx
leaq 0x38(%rsp), %rbp
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
callq 0x1078c
movq (%rbx), %rax
movq %rbx, %rdi
movq %rbp, %rsi
callq *0xf0(%rax)
leaq 0x40(%rsp), %rdi
callq 0x8ea0
movq %r15, %rbp
movq %r12, %r15
leaq 0x48(%rsp), %r12
jmp 0x1586f
movq (%r14), %rsi
movq %r13, %rdi
callq 0xb3f4
movq %r13, %rdi
movq %r15, %rsi
callq 0x8dc3
testb %al, %al
je 0x15867
movq (%r14), %rsi
movq (%rsi), %rax
movq %r12, %rdi
callq *0x30(%rax)
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x8dd8
testb %al, %al
je 0x1585f
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movl %eax, %ebx
movq %r12, %rdi
callq 0x5378
movq %r13, %rdi
callq 0x5378
testb %bl, %bl
jne 0x1586f
movq (%r14), %rbx
leaq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x1078c
movq (%rbx), %rax
movq %rbx, %rdi
leaq 0x18(%rsp), %rsi
callq *0xf0(%rax)
leaq 0x20(%rsp), %rdi
callq 0x8ea0
jmp 0x1586f
movq %r12, %rdi
callq 0x5378
movq %r13, %rdi
callq 0x5378
addq $0x10, %r14
jmp 0x156f1
leaq 0x30(%rsp), %rdi
callq 0x8ea0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x158d7
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
jmp 0x158a8
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x8ea0
jmp 0x158da
jmp 0x158b1
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x5378
jmp 0x158c5
jmp 0x158c2
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x5378
jmp 0x158da
jmp 0x158d7
jmp 0x158d7
jmp 0x158d7
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x8ea0
movq %rbx, %rdi
callq 0x5330