// File: /workspace/github_cpp_makefile_star2_O2/dnegovan[P]Intruder-On-Donnar-V/Game.cpp
// Function: Game::decrementTime()
bool Game::decrementTime()
{
    std::string temp;
	if (timeLeft > 1)
    {
		timeLeft--;

        //check if we should show hint
        if (timeTilHint > 1)
        {
            timeTilHint--;
        }
        else
        {
            printFile("hint.txt", RED, 0);
            std::cout << "\nPress enter to continue" << std::endl;
            getline(std::cin, temp);
            timeTilHint = TIME_HINT;
        }
        //keep playing
        return true;
    }
    else
    {
        if (!markNelson.incubated)
        {
    		markNelson.incubated = true;
    		std::cout << RED
                      << "\nTHE PARASITE HAS INCUBATED.  You must now kill the "
                      << "host before it \nspreads to another crew member.\n"
                      << RESET << "\nPress enter to continue" << std::endl;
            getline(std::cin, temp);
            if (!markNelson.pack.checkFor(compound))
            {
    		          objective2 =
                      "-Neutralize the parasite - FAILED";
            }
            objective3 = "-kill any infected crewMembers";
    		timeLeft = TIME_TIL_SPREAD;
    		deadline = "          TIME UNTIL NEXT CREW MEMBER IS INFECTED";
            //keep playing
            return true;
        }
    	else
        {
            //check if gameOver
            bool continueGame = parasiteSpreads();
            //if not display updates
            if (markNelson.state == UNFINISHED)
            {   //don't need to display this if the game is over
                std::cout << RED
                          << "THE PARASITE HAS SPREAD TO ANOTHER CREW MEMBER.\n"
                          << "Kill any infected to save the rest of your crew\n"
                          << RESET << "\nPress enter to continue" << std::endl
                          << std::endl;
                getline(std::cin, temp);
        		timeLeft = TIME_TIL_SPREAD;
        		objective1 =
                    "-talk to the crew to discover all imposters";
            }
            return continueGame;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
leaq -0x28(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, %rbx
movb $0x0, (%rax)
movl 0x38(%rdi), %eax
cmpl $0x2, %eax
jl 0xd181
decl %eax
movl %eax, 0x38(%rbx)
movl 0x3c(%rbx), %eax
cmpl $0x2, %eax
jl 0xd22e
decl %eax
jmp 0xd2af
cmpb $0x0, 0x28(%rbx)
je 0xd2ba
movq %rbx, %rdi
callq 0xd7b6
movl %eax, %r14d
cmpl $0x0, 0x30(%rbx)
jne 0xd395
movq 0x8e21(%rip), %rdi      # 0x15fc8
leaq 0x37f5(%rip), %rsi      # 0x109a3
callq 0x31d0
leaq 0x38e1(%rip), %rsi      # 0x10a9b
movq %rax, %rdi
callq 0x31d0
leaq 0x3903(%rip), %rsi      # 0x10acc
movq %rax, %rdi
callq 0x31d0
leaq 0x2edb(%rip), %rsi      # 0x100b3
movq %rax, %rdi
callq 0x31d0
leaq 0x37c2(%rip), %rsi      # 0x109a9
movq %rax, %rdi
callq 0x31d0
movq %rax, %rdi
callq 0x30f0
movq %rax, %rdi
callq 0x30f0
movq 0x8dd2(%rip), %rdi      # 0x15fd8
leaq -0x38(%rbp), %rsi
callq 0x3030
movl $0x4, 0x38(%rbx)
addq $0x60, %rbx
leaq 0x38dc(%rip), %rsi      # 0x10afd
movq %rbx, %rdi
callq 0x3340
jmp 0xd395
leaq 0x3765(%rip), %rsi      # 0x1099a
leaq -0x98(%rbp), %rdi
leaq -0x12(%rbp), %rdx
callq 0x30b0
leaq 0x3757(%rip), %rsi      # 0x109a3
leaq -0x78(%rbp), %rdi
leaq -0x11(%rbp), %rdx
callq 0x30b0
leaq -0x98(%rbp), %rdi
leaq -0x78(%rbp), %rsi
xorps %xmm0, %xmm0
callq 0xb8ec
leaq -0x78(%rbp), %rdi
callq 0x3368
leaq -0x98(%rbp), %rdi
callq 0x3368
movq 0x8d40(%rip), %rdi      # 0x15fc8
leaq 0x371a(%rip), %rsi      # 0x109a9
callq 0x31d0
movq %rax, %rdi
callq 0x30f0
movq 0x8d35(%rip), %rdi      # 0x15fd8
leaq -0x38(%rbp), %rsi
callq 0x3030
pushq $0xe
popq %rax
movl %eax, 0x3c(%rbx)
movb $0x1, %r14b
jmp 0xd395
movb $0x1, 0x28(%rbx)
movq 0x8d03(%rip), %rdi      # 0x15fc8
leaq 0x36d7(%rip), %rsi      # 0x109a3
callq 0x31d0
leaq 0x36ea(%rip), %rsi      # 0x109c2
movq %rax, %rdi
callq 0x31d0
leaq 0x3710(%rip), %rsi      # 0x109f7
movq %rax, %rdi
callq 0x31d0
leaq 0x2dbd(%rip), %rsi      # 0x100b3
movq %rax, %rdi
callq 0x31d0
leaq 0x36a4(%rip), %rsi      # 0x109a9
movq %rax, %rdi
callq 0x31d0
movq %rax, %rdi
callq 0x30f0
movq 0x8cbc(%rip), %rdi      # 0x15fd8
leaq -0x38(%rbp), %rsi
callq 0x3030
leaq 0x99bc(%rip), %rsi      # 0x16ce8
leaq -0x58(%rbp), %rdi
callq 0x3250
leaq -0x58(%rbp), %rsi
movq %rbx, %rdi
callq 0x970a
movl %eax, %r14d
leaq -0x58(%rbp), %rdi
callq 0x3368
testb %r14b, %r14b
jne 0xd365
leaq 0x80(%rbx), %rdi
leaq 0x36c8(%rip), %rsi      # 0x10a28
callq 0x3340
leaq 0xa0(%rbx), %rdi
leaq 0x36d7(%rip), %rsi      # 0x10a4a
callq 0x3340
movl $0x4, 0x38(%rbx)
addq $0x40, %rbx
movb $0x1, %r14b
leaq 0x36dc(%rip), %rsi      # 0x10a69
movq %rbx, %rdi
callq 0x3340
leaq -0x38(%rbp), %rdi
callq 0x3368
movl %r14d, %eax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
jmp 0xd3ce
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x3368
jmp 0xd3c7
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x3368
jmp 0xd3dc
jmp 0xd3d9
jmp 0xd3d9
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x3368
movq %rbx, %rdi
callq 0x3300
nop