// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movb 0x68(%rsi), %bpl
movq 0x8fec(%rip), %rdi      # 0xbfd0
leaq 0x322f(%rip), %rsi      # 0x621a
callq 0x2150
cmpb $0x1, %bpl
jne 0x3054
callq 0x50e8
leaq 0x4(%rsp), %r15
movl %eax, (%r15)
pushq $0x1
popq %rsi
pushq $0x7
popq %rdx
movq %r15, %rdi
callq 0x3650
movq 0x8fb8(%rip), %rdi      # 0xbfd0
callq 0x20b0
movl (%r15), %eax
decl %eax
cmpl $0x5, %eax
ja 0x319d
leaq 0x337e(%rip), %rcx      # 0x63b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x3201(%rip), %rsi      # 0x6243
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
callq 0x50e8
leaq 0x4(%rsp), %r14
movl %eax, (%r14)
pushq $0x1
popq %rsi
pushq $0x6
popq %rdx
movq %r14, %rdi
callq 0x3650
movq 0x8f5a(%rip), %rdi      # 0xbfd0
callq 0x20b0
movl (%r14), %eax
decl %eax
cmpl $0x4, %eax
ja 0x3116
leaq 0x330c(%rip), %rcx      # 0x639c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x31a3(%rip), %rsi      # 0x6243
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
leaq 0x319b(%rip), %rsi      # 0x6254
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
leaq 0x317c(%rip), %rsi      # 0x624e
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
leaq 0x3424(%rip), %rsi      # 0x650f
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
leaq 0x3145(%rip), %rsi      # 0x6249
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
leaq 0x313d(%rip), %rsi      # 0x625a
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
leaq 0x311e(%rip), %rsi      # 0x6254
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
leaq 0x3102(%rip), %rsi      # 0x624e
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
leaq 0x33ad(%rip), %rsi      # 0x650f
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
leaq 0x30d1(%rip), %rsi      # 0x6249
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
leaq 0x30cc(%rip), %rsi      # 0x625a
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
jmp 0x31b6
movb $0x0, 0x68(%r14)
leaq 0x336b(%rip), %rsi      # 0x6514
leaq 0x3(%rsp), %rdx
movq %rbx, %rdi
callq 0x2968
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x31dc
jmp 0x31dc
jmp 0x31dc
jmp 0x31dc
jmp 0x31dc
jmp 0x31dc
jmp 0x31dc
jmp 0x31dc
jmp 0x31dc
jmp 0x31dc
jmp 0x31dc
jmp 0x31dc
movq %rax, %rdi
callq 0x2230