// File: /workspace/github_cpp_makefile_star2_O3/sagardoshi[P]NegotiationsEncounter/src/GameMaster.cpp
// Function: GameMaster::handleSpecificInput(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::handleSpecificInput(string line, string &output) {
    cout << output << endl << endl; // Flush output thus far

    const int ASTERISKS_NEEDED = 3;
    int newLength = line.length() - ASTERISKS_NEEDED - ASTERISKS_NEEDED;

    string targetInput = line.substr(ASTERISKS_NEEDED, newLength);
    string prompt = "Type \"" + targetInput + "\"";

    setUInput(prompt, targetInput);
    if (uInput == "quit") return; // For every new entry, check for quit

    // Once inventory typed, display it
    if (targetInput == "inventory") player->printInv();

    output = ""; // Reset output
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
movq 0xff5a(%rip), %rdi      # 0x14fd0
callq 0x2260
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2170
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2170
movl 0x8(%r15), %eax
addl $-0x6, %eax
movslq %eax, %rcx
leaq 0x28(%rsp), %r12
movl $0x3, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x2230
leaq 0xa2b1(%rip), %rsi      # 0xf3a6
leaq 0xa8(%rsp), %rdi
movq %r12, %rdx
callq 0x6852
leaq 0xa29f(%rip), %rsi      # 0xf3ab
leaq 0xa8(%rsp), %rdi
callq 0x23d0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5140
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x5147
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5180
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x6a38
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x6a38
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0xa225(%rip), %rdx      # 0xf3fc
leaq 0x48(%rsp), %rdi
movq %rdx, %rsi
callq 0x290e
leaq 0x88(%rsp), %rsi
leaq 0x68(%rsp), %rdx
leaq 0x48(%rsp), %rcx
movq %r14, %rdi
callq 0x4aba
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5215
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x522c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x5249
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x70(%r14), %rdi
leaq 0xa180(%rip), %rsi      # 0xf3d4
callq 0x20c0
testl %eax, %eax
je 0x5298
leaq 0xa199(%rip), %rsi      # 0xf3fd
leaq 0x28(%rsp), %rdi
callq 0x20c0
testl %eax, %eax
jne 0x5280
movq 0x90(%r14), %rdi
xorl %esi, %esi
callq 0xa7ee
movq 0x8(%rbx), %rdx
leaq 0xa171(%rip), %rcx      # 0xf3fc
movq %rbx, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x2320
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x52af
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x52ca
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x52fb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x52fb
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x5317
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x5317
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x535c
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x535c
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5373
movq 0xb8(%rsp), %rsi
jmp 0x536b
movq %rax, %rbx
jmp 0x5373
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5373
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x538e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x2390