// File: negativeview[P]Software-Business-Sim/PeopleCommand.cpp
// Function: PeopleCommand::executeCommand(char const*)
void PeopleCommand::executeCommand(const char *line) {
	vector<Person *> *allPeople = this->_masterState->getPlayerCompany()->getKnownPeople();

	for (vector<Person *>::iterator it = allPeople->begin(); it != allPeople->end(); ++it) {
		Person *currentPerson = *it;

		char message[100];

		sprintf(message, "%s %s", currentPerson->getFirstName().c_str(), currentPerson->getLastName().c_str());
		this->_masterState->addMessage(message);
		
		Company *company = currentPerson->getCompany();
		
		list<Trait *> *personTraits;
		if (company && company == this->_masterState->getPlayerCompany())
			personTraits = currentPerson->getRealTraits();
		else
			personTraits = currentPerson->getBelievedTraits();

		for (list<Trait *>::iterator it2 = personTraits->begin(); it2 != personTraits->end(); ++it2) {
			Trait *t = *it2;
			sprintf(message, "    %10s: %s", t->getName().c_str(), t->getDiscoveryModifiedText().c_str());
			this->_masterState->addMessage(message);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x160(%rbp)
movq 0x8(%rax), %rdi
callq 0x12e20
movq %rax, %rdi
callq 0xbfd0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0xa6b0
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xa720
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xa6e0
testb $0x1, %al
jne 0xa3f3
jmp 0xa676
leaq -0x20(%rbp), %rdi
callq 0xa750
movq (%rax), %rax
movq %rax, -0x30(%rbp)
leaq -0xa0(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x30(%rbp), %rsi
leaq -0xc0(%rbp), %rdi
movq %rdi, -0x170(%rbp)
callq 0x10d30
movq -0x170(%rbp), %rdi
callq 0x3180
movq %rax, -0x168(%rbp)
movq -0x30(%rbp), %rsi
leaq -0xe0(%rbp), %rdi
callq 0x10d60
jmp 0xa44d
leaq -0xe0(%rbp), %rdi
callq 0x3180
movq -0x178(%rbp), %rdi
movq -0x168(%rbp), %rdx
movq %rax, %rcx
leaq 0xe2b6(%rip), %rsi      # 0x18727
movb $0x0, %al
callq 0x30a0
leaq -0xe0(%rbp), %rdi
callq 0x3210
leaq -0xc0(%rbp), %rdi
callq 0x3210
movq -0x160(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x12d60
movq -0x30(%rbp), %rdi
callq 0x10cb0
movq %rax, -0xf8(%rbp)
cmpq $0x0, -0xf8(%rbp)
je 0xa523
movq -0x160(%rbp), %rax
movq -0xf8(%rbp), %rcx
movq %rcx, -0x180(%rbp)
movq 0x8(%rax), %rdi
callq 0x12e20
movq %rax, %rcx
movq -0x180(%rbp), %rax
cmpq %rcx, %rax
jne 0xa523
movq -0x30(%rbp), %rdi
callq 0x10f10
movq %rax, -0x100(%rbp)
jmp 0xa533
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x3210
jmp 0xa67f
movq -0x30(%rbp), %rdi
callq 0x10f30
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rdi
callq 0x8fa0
movq %rax, -0x108(%rbp)
movq -0x100(%rbp), %rdi
callq 0x9000
movq %rax, -0x110(%rbp)
leaq -0x108(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x8fd0
testb $0x1, %al
jne 0xa575
jmp 0xa666
leaq -0x108(%rbp), %rdi
callq 0x9030
movq (%rax), %rax
movq %rax, -0x118(%rbp)
leaq -0xa0(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x118(%rbp), %rsi
leaq -0x138(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0x17090
movq -0x190(%rbp), %rdi
callq 0x3180
movq %rax, -0x188(%rbp)
movq -0x118(%rbp), %rsi
leaq -0x158(%rbp), %rdi
callq 0x170c0
jmp 0xa5db
leaq -0x158(%rbp), %rdi
callq 0x3180
movq -0x198(%rbp), %rdi
movq -0x188(%rbp), %rdx
movq %rax, %rcx
leaq 0xe12e(%rip), %rsi      # 0x1872d
movb $0x0, %al
callq 0x30a0
leaq -0x158(%rbp), %rdi
callq 0x3210
leaq -0x138(%rbp), %rdi
callq 0x3210
movq -0x160(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x12d60
leaq -0x108(%rbp), %rdi
callq 0x9060
jmp 0xa546
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
leaq -0x138(%rbp), %rdi
callq 0x3210
jmp 0xa67f
jmp 0xa668
leaq -0x20(%rbp), %rdi
callq 0xa770
jmp 0xa3d0
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
movq -0xe8(%rbp), %rdi
callq 0x35d0
nopl (%rax,%rax)