// File: /workspace/github_cpp_makefile_star2_O2/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 $0x168, %rsp            # imm = 0x168
movl %esi, %ebx
leaq 0x48(%rdi), %rsi
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x1a802
movq (%r14), %rdi
callq 0x1b2e6
cmpl %ebx, %eax
jl 0x15cd5
movq 0x20(%rsp), %rdi
callq 0x1b2e2
movslq %ebx, %rbx
decq %rbx
shlq $0x4, %rbx
movq (%rax), %rsi
addq %rbx, %rsi
movq %rsp, %rdi
callq 0x8f30
movq 0x20(%rsp), %rdi
callq 0x1b2e2
addq (%rax), %rbx
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
callq 0x8f30
pushq $0x18
popq %rdi
callq 0x51f0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x1acb0
leaq 0x48(%rsp), %r15
leaq 0x128(%rsp), %r13
movq (%rsp), %rsi
movq %r15, %rdi
callq 0xb3f4
movq %r15, %rdi
leaq 0x8e8e(%rip), %rsi      # 0x1e82d
callq 0x8dc3
testb %al, %al
jne 0x15bb0
movq (%rsp), %rsi
movq %r13, %rdi
callq 0xb3f4
movq %r13, %rdi
leaq 0x8e5c(%rip), %rsi      # 0x1e81e
callq 0x8dc3
testb %al, %al
jne 0x15ba3
movq (%rsp), %rsi
leaq 0x148(%rsp), %rbx
movq %rbx, %rdi
callq 0xb3f4
movq %rbx, %rdi
leaq 0x8e3c(%rip), %rsi      # 0x1e829
callq 0x8dc3
movl %eax, %ebp
movq %rbx, %rdi
callq 0x5378
movq %r13, %rdi
callq 0x5378
movq %r15, %rdi
callq 0x5378
testb %bpl, %bpl
jne 0x15bba
movq (%rsp), %rsi
movq %r15, %rdi
callq 0xb3e2
movq %r15, %rdi
leaq 0x8f59(%rip), %rsi      # 0x1e984
callq 0x8dc3
movl %eax, %ebp
movq %r15, %rdi
callq 0x5378
movq 0x10(%rsp), %r14
testb %bpl, %bpl
je 0x15b13
movq (%rsp), %rsi
leaq 0xc8(%rsp), %rdi
callq 0xb3e2
movq (%rsp), %rdi
callq 0xb418
movl %eax, %ebp
movq (%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0xb406
leaq 0x88(%rsp), %rdi
leaq 0x907c(%rip), %r12      # 0x1eb00
movq %r12, %rsi
movq %r13, %rdx
callq 0x8d88
leaq 0x108(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
leaq 0x148(%rsp), %rdx
callq 0x8d88
movq %r15, %rdi
leaq 0xc8(%rsp), %rsi
movl %ebp, %edx
leaq 0xa8(%rsp), %rcx
leaq 0x88(%rsp), %r8
movq %rbx, %r9
callq 0xad0a
movq %r14, %rdi
movq %r15, %rsi
callq 0x1ad68
movq %r15, %rdi
callq 0x9dd8
leaq 0x108(%rsp), %rdi
callq 0x5378
leaq 0x88(%rsp), %rdi
callq 0x5378
leaq 0xa8(%rsp), %rdi
callq 0x5378
leaq 0xc8(%rsp), %rdi
jmp 0x15b77
movq (%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0xb3e2
movq (%rsp), %rdi
callq 0xb418
leaq 0xe8(%rsp), %rbx
movl %eax, %ebp
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0xb406
movq %r15, %rdi
leaq 0x68(%rsp), %rsi
movl %ebp, %edx
movq %rbx, %rcx
callq 0xaa2a
movq %r14, %rdi
movq %r15, %rsi
callq 0x1ad68
movq %r15, %rdi
callq 0x9dd8
leaq 0xe8(%rsp), %rdi
callq 0x5378
leaq 0x68(%rsp), %rdi
callq 0x5378
movq (%rsp), %rsi
movq (%rsi), %rax
movq %r15, %rdi
callq *0x68(%rax)
movq %rsp, %rdi
movq %r15, %rsi
callq 0xe1ca
leaq 0x50(%rsp), %rdi
callq 0x8ea0
jmp 0x15989
leaq 0x128(%rsp), %rdi
callq 0x5378
leaq 0x48(%rsp), %rdi
callq 0x5378
movq 0x38(%rsp), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq 0x10(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
je 0x15c9b
cqto
pushq $0x18
popq %rcx
idivq %rcx
pushq $0x5
popq %rcx
xorl %edx, %edx
divq %rcx
movq %rax, %r14
movq %rdx, 0x30(%rsp)
xorl %r12d, %r12d
testl %r14d, %r14d
cmovlel %r12d, %r14d
movq 0x153c8(%rip), %r15     # 0x2afc8
cmpl %r14d, %r12d
je 0x15c4c
xorl %r13d, %r13d
cmpq $0xb, %r13
je 0x15c47
movq %r13, %rbp
shlq $0x5, %rbp
xorl %ebx, %ebx
cmpq $0x78, %rbx
je 0x15c3a
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx), %rsi
addq %rbp, %rsi
movq %r15, %rdi
callq 0x51b0
addq $0x18, %rbx
jmp 0x15c17
movq %r15, %rdi
callq 0x5110
incq %r13
jmp 0x15c08
incl %r12d
jmp 0x15c00
xorl %r15d, %r15d
movq 0x15372(%rip), %r14     # 0x2afc8
cmpq $0xb, %r15
je 0x15c9b
movq %r15, %r12
shlq $0x5, %r12
xorl %r13d, %r13d
movq 0x30(%rsp), %rbp
subq $0x1, %rbp
jb 0x15c8e
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13), %rsi
addq %r12, %rsi
movq %r14, %rdi
callq 0x51b0
addq $0x18, %r13
jmp 0x15c6b
movq %r14, %rdi
callq 0x5110
incq %r15
jmp 0x15c56
leaq 0x18(%rsp), %rdi
callq 0x8ea0
leaq 0x40(%rsp), %rdi
callq 0x8ea0
leaq 0x8(%rsp), %rdi
callq 0x8ea0
leaq 0x28(%rsp), %rdi
callq 0x8ea0
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x4
popq %rdi
callq 0x5120
movl $0xb, (%rax)
movq 0x152b6(%rip), %rsi     # 0x2afa0
movq %rax, %rdi
xorl %edx, %edx
callq 0x5310
jmp 0x15dc1
movq %rax, %rbx
jmp 0x15dd8
jmp 0x15d0b
movq %rax, %rbx
jmp 0x15dce
movq %rax, %rbx
jmp 0x15de2
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x9dd8
jmp 0x15d25
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
callq 0x5378
jmp 0x15d37
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x5378
jmp 0x15d49
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x5378
jmp 0x15d82
jmp 0x15dc1
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x9dd8
jmp 0x15d6c
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x5378
jmp 0x15d91
jmp 0x15dc1
jmp 0x15dc1
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
jmp 0x15db2
jmp 0x15dc1
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x15db2
movq %rax, %rbx
leaq 0x128(%rsp), %rdi
callq 0x5378
jmp 0x15dad
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x5378
jmp 0x15dc4
jmp 0x15dc1
jmp 0x15dc1
jmp 0x15dc1
jmp 0x15dc1
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x8ea0
leaq 0x40(%rsp), %rdi
callq 0x8ea0
leaq 0x8(%rsp), %rdi
callq 0x8ea0
leaq 0x28(%rsp), %rdi
callq 0x8ea0
movq %rbx, %rdi
callq 0x5330