// File: /workspace/github_cpp_makefile_star2_O1/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 $0x88, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x6c0f(%rip), %r15      # 0x1bfc8
leaq 0xcd3(%rip), %rsi       # 0x16093
movl $0x5, %edx
movq %r15, %rdi
callq 0x3210
leaq 0x2140(%rip), %rsi      # 0x17514
movl $0x8, %edx
movq %r15, %rdi
callq 0x3210
movq 0x8(%rbx), %rsi
leaq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0xec70
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x3210
leaq 0x2114(%rip), %rsi      # 0x1751d
movl $0x8e, %edx
movq %rax, %rdi
callq 0x3210
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15428
callq 0x31c0
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0xec70
leaq 0xe3e(%rip), %rsi       # 0x16279
movq %r12, %rdi
callq 0x3070
movl %eax, %r13d
testl %eax, %eax
je 0x15483
movq 0x8(%rbx), %rsi
leaq -0xa8(%rbp), %rdi
callq 0xec70
leaq 0xc25(%rip), %rsi       # 0x16086
leaq -0xa8(%rbp), %rdi
callq 0x3070
testl %eax, %eax
leaq 0x2136(%rip), %rax      # 0x175ac
leaq 0x213a(%rip), %r12      # 0x175b7
cmoveq %rax, %r12
jmp 0x1548a
leaq 0x2122(%rip), %r12      # 0x175ac
testl %r13d, %r13d
leaq -0x38(%rbp), %r13
je 0x154a8
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x154a8
callq 0x31c0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x154b6
callq 0x31c0
movl $0xa, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x3210
movsd 0xf42(%rip), %xmm0      # 0x16410
callq 0x10b95
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 0xf0e(%rip), %xmm0      # 0x16410
callq 0x10b95
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 0x860a(%rip), %rsi      # 0x1db48
movq 0x860b(%rip), %rdx      # 0x1db50
addq %rsi, %rdx
leaq -0x88(%rbp), %r15
movq %r15, %rdi
callq 0xd9b2
movq %r14, %rdi
movq %r15, %rsi
callq 0xd89e
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x15573
callq 0x31c0
movq 0x6a4e(%rip), %rdi      # 0x1bfc8
leaq 0x1442(%rip), %rsi      # 0x169c3
movl $0x5, %edx
callq 0x3210
cmpb $0x1, 0x28(%r14)
jne 0x1565c
movq 0x8(%rbx), %rdi
callq 0xecbc
testb %al, %al
je 0x1565c
movq 0x8(%rbx), %rsi
leaq -0x48(%rbp), %r15
movq %r15, %rdi
callq 0xec70
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq 0x6a03(%rip), %rdi      # 0x1bfc8
callq 0x3210
movq %rax, %r15
leaq 0x1fee(%rip), %rsi      # 0x175c2
movl $0x62, %edx
movq %rax, %rdi
callq 0x3210
movq 0x8(%rbx), %rsi
leaq -0x68(%rbp), %rdi
callq 0xec70
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r15, %rdi
callq 0x3210
movq %rax, %r15
leaq 0x201d(%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 0x1564e
callq 0x31c0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x1565c
callq 0x31c0
movq 0x8(%rbx), %rdi
callq 0xecbc
testb %al, %al
jne 0x156e8
movb $0x1, 0x18(%r14)
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0xec9e
movq 0x8(%rbx), %rsi
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0xec70
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x6931(%rip), %rdi      # 0x1bfc8
callq 0x3210
movq %rax, %rbx
leaq 0x1fc0(%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 0x156e8
callq 0x31c0
movq 0x68d9(%rip), %rdi      # 0x1bfc8
leaq 0x9b8(%rip), %rsi       # 0x160ae
movl $0x4, %edx
callq 0x3210
movb $0x1, %al
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15718
jmp 0x15718
movq %rax, %rbx
jmp 0x15743
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
jne 0x1575d
jmp 0x15762
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15743
callq 0x31c0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
jmp 0x15758
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15762
callq 0x31c0
movq %rbx, %rdi
callq 0x3320
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
jne 0x1575d
jmp 0x15762