// File: /workspace/github_cpp_makefile_star2_O3/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 0x5bf8(%rip), %r15      # 0x9fd0
leaq 0x2c81(%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 0x332a(%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 0x4465
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
cmpb $0x0, 0x28(%r14)
je 0x44c0
leaq 0x2e74(%rip), %rsi      # 0x72e7
movl $0x47, %edx
movq %r15, %rdi
callq 0x2160
leaq 0x2ea8(%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 0x478a
movq 0x5b09(%rip), %r15      # 0x9fd0
leaq 0x2dd6(%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 0x2edf(%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 0x454e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x5a7b(%rip), %r15      # 0x9fd0
leaq 0x2e98(%rip), %rsi      # 0x73f4
movl $0x22, %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 0x2b04(%rip), %rsi      # 0x7096
movl $0x9, %edx
movq %rax, %rdi
callq 0x2160
leaq 0x2e71(%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 0x45f1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
leaq 0x2e2e(%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 0x2a81(%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 0x2c59(%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 0x46b4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
leaq 0x2988(%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 0x2bbf(%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 0x2cf8(%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 0x4785
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movb $0x1, 0x28(%r14)
cmpb $0x0, 0x29(%r14)
jne 0x479c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x47e4
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x47b0
jmp 0x47b0
jmp 0x47b0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x47c9
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 0x47bc
jmp 0x47c9