// File: /workspace/github_cpp_makefile_star2_O2/BohangZhang[P]Sorcery-C-Project/player.cc
// Function: Player::minion_slot_print()
void Player::minion_slot_print () {
    for (int i = 0; i < 11; i++) {
        cout << EXTERNAL_BORDER_CHAR_UP_DOWN;
        // print minion slot
        for (int j = 0; j < 5; j++) {
            if (j < slot->getSize()) {
                if (slot->getSlot()[j]->getType() == "Act_Minion") {
                    card_template_t active_m = display_minion_activated_ability(slot->getSlot()[j]->getName(), slot->getSlot()[j]->getCost(),slot->getSlot()[j]->getAttack(), slot->getSlot()[j]->getDefense(),  
                        slot->getSlot
                        ()[j]->getAbilityCost(), slot->getSlot()[j]->getEffect());
                    cout << active_m[i];
                }
                else if (slot->getSlot()[j]->getType() == "Tri_Minion") {
                    card_template_t tri_m = display_minion_triggered_ability(slot->getSlot()[j]->getName(), slot->getSlot()[j]->getCost(),slot->getSlot()[j]->getAttack(), slot->getSlot()[j]->getDefense(),     
                        slot->getSlot()[j]->getEffect());
                    cout << tri_m[i];
                }
                else if (slot->getSlot()[j]->getType() == "Enchantment") {
                    if (slot->getSlot()[j]->getOriginType() == "Act_Minion") {
                        card_template_t active_m = display_minion_activated_ability(slot->getSlot()[j]->getOriginName(), slot->getSlot()[j]->getOriginCost(),slot->getSlot()[j]->getAttack(), slot->getSlot()[j]->getDefense(),  
                            slot->getSlot()[j]->getAbilityCost(), slot->getSlot()[j]->getOriginEffect());
                        cout << active_m[i];
                    }
                    else if (slot->getSlot()[j]->getOriginType() == "Tri_Minion") {
                        card_template_t tri_m = display_minion_triggered_ability(slot->getSlot()[j]->getOriginName(), slot->getSlot()[j]->getOriginCost(),slot->getSlot()[j]->getAttack(), slot->getSlot()[j]->getDefense(),     
                            slot->getSlot()[j]->getOriginEffect());
                        cout << tri_m[i];
                    }
                    else {
                        card_template_t m = display_minion_no_ability(slot->getSlot()[j]->getOriginName(), slot->getSlot()[j]->getOriginCost(),slot->getSlot()[j]->getAttack(), slot->getSlot()[j]->getDefense());
                        cout << m[i];
                    }
                }
                else {
                    card_template_t m = display_minion_no_ability(slot->getSlot()[j]->getName(), slot->getSlot()[j]->getCost(),slot->getSlot()[j]->getAttack(), slot->getSlot()[j]->getDefense());
                    cout << m[i];
                }
            }
            else {
                cout << CARD_TEMPLATE_BORDER[i];
            }
        }
        cout << EXTERNAL_BORDER_CHAR_UP_DOWN <<endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
xorl %r14d, %r14d
leaq 0x15401(%rip), %r15     # 0x2b2e8
leaq 0x28(%rsp), %r13
movq %rdi, 0x18(%rsp)
cmpq $0xb, %r14
je 0x16687
movq 0x150c6(%rip), %rdi     # 0x2afc8
movq %r15, %rsi
callq 0x51b0
movq %r14, 0x50(%rsp)
shlq $0x5, %r14
movq %r14, 0x20(%rsp)
xorl %eax, %eax
movq $0x0, 0x48(%rsp)
cmpq $0x50, %rax
je 0x1665c
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rbx
movq 0x48(%rbx), %rdi
callq 0x1b2e6
cltq
cmpq %rax, 0x48(%rsp)
jge 0x160b1
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %r14
movq (%rax,%r14), %rsi
movq %r13, %rdi
callq 0xb3f4
movq %r13, %rdi
leaq 0x88aa(%rip), %rsi      # 0x1e81e
callq 0x8dc3
movl %eax, %ebp
movq %r13, %rdi
callq 0x5378
testb %bpl, %bpl
je 0x160d1
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq (%rax,%r14), %rsi
leaq 0x178(%rsp), %rdi
callq 0xb3e2
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
callq 0xb418
movl %eax, %r13d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movl %eax, %ebp
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movl %eax, %r15d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movl %eax, %r14d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rsi
leaq 0x158(%rsp), %rdi
callq 0xb406
leaq 0x158(%rsp), %r12
movq %r12, (%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x178(%rsp), %rbx
movq %rbx, %rsi
movl %r13d, %edx
movl %ebp, %ecx
movl %r15d, %r8d
movl %r14d, %r9d
callq 0xa49b
movq %r12, %rdi
callq 0x5378
movq %rbx, %rdi
callq 0x5378
movq 0x28(%rsp), %rsi
addq 0x20(%rsp), %rsi
movq 0x14f26(%rip), %rdi     # 0x2afc8
callq 0x51b0
leaq 0x28(%rsp), %r13
jmp 0x1644e
leaq 0x151e8(%rip), %rax     # 0x2b2a0
movq (%rax), %rsi
addq 0x20(%rsp), %rsi
movq 0x14f01(%rip), %rdi     # 0x2afc8
callq 0x51b0
jmp 0x16456
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq (%rax,%r14), %rsi
movq %r13, %rdi
callq 0xb3f4
movq %r13, %rdi
leaq 0x8736(%rip), %rsi      # 0x1e829
callq 0x8dc3
movl %eax, %ebp
movq %r13, %rdi
callq 0x5378
testb %bpl, %bpl
je 0x16202
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq (%rax,%r14), %rsi
leaq 0x138(%rsp), %rdi
callq 0xb3e2
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
callq 0xb418
movl %eax, %ebp
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movl %eax, %r15d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movl %eax, %r14d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rsi
leaq 0x118(%rsp), %rdi
callq 0xb406
movq %r13, %rdi
leaq 0x138(%rsp), %rbx
movq %rbx, %rsi
movl %ebp, %edx
movl %r15d, %ecx
movl %r14d, %r8d
leaq 0x118(%rsp), %r14
movq %r14, %r9
callq 0xa3d1
movq %r14, %rdi
callq 0x5378
movq %rbx, %rdi
callq 0x5378
movq 0x28(%rsp), %rsi
addq 0x20(%rsp), %rsi
movq 0x14dd0(%rip), %rdi     # 0x2afc8
callq 0x51b0
jmp 0x1644e
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq (%rax,%r14), %rsi
movq %r13, %rdi
callq 0xb3f4
movq %r13, %rdi
leaq 0x85b0(%rip), %rsi      # 0x1e7d4
callq 0x8dc3
movl %eax, %ebp
movq %r13, %rdi
callq 0x5378
testb %bpl, %bpl
je 0x163a0
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq (%rax,%r14), %rsi
movq (%rsi), %rax
movq %r13, %rdi
callq *0x88(%rax)
movq %r13, %rdi
leaq 0x85bc(%rip), %rsi      # 0x1e81e
callq 0x8dc3
movl %eax, %ebp
movq %r13, %rdi
callq 0x5378
testb %bpl, %bpl
je 0x16469
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq (%rax,%r14), %rsi
movq (%rsi), %rax
leaq 0xf8(%rsp), %rdi
callq *0x70(%rax)
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x80(%rax)
movl %eax, %r13d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movl %eax, %ebp
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movl %eax, %r15d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movl %eax, %r14d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rsi
movq (%rsi), %rax
leaq 0xd8(%rsp), %rdi
callq *0x78(%rax)
leaq 0xd8(%rsp), %r12
movq %r12, (%rsp)
leaq 0x28(%rsp), %rdi
leaq 0xf8(%rsp), %rbx
movq %rbx, %rsi
movl %r13d, %edx
movl %ebp, %ecx
movl %r15d, %r8d
movl %r14d, %r9d
callq 0xa49b
movq %r12, %rdi
callq 0x5378
movq %rbx, %rdi
callq 0x5378
movq 0x28(%rsp), %rsi
addq 0x20(%rsp), %rsi
movq 0x14c32(%rip), %rdi     # 0x2afc8
callq 0x51b0
jmp 0x160a7
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq (%rax,%r14), %rsi
leaq 0x58(%rsp), %rdi
callq 0xb3e2
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
callq 0xb418
movl %eax, %ebp
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movl %eax, %r14d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movq %r13, %rdi
leaq 0x58(%rsp), %rsi
movl %ebp, %edx
movl %r14d, %ecx
movl %eax, %r8d
callq 0xa040
leaq 0x58(%rsp), %rdi
callq 0x5378
movq 0x28(%rsp), %rsi
addq 0x20(%rsp), %rsi
movq 0x14b7f(%rip), %rdi     # 0x2afc8
callq 0x51b0
movq %r13, %rdi
callq 0x9dd8
incq 0x48(%rsp)
movq 0x10(%rsp), %rax
addq $0x10, %rax
jmp 0x15f23
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq (%rax,%r14), %rsi
movq (%rsi), %rax
movq %r13, %rdi
callq *0x88(%rax)
movq %r13, %rdi
leaq 0x839a(%rip), %rsi      # 0x1e829
callq 0x8dc3
movl %eax, %ebp
movq %r13, %rdi
callq 0x5378
testb %bpl, %bpl
je 0x165a4
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq (%rax,%r14), %rsi
movq (%rsi), %rax
leaq 0xb8(%rsp), %rdi
callq *0x70(%rax)
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x80(%rax)
movl %eax, %ebp
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movl %eax, %r15d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movl %eax, %r14d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rsi
movq (%rsi), %rax
leaq 0x98(%rsp), %rdi
callq *0x78(%rax)
movq %r13, %rdi
leaq 0xb8(%rsp), %rbx
movq %rbx, %rsi
movl %ebp, %edx
movl %r15d, %ecx
movl %r14d, %r8d
leaq 0x98(%rsp), %r14
movq %r14, %r9
callq 0xa3d1
movq %r14, %rdi
callq 0x5378
movq %rbx, %rdi
callq 0x5378
movq 0x28(%rsp), %rsi
addq 0x20(%rsp), %rsi
movq 0x14a2e(%rip), %rdi     # 0x2afc8
callq 0x51b0
jmp 0x1644e
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq (%rax,%r14), %rsi
movq (%rsi), %rax
leaq 0x78(%rsp), %rdi
callq *0x70(%rax)
movq 0x48(%rbx), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x80(%rax)
movl %eax, %ebp
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movl %eax, %r14d
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x1b2e2
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movq %r13, %rdi
leaq 0x78(%rsp), %rsi
movl %ebp, %edx
movl %r14d, %ecx
movl %eax, %r8d
callq 0xa040
leaq 0x78(%rsp), %rdi
callq 0x5378
movq 0x28(%rsp), %rsi
addq 0x20(%rsp), %rsi
movq 0x14976(%rip), %rdi     # 0x2afc8
callq 0x51b0
jmp 0x1644e
movq 0x14965(%rip), %rdi     # 0x2afc8
leaq 0x14c7e(%rip), %r15     # 0x2b2e8
movq %r15, %rsi
callq 0x51b0
movq %rax, %rdi
callq 0x5110
movq 0x50(%rsp), %r14
incq %r14
jmp 0x15ef1
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x166f0
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x5378
jmp 0x166e6
jmp 0x166f0
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x5378
jmp 0x16714
jmp 0x166f0
jmp 0x166f0
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
jmp 0x16740
jmp 0x166f0
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
callq 0x5378
jmp 0x1672b
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
jmp 0x16740
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x9dd8
jmp 0x16745
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
callq 0x5378
jmp 0x16738
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
jmp 0x16740
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
jmp 0x16740
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
jmp 0x16740
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0x5378
movq %rbx, %rdi
callq 0x5330
nop