// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/Flick.cpp
// Function: Flick::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 Flick::action(std::vector<std::string>& container){
	//	welcome user to the car
	std::cout << "Welcome to the " << this->getCarName() << "!" << std::endl;

	//	If you have not turned on the lights
	if(!actionTaken){
		std::cout << "The " << this->getCarName() << " is pitch black!" << std::endl;
		std::cout << "You cannot see anything! You must " << this->getActionName() << " in order"
				  << " to continue.\n" << std::endl;

		std::cout << "\tAction Menu" << 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() << "! You may now continue to traverse the train!" << std::endl;
	    //	Since the lights are now on, you won't be asked to turn on the lights 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 you did not take the item yet
	if(!itemTaken){
		this->findItem(container);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x481e(%rip), %rdi      # 0x7fd0
leaq 0x18a7(%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 0x1f5c(%rip), %rsi      # 0x573f
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2090
cmpb $0x0, 0x28(%r14)
je 0x3833
movq 0x47c5(%rip), %rdi      # 0x7fd0
leaq 0x1ad5(%rip), %rsi      # 0x52e7
callq 0x2150
leaq 0x1b11(%rip), %rsi      # 0x532f
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
jmp 0x39cd
movq 0x4796(%rip), %rdi      # 0x7fd0
leaq 0x1a63(%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 0x1b78(%rip), %rsi      # 0x53e3
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2090
movq 0x4744(%rip), %rdi      # 0x7fd0
leaq 0x1b61(%rip), %rsi      # 0x53f4
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 0x17d9(%rip), %rsi      # 0x5096
movq %rax, %rdi
callq 0x2150
leaq 0x1b4b(%rip), %rsi      # 0x5417
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2090
movq 0x46e3(%rip), %r15      # 0x7fd0
leaq 0x1b32(%rip), %rsi      # 0x5426
movq %r15, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x17a9(%rip), %rsi      # 0x50b4
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 0x198a(%rip), %rsi      # 0x52c2
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2090
movq 0x4677(%rip), %r15      # 0x7fd0
leaq 0x16e3(%rip), %rsi      # 0x5043
movq %r15, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
pushq $0x1
popq %rdi
movl %edi, %esi
callq 0x4d50
leaq 0x1943(%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 0x1a85(%rip), %rsi      # 0x5433
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 0x39df
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3a08
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x39f3
jmp 0x39f3
jmp 0x39f3
jmp 0x39f3
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x21e0