// File: /workspace/github_cpp_makefile_star2_O3/hzy1754785321[P]warehouse-manage-system/product.cpp
// Function: Products::search()
void Products::search()
{
		int flag,id,flag1;
		char name[32];
		char type[32];
		Products s;
		Product *p;
		cout << "\t\t\t\t\t1:by the name." << endl << "\t\t\t\t\t2:by the id." << endl << "\t\t\t\t\t3:by the type." << endl << "\t\t\t\t\t4:exit." << endl << "\t\t\t\t\tplease choice the search way:" ;
		cin >> flag;
		switch(flag)
		{
				case 1:cout << "\t\t\t\t\tpleae input the name:" ;
					   cin >> name;
					   p=searchName(name);
					   if(p!=NULL)
					   {
							   p->show();
							   break;
					   }
					   else
					   {
							   cout << "\t\t\t\t\twithout the name!" << endl;
							   break;
					   }
				case 2:cout << "\t\t\t\t\tplease input the id:" ;
					   cin >> id;
					   p=searchId(id);
					   if(p!=NULL)
					   {
							   p->show();
							   break;
					   }
					   else
					   {
							   cout << "\t\t\t\t\twithout the id!" << endl;
							   break;
					   }
				case 3:cout << "\t\t\t\t\t1:food" << endl << "\t\t\t\t\t2:clothes" << endl << "\t\t\t\t\t3:commodity" << endl << "\t\t\t\t\t4:exit" << endl << "\t\t\t\t\tplease choice the type:" ;
					   cin >> flag1;
					   switch(flag)
					   {
							   case 1:strcpy(type,"food");
									  s=searchType(type);
									  s.showAll();
									  break;
							   case 2:strcpy(type,"clothes");
									  s=searchType(type);
									  s.showAll();
									  break;
							   case 3:strcpy(type,"commodity");
									  s=searchType(type);
									  s.showAll();
									  break;
							   case 4:break;
							   default:cout << "\t\t\t\t\tinput error!" << endl;
									   break;
					   }
					   break;
				case 4: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
subq $0x88, %rsp
movq %rdi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
movq 0x84d1(%rip), %rbx      # 0xefd0
leaq 0x3769(%rip), %rsi      # 0xa26f
movl $0x13, %edx
movq %rbx, %rdi
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %rax, %r15
leaq 0x373f(%rip), %rsi      # 0xa283
movl $0x11, %edx
movq %rax, %rdi
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
movq %rax, %r15
leaq 0x3ace(%rip), %rsi      # 0xa650
movl $0x13, %edx
movq %rax, %rdi
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
movq %rax, %r15
leaq 0x3aa4(%rip), %rsi      # 0xa664
movl $0xc, %edx
movq %rax, %rdi
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
leaq 0x3759(%rip), %rsi      # 0xa354
movl $0x22, %edx
movq %rax, %rdi
callq 0x2240
movq 0x83d1(%rip), %r15      # 0xefe0
leaq -0x30(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x20f0
movl (%r12), %eax
decl %eax
cmpl $0x3, %eax
ja 0x6ebc
leaq 0x387c(%rip), %rcx      # 0xa4b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x838c(%rip), %rdi      # 0xefd0
leaq 0x3a26(%rip), %rsi      # 0xa671
movl $0x1a, %edx
callq 0x2240
movq (%r15), %rax
movq -0x18(%rax), %rax
movq 0x10(%r15,%rax), %r12
leaq -0xb0(%rbp), %rsi
movl $0x20, %edx
movq %r15, %rdi
callq 0x2330
movq (%r15), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x20(%r15,%rax)
jne 0x6ca4
addq $-0x21, %r12
cmpq $-0x21, %r12
ja 0x6ca4
movq 0xe8(%r15,%rax), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x6fd9
movq (%r14), %r12
movq 0x8(%r14), %r13
cmpq %r13, %r12
je 0x6ee0
leaq -0xb0(%rbp), %r15
movq (%r12), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x22a0
testl %eax, %eax
je 0x6ed1
addq $0x8, %r12
cmpq %r13, %r12
jne 0x6cbb
jmp 0x6ee0
movq 0x82e9(%rip), %rdi      # 0xefd0
leaq 0x36d5(%rip), %rsi      # 0xa3c3
movl $0x19, %edx
callq 0x2240
movq 0x82e1(%rip), %rdi      # 0xefe0
leaq -0x2c(%rbp), %rsi
callq 0x20f0
movq (%r14), %rax
movq 0x8(%r14), %rcx
cmpq %rcx, %rax
je 0x6d2d
movl -0x2c(%rbp), %edx
movq (%rax), %r14
cmpl %edx, 0x44(%r14)
je 0x6ed6
addq $0x8, %rax
cmpq %rcx, %rax
jne 0x6d17
movq 0x829c(%rip), %rdi      # 0xefd0
leaq 0x3968(%rip), %rsi      # 0xa6a3
movl $0x14, %edx
jmp 0x6ef3
leaq 0x396c(%rip), %rsi      # 0xa6b8
movl $0xb, %edx
movq %rbx, %rdi
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %rax, %r15
leaq 0x393a(%rip), %rsi      # 0xa6c4
movl $0xe, %edx
movq %rax, %rdi
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
movq %rax, %r15
leaq 0x3755(%rip), %rsi      # 0xa51d
movl $0x10, %edx
movq %rax, %rdi
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
movq %rax, %r15
leaq 0x33dd(%rip), %rsi      # 0xa1e3
movl $0xb, %edx
movq %rax, %rdi
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
leaq 0x36ed(%rip), %rsi      # 0xa52e
movl $0x1c, %edx
movq %rax, %rdi
callq 0x2240
movq 0x818b(%rip), %rdi      # 0xefe0
leaq -0x34(%rbp), %rsi
callq 0x20f0
movl -0x30(%rbp), %eax
decl %eax
cmpl $0x3, %eax
ja 0x6ebc
leaq 0x3651(%rip), %rcx      # 0xa4c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x90(%rbp), %rdx
movb $0x0, 0x4(%rdx)
movl $0x646f6f66, (%rdx)     # imm = 0x646F6F66
leaq -0x68(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x6992
movq (%r15), %rbx
movq 0x8(%r15), %rax
leaq -0x50(%rbp), %rdi
movq %rbx, (%rdi)
movq %rax, 0x8(%rdi)
movq 0x10(%r15), %r14
movq %r14, 0x10(%rdi)
callq 0x7002
jmp 0x6fbd
movq 0x810d(%rip), %rdi      # 0xefd0
leaq 0x32bf(%rip), %rsi      # 0xa189
movl $0x11, %edx
jmp 0x6ef3
testq %r14, %r14
je 0x6ee0
movq %r14, %rdi
callq 0x60ce
jmp 0x6f1f
movq 0x80e9(%rip), %rdi      # 0xefd0
leaq 0x379e(%rip), %rsi      # 0xa68c
movl $0x16, %edx
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movabsq $0x736568746f6c63, %rax # imm = 0x736568746F6C63
leaq -0x90(%rbp), %rdx
movq %rax, (%rdx)
leaq -0x68(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x6992
movq (%r15), %rbx
movq 0x8(%r15), %rax
leaq -0x50(%rbp), %rdi
movq %rbx, (%rdi)
movq %rax, 0x8(%rdi)
movq 0x10(%r15), %r14
movq %r14, 0x10(%rdi)
callq 0x7002
jmp 0x6fbd
movabsq $0x7469646f6d6d6f63, %rax # imm = 0x7469646F6D6D6F63
leaq -0x90(%rbp), %rdx
movq %rax, (%rdx)
movw $0x79, 0x8(%rdx)
leaq -0x68(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x6992
movq (%r15), %rbx
movq 0x8(%r15), %rax
leaq -0x50(%rbp), %rdi
movq %rbx, (%rdi)
movq %rax, 0x8(%rdi)
movq 0x10(%r15), %r14
movq %r14, 0x10(%rdi)
callq 0x7002
testq %rbx, %rbx
je 0x6f1f
subq %rbx, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21f0
jmp 0x6f1f
callq 0x27e9
jmp 0x6ca4
movq %rax, %r15
testq %rbx, %rbx
je 0x6ff9
subq %rbx, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21f0
movq %r15, %rdi
callq 0x2350
nop