// File: /workspace/github_cpp_makefile_star2_O1/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 0xff90(%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 0xa2a3(%rip), %rsi      # 0xf362
leaq 0xa8(%rsp), %rdi
movq %r12, %rdx
callq 0x6696
leaq 0xa291(%rip), %rsi      # 0xf367
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 0x510a
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x5111
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 0x514a
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 0x687c
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x687c
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0xa217(%rip), %rdx      # 0xf3b8
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 0x4a84
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x51df
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x51f6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x5213
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x70(%r14), %rdi
leaq 0xa172(%rip), %rsi      # 0xf390
callq 0x20c0
testl %eax, %eax
je 0x5262
leaq 0xa18b(%rip), %rsi      # 0xf3b9
leaq 0x28(%rsp), %rdi
callq 0x20c0
testl %eax, %eax
jne 0x524a
movq 0x90(%r14), %rdi
xorl %esi, %esi
callq 0xa6c2
movq 0x8(%rbx), %rdx
leaq 0xa163(%rip), %rcx      # 0xf3b8
movq %rbx, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x2320
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5279
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5294
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 0x52c5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x52c5
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x52e1
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x52e1
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x5326
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x5326
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x533d
movq 0xb8(%rsp), %rsi
jmp 0x5335
movq %rax, %rbx
jmp 0x533d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x533d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5358
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x2390