// File: MichaelXanth[P]RPG_Game/Game/Game.cpp
// Function: Game::DisplayActions(unsigned int const&, bool)
void Game::DisplayActions(const unsigned int& arrow, bool inventoryActions)
{
    if (!inventoryActions && arrow == 0)
        cout << "\033[1;33m~> Attack\033[0m                        " << endl;
    else if (!inventoryActions)
        cout << "   Attack                        " << endl;

    if (!inventoryActions && arrow == 1)
        cout << "\033[1;33m~> Use Spell\033[0m                        " << endl;
    else if (!inventoryActions)
        cout << "   Use Spell                        " << endl;

    if ((!inventoryActions && arrow == 2) || (inventoryActions && arrow == 0))
        cout << "\033[1;33m~> Change Armor\033[0m                        " << endl;
    else
        cout << "   Change Armor                        " << endl;

    if ((!inventoryActions && arrow == 3) || (inventoryActions && arrow == 1))
        cout << "\033[1;33m~> Change Weapon\033[0m                        " << endl;
    else
        cout << "   Change Weapon                        " << endl;

    if ((!inventoryActions && arrow == 4) || (inventoryActions && arrow == 2))
        cout << "\033[1;33m~> Drink Potion\033[0m                        " << endl;
    else
        cout << "   Drink Potion                        " << endl;
    cout << "                                           " << endl;
    cout << "                                           \n\033[2A";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x181fa
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x181fa
movq 0x35deb(%rip), %rdi     # 0x4dfc8
leaq 0x25444(%rip), %rsi     # 0x3d628
callq 0x4260
movq %rax, %rdi
movq 0x35dc5(%rip), %rsi     # 0x4dfb8
callq 0x4290
jmp 0x18224
testb $0x1, -0x11(%rbp)
jne 0x18222
movq 0x35dc1(%rip), %rdi     # 0x4dfc8
leaq 0x25447(%rip), %rsi     # 0x3d655
callq 0x4260
movq %rax, %rdi
movq 0x35d9b(%rip), %rsi     # 0x4dfb8
callq 0x4290
jmp 0x18224
testb $0x1, -0x11(%rbp)
jne 0x18257
movq -0x10(%rbp), %rax
cmpl $0x1, (%rax)
jne 0x18257
movq 0x35d8e(%rip), %rdi     # 0x4dfc8
leaq 0x25436(%rip), %rsi     # 0x3d677
callq 0x4260
movq %rax, %rdi
movq 0x35d68(%rip), %rsi     # 0x4dfb8
callq 0x4290
jmp 0x18281
testb $0x1, -0x11(%rbp)
jne 0x1827f
movq 0x35d64(%rip), %rdi     # 0x4dfc8
leaq 0x2543c(%rip), %rsi     # 0x3d6a7
callq 0x4260
movq %rax, %rdi
movq 0x35d3e(%rip), %rsi     # 0x4dfb8
callq 0x4290
jmp 0x18281
testb $0x1, -0x11(%rbp)
jne 0x18290
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
je 0x1829f
testb $0x1, -0x11(%rbp)
je 0x182c3
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x182c3
movq 0x35d22(%rip), %rdi     # 0x4dfc8
leaq 0x2541f(%rip), %rsi     # 0x3d6cc
callq 0x4260
movq %rax, %rdi
movq 0x35cfc(%rip), %rsi     # 0x4dfb8
callq 0x4290
jmp 0x182e5
movq 0x35cfe(%rip), %rdi     # 0x4dfc8
leaq 0x2542e(%rip), %rsi     # 0x3d6ff
callq 0x4260
movq %rax, %rdi
movq 0x35cd8(%rip), %rsi     # 0x4dfb8
callq 0x4290
testb $0x1, -0x11(%rbp)
jne 0x182f4
movq -0x10(%rbp), %rax
cmpl $0x3, (%rax)
je 0x18303
testb $0x1, -0x11(%rbp)
je 0x18327
movq -0x10(%rbp), %rax
cmpl $0x1, (%rax)
jne 0x18327
movq 0x35cbe(%rip), %rdi     # 0x4dfc8
leaq 0x25416(%rip), %rsi     # 0x3d727
callq 0x4260
movq %rax, %rdi
movq 0x35c98(%rip), %rsi     # 0x4dfb8
callq 0x4290
jmp 0x18349
movq 0x35c9a(%rip), %rdi     # 0x4dfc8
leaq 0x25426(%rip), %rsi     # 0x3d75b
callq 0x4260
movq %rax, %rdi
movq 0x35c74(%rip), %rsi     # 0x4dfb8
callq 0x4290
testb $0x1, -0x11(%rbp)
jne 0x18358
movq -0x10(%rbp), %rax
cmpl $0x4, (%rax)
je 0x18367
testb $0x1, -0x11(%rbp)
je 0x1838b
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x1838b
movq 0x35c5a(%rip), %rdi     # 0x4dfc8
leaq 0x2540f(%rip), %rsi     # 0x3d784
callq 0x4260
movq %rax, %rdi
movq 0x35c34(%rip), %rsi     # 0x4dfb8
callq 0x4290
jmp 0x183ad
movq 0x35c36(%rip), %rdi     # 0x4dfc8
leaq 0x2541e(%rip), %rsi     # 0x3d7b7
callq 0x4260
movq %rax, %rdi
movq 0x35c10(%rip), %rsi     # 0x4dfb8
callq 0x4290
movq 0x35c14(%rip), %rdi     # 0x4dfc8
leaq 0x25424(%rip), %rsi     # 0x3d7df
callq 0x4260
movq %rax, %rdi
movq 0x35bee(%rip), %rsi     # 0x4dfb8
callq 0x4290
movq 0x35bf2(%rip), %rdi     # 0x4dfc8
leaq 0x2542e(%rip), %rsi     # 0x3d80b
callq 0x4260
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)