// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x18, %rdi
callq 0x3380
leaq 0x1daf(%rip), %rdi      # 0x881c
callq 0x2170
callq 0x5dec
movq 0x10(%rbx), %rax
movq 0xb0(%rax), %rdi
callq 0x32b4
movq 0x6542(%rip), %r15      # 0xcfd0
leaq 0x22fd(%rip), %r12      # 0x8d92
leaq -0x2c(%rbp), %r14
leaq 0x1cd8(%rip), %r13      # 0x8778
leaq 0x1d75(%rip), %rdi      # 0x881c
callq 0x2170
movq %r15, %rdi
movq %r12, %rsi
callq 0x21c0
movq %rax, %rdi
leaq 0x232c(%rip), %rsi      # 0x8ded
callq 0x21c0
movq %rax, %rdi
leaq 0x2344(%rip), %rsi      # 0x8e14
callq 0x21c0
movq %rax, %rdi
leaq 0x235c(%rip), %rsi      # 0x8e3b
callq 0x21c0
movq %rax, %rdi
leaq 0x2374(%rip), %rsi      # 0x8e62
callq 0x21c0
movq %rax, %rdi
leaq 0x238c(%rip), %rsi      # 0x8e89
callq 0x21c0
movq %rax, %rdi
movq %r12, %rsi
callq 0x21c0
movq %rax, %rdi
leaq 0x2399(%rip), %rsi      # 0x8eb0
callq 0x21c0
movq 0x64bd(%rip), %rdi      # 0xcfe0
movq %r14, %rsi
callq 0x2100
movl -0x2c(%rbp), %eax
decl %eax
cmpl $0x4, %eax
ja 0x6bb9
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movq 0x10(%rbx), %rdi
callq 0x3d7c
movq %r15, %rdi
leaq 0x237e(%rip), %rsi      # 0x8ed4
callq 0x21c0
movq %rax, %rdi
callq 0x20e0
pushq $0x1
popq %rdi
callq 0x2140
jmp 0x6aa0
movq 0x10(%rbx), %rdi
callq 0x2856
jmp 0x6aa0
movq 0x10(%rbx), %rax
movq 0xb0(%rax), %rdi
callq 0x32b4
movq 0x10(%rbx), %rdi
callq 0x3ee2
leaq 0x662a(%rip), %rax      # 0xd1c8
andl $0x0, (%rax)
jmp 0x6aa0
movq 0x10(%rbx), %rdi
callq 0x2976
callq 0x7266
jmp 0x6aa0
movq %r15, %rdi
leaq 0x15b8(%rip), %rsi      # 0x817b
callq 0x21c0
movq %rax, %rdi
callq 0x20e0
jmp 0x6aa0
callq 0x57f8
testl %eax, %eax
je 0x6c01
movq 0x10(%rbx), %rax
movq 0xb0(%rax), %rdi
callq 0x32b4
movq 0x10(%rbx), %rdi
callq 0x3ee2
leaq 0x65ca(%rip), %rax      # 0xd1c8
andl $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq