// File: /workspace/github_cpp_makefile_star2_O2/negativeview[P]Software-Business-Sim/MasterState.cpp
// Function: MasterState::_createWorkers(int)
void MasterState::_createWorkers(int count) {
	for (int i = 0; i < count; i++) {
		string firstName = this->_names->getFirstName();
		string lastName = this->_names->getLastName();

		int money = rand() % 100000;

		char message[100];
		sprintf(message, "%s %s applied for a job.", firstName.c_str(), lastName.c_str());

		this->addMessage(message);
		Person *p = new Person(firstName, lastName, money);

		for (vector<Platform *>::iterator it = this->_allPlatforms->begin(); it != this->_allPlatforms->end(); ++it) {
			p->setPlatformSkill(*it, rand() % 100);
		}

		for (vector<Language *>::iterator it2 = this->_allLanguages->begin(); it2 != this->_allLanguages->end(); ++it2) {
			p->setLanguageSkill(*it2, rand() % 100);
		}

		this->_allWorkers->push_back(p);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %r14
xorl %eax, %eax
testl %esi, %esi
cmovlel %eax, %esi
movl %esi, -0x34(%rbp)
leaq -0x88(%rbp), %r12
leaq -0x130(%rbp), %r13
pushq $0x64
popq %r15
xorl %eax, %eax
cmpl -0x34(%rbp), %eax
je 0x92a1
movl %eax, -0x38(%rbp)
movq 0x28(%r14), %rdi
callq 0x4b1e
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x5664
movq 0x28(%r14), %rdi
callq 0x4b52
leaq -0x68(%rbp), %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x5664
callq 0x30c0
cltd
movl $0x186a0, %ecx          # imm = 0x186A0
idivl %ecx
movl %edx, %ebx
movq -0x88(%rbp), %rdx
movq -0x68(%rbp), %rcx
movq %r13, %rdi
leaq 0x26d7(%rip), %rsi      # 0xb867
xorl %eax, %eax
callq 0x3080
movq %r14, %rdi
movq %r13, %rsi
callq 0x8fc6
movl $0x80, %edi
callq 0x3300
movq %rax, -0x48(%rbp)
leaq -0xa8(%rbp), %rdi
movq %r12, %rsi
callq 0x3430
movl %ebx, -0x3c(%rbp)
leaq -0xc8(%rbp), %r13
movq %r13, %rdi
leaq -0x68(%rbp), %rsi
callq 0x3430
movq -0x48(%rbp), %rbx
movq %rbx, %rdi
leaq -0xa8(%rbp), %r12
movq %r12, %rsi
movq %r13, %rdx
movl -0x3c(%rbp), %ecx
callq 0x7d54
movq %r13, %rdi
callq 0x3170
movq %r12, %rdi
callq 0x3170
movq %rbx, -0x30(%rbp)
movq 0x30(%r14), %rax
movq (%rax), %r12
cmpq 0x8(%rax), %r12
je 0x9238
movq -0x30(%rbp), %rbx
movq (%r12), %r13
callq 0x30c0
cltd
idivl %r15d
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8386
addq $0x8, %r12
movq 0x30(%r14), %rax
jmp 0x920c
movq 0x38(%r14), %rax
movq (%rax), %r12
cmpq 0x8(%rax), %r12
je 0x926b
movq -0x30(%rbp), %rbx
movq (%r12), %r13
callq 0x30c0
cltd
idivl %r15d
movq %rbx, %rdi
movq %r13, %rsi
callq 0x83aa
addq $0x8, %r12
movq 0x38(%r14), %rax
jmp 0x923f
movq 0x10(%r14), %rdi
leaq -0x30(%rbp), %rsi
callq 0x9506
leaq -0x88(%rbp), %r12
leaq -0x68(%rbp), %rdi
callq 0x3170
movq %r12, %rdi
callq 0x3170
movl -0x38(%rbp), %eax
incl %eax
leaq -0x130(%rbp), %r13
jmp 0x9131
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x92d8
movq %rax, %rbx
jmp 0x92cc
movq %rax, %rbx
leaq -0xc8(%rbp), %rdi
callq 0x3170
leaq -0xa8(%rbp), %rdi
callq 0x3170
movl $0x80, %esi
movq -0x48(%rbp), %rdi
callq 0x3320
jmp 0x92f8
jmp 0x92ea
movq %rax, %rbx
jmp 0x9301
jmp 0x92f5
jmp 0x92f5
jmp 0x92f5
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x3170
leaq -0x88(%rbp), %rdi
callq 0x3170
movq %rbx, %rdi
callq 0x3510
nop