// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x5c00(%rip), %r15      # 0x9fd0
leaq 0x2c89(%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 0x3332(%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 0x445d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
cmpb $0x0, 0x28(%r14)
je 0x44b8
leaq 0x2e7c(%rip), %rsi      # 0x72e7
movl $0x47, %edx
movq %r15, %rdi
callq 0x2160
leaq 0x2eb0(%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 0x4782
movq 0x5b11(%rip), %r15      # 0x9fd0
leaq 0x2dde(%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 0x2ee7(%rip), %rsi      # 0x73e3
movl $0x10, %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 0x4546
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x5a83(%rip), %r15      # 0x9fd0
leaq 0x2ea0(%rip), %rsi      # 0x73f4
movl $0x22, %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 0x2b0c(%rip), %rsi      # 0x7096
movl $0x9, %edx
movq %rax, %rdi
callq 0x2160
leaq 0x2e79(%rip), %rsi      # 0x7417
movl $0xe, %edx
movq %r12, %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 0x45e9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
leaq 0x2e36(%rip), %rsi      # 0x7426
movl $0xc, %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
leaq 0x2a89(%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 0x2c61(%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 0x46ac
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
leaq 0x2990(%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 0x2bc7(%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 0x2d00(%rip), %rsi      # 0x7433
movl $0x2d, %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 0x477d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movb $0x1, 0x28(%r14)
cmpb $0x0, 0x29(%r14)
jne 0x4794
movq %r14, %rdi
movq %rbx, %rsi
callq 0x47dc
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x47a8
jmp 0x47a8
jmp 0x47a8
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x47c1
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 0x47b4
jmp 0x47c1