// File: negativeview[P]Software-Business-Sim/MasterState.cpp
// Function: MasterState::~MasterState()
MasterState::~MasterState() {
	delete this->_playerCompany;
	this->_playerCompany = NULL;
	delete this->_allCompanies;
	this->_allCompanies = NULL;

	for (list<Person *>::iterator allWorkersIterator = this->_allWorkers->begin(); allWorkersIterator != this->_allWorkers->end(); ++allWorkersIterator) {
		Person *p = *allWorkersIterator;
		delete p;
	}
	delete this->_allWorkers;
	this->_allWorkers = NULL;

	for (list<Person *>::iterator allConsumersIterator = this->_allConsumers->begin(); allConsumersIterator != this->_allConsumers->end(); ++allConsumersIterator) {
		Person *p = *allConsumersIterator;
		delete p;
	}
	delete this->_allConsumers;
	this->_allConsumers = NULL;

	for (vector<Platform *>::iterator platformIterator = this->_allPlatforms->begin(); platformIterator != this->_allPlatforms->end(); ++platformIterator) {
		Platform *platform = *platformIterator;
		delete platform;
	}
	delete this->_allPlatforms;
	this->_allPlatforms = NULL;
	delete this->_playerCompany;
	this->_playerCompany = NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq (%rax), %rax
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
je 0x134fb
movq -0x58(%rbp), %rdi
callq 0xc290
movq -0x58(%rbp), %rdi
movl $0x38, %esi
callq 0x3390
movq -0x60(%rbp), %rax
movq $0x0, (%rax)
movq 0x8(%rax), %rax
movq %rax, -0x68(%rbp)
cmpq $0x0, %rax
je 0x1352b
movq -0x68(%rbp), %rdi
callq 0x13f10
movq -0x68(%rbp), %rdi
movl $0x18, %esi
callq 0x3390
movq -0x60(%rbp), %rax
movq $0x0, 0x8(%rax)
movq 0x10(%rax), %rdi
callq 0x13b10
movq %rax, -0x10(%rbp)
movq -0x60(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x13b70
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x13b40
testb $0x1, %al
jne 0x13568
jmp 0x135aa
leaq -0x10(%rbp), %rdi
callq 0x13ba0
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, %rax
je 0x1359d
movq -0x70(%rbp), %rdi
callq 0x10f70
movq -0x70(%rbp), %rdi
movl $0x80, %esi
callq 0x3390
jmp 0x1359f
leaq -0x10(%rbp), %rdi
callq 0x13bc0
jmp 0x13544
movq -0x60(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, %rax
je 0x135d3
movq -0x78(%rbp), %rdi
callq 0x13f30
movq -0x78(%rbp), %rdi
movl $0x18, %esi
callq 0x3390
movq -0x60(%rbp), %rax
movq $0x0, 0x10(%rax)
movq 0x18(%rax), %rdi
callq 0x13b10
movq %rax, -0x28(%rbp)
movq -0x60(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x13b70
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x13b40
testb $0x1, %al
jne 0x13610
jmp 0x13652
leaq -0x28(%rbp), %rdi
callq 0x13ba0
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x80(%rbp)
cmpq $0x0, %rax
je 0x13645
movq -0x80(%rbp), %rdi
callq 0x10f70
movq -0x80(%rbp), %rdi
movl $0x80, %esi
callq 0x3390
jmp 0x13647
leaq -0x28(%rbp), %rdi
callq 0x13bc0
jmp 0x135ec
movq -0x60(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x88(%rbp)
cmpq $0x0, %rax
je 0x13684
movq -0x88(%rbp), %rdi
callq 0x13f30
movq -0x88(%rbp), %rdi
movl $0x18, %esi
callq 0x3390
movq -0x60(%rbp), %rax
movq $0x0, 0x18(%rax)
movq 0x30(%rax), %rdi
callq 0x13d10
movq %rax, -0x40(%rbp)
movq -0x60(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x13d80
movq %rax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x13d40
testb $0x1, %al
jne 0x136c1
jmp 0x1370c
leaq -0x40(%rbp), %rdi
callq 0x13db0
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x90(%rbp)
cmpq $0x0, %rax
je 0x136ff
movq -0x90(%rbp), %rdi
callq 0x17620
movq -0x90(%rbp), %rdi
movl $0x40, %esi
callq 0x3390
jmp 0x13701
leaq -0x40(%rbp), %rdi
callq 0x13dd0
jmp 0x1369d
movq -0x60(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x98(%rbp)
cmpq $0x0, %rax
je 0x1373e
movq -0x98(%rbp), %rdi
callq 0x13f50
movq -0x98(%rbp), %rdi
movl $0x18, %esi
callq 0x3390
movq -0x60(%rbp), %rax
movq $0x0, 0x30(%rax)
movq (%rax), %rax
movq %rax, -0xa0(%rbp)
cmpq $0x0, %rax
je 0x13777
movq -0xa0(%rbp), %rdi
callq 0xc290
movq -0xa0(%rbp), %rdi
movl $0x38, %esi
callq 0x3390
movq -0x60(%rbp), %rax
movq $0x0, (%rax)
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax,%rax)