// File: /workspace/github_cpp_makefile_star2_O1/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 $0x98, %rsp
movq %rdx, %r14
movq %rsi, 0x8(%rsp)
movq 0x48(%rdi), %r12
movq 0x50(%rdi), %rcx
testq %rcx, %rcx
je 0x1ca4d
movq 0x17581(%rip), %rax     # 0x33fc0
cmpb $0x0, (%rax)
je 0x1ca49
incl 0x8(%rcx)
jmp 0x1ca4d
lock
incl 0x8(%rcx)
movq %rcx, 0x30(%rsp)
movq %r12, %rdi
callq 0x24706
movq (%rax), %rbx
leaq 0x20(%rsp), %r15
leaq 0x10(%rsp), %r13
movq %r12, %rdi
callq 0x24706
cmpq 0x8(%rax), %rbx
je 0x1ccde
movq (%rbx), %rsi
movq %r13, %rdi
callq 0xe816
movq %r13, %rdi
leaq 0xbde4(%rip), %rsi      # 0x28872
callq 0x50a0
movl %eax, %ebp
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x1caac
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
testl %ebp, %ebp
je 0x1cb93
movq (%rbx), %rsi
movq %r13, %rdi
callq 0xe816
movq %r13, %rdi
leaq 0xbe18(%rip), %rsi      # 0x288e1
callq 0x50a0
movl %eax, %r15d
testl %eax, %eax
jne 0x1cb16
movq (%rbx), %rsi
movq (%rsi), %rax
leaq 0x58(%rsp), %rdi
callq *0x30(%rax)
movq 0x60(%rsp), %rdx
movq 0x8(%rsp), %rax
cmpq 0x8(%rax), %rdx
jne 0x1cb16
testq %rdx, %rdx
je 0x1cc8c
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x58(%rsp), %rdi
callq 0x5200
testl %eax, %eax
je 0x1cc8c
xorl %ebp, %ebp
testl %r15d, %r15d
leaq 0x20(%rsp), %r15
jne 0x1cb3e
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x1cb3e
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x1cb55
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
testb %bpl, %bpl
je 0x1ccc1
movq (%rbx), %rdi
movq (%r14), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x1cc77
movq 0x1743e(%rip), %rcx     # 0x33fc0
cmpb $0x0, (%rcx)
je 0x1cc73
incl 0x8(%rax)
jmp 0x1cc77
movq (%rbx), %rsi
movq (%rsi), %rax
movq %r13, %rdi
callq *0x88(%rax)
movq %r13, %rdi
leaq 0xbd35(%rip), %rsi      # 0x288e1
callq 0x50a0
movl %eax, %r15d
testl %eax, %eax
jne 0x1cbff
movq (%rbx), %rsi
movq (%rsi), %rax
leaq 0x78(%rsp), %rdi
callq *0x98(%rax)
movq 0x80(%rsp), %rdx
movq 0x8(%rsp), %rax
cmpq 0x8(%rax), %rdx
jne 0x1cbff
testq %rdx, %rdx
je 0x1ccca
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x78(%rsp), %rdi
callq 0x5200
testl %eax, %eax
je 0x1ccca
xorl %ebp, %ebp
testl %r15d, %r15d
leaq 0x20(%rsp), %r15
jne 0x1cc2d
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x1cc2d
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x1cc44
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
testb %bpl, %bpl
je 0x1ccc1
movq (%rbx), %rdi
movq (%r14), %rax
movq %rax, 0x48(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x1cca4
movq 0x17357(%rip), %rcx     # 0x33fc0
cmpb $0x0, (%rcx)
je 0x1cca0
incl 0x8(%rax)
jmp 0x1cca4
lock
incl 0x8(%rax)
movq (%rdi), %rax
leaq 0x38(%rsp), %rsi
callq *0xf0(%rax)
movq 0x40(%rsp), %rdi
jmp 0x1ccb7
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movl %eax, %ebp
xorb $0x1, %bpl
jmp 0x1cb18
lock
incl 0x8(%rax)
movq (%rdi), %rax
leaq 0x48(%rsp), %rsi
callq *0xf0(%rax)
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x1ccc1
callq 0xb634
addq $0x10, %rbx
jmp 0x1ca67
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movl %eax, %ebp
xorb $0x1, %bpl
jmp 0x1cc01
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1cced
callq 0xb634
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1cd8b
movq %rax, %r14
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x1cd53
movq 0x88(%rsp), %rsi
jmp 0x1cd3a
movq %rax, %r14
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x1cd53
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0x1cd53
jmp 0x1cd50
movq %rax, %r14
movq 0x50(%rsp), %rdi
jmp 0x1cd79
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1cd8e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0x1cd8e
movq %rax, %r14
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1cd8e
callq 0xb634
jmp 0x1cd8e
jmp 0x1cd8b
jmp 0x1cd8b
jmp 0x1cd8b
movq %rax, %r14
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1cd9d
callq 0xb634
movq %r14, %rdi
callq 0x5320
nop