// File: /workspace/github_cpp_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x687c(%rip), %r15      # 0x9fd0
leaq 0x3905(%rip), %rsi      # 0x7060
movl $0xf, %edx
movq %r15, %rdi
callq 0x2160
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x65d6
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x2160
movq %rax, %r12
leaq 0x3fae(%rip), %rsi      # 0x773f
movl $0x1, %edx
movq %rax, %rdi
callq 0x2160
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
leaq 0x10(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x37e1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
cmpb $0x0, 0x28(%r14)
je 0x383c
leaq 0x3af8(%rip), %rsi      # 0x72e7
movl $0x47, %edx
movq %r15, %rdi
callq 0x2160
leaq 0x3b2c(%rip), %rsi      # 0x732f
movl $0xf, %edx
movq %r15, %rdi
callq 0x2160
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
jmp 0x3ae5
movq 0x678d(%rip), %r15      # 0x9fd0
leaq 0x3a5a(%rip), %rsi      # 0x72a4
movl $0x4, %edx
movq %r15, %rdi
callq 0x2160
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x65d6
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x2160
movq %rax, %r15
leaq 0x3a29(%rip), %rsi      # 0x72a9
movl $0xc, %edx
movq %rax, %rdi
callq 0x2160
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x38ca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x66ff(%rip), %r15      # 0x9fd0
leaq 0x3b35(%rip), %rsi      # 0x740d
movl $0x9, %edx
movq %r15, %rdi
callq 0x2160
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x65fa
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x2160
movq %rax, %r15
leaq 0x3788(%rip), %rsi      # 0x7096
movl $0x9, %edx
movq %rax, %rdi
callq 0x2160
leaq 0x3994(%rip), %rsi      # 0x72b6
movl $0xd, %edx
movq %r15, %rdi
callq 0x2160
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x396c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x665d(%rip), %r15      # 0x9fd0
leaq 0x373a(%rip), %rsi      # 0x70b4
movl $0x3, %edx
movq %r15, %rdi
callq 0x2160
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x65fa
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x2160
movq %rax, %r12
leaq 0x3912(%rip), %rsi      # 0x72c2
movl $0x1, %edx
movq %rax, %rdi
callq 0x2160
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x39fb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
leaq 0x3641(%rip), %rsi      # 0x7043
movl $0x13, %edx
movq %r15, %rdi
callq 0x2160
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movl $0x1, %edi
movl $0x1, %esi
callq 0x6644
leaq 0x3878(%rip), %rsi      # 0x72c4
movl $0x5, %edx
movq %r15, %rdi
callq 0x2160
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x65fa
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x2160
movq %rax, %r15
leaq 0x3848(%rip), %rsi      # 0x72ca
movl $0x1c, %edx
movq %rax, %rdi
callq 0x2160
leaq 0x399f(%rip), %rsi      # 0x7435
movl $0x2b, %edx
movq %r15, %rdi
callq 0x2160
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3ae0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movb $0x1, 0x28(%r14)
cmpb $0x0, 0x29(%r14)
jne 0x3af7
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3b40
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x3b0b
jmp 0x3b0b
jmp 0x3b0b
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3b24
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21a0
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x3b17
jmp 0x3b24
nop