// File: venGaza[P]starwars/src/Game.cpp
// Function: Game::getPlayerName()
void Game::getPlayerName() {
    cout << "In a galaxy far far away....." << endl << endl;
    pause();
    
    cout << "You wake up in a daze from a recent blast. A man wearing a resistance uniform pulls "
         << "you from the rubble and asks for your name. You answer back: ";
    getline(cin, playerName);
    
    while (playerName == "") {
        cout << "You must be dazed from the blast. Your name is: ";
        getline(cin, playerName);
    }
    
    cout << endl << "After further examination you realize the man is Poe Dameron, a legendary "
         << "resistance pilot." << endl << endl;
    
    cout << "Poe: \"You are lucky to have survived the blast, " << playerName << ", but you better "
         << "get moving because Supreme Leader Snoke, Kylo Ren and an army of stormtroopers are "
         << "after you on this starship. As one of the last remaining Jedi in the galaxy, you are the "
         << "best chance we have at defeating the First Order. It looks like some of your equipment "
         << "landed over to the east in the reactor room. You might want to head in that direction "
         << "first before heading off to fight Kylo Ren. May the force be you " << playerName
         << "!\" (cool action music starts playing in the background)" ;
    cout << endl << endl;
    
    cout << "(You think to yourself that hopefully there is a med pod bay to use somewhere around here as you feel drained from the blast)" << endl << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq 0x94c5(%rip), %rdi      # 0x10fd0
leaq 0x3cb6(%rip), %rsi      # 0xb7c8
callq 0x31a0
movq %rax, %rdi
movq 0x949f(%rip), %rsi      # 0x10fc0
callq 0x31d0
movq %rax, %rdi
movq 0x9490(%rip), %rsi      # 0x10fc0
callq 0x31d0
movq -0x10(%rbp), %rdi
callq 0x82f0
movq 0x948b(%rip), %rdi      # 0x10fd0
leaq 0x3c9a(%rip), %rsi      # 0xb7e6
callq 0x31a0
movq %rax, %rdi
leaq 0x3ce0(%rip), %rsi      # 0xb83b
callq 0x31a0
movq -0x10(%rbp), %rsi
movq 0x9475(%rip), %rdi      # 0x10fe0
callq 0x3060
movq -0x10(%rbp), %rdi
leaq 0x35b6(%rip), %rsi      # 0xb131
callq 0x5b10
testb $0x1, %al
jne 0x7b86
jmp 0x7bab
movq 0x9443(%rip), %rdi      # 0x10fd0
leaq 0x3ce5(%rip), %rsi      # 0xb879
callq 0x31a0
movq -0x10(%rbp), %rsi
movq 0x943c(%rip), %rdi      # 0x10fe0
callq 0x3060
jmp 0x7b70
movq 0x941e(%rip), %rdi      # 0x10fd0
movq 0x9407(%rip), %rsi      # 0x10fc0
callq 0x31d0
movq %rax, %rdi
leaq 0x3ce2(%rip), %rsi      # 0xb8aa
callq 0x31a0
movq %rax, %rdi
leaq 0x3d1e(%rip), %rsi      # 0xb8f5
callq 0x31a0
movq %rax, %rdi
movq 0x93da(%rip), %rsi      # 0x10fc0
callq 0x31d0
movq %rax, %rdi
movq 0x93cb(%rip), %rsi      # 0x10fc0
callq 0x31d0
movq 0x93cf(%rip), %rdi      # 0x10fd0
leaq 0x3cff(%rip), %rsi      # 0xb907
callq 0x31a0
movq -0x10(%rbp), %rsi
movq %rax, %rdi
callq 0x3180
movq %rax, %rdi
leaq 0x3d15(%rip), %rsi      # 0xb938
callq 0x31a0
movq %rax, %rdi
leaq 0x3d18(%rip), %rsi      # 0xb94a
callq 0x31a0
movq %rax, %rdi
leaq 0x3d5d(%rip), %rsi      # 0xb99e
callq 0x31a0
movq %rax, %rdi
leaq 0x3da8(%rip), %rsi      # 0xb9f8
callq 0x31a0
movq %rax, %rdi
leaq 0x3df1(%rip), %rsi      # 0xba50
callq 0x31a0
movq %rax, %rdi
leaq 0x3e39(%rip), %rsi      # 0xbaa7
callq 0x31a0
movq -0x10(%rbp), %rsi
movq %rax, %rdi
callq 0x3180
movq %rax, %rdi
leaq 0x3e60(%rip), %rsi      # 0xbae9
callq 0x31a0
movq 0x933b(%rip), %rdi      # 0x10fd0
movq 0x9324(%rip), %rsi      # 0x10fc0
callq 0x31d0
movq %rax, %rdi
movq 0x9315(%rip), %rsi      # 0x10fc0
callq 0x31d0
movq 0x9319(%rip), %rdi      # 0x10fd0
leaq 0x3e63(%rip), %rsi      # 0xbb21
callq 0x31a0
movq %rax, %rdi
movq 0x92f3(%rip), %rsi      # 0x10fc0
callq 0x31d0
movq %rax, %rdi
movq 0x92e4(%rip), %rsi      # 0x10fc0
callq 0x31d0
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)