// File: hzy1754785321[P]warehouse-manage-system/people.cpp
// Function: People::readPeople()
void People::readPeople()
{
		ifstream in("people",ios::binary);
		if(!in)
		{
				cout << "\t\t\t\t\topen failed!" << endl;
				return ;
		}
		else
		{
				delAll();
				vector<Person*>::iterator it;
				it=begin();
				(*it)->number.clear();
				(*it)->peopleMax=0;
				Person *pe;
				while(1)
				{
						pe=new Person;
						in.read((char*)(pe),sizeof(Person));
						if(!in.eof())
						{
								this->push_back(pe);
								pe->number.push_back(pe->getNumber());
						}
						else
						{
								delete(pe);
								break;
						}
						(*it)->peopleMax=this->size();
				}
				in.close();
		}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x248(%rbp)
leaq 0xa746(%rip), %rsi      # 0xe427
leaq -0x210(%rbp), %rdi
movl $0x4, %edx
callq 0x2360
movq -0x210(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x210(%rbp,%rax), %rdi
callq 0x20d0
movb %al, -0x23d(%rbp)
jmp 0x3d12
movb -0x23d(%rbp), %al
testb $0x1, %al
jne 0x3d1e
jmp 0x3d75
movq 0x112ab(%rip), %rdi     # 0x14fd0
leaq 0xa5d4(%rip), %rsi      # 0xe300
callq 0x21e0
movq %rax, -0x250(%rbp)
jmp 0x3d3a
movq -0x250(%rbp), %rdi
movq 0x11278(%rip), %rsi     # 0x14fc0
callq 0x2210
jmp 0x3d4f
movl $0x1, -0x220(%rbp)
jmp 0x3f25
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
jmp 0x3f3a
movq -0x248(%rbp), %rdi
callq 0x3ca0
leaq -0x228(%rbp), %rdi
callq 0x55d0
movq -0x248(%rbp), %rdi
callq 0x55f0
movq %rax, -0x230(%rbp)
movq -0x230(%rbp), %rax
movq %rax, -0x228(%rbp)
leaq -0x228(%rbp), %rdi
callq 0x5690
leaq 0x1142f(%rip), %rdi     # 0x151f0
callq 0x57c0
leaq -0x228(%rbp), %rdi
callq 0x5690
movl $0x0, 0x11408(%rip)     # 0x151e4
jmp 0x3dde
movl $0xb8, %edi
callq 0x21f0
movq %rax, -0x258(%rbp)
jmp 0x3df1
movq -0x258(%rbp), %rdi
callq 0x2640
jmp 0x3dff
movq -0x258(%rbp), %rax
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rsi
leaq -0x210(%rbp), %rdi
movl $0xb8, %edx
callq 0x2260
jmp 0x3e27
movq -0x210(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x210(%rbp,%rax), %rdi
callq 0x2370
movb %al, -0x259(%rbp)
jmp 0x3e47
movb -0x259(%rbp), %al
testb $0x1, %al
jne 0x3eb9
jmp 0x3e53
movq -0x248(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0x5560
jmp 0x3e68
movq -0x238(%rbp), %rdi
callq 0x28e0
movl %eax, -0x23c(%rbp)
leaq 0x1136f(%rip), %rdi     # 0x151f0
leaq -0x23c(%rbp), %rsi
callq 0x57e0
jmp 0x3e8f
jmp 0x3edc
movq -0x258(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
movl $0xb8, %esi
callq 0x2200
jmp 0x3f3a
movq -0x238(%rbp), %rax
movq %rax, -0x268(%rbp)
cmpq $0x0, %rax
je 0x3eda
movq -0x268(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x3f0b
movq -0x248(%rbp), %rdi
callq 0x5810
movl %eax, -0x26c(%rbp)
leaq -0x228(%rbp), %rdi
callq 0x5690
movl -0x26c(%rbp), %eax
movl %eax, 0x112de(%rip)     # 0x151e4
jmp 0x3ddc
leaq -0x210(%rbp), %rdi
callq 0x2060
jmp 0x3f19
jmp 0x3f1b
movl $0x0, -0x220(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x2070
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
leaq -0x210(%rbp), %rdi
callq 0x2070
movq -0x218(%rbp), %rdi
callq 0x2350
nopw %cs:(%rax,%rax)