// File: /workspace/github_cpp_makefile_star2_O1/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 0x6884(%rip), %r15      # 0x9fd0
leaq 0x390d(%rip), %rsi      # 0x7060
movl $0xf, %edx
movq %r15, %rdi
callq 0x2160
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x65be
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x2160
movq %rax, %r12
leaq 0x3fb6(%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 0x37d9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
cmpb $0x0, 0x28(%r14)
je 0x3834
leaq 0x3b00(%rip), %rsi      # 0x72e7
movl $0x47, %edx
movq %r15, %rdi
callq 0x2160
leaq 0x3b34(%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 0x3add
movq 0x6795(%rip), %r15      # 0x9fd0
leaq 0x3a62(%rip), %rsi      # 0x72a4
movl $0x4, %edx
movq %r15, %rdi
callq 0x2160
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x65be
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x2160
movq %rax, %r15
leaq 0x3a31(%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 0x38c2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x6707(%rip), %r15      # 0x9fd0
leaq 0x3b3d(%rip), %rsi      # 0x740d
movl $0x9, %edx
movq %r15, %rdi
callq 0x2160
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x65e2
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x2160
movq %rax, %r15
leaq 0x3790(%rip), %rsi      # 0x7096
movl $0x9, %edx
movq %rax, %rdi
callq 0x2160
leaq 0x399c(%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 0x3964
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x6665(%rip), %r15      # 0x9fd0
leaq 0x3742(%rip), %rsi      # 0x70b4
movl $0x3, %edx
movq %r15, %rdi
callq 0x2160
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x65e2
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x2160
movq %rax, %r12
leaq 0x391a(%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 0x39f3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
leaq 0x3649(%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 0x662c
leaq 0x3880(%rip), %rsi      # 0x72c4
movl $0x5, %edx
movq %r15, %rdi
callq 0x2160
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x65e2
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x2160
movq %rax, %r15
leaq 0x3850(%rip), %rsi      # 0x72ca
movl $0x1c, %edx
movq %rax, %rdi
callq 0x2160
leaq 0x39a7(%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 0x3ad8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movb $0x1, 0x28(%r14)
cmpb $0x0, 0x29(%r14)
jne 0x3aef
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3b38
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x3b03
jmp 0x3b03
jmp 0x3b03
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3b1c
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 0x3b0f
jmp 0x3b1c
nop