// File: /workspace/github_cpp_makefile_star2_O3/BohangZhang[P]Sorcery-C-Project/player.cc
// Function: Player::inspect(int)
void Player::inspect(int i) {
    shared_ptr<Slot> s = this->slot;
    if (s->getSize() < i) {
        throw 11; // Number, You don't have enough minion
    }
    shared_ptr<Minion> m = s->getSlot()[i-1];
    shared_ptr<Minion> am = s->getSlot()[i-1];
    shared_ptr<vector<card_template_t>> temp {new vector<card_template_t>};
    while (1) {
        if ((m->getType() == "Minion") || (m->getType() == "Act_Minion") || (m->getType() == "Tri_Minion")) {
            am->print();
            break;
        } else {
            if (m->getName() == "Giant Strength") {
                temp->push_back(display_enchantment_attack_defence(m->getName(), m->getCost(), m->getEffect(), "+2", "+2"));
            } else {
                temp->push_back(display_enchantment(m->getName(), m->getCost(), m->getEffect()));
            }
            m = m->getOrigin();
        }
    }
    if (temp->size() == 0) {return;}
    int turn = temp->size() / 5;
    int left = temp->size() % 5;
    for (int k = 0; k < turn; ++k) {
        for (int i = 0; i < 11; ++i) {
            for (int j = 0; j < 5; ++j) { cout << (*temp)[j][i]; }
            cout << endl;
        }
    }
    for (int i = 0; i < 11; ++i) {
        for (int j = 0; j < left; ++j) { cout << (*temp)[j][i]; }
        cout << endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movl %esi, %ebp
movq 0x48(%rdi), %rbx
movq 0x50(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x1cac6
movq 0x16512(%rip), %rax     # 0x32fc0
cmpb $0x0, (%rax)
je 0x1cabd
movq 0x10(%rsp), %rax
incl 0x8(%rax)
jmp 0x1cac6
movq 0x10(%rsp), %rax
lock
incl 0x8(%rax)
movq %rbx, %rdi
callq 0x243da
cmpl %ebp, %eax
jl 0x1d077
movq %rbx, %rdi
callq 0x243d6
movslq %ebp, %r15
decq %r15
movq (%rax), %rax
shlq $0x4, %r15
movq (%rax,%r15), %r12
movq 0x8(%rax,%r15), %rax
movq %rax, (%rsp)
testq %rax, %rax
je 0x1cb1a
movq 0x164bc(%rip), %rax     # 0x32fc0
cmpb $0x0, (%rax)
je 0x1cb12
movq (%rsp), %rax
incl 0x8(%rax)
jmp 0x1cb1a
movq (%rsp), %rax
lock
incl 0x8(%rax)
movq %rbx, %rdi
callq 0x243d6
movq (%rax), %rax
movq (%rax,%r15), %rcx
movq %rcx, 0x90(%rsp)
movq 0x8(%rax,%r15), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x1cb5f
movq 0x16479(%rip), %rax     # 0x32fc0
cmpb $0x0, (%rax)
je 0x1cb56
movq 0x8(%rsp), %rax
incl 0x8(%rax)
jmp 0x1cb5f
movq 0x8(%rsp), %rax
lock
incl 0x8(%rax)
movl $0x18, %edi
callq 0x51e0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
movq %rax, -0x8(%rdi)
movq %rax, %rsi
callq 0x23b4c
leaq 0x30(%rsp), %rbx
leaq 0x20(%rsp), %r13
leaq 0xf8(%rsp), %r14
leaq 0x138(%rsp), %r15
movq %r13, %rdi
movq %r12, %rsi
callq 0xe5f6
movq %r13, %rdi
leaq 0xad2e(%rip), %rsi      # 0x278e5
callq 0x50a0
testl %eax, %eax
je 0x1cc25
movq %r14, %rdi
movq %r12, %rsi
callq 0xe5f6
movq %r14, %rdi
leaq 0xad01(%rip), %rsi      # 0x278d6
callq 0x50a0
testl %eax, %eax
je 0x1cc2a
movq %r15, %rdi
movq %r12, %rsi
callq 0xe5f6
movq %r15, %rdi
leaq 0xacee(%rip), %rsi      # 0x278e1
callq 0x50a0
testl %eax, %eax
sete %r15b
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x1cc2d
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0x1cc2d
movb $0x1, %r15b
jmp 0x1cc52
movb $0x1, %r15b
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x1cc52
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1cc69
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x51f0
testb %r15b, %r15b
jne 0x1ceda
movq %r13, %rdi
movq %r12, %rsi
callq 0xe5d2
movq %r13, %rdi
leaq 0xadb5(%rip), %rsi      # 0x27a3c
callq 0x50a0
movl %eax, %r15d
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1cca6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0x40(%rsp), %rax
movq %rax, 0x18(%rsp)
testl %r15d, %r15d
je 0x1cd5d
leaq 0x98(%rsp), %rdi
movq %r12, %rsi
callq 0xe5d2
movq %r12, %rdi
callq 0xe63e
leaq 0x118(%rsp), %r14
movl %eax, %r15d
movq %r14, %rdi
movq %r12, %rsi
callq 0xe61a
movq %r13, %rdi
leaq 0x98(%rsp), %rsi
movl %r15d, %edx
movq %r14, %rcx
callq 0xd7b2
movq 0x18(%rsp), %rdi
movq %r13, %rsi
callq 0x23c06
movq %r13, %rdi
callq 0xc796
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x1cd37
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x1ce95
movq 0xa8(%rsp), %rsi
jmp 0x1ce8d
leaq 0xd8(%rsp), %rdi
movq %r12, %rsi
callq 0xe5d2
movq %r12, %rdi
callq 0xe63e
movl %eax, %r15d
leaq 0xb8(%rsp), %rdi
movq %r12, %rsi
callq 0xe61a
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0x50(%rsp), %rdi
leaq 0xae05(%rip), %rbp      # 0x27ba3
movq %rbp, %rsi
leaq 0xadfd(%rip), %rbx      # 0x27ba5
movq %rbx, %rdx
callq 0xb57e
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x70(%rsp), %r14
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0xb57e
movq %r13, %rdi
leaq 0xd8(%rsp), %rsi
movl %r15d, %edx
leaq 0xb8(%rsp), %rcx
leaq 0x50(%rsp), %r8
movq %r14, %r9
callq 0xdc40
leaq 0x30(%rsp), %rbx
movq 0x18(%rsp), %rdi
movq %r13, %rsi
callq 0x23c06
movq %r13, %rdi
callq 0xc796
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x1ce2f
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1ce4b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x1ce70
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x1ce95
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x51f0
movq (%r12), %rax
movq %r13, %rdi
movq %r12, %rsi
callq *0x68(%rax)
movq 0x20(%rsp), %r12
movq 0x28(%rsp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1ced1
callq 0xb478
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x1ced1
callq 0xb478
movq %r14, (%rsp)
jmp 0x1cb92
movq 0x90(%rsp), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq 0x40(%rsp), %rcx
movq 0x8(%rcx), %rdx
subq (%rcx), %rdx
je 0x1d02a
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
movq %rax, 0x18(%rsp)
mulq %rcx
movq %rdx, %r15
shrq $0x2, %r15
testl %r15d, %r15d
jle 0x1cfa0
xorl %r13d, %r13d
movq 0x16094(%rip), %r12     # 0x32fc8
xorl %r14d, %r14d
movq %r14, %rbp
shlq $0x5, %rbp
xorl %ebx, %ebx
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r12, %rdi
callq 0x5240
addq $0x18, %rbx
cmpq $0x78, %rbx
jne 0x1cf40
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x51d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5140
incq %r14
cmpq $0xb, %r14
jne 0x1cf37
incl %r13d
cmpl %r15d, %r13d
jne 0x1cf34
leaq (%r15,%r15,4), %rax
movq 0x18(%rsp), %rbp
subq %rax, %rbp
cmpl $0x1, %ebp
movl %ebp, %eax
adcl $0x0, %eax
shlq $0x3, %rax
leaq (%rax,%rax,2), %r12
xorl %r13d, %r13d
movq 0x16002(%rip), %r15     # 0x32fc8
testq %rbp, %rbp
je 0x1cffa
movq %r13, %r14
shlq $0x5, %r14
xorl %ebx, %ebx
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx), %rax
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
movq %r15, %rdi
callq 0x5240
addq $0x18, %rbx
cmpq %rbx, %r12
jne 0x1cfd4
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x51d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5140
incq %r13
cmpq $0xb, %r13
jne 0x1cfc6
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x1d039
callq 0xb478
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1d048
callq 0xb478
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1d056
callq 0xb478
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1d065
callq 0xb478
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4, %edi
callq 0x5100
movl $0xb, (%rax)
movq 0x15f02(%rip), %rsi     # 0x32f90
movq %rax, %rdi
xorl %edx, %edx
callq 0x5300
jmp 0x1d21d
movq %rax, %r15
jmp 0x1d23e
jmp 0x1d0af
movq %rax, %r15
jmp 0x1d22f
movq %rax, %r15
jmp 0x1d24c
jmp 0x1d21d
movq %rax, %r15
jmp 0x1d116
movq %rax, %r15
leaq 0x20(%rsp), %rdi
callq 0xc796
jmp 0x1d0d3
movq %rax, %r15
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x1d0fa
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0x1d0fa
movq %rax, %r15
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1d116
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x1d1c8
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0x1d1c8
movq %rax, %r15
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x1d1af
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0x1d1af
movq %rax, %r15
jmp 0x1d185
jmp 0x1d21d
movq %rax, %r15
leaq 0x20(%rsp), %rdi
callq 0xc796
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x1d1f0
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0x1d1f0
movq %rax, %r15
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1d220
movq 0x30(%rsp), %rsi
jmp 0x1d20d
movq %rax, %r15
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x1d220
movq 0xe8(%rsp), %rsi
jmp 0x1d20d
jmp 0x1d21d
jmp 0x1d21d
jmp 0x1d21d
movq %rax, %r15
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x1d220
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0x1d220
jmp 0x1d21d
jmp 0x1d21d
jmp 0x1d21d
movq %rax, %r15
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x1d22f
callq 0xb478
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1d23e
callq 0xb478
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1d24c
callq 0xb478
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1d25b
callq 0xb478
movq %r15, %rdi
callq 0x5320
nop