// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x7a7d(%rip), %r14      # 0xbfd0
leaq 0x22fe(%rip), %rsi      # 0x6858
movq %r14, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20b0
movq %rax, %rdi
callq 0x20b0
callq 0x4a22
leaq 0x22f8(%rip), %rsi      # 0x6876
movq %r14, %rdi
callq 0x2150
leaq 0x233e(%rip), %rsi      # 0x68cb
movq %rax, %rdi
callq 0x2150
movq 0x7a44(%rip), %r15      # 0xbfe0
leaq 0x1b8e(%rip), %r12      # 0x6131
leaq 0x235f(%rip), %r13      # 0x6909
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2030
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3643
testb %al, %al
je 0x45d1
movq %r14, %rdi
movq %r13, %rsi
callq 0x2150
jmp 0x45aa
movq 0x79f8(%rip), %r14      # 0xbfd0
movq %r14, %rdi
callq 0x20b0
leaq 0x2353(%rip), %rsi      # 0x693a
movq %rax, %rdi
callq 0x2150
leaq 0x238f(%rip), %rsi      # 0x6985
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20b0
movq %rax, %rdi
callq 0x20b0
leaq 0x2382(%rip), %rsi      # 0x6997
movq %r14, %rdi
callq 0x2150
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2130
leaq 0x2399(%rip), %rsi      # 0x69c8
movq %rax, %rdi
callq 0x2150
leaq 0x239c(%rip), %rsi      # 0x69da
movq %rax, %rdi
callq 0x2150
leaq 0x23e1(%rip), %rsi      # 0x6a2e
movq %rax, %rdi
callq 0x2150
leaq 0x242c(%rip), %rsi      # 0x6a88
movq %rax, %rdi
callq 0x2150
leaq 0x2475(%rip), %rsi      # 0x6ae0
movq %rax, %rdi
callq 0x2150
leaq 0x24bd(%rip), %rsi      # 0x6b37
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2130
leaq 0x24e5(%rip), %rsi      # 0x6b79
movq %rax, %rdi
callq 0x2150
movq %r14, %rdi
callq 0x20b0
movq %rax, %rdi
callq 0x20b0
leaq 0x24fe(%rip), %rsi      # 0x6bb1
movq %r14, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20b0
movq %rax, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x20b0