// File: /workspace/github_cpp_makefile_star2_O3/sagardoshi[P]NegotiationsEncounter/src/GameMaster.cpp
// Function: GameMaster::setUInput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void GameMaster::setUInput(string prompt, string goal1, string goal2) {

    // Simplify goals
    lower(goal1);
    lower(goal2);
    removeWS(goal1);
    removeWS(goal2);

    string output = "\n";
    createTitle('=', WIDTH, prompt, output);
    fillCleanUInput();
    if (uInput == "quit") return; // For every new entry, check for quit

    // Only worry about invalidity if goals not empty
    if (goal1 != "" || goal2 != "") {
        // Must remove situation of XOR, or else empty inputs will be accepted
        if (goal1 == "" && goal2 != "") goal1 = goal2;
        if (goal1 != "" && goal2 == "") goal2 = goal1;

        // Then if wrong input, note invalidity, and re-print prompt
        while (uInput != goal1 && uInput != goal2) {
            clearScreen();
            cout << "\nInvalid input. Try again.\n\n\n";
            output = ""; // Reset output
            createTitle('=', WIDTH, prompt, output);
            fillCleanUInput();
            if (uInput == "quit") return; // For every new entry, check for quit
        }
    }
    clearScreen();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rdx, %rsi
callq 0x4f58
movq %r14, %rsi
callq 0x4f58
movq (%r15), %rdi
movq 0x8(%r15), %rsi
addq %rdi, %rsi
movb $0x20, %al
movq %rsp, %r13
movb %al, (%r13)
movq %r13, %rdx
callq 0x757f
movq %rax, %rcx
subq (%r15), %rcx
movq %rcx, 0x8(%r15)
xorl %ebp, %ebp
movb %bpl, (%rax)
movq (%r14), %rdi
movq 0x8(%r14), %rsi
addq %rdi, %rsi
movb $0x20, %al
movb %al, (%r13)
movq %rsp, %rdx
callq 0x757f
movq %rax, %rcx
subq (%r14), %rcx
movq %rcx, 0x8(%r14)
movb %bpl, (%rax)
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xa8b8(%rip), %rsi      # 0xf3fb
leaq 0xa8b2(%rip), %rdx      # 0xf3fc
movq %rsp, %rdi
callq 0x290e
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq %r12, 0x20(%rsp)
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x6a38
leaq 0x48(%rsp), %rcx
movq %rsp, %r8
movq %rbx, %rdi
movl $0x3d, %esi
movl $0x1, %r9d
callq 0x3992
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x4ba8
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x4fc4
leaq 0x70(%rbx), %r13
leaq 0xa819(%rip), %rsi      # 0xf3d4
movq %r13, %rdi
callq 0x20c0
testl %eax, %eax
je 0x4d5e
leaq 0xa82a(%rip), %rsi      # 0xf3fc
movq %r15, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x4bf5
leaq 0xa817(%rip), %rsi      # 0xf3fc
movq %r14, %rdi
callq 0x20c0
testl %eax, %eax
je 0x4d56
leaq 0xa800(%rip), %rsi      # 0xf3fc
movq %r15, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x4c26
leaq 0xa7ed(%rip), %rsi      # 0xf3fc
movq %r14, %rdi
callq 0x20c0
testl %eax, %eax
je 0x4c26
movq %r15, %rdi
movq %r14, %rsi
callq 0x2140
leaq 0xa7cf(%rip), %rsi      # 0xf3fc
movq %r15, %rdi
callq 0x20c0
testl %eax, %eax
je 0x4c57
leaq 0xa7bc(%rip), %rsi      # 0xf3fc
movq %r14, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x4c57
movq %r14, %rdi
movq %r15, %rsi
callq 0x2140
leaq 0x38(%rsp), %r12
movq 0x78(%rbx), %rbp
cmpq 0x8(%r15), %rbp
jne 0x4c86
testq %rbp, %rbp
je 0x4d56
movq (%r15), %rsi
movq (%r13), %rdi
movq %rbp, %rdx
callq 0x2220
testl %eax, %eax
je 0x4d56
cmpq 0x8(%r14), %rbp
jne 0x4cac
testq %rbp, %rbp
je 0x4d56
movq (%r14), %rsi
movq (%r13), %rdi
movq %rbp, %rdx
callq 0x2220
testl %eax, %eax
je 0x4d56
movq %rbx, %rdi
callq 0x3c72
movl $0x1d, %edx
movq 0x10310(%rip), %rdi     # 0x14fd0
leaq 0xa718(%rip), %rsi      # 0xf3df
callq 0x2260
movq 0x8(%rsp), %rdx
movq %rsp, %rdi
xorl %esi, %esi
leaq 0xa71f(%rip), %rcx      # 0xf3fc
xorl %r8d, %r8d
callq 0x2320
movq %r12, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x6a38
movq %rbx, %rdi
movl $0x3d, %esi
leaq 0x28(%rsp), %rcx
movq %rsp, %r8
movl $0x1, %r9d
callq 0x3992
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d35
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x4fc4
movq %r13, %rdi
leaq 0xa68d(%rip), %rsi      # 0xf3d4
callq 0x20c0
testl %eax, %eax
jne 0x4c5c
jmp 0x4d5e
movq %rbx, %rdi
callq 0x3c72
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4d79
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x4dbd
movq 0x58(%rsp), %rsi
jmp 0x4db0
jmp 0x4dba
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x4dbd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x4dbd
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4dd8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x2390