// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movl 0x38(%rdi), %eax
cmpl $0x2, %eax
jl 0x129c9
decl %eax
movl %eax, 0x38(%rbx)
movl 0x3c(%rbx), %r14d
cmpl $0x2, %r14d
jl 0x12b0e
decl %r14d
jmp 0x12bfb
cmpb $0x0, 0x28(%rbx)
je 0x12c07
movq %rbx, %rdi
callq 0x133be
movl %eax, %r14d
cmpl $0x0, 0x30(%rbx)
jne 0x12d8d
movq 0x95d9(%rip), %rdi      # 0x1bfc8
leaq 0x3fcd(%rip), %rsi      # 0x169c3
movl $0x5, %edx
callq 0x3210
movq 0x95c1(%rip), %rdi      # 0x1bfc8
leaq 0x40ad(%rip), %rsi      # 0x16abb
movl $0x30, %edx
callq 0x3210
movq 0x95a9(%rip), %rdi      # 0x1bfc8
leaq 0x40c6(%rip), %rsi      # 0x16aec
movl $0x30, %edx
callq 0x3210
movq 0x9591(%rip), %rdi      # 0x1bfc8
leaq 0x3670(%rip), %rsi      # 0x160ae
movl $0x4, %edx
callq 0x3210
movq 0x9579(%rip), %r15      # 0x1bfc8
leaq 0x3f73(%rip), %rsi      # 0x169c9
movl $0x18, %edx
movq %r15, %rdi
callq 0x3210
movq (%r15), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq 0x9547(%rip), %rdi      # 0x1bfc8
callq 0x3030
movq %rax, %rdi
callq 0x3140
movq %rax, %r15
movq (%rax), %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
movq 0x9519(%rip), %rdi      # 0x1bfd8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %edx
movq 0x94fe(%rip), %rdi      # 0x1bfd8
leaq -0x40(%rbp), %rsi
callq 0x3350
movl $0x4, 0x38(%rbx)
movq 0x68(%rbx), %rdx
addq $0x60, %rbx
leaq 0x4024(%rip), %rcx      # 0x16b1d
movl $0x2b, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3290
jmp 0x12d8d
leaq -0x90(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3e9a(%rip), %rsi      # 0x169ba
leaq 0x3e9b(%rip), %rdx      # 0x169c2
leaq -0xa0(%rbp), %rdi
callq 0xe724
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x3e81(%rip), %rsi      # 0x169c3
leaq 0x3e7f(%rip), %rdx      # 0x169c8
leaq -0x80(%rbp), %rdi
callq 0xe724
leaq -0xa0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
xorps %xmm0, %xmm0
callq 0x108e7
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x12b73
callq 0x31c0
movq -0xa0(%rbp), %rdi
cmpq %r14, %rdi
je 0x12b84
callq 0x31c0
movq 0x943d(%rip), %r14      # 0x1bfc8
leaq 0x3e37(%rip), %rsi      # 0x169c9
movl $0x18, %edx
movq %r14, %rdi
callq 0x3210
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq 0x940b(%rip), %rdi      # 0x1bfc8
callq 0x3030
movq %rax, %rdi
callq 0x3140
movq 0x9407(%rip), %rdi      # 0x1bfd8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x31d0
movl $0xe, %r14d
movsbl %al, %edx
movq 0x93e6(%rip), %rdi      # 0x1bfd8
leaq -0x40(%rbp), %rsi
callq 0x3350
movl %r14d, 0x3c(%rbx)
movb $0x1, %r14b
jmp 0x12d8d
movb $0x1, 0x28(%rbx)
movq 0x93b6(%rip), %rdi      # 0x1bfc8
leaq 0x3daa(%rip), %rsi      # 0x169c3
movl $0x5, %edx
callq 0x3210
movq 0x939e(%rip), %rdi      # 0x1bfc8
leaq 0x3db1(%rip), %rsi      # 0x169e2
movl $0x34, %edx
callq 0x3210
movq 0x9386(%rip), %rdi      # 0x1bfc8
leaq 0x3dce(%rip), %rsi      # 0x16a17
movl $0x30, %edx
callq 0x3210
movq 0x936e(%rip), %rdi      # 0x1bfc8
leaq 0x344d(%rip), %rsi      # 0x160ae
movl $0x4, %edx
callq 0x3210
movq 0x9356(%rip), %r14      # 0x1bfc8
leaq 0x3d50(%rip), %rsi      # 0x169c9
movl $0x18, %edx
movq %r14, %rdi
callq 0x3210
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq 0x9324(%rip), %rdi      # 0x1bfc8
callq 0x3030
movq %rax, %rdi
callq 0x3140
movq 0x9320(%rip), %rdi      # 0x1bfd8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %edx
movq 0x9305(%rip), %rdi      # 0x1bfd8
leaq -0x40(%rbp), %rsi
callq 0x3350
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0xa00d(%rip), %rsi      # 0x1ccf8
movq 0xa00e(%rip), %rdx      # 0x1cd00
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0xd9b2
leaq -0x60(%rbp), %rsi
movq %rbx, %rdi
callq 0xd878
movl %eax, %r14d
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x12d1b
callq 0x31c0
testb %r14b, %r14b
jne 0x12d42
leaq 0x80(%rbx), %rdi
movq 0x88(%rbx), %rdx
leaq 0x3d13(%rip), %rcx      # 0x16a48
movl $0x21, %r8d
xorl %esi, %esi
callq 0x3290
leaq 0xa0(%rbx), %rdi
movq 0xa8(%rbx), %rdx
leaq 0x3d13(%rip), %rcx      # 0x16a6a
movl $0x1e, %r8d
xorl %esi, %esi
callq 0x3290
movl $0x4, 0x38(%rbx)
movq 0x48(%rbx), %rdx
addq $0x40, %rbx
movb $0x1, %r14b
leaq 0x3d0c(%rip), %rcx      # 0x16a89
movl $0x31, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3290
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x12d9b
callq 0x31c0
movl %r14d, %eax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
jne 0x12dde
jmp 0x12dec
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x12dd2
callq 0x31c0
jmp 0x12dd2
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r14, %rdi
je 0x12dec
callq 0x31c0
jmp 0x12dec
jmp 0x12de9
jmp 0x12de9
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x12dfa
callq 0x31c0
movq %rbx, %rdi
callq 0x3320