// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/Fire.cpp
// Function: Fire::action(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
void Fire::action(std::vector<std::string>& container){
	//	welcome user to the car
	std::cout << "Welcome to the " << this->getCarName() << "!" << std::endl;

	if(!actionTaken){
		std::cout << "The " << this->getCarName() << " is on fire!" << std::endl;
		std::cout << "You must " << this->getActionName() << " in order"
				  << " to continue." << std::endl;
	  	std::cout << "1) " << this->getActionName() << "." << std::endl;
	  	std::cout << "Enter your choice: " << std::endl;

	    int flickLights = validate(1,1);
	    std::cout << "\nYou " << this->getActionName() << " and extinguished the fire!\n" 
	    		  << "You may now continue to traverse the train!" << std::endl;
	    //	Since the fire is now extinguished, you won't be asked to activate
	    //	sprinklers for this car again
	    actionTaken = true; 
	}
	else{
		std::cout << "You've already taken action in this car, hurry up and make your way to "
		          << "the engine car!" << std::endl;
	}

	if(!itemTaken){
		this->findItem(container);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x4f6e(%rip), %rdi      # 0x7fd0
leaq 0x1ff7(%rip), %rsi      # 0x5060
callq 0x2150
movq %rax, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x4d18
movq %r15, %rdi
movq %r12, %rsi
callq 0x2140
leaq 0x26ac(%rip), %rsi      # 0x573f
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2090
cmpb $0x0, 0x28(%r14)
je 0x30e3
movq 0x4f15(%rip), %rdi      # 0x7fd0
leaq 0x2225(%rip), %rsi      # 0x52e7
callq 0x2150
leaq 0x2261(%rip), %rsi      # 0x532f
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
jmp 0x3272
movq 0x4ee6(%rip), %rdi      # 0x7fd0
leaq 0x21b3(%rip), %rsi      # 0x52a4
callq 0x2150
movq %rax, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x4d18
movq %r15, %rdi
movq %r12, %rsi
callq 0x2140
leaq 0x218e(%rip), %rsi      # 0x52a9
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2090
movq 0x4e94(%rip), %rdi      # 0x7fd0
leaq 0x22ca(%rip), %rsi      # 0x540d
callq 0x2150
movq %rax, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x4d2a
movq %r15, %rdi
movq %r12, %rsi
callq 0x2140
leaq 0x1f29(%rip), %rsi      # 0x5096
movq %rax, %rdi
callq 0x2150
leaq 0x213a(%rip), %rsi      # 0x52b6
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2090
movq 0x4e33(%rip), %rdi      # 0x7fd0
leaq 0x1f10(%rip), %rsi      # 0x50b4
callq 0x2150
movq %rax, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x4d2a
movq %r15, %rdi
movq %r12, %rsi
callq 0x2140
leaq 0x20f4(%rip), %rsi      # 0x52c2
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2090
movq 0x4de1(%rip), %r15      # 0x7fd0
leaq 0x1e4d(%rip), %rsi      # 0x5043
movq %r15, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
pushq $0x1
popq %rdi
movl %edi, %esi
callq 0x4d50
leaq 0x20ad(%rip), %rsi      # 0x52c4
movq %r15, %rdi
callq 0x2150
movq %rax, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x4d2a
movq %r15, %rdi
movq %r12, %rsi
callq 0x2140
leaq 0x2086(%rip), %rsi      # 0x52ca
movq %rax, %rdi
callq 0x2150
leaq 0x21e2(%rip), %rsi      # 0x5435
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2090
movb $0x1, 0x28(%r14)
cmpb $0x0, 0x29(%r14)
jne 0x3284
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32ae
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x3298
jmp 0x3298
jmp 0x3298
jmp 0x3298
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x21e0
nop