// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x9f68
movq %r14, %rdi
callq 0x7888
movl $0x38, %esi
movq %r14, %rdi
callq 0x3320
movq $0x0, (%rbx)
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x9fa2
movq (%r14), %rdi
cmpq %r14, %rdi
je 0x9f95
movq (%rdi), %r15
movl $0x18, %esi
callq 0x3320
movq %r15, %rdi
cmpq %r14, %r15
jne 0x9f80
movl $0x18, %esi
movq %r14, %rdi
callq 0x3320
movq $0x0, 0x8(%rbx)
movq 0x10(%rbx), %r14
movq (%r14), %r15
cmpq %r14, %r15
je 0x9fdd
movq 0x10(%r15), %r14
testq %r14, %r14
je 0x9fd4
movq %r14, %rdi
callq 0x8bb8
movl $0x80, %esi
movq %r14, %rdi
callq 0x3320
movq (%r15), %r15
movq 0x10(%rbx), %r14
jmp 0x9fb1
testq %r14, %r14
je 0xa00c
movq (%r14), %rdi
cmpq %r14, %rdi
je 0x9fff
movq (%rdi), %r15
movl $0x18, %esi
callq 0x3320
movq %r15, %rdi
cmpq %r14, %r15
jne 0x9fea
movl $0x18, %esi
movq %r14, %rdi
callq 0x3320
movq $0x0, 0x10(%rbx)
movq 0x18(%rbx), %r14
movq (%r14), %r15
cmpq %r14, %r15
je 0xa047
movq 0x10(%r15), %r14
testq %r14, %r14
je 0xa03e
movq %r14, %rdi
callq 0x8bb8
movl $0x80, %esi
movq %r14, %rdi
callq 0x3320
movq (%r15), %r15
movq 0x18(%rbx), %r14
jmp 0xa01b
testq %r14, %r14
je 0xa076
movq (%r14), %rdi
cmpq %r14, %rdi
je 0xa069
movq (%rdi), %r15
movl $0x18, %esi
callq 0x3320
movq %r15, %rdi
cmpq %r14, %r15
jne 0xa054
movl $0x18, %esi
movq %r14, %rdi
callq 0x3320
movq $0x0, 0x18(%rbx)
movq 0x30(%rbx), %r14
movq (%r14), %r15
cmpq 0x8(%r14), %r15
je 0xa0b2
movq (%r15), %r14
testq %r14, %r14
je 0xa0a8
movq %r14, %rdi
callq 0xab62
movl $0x40, %esi
movq %r14, %rdi
callq 0x3320
addq $0x8, %r15
movq 0x30(%rbx), %r14
jmp 0xa085
testq %r14, %r14
je 0xa0d8
movq (%r14), %rdi
testq %rdi, %rdi
je 0xa0cb
movq 0x10(%r14), %rsi
subq %rdi, %rsi
callq 0x3320
movl $0x18, %esi
movq %r14, %rdi
callq 0x3320
movq $0x0, 0x30(%rbx)
movq (%rbx), %r14
testq %r14, %r14
je 0xa0fd
movq %r14, %rdi
callq 0x7888
movl $0x38, %esi
movq %r14, %rdi
callq 0x3320
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop