// File: hzy1754785321[P]warehouse-manage-system/menu.cpp
// Function: MenuCommon::menuShow()
void MenuCommon::menuShow()
{
		int flag;
		pp.readPeople();
		system("clear");
		showTime();
		commonPeople->pp->writePeople();
		while(1)
		{
				system("clear");
		cout   << "\t\t\t\t\t✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪✪\n"
			   << "\t\t\t\t\t✪      1:search             ✪\n"
	//		   << "\t\t\t\t\t✪      2:show product       ✪\n"
			   << "\t\t\t\t\t✪      2:change passwd      ✪\n"
			   << "\t\t\t\t\t✪      3:show information   ✪\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:commonPeople->searchProduct();
					   system_pause();
					   break;
		//		case 2:commonPeople->showProduct();
		//			   system_pause();
		//			   break;
				case 2:commonPeople->setPasswd();
					   break;
				case 3:commonPeople->show();
					   system_pause();
					   break;
				case 4:commonPeople->pp->writePeople();
					   commonPeople->writeProductInfo();
					   changeFlag=0;
					   break;
				case 5:if(askForSave())
					   {
							   commonPeople->pp->writePeople();
							   commonPeople->writeProductInfo();
							   changeFlag=0;
					   }
					   return ;
				default:cout << "\t\t\t\t\tinput error!" << endl ;
						break;
		}
		}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
addq $0x18, %rdi
callq 0x3cc0
leaq 0x190c(%rip), %rdi      # 0xe820
callq 0x2190
movq -0x18(%rbp), %rdi
callq 0xb940
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq 0xb0(%rax), %rdi
callq 0x3b10
leaq 0x18e3(%rip), %rdi      # 0xe820
callq 0x2190
movq 0x8087(%rip), %rdi      # 0x14fd0
leaq 0x208b(%rip), %rsi      # 0xefdb
movq %rsi, -0x28(%rbp)
callq 0x21e0
movq %rax, %rdi
leaq 0x20d6(%rip), %rsi      # 0xf039
callq 0x21e0
movq %rax, %rdi
leaq 0x20ef(%rip), %rsi      # 0xf061
callq 0x21e0
movq %rax, %rdi
leaq 0x2108(%rip), %rsi      # 0xf089
callq 0x21e0
movq %rax, %rdi
leaq 0x2121(%rip), %rsi      # 0xf0b1
callq 0x21e0
movq %rax, %rdi
leaq 0x213a(%rip), %rsi      # 0xf0d9
callq 0x21e0
movq -0x28(%rbp), %rsi
movq %rax, %rdi
callq 0x21e0
movq %rax, %rdi
leaq 0x1efa(%rip), %rsi      # 0xeeb4
callq 0x21e0
movq 0x801a(%rip), %rdi      # 0x14fe0
leaq -0xc(%rbp), %rsi
callq 0x20f0
movl -0xc(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x20(%rbp)
subl $0x4, %eax
ja 0xd0ad
movq -0x20(%rbp), %rax
leaq 0x17b6(%rip), %rcx      # 0xe7a4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x4d80
movq -0x18(%rbp), %rdi
callq 0xd530
jmp 0xd0cf
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x2c20
jmp 0xd0cf
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x2d90
movq -0x18(%rbp), %rdi
callq 0xd530
jmp 0xd0cf
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq 0xb0(%rax), %rdi
callq 0x3b10
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5110
leaq 0x8181(%rip), %rax      # 0x151e8
movl $0x0, (%rax)
jmp 0xd0cf
callq 0xafc0
cmpl $0x0, %eax
je 0xd0a7
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq 0xb0(%rax), %rdi
callq 0x3b10
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5110
leaq 0x8147(%rip), %rax      # 0x151e8
movl $0x0, (%rax)
addq $0x30, %rsp
popq %rbp
retq
movq 0x7f1c(%rip), %rdi      # 0x14fd0
leaq 0x10ee(%rip), %rsi      # 0xe1a9
callq 0x21e0
movq %rax, %rdi
movq 0x7ef6(%rip), %rsi      # 0x14fc0
callq 0x2210
jmp 0xcf36
nopw %cs:(%rax,%rax)