// File: /workspace/github_cpp_makefile_star2_O1/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 0x451a
leaq 0x1fff(%rip), %rdi      # 0xa7d0
callq 0x2170
callq 0x7c4e
movq 0x10(%rbx), %rax
movq 0xb0(%rax), %rdi
callq 0x43f6
movq 0x67de(%rip), %r15      # 0xefd0
leaq 0x254d(%rip), %r12      # 0xad46
leaq -0x2c(%rbp), %r14
leaq 0x1f28(%rip), %r13      # 0xa72c
leaq 0x1fc5(%rip), %rdi      # 0xa7d0
callq 0x2170
movl $0x5a, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2240
movl $0x26, %edx
movq %r15, %rdi
leaq 0x2572(%rip), %rsi      # 0xada1
callq 0x2240
movl $0x26, %edx
movq %r15, %rdi
leaq 0x2585(%rip), %rsi      # 0xadc8
callq 0x2240
movl $0x26, %edx
movq %r15, %rdi
leaq 0x2598(%rip), %rsi      # 0xadef
callq 0x2240
movl $0x26, %edx
movq %r15, %rdi
leaq 0x25ab(%rip), %rsi      # 0xae16
callq 0x2240
movl $0x26, %edx
movq %r15, %rdi
leaq 0x25be(%rip), %rsi      # 0xae3d
callq 0x2240
movl $0x5a, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2240
movl $0x23, %edx
movq %r15, %rdi
leaq 0x25c1(%rip), %rsi      # 0xae64
callq 0x2240
movq 0x6731(%rip), %rdi      # 0xefe0
movq %r14, %rsi
callq 0x20f0
movl -0x2c(%rbp), %eax
decl %eax
cmpl $0x4, %eax
ja 0x896e
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movq 0x10(%rbx), %rdi
callq 0x551a
movl $0xc, %edx
movq %r15, %rdi
leaq 0x25a1(%rip), %rsi      # 0xae88
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
movl $0x1, %edi
callq 0x2130
jmp 0x8804
movq 0x10(%rbx), %rdi
callq 0x3404
jmp 0x8804
movq 0x10(%rbx), %rax
movq 0xb0(%rax), %rdi
callq 0x43f6
movq 0x10(%rbx), %rdi
callq 0x5722
leaq 0x68a0(%rip), %rax      # 0xf1f0
movl $0x0, (%rax)
jmp 0x8804
movq 0x10(%rbx), %rdi
callq 0x3680
callq 0x9152
jmp 0x8804
movl $0xc, %edx
movq %r15, %rdi
leaq 0x1811(%rip), %rsi      # 0xa18e
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 0x8804
callq 0x7457
testl %eax, %eax
je 0x89dd
movq 0x10(%rbx), %rax
movq 0xb0(%rax), %rdi
callq 0x43f6
movq 0x10(%rbx), %rdi
callq 0x5722
leaq 0x6819(%rip), %rax      # 0xf1f0
movl $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq