// File: /workspace/github_cpp_makefile_star2_O3/dnegovan[P]Intruder-On-Donnar-V/Space.cpp
// Function: Space::administerCompound(Player&)
bool Space::administerCompound(Player& markNelson)
{
    std::cout << NARRATOR_COLOR
              << "Telling " << occupant->getName() << " that it's just a routine "
              "vaccine for something the crew \nmight have been exposed to on the "
              "planet, you inject the \ncompound into the side of ";

    if (occupant->getName().compare("Holly") == 0 ||
        occupant->getName().compare("Penny") == 0)
    {
        std::cout << "her neck.\n";
    }
    else
    {
        std::cout << "his neck.\n";
    }

    wait(MED);
    std::cout << std::endl;
    wait(MED);
    std::cout << std::endl;

    markNelson.pack.removeItem(compound);
    std::cout << RED;
	if (markNelson.incubated && occupant->getInfected())
    {
    	std::cout << occupant->getName() << " is unaffected. The compound is "
                  "useless because the parasite has \nincubated.\nYou'll need to "
                  " kill " << occupant->getName() << " and any other hosts "
                  "to prevent the \nparasite spreading further." << std::endl;
    }
    if (occupant->getInfected() == false)
    {
		markNelson.injectedWrong = true;
		occupant->setAlive(false);
        std::cout << occupant->getName() << " is not infected, and therefore "
                  "dies quickly and horribly before \nyour eyes.  You've wasted "
                  "the compound and must now kill \nany remaining hosts to save "
                  "the rest of the crew." << std::endl;
    }
    std::cout << RESET;

    //base can't trigger game ending, always true
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x6e58(%rip), %r15      # 0x1bfc8
leaq 0xf1c(%rip), %rsi       # 0x16093
movl $0x5, %edx
movq %r15, %rdi
callq 0x3210
leaq 0x2389(%rip), %rsi      # 0x17514
movl $0x8, %edx
movq %r15, %rdi
callq 0x3210
movq 0x8(%rbx), %rsi
leaq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0xeac0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x3210
leaq 0x235d(%rip), %rsi      # 0x1751d
movl $0x8e, %edx
movq %rax, %rdi
callq 0x3210
leaq -0x38(%rbp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x151df
callq 0x31c0
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0xeac0
leaq 0x1087(%rip), %rsi      # 0x16279
movq %r12, %rdi
callq 0x3070
testl %eax, %eax
je 0x1524e
movq 0x8(%rbx), %rsi
leaq -0x68(%rbp), %rdi
callq 0xeac0
leaq 0xe74(%rip), %rsi       # 0x16086
leaq -0x68(%rbp), %r13
movq %r13, %rdi
callq 0x3070
movl %eax, %r12d
movq (%r13), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x15233
callq 0x31c0
testl %r12d, %r12d
leaq 0x236f(%rip), %rax      # 0x175ac
leaq 0x2373(%rip), %r12      # 0x175b7
cmoveq %rax, %r12
leaq -0x38(%rbp), %r13
jmp 0x15255
leaq 0x2357(%rip), %r12      # 0x175ac
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x15263
callq 0x31c0
movl $0xa, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x3210
movsd 0x1195(%rip), %xmm0     # 0x16410
callq 0x10960
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3140
movsd 0x1161(%rip), %xmm0     # 0x16410
callq 0x10960
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3140
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x885d(%rip), %rsi      # 0x1db48
movq 0x885e(%rip), %rdx      # 0x1db50
addq %rsi, %rdx
leaq -0x88(%rbp), %r15
movq %r15, %rdi
callq 0xd7ca
movq %r14, %rdi
movq %r15, %rsi
callq 0xd6ac
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x15320
callq 0x31c0
movq 0x6ca1(%rip), %rdi      # 0x1bfc8
leaq 0x1695(%rip), %rsi      # 0x169c3
movl $0x5, %edx
callq 0x3210
cmpb $0x1, 0x28(%r14)
jne 0x15409
movq 0x8(%rbx), %rdi
callq 0xeb0c
testb %al, %al
je 0x15409
movq 0x8(%rbx), %rsi
leaq -0x48(%rbp), %r15
movq %r15, %rdi
callq 0xeac0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq 0x6c56(%rip), %rdi      # 0x1bfc8
callq 0x3210
movq %rax, %r15
leaq 0x2241(%rip), %rsi      # 0x175c2
movl $0x62, %edx
movq %rax, %rdi
callq 0x3210
movq 0x8(%rbx), %rsi
leaq -0x68(%rbp), %rdi
callq 0xeac0
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r15, %rdi
callq 0x3210
movq %rax, %r15
leaq 0x2270(%rip), %rsi      # 0x17625
movl $0x40, %edx
movq %rax, %rdi
callq 0x3210
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3140
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x153fb
callq 0x31c0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x15409
callq 0x31c0
movq 0x8(%rbx), %rdi
callq 0xeb0c
testb %al, %al
jne 0x15495
movb $0x1, 0x18(%r14)
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0xeaee
movq 0x8(%rbx), %rsi
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0xeac0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x6b84(%rip), %rdi      # 0x1bfc8
callq 0x3210
movq %rax, %rbx
leaq 0x2213(%rip), %rsi      # 0x17666
movl $0xad, %edx
movq %rax, %rdi
callq 0x3210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3140
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x15495
callq 0x31c0
movq 0x6b2c(%rip), %rdi      # 0x1bfc8
leaq 0xc0b(%rip), %rsi       # 0x160ae
movl $0x4, %edx
callq 0x3210
movb $0x1, %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15509
jmp 0x15509
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
jmp 0x15502
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
jne 0x15515
jmp 0x1551a
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1550c
callq 0x31c0
jmp 0x1550c
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x15515
jmp 0x1551a
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x1551a
callq 0x31c0
movq %rbx, %rdi
callq 0x3320