// File: hzy1754785321[P]warehouse-manage-system/people.cpp
// Function: People::add()
void People::add()
{
		Person *p;
		int flag;
		while(1)
		{
			cout << "\t\t\t\t\t1:inPeople" << endl << "\t\t\t\t\t2:outPeople" << endl << "\t\t\t\t\t3:commonPeople" << endl << "\t\t\t\t\t4:exit" << endl << "\t\t\t\t\tplease input the your choice:" ;
			cin >> flag;
			switch(flag)
			{
				case 1:p=new InPeople;
					   break;
				case 2:p=new OutPeople;
					   break;
				case 3:p=new CommonPeople;
					   break;
				case 4:return ;
				default:p=NULL;
						cout << "\t\t\t\t\tinput error!" << endl;
						break;
			}
			if(p!=NULL)
			{
	//			cout << "123213" << endl;
				p->setNumber();
				p->setName();
				p->setPasswd();
				p->setStop();
				this->push_back(p);
				break;
			}
		}
		return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0x12175(%rip), %rdi     # 0x14fd0
leaq 0xb36c(%rip), %rsi      # 0xe1ce
callq 0x21e0
movq %rax, %rdi
movq 0x1214f(%rip), %rsi     # 0x14fc0
movq %rsi, -0x40(%rbp)
callq 0x2210
movq %rax, %rdi
leaq 0xb35a(%rip), %rsi      # 0xe1de
callq 0x21e0
movq -0x40(%rbp), %rsi
movq %rax, %rdi
callq 0x2210
movq %rax, %rdi
leaq 0xb350(%rip), %rsi      # 0xe1ef
callq 0x21e0
movq -0x40(%rbp), %rsi
movq %rax, %rdi
callq 0x2210
movq %rax, %rdi
leaq 0xb349(%rip), %rsi      # 0xe203
callq 0x21e0
movq -0x40(%rbp), %rsi
movq %rax, %rdi
callq 0x2210
movq %rax, %rdi
leaq 0xb33a(%rip), %rsi      # 0xe20f
callq 0x21e0
movq 0x120ff(%rip), %rdi     # 0x14fe0
leaq -0x14(%rbp), %rsi
callq 0x20f0
movl -0x14(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x38(%rbp)
subl $0x3, %eax
ja 0x2fe3
movq -0x38(%rbp), %rax
leaq 0xb0fb(%rip), %rcx      # 0xe004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0xb8, %edi
callq 0x21f0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x48(%rbp)
callq 0x4c30
jmp 0x2f2d
movq -0x48(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x300d
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
movl $0xb8, %esi
callq 0x2200
jmp 0x3054
movl $0xb8, %edi
callq 0x21f0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x50(%rbp)
callq 0x4c80
jmp 0x2f74
movq -0x50(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x300d
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
movl $0xb8, %esi
callq 0x2200
jmp 0x3054
movl $0xb8, %edi
callq 0x21f0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x58(%rbp)
callq 0x4cd0
jmp 0x2fbb
movq -0x58(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x300d
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
movl $0xb8, %esi
callq 0x2200
jmp 0x3054
jmp 0x304e
movq $0x0, -0x10(%rbp)
movq 0x11fde(%rip), %rdi     # 0x14fd0
leaq 0xb1b0(%rip), %rsi      # 0xe1a9
callq 0x21e0
movq %rax, %rdi
movq 0x11fb8(%rip), %rsi     # 0x14fc0
callq 0x2210
cmpq $0x0, -0x10(%rbp)
je 0x3047
movq -0x10(%rbp), %rdi
callq 0x2940
movq -0x10(%rbp), %rdi
callq 0x2b30
movq -0x10(%rbp), %rdi
callq 0x2c20
movq -0x10(%rbp), %rdi
callq 0x3060
movq -0x30(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0x5560
jmp 0x304c
jmp 0x2e54
jmp 0x304e
addq $0x60, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x2350
nopl (%rax)