// File: negativeview[P]Software-Business-Sim/InterviewCommand.cpp
// Function: InterviewCommand::executeCommand(char const*)
void InterviewCommand::executeCommand(const char *line) {
	while (true) {
		Person *toInterview = this->personChoiceMenu("Applicants");
		if (toInterview == NULL)
			return;

		bool learnedAnything = false;
		list<Trait *> *believedTraits = toInterview->getBelievedTraits();
		for (list<Trait *>::iterator it = believedTraits->begin(); it != believedTraits->end(); ++it) {
			Trait *t = *it;
			if (rand() % 2 == 0) {
				if (t->discoverMore()) {
					learnedAnything = true;
					char message[100];
					sprintf(message, "Learned more about %s %s's %s", toInterview->getFirstName().c_str(), toInterview->getLastName().c_str(), t->getName().c_str());
					this->_masterState->addMessage(message);
				}
			}
		}

		if (!learnedAnything) {
			this->_masterState->addMessage("That was a thoroughly disappointing interview, in which you learned nothing.");
		}
		this->_masterState->advanceTime(1);

		return;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rdi
leaq 0xeec5(%rip), %rsi      # 0x18111
callq 0xb150
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x9261
jmp 0x9440
movb $0x0, -0x19(%rbp)
movq -0x18(%rbp), %rdi
callq 0x10f30
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x8fa0
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
callq 0x9000
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x8fd0
testb $0x1, %al
jne 0x92a2
jmp 0x940e
leaq -0x30(%rbp), %rdi
callq 0x9030
movq (%rax), %rax
movq %rax, -0x40(%rbp)
callq 0x30e0
movl $0x2, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x93fe
movq -0x40(%rbp), %rdi
callq 0x17050
testb $0x1, %al
jne 0x92da
jmp 0x93fc
movb $0x1, -0x19(%rbp)
leaq -0xb0(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x18(%rbp), %rsi
leaq -0xd0(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x10d30
movq -0x138(%rbp), %rdi
callq 0x3180
movq %rax, -0x130(%rbp)
movq -0x18(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
callq 0x10d60
jmp 0x9328
leaq -0xf0(%rbp), %rdi
callq 0x3180
movq %rax, -0x148(%rbp)
movq -0x40(%rbp), %rsi
leaq -0x120(%rbp), %rdi
callq 0x17090
jmp 0x934d
leaq -0x120(%rbp), %rdi
callq 0x3180
movq -0x140(%rbp), %rdi
movq -0x130(%rbp), %rdx
movq -0x148(%rbp), %rcx
movq %rax, %r8
leaq 0xf1d3(%rip), %rsi      # 0x1854b
movb $0x0, %al
callq 0x30a0
leaq -0x120(%rbp), %rdi
callq 0x3210
leaq -0xf0(%rbp), %rdi
callq 0x3210
leaq -0xd0(%rbp), %rdi
callq 0x3210
movq -0x128(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x12d60
jmp 0x93fc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x93ee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x3210
leaq -0xd0(%rbp), %rdi
callq 0x3210
jmp 0x9449
jmp 0x93fe
jmp 0x9400
leaq -0x30(%rbp), %rdi
callq 0x9060
jmp 0x927f
testb $0x1, -0x19(%rbp)
jne 0x942b
movq -0x128(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0xf143(%rip), %rsi      # 0x18569
callq 0x12d60
movq -0x128(%rbp), %rax
movq 0x8(%rax), %rdi
movl $0x1, %esi
callq 0x12e40
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0xf8(%rbp), %rdi
callq 0x35d0
nopw %cs:(%rax,%rax)