// File: /workspace/github_cpp_makefile_star2_O1/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 0x4f22
movq %r14, %rsi
callq 0x4f22
movq (%r15), %rdi
movq 0x8(%r15), %rsi
addq %rdi, %rsi
movb $0x20, %al
movq %rsp, %r13
movb %al, (%r13)
movq %r13, %rdx
callq 0x7429
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 0x7429
movq %rax, %rcx
subq (%r14), %rcx
movq %rcx, 0x8(%r14)
movb %bpl, (%rax)
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xa8aa(%rip), %rsi      # 0xf3b7
leaq 0xa8a4(%rip), %rdx      # 0xf3b8
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 0x687c
leaq 0x48(%rsp), %rcx
movq %rsp, %r8
movq %rbx, %rdi
movl $0x3d, %esi
movl $0x1, %r9d
callq 0x3944
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x4b72
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x4f8e
leaq 0x70(%rbx), %r13
leaq 0xa80b(%rip), %rsi      # 0xf390
movq %r13, %rdi
callq 0x20c0
testl %eax, %eax
je 0x4d28
leaq 0xa81c(%rip), %rsi      # 0xf3b8
movq %r15, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x4bbf
leaq 0xa809(%rip), %rsi      # 0xf3b8
movq %r14, %rdi
callq 0x20c0
testl %eax, %eax
je 0x4d20
leaq 0xa7f2(%rip), %rsi      # 0xf3b8
movq %r15, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x4bf0
leaq 0xa7df(%rip), %rsi      # 0xf3b8
movq %r14, %rdi
callq 0x20c0
testl %eax, %eax
je 0x4bf0
movq %r15, %rdi
movq %r14, %rsi
callq 0x2140
leaq 0xa7c1(%rip), %rsi      # 0xf3b8
movq %r15, %rdi
callq 0x20c0
testl %eax, %eax
je 0x4c21
leaq 0xa7ae(%rip), %rsi      # 0xf3b8
movq %r14, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x4c21
movq %r14, %rdi
movq %r15, %rsi
callq 0x2140
leaq 0x38(%rsp), %r12
movq 0x78(%rbx), %rbp
cmpq 0x8(%r15), %rbp
jne 0x4c50
testq %rbp, %rbp
je 0x4d20
movq (%r15), %rsi
movq (%r13), %rdi
movq %rbp, %rdx
callq 0x2220
testl %eax, %eax
je 0x4d20
cmpq 0x8(%r14), %rbp
jne 0x4c76
testq %rbp, %rbp
je 0x4d20
movq (%r14), %rsi
movq (%r13), %rdi
movq %rbp, %rdx
callq 0x2220
testl %eax, %eax
je 0x4d20
movq %rbx, %rdi
callq 0x3c2a
movl $0x1d, %edx
movq 0x10346(%rip), %rdi     # 0x14fd0
leaq 0xa70a(%rip), %rsi      # 0xf39b
callq 0x2260
movq 0x8(%rsp), %rdx
movq %rsp, %rdi
xorl %esi, %esi
leaq 0xa711(%rip), %rcx      # 0xf3b8
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 0x687c
movq %rbx, %rdi
movl $0x3d, %esi
leaq 0x28(%rsp), %rcx
movq %rsp, %r8
movl $0x1, %r9d
callq 0x3944
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x4cff
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x4f8e
movq %r13, %rdi
leaq 0xa67f(%rip), %rsi      # 0xf390
callq 0x20c0
testl %eax, %eax
jne 0x4c26
jmp 0x4d28
movq %rbx, %rdi
callq 0x3c2a
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4d43
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 0x4d87
movq 0x58(%rsp), %rsi
jmp 0x4d7a
jmp 0x4d84
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d87
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x4d87
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4da2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x2390