// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x18, %rdi
callq 0x470e
leaq 0x1c99(%rip), %rdi      # 0xa800
callq 0x2170
callq 0x7cc6
movq 0x10(%rbx), %rax
movq 0xb0(%rax), %rdi
callq 0x45ea
movq 0x6448(%rip), %r15      # 0xefd0
leaq 0x242c(%rip), %r12      # 0xafbb
leaq -0x2c(%rbp), %r14
leaq 0x1bea(%rip), %r13      # 0xa784
leaq 0x1c5f(%rip), %rdi      # 0xa800
callq 0x2170
movl $0x5d, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2240
movl $0x27, %edx
movq %r15, %rdi
leaq 0x2454(%rip), %rsi      # 0xb019
callq 0x2240
movl $0x27, %edx
movq %r15, %rdi
leaq 0x2468(%rip), %rsi      # 0xb041
callq 0x2240
movl $0x27, %edx
movq %r15, %rdi
leaq 0x247c(%rip), %rsi      # 0xb069
callq 0x2240
movl $0x27, %edx
movq %r15, %rdi
leaq 0x2490(%rip), %rsi      # 0xb091
callq 0x2240
movl $0x27, %edx
movq %r15, %rdi
leaq 0x24a4(%rip), %rsi      # 0xb0b9
callq 0x2240
movl $0x5d, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2240
movl $0x23, %edx
movq %r15, %rdi
leaq 0x225b(%rip), %rsi      # 0xae94
callq 0x2240
movq 0x639b(%rip), %rdi      # 0xefe0
movq %r14, %rsi
callq 0x20f0
movl -0x2c(%rbp), %eax
decl %eax
cmpl $0x4, %eax
ja 0x8cc0
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movq 0x10(%rbx), %rdi
callq 0x572a
callq 0x90b8
jmp 0x8b9a
movq 0x10(%rbx), %rdi
callq 0x398a
callq 0x90b8
jmp 0x8b9a
movq 0x10(%rbx), %rax
movq 0xb0(%rax), %rdi
callq 0x45ea
movq 0x10(%rbx), %rdi
callq 0x590e
leaq 0x6549(%rip), %rax      # 0xf1f0
movl $0x0, (%rax)
jmp 0x8b9a
movq 0x10(%rbx), %rdi
callq 0x370e
jmp 0x8b9a
movl $0x11, %edx
movq %r15, %rdi
leaq 0x14ba(%rip), %rsi      # 0xa189
callq 0x2240
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
jmp 0x8b9a
callq 0x74cf
testl %eax, %eax
je 0x8d2f
movq 0x10(%rbx), %rax
movq 0xb0(%rax), %rdi
callq 0x45ea
movq 0x10(%rbx), %rdi
callq 0x590e
leaq 0x64c7(%rip), %rax      # 0xf1f0
movl $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq