// File: hzy1754785321[P]warehouse-manage-system/menu.cpp
// Function: MenuIn::menuShow()
void MenuIn::menuShow()
{
		int flag;
		Product *p;
		pp.readPeople();
		system("clear");
		showTime();
		inPeople->pp->writePeople();
		while(1)
		{
				system("clear");
		cout << "\t\t\t\t\t✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚\n"
			 << "\t\t\t\t\t✚      1:add product       ✚\n"
			 << "\t\t\t\t\t✚      2:show information  ✚\n"
			 << "\t\t\t\t\t✚      3:change passwd     ✚\n"
			 << "\t\t\t\t\t✚      4:save              ✚\n"
			 << "\t\t\t\t\t✚      5:exit              ✚\n"
			 << "\t\t\t\t\t✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚✚\n"
			 << "\t\t\t\t\tplease input your choice(1-5):" ;
		cin >> flag;
		switch(flag)
		{
				case 1:inPeople->addProduct();
					   cout << "add success!" << endl;
					   sleep(1);
				//	   inPeople->pt=p;
				//	   inPeople->writeRecord(2);
					   break;
				case 2:inPeople->show();
				//	   getchar();
					   system_pause();
					   break;
				case 3:inPeople->setPasswd();
					   break;
				case 4:inPeople->pp->writePeople();
					   inPeople->writeProductInfo();
					   changeFlag=0;
					   break;
				case 5:if(askForSave())
					   {
							   inPeople->pp->writePeople();
							   inPeople->writeProductInfo();
							   changeFlag=0;
					   }
					   return ;
				default:cout << "input error!" << endl;
						break;
		}
		}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
addq $0x18, %rdi
callq 0x3cc0
leaq 0x1cfc(%rip), %rdi      # 0xe820
callq 0x2190
movq -0x20(%rbp), %rdi
callq 0xb940
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq 0xb0(%rax), %rdi
callq 0x3b10
leaq 0x1cd3(%rip), %rdi      # 0xe820
callq 0x2190
movq 0x8477(%rip), %rdi      # 0x14fd0
leaq 0x2236(%rip), %rsi      # 0xed96
movq %rsi, -0x30(%rbp)
callq 0x21e0
movq %rax, %rdi
leaq 0x227e(%rip), %rsi      # 0xedf1
callq 0x21e0
movq %rax, %rdi
leaq 0x2296(%rip), %rsi      # 0xee18
callq 0x21e0
movq %rax, %rdi
leaq 0x22ae(%rip), %rsi      # 0xee3f
callq 0x21e0
movq %rax, %rdi
leaq 0x22c6(%rip), %rsi      # 0xee66
callq 0x21e0
movq %rax, %rdi
leaq 0x22de(%rip), %rsi      # 0xee8d
callq 0x21e0
movq -0x30(%rbp), %rsi
movq %rax, %rdi
callq 0x21e0
movq %rax, %rdi
leaq 0x22ea(%rip), %rsi      # 0xeeb4
callq 0x21e0
movq 0x840a(%rip), %rdi      # 0x14fe0
leaq -0xc(%rbp), %rsi
callq 0x20f0
movl -0xc(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x28(%rbp)
subl $0x4, %eax
ja 0xcce0
movq -0x28(%rbp), %rax
leaq 0x1b7e(%rip), %rcx      # 0xe77c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x4d20
movq 0x83b5(%rip), %rdi      # 0x14fd0
leaq 0x22b6(%rip), %rsi      # 0xeed8
callq 0x21e0
movq %rax, %rdi
movq 0x838f(%rip), %rsi      # 0x14fc0
callq 0x2210
movl $0x1, %edi
callq 0x2140
jmp 0xcd02
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x2d90
movq -0x20(%rbp), %rdi
callq 0xd530
jmp 0xcd02
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x2c20
jmp 0xcd02
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq 0xb0(%rax), %rdi
callq 0x3b10
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5110
leaq 0x854e(%rip), %rax      # 0x151e8
movl $0x0, (%rax)
jmp 0xcd02
callq 0xafc0
cmpl $0x0, %eax
je 0xccda
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq 0xb0(%rax), %rdi
callq 0x3b10
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5110
leaq 0x8514(%rip), %rax      # 0x151e8
movl $0x0, (%rax)
addq $0x30, %rsp
popq %rbp
retq
movq 0x82e9(%rip), %rdi      # 0x14fd0
leaq 0x14c0(%rip), %rsi      # 0xe1ae
callq 0x21e0
movq %rax, %rdi
movq 0x82c3(%rip), %rsi      # 0x14fc0
callq 0x2210
jmp 0xcb46
nopw (%rax,%rax)