// File: /workspace/github_cpp_makefile_star2_O3/venGaza[P]starwars/src/CoreReactor.cpp
// Function: CoreReactor::getChoice[abi:cxx11]()
string CoreReactor::getChoice() {
    if (lightsaberAvail) {
        cout << "Please select a choice (enter integer): ";
        int choice = getInteger();
        validate(choice, 1, 7);
        cout << endl;
        
        if (choice == 1) {
            return "north";
        } else if (choice == 2) {
            return "east";
        } else if (choice == 3) {
            return "south";
        } else if (choice == 4) {
            return "west";
        } else if (choice == 5){
            return "items";
        } else if (choice == 6) {
            return "look";
        } else {
            lightsaberAvail = false;
            return "lightsaber";
        }
    } else {
        cout << "Please select a choice (enter integer): ";
        int choice = getInteger();
        validate(choice, 1, 6);
        cout << endl;
        
        if (choice == 1) {
            return "north";
        } else if (choice == 2) {
            return "east";
        } else if (choice == 3) {
            return "south";
        } else if (choice == 4) {
            return "west";
        } else if (choice == 5){
            return "items";
        } else {
            return "look";
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movb 0x68(%rsi), %bpl
movq 0xaae3(%rip), %r14      # 0xdfd0
leaq 0x4d26(%rip), %rsi      # 0x821a
movl $0x28, %edx
movq %r14, %rdi
callq 0x2160
cmpb $0x1, %bpl
jne 0x3593
callq 0x678c
leaq 0xc(%rsp), %r12
movl %eax, (%r12)
movq %r12, %rdi
movl $0x1, %esi
movl $0x7, %edx
callq 0x3d90
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movl (%r12), %eax
decl %eax
cmpl $0x5, %eax
ja 0x373e
leaq 0x4e48(%rip), %rcx      # 0x83b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x4cc4(%rip), %rsi      # 0x8243
leaq 0x4cc2(%rip), %rdx      # 0x8248
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
callq 0x678c
leaq 0x8(%rsp), %r15
movl %eax, (%r15)
movq %r15, %rdi
movl $0x1, %esi
movl $0x6, %edx
callq 0x3d90
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movl (%r15), %eax
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
decl %eax
cmpl $0x4, %eax
ja 0x3685
leaq 0x4da7(%rip), %rcx      # 0x839c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x4c3e(%rip), %rsi      # 0x8243
leaq 0x4c3c(%rip), %rdx      # 0x8248
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
leaq 0x4c34(%rip), %rsi      # 0x8254
leaq 0x4c32(%rip), %rdx      # 0x8259
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
leaq 0x4c13(%rip), %rsi      # 0x824e
leaq 0x4c11(%rip), %rdx      # 0x8253
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
leaq 0x4eb9(%rip), %rsi      # 0x850f
leaq 0x4eb6(%rip), %rdx      # 0x8513
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
leaq 0x4bd8(%rip), %rsi      # 0x8249
leaq 0x4bd5(%rip), %rdx      # 0x824d
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
leaq 0x4bce(%rip), %rsi      # 0x825a
leaq 0x4bcb(%rip), %rdx      # 0x825e
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x4ba6(%rip), %rsi      # 0x8254
leaq 0x4ba4(%rip), %rdx      # 0x8259
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x4b7e(%rip), %rsi      # 0x824e
leaq 0x4b7c(%rip), %rdx      # 0x8253
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x4e20(%rip), %rsi      # 0x850f
leaq 0x4e1d(%rip), %rdx      # 0x8513
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x4b3b(%rip), %rsi      # 0x8249
leaq 0x4b38(%rip), %rdx      # 0x824d
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x4b2d(%rip), %rsi      # 0x825a
leaq 0x4b2a(%rip), %rdx      # 0x825e
movq %rbx, %rdi
callq 0x2b74
jmp 0x3760
movb $0x0, 0x68(%r15)
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x4dc3(%rip), %rsi      # 0x8514
leaq 0x4dc6(%rip), %rdx      # 0x851e
movq %rbx, %rdi
callq 0x2b74
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3788
jmp 0x3788
jmp 0x3788
jmp 0x3788
jmp 0x3788
jmp 0x3788
jmp 0x3788
jmp 0x3788
jmp 0x3788
jmp 0x3788
jmp 0x3788
jmp 0x3788
movq %rax, %rdi
callq 0x2220