// File: /workspace/github_cpp_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x90, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movq $0x0, -0x50(%rbp)
movq 0x8571(%rip), %r14      # 0xefd0
leaq 0x3809(%rip), %rsi      # 0xa26f
movl $0x13, %edx
movq %r14, %rdi
callq 0x2240
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq 0x853f(%rip), %rdi      # 0xefd0
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %rax, %r14
leaq 0x37db(%rip), %rsi      # 0xa283
movl $0x11, %edx
movq %rax, %rdi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %rax, %r14
leaq 0x3b6a(%rip), %rsi      # 0xa650
movl $0x13, %edx
movq %rax, %rdi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %rax, %r14
leaq 0x3b40(%rip), %rsi      # 0xa664
movl $0xc, %edx
movq %rax, %rdi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
leaq 0x37f5(%rip), %rsi      # 0xa354
movl $0x22, %edx
movq %rax, %rdi
callq 0x2240
movq 0x846d(%rip), %r12      # 0xefe0
leaq -0x64(%rbp), %rsi
movq %r12, %rdi
callq 0x20f0
movl $0x11, %r14d
leaq 0x35fd(%rip), %r15      # 0xa189
movl -0x64(%rbp), %eax
decl %eax
cmpl $0x3, %eax
ja 0x6e2b
leaq 0x390f(%rip), %rcx      # 0xa4b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x841f(%rip), %rdi      # 0xefd0
leaq 0x3ab9(%rip), %rsi      # 0xa671
movl $0x1a, %edx
callq 0x2240
movq (%r12), %rax
movq -0x18(%rax), %rax
movq 0x10(%r12,%rax), %r14
leaq -0xb0(%rbp), %rsi
movl $0x20, %edx
movq %r12, %rdi
callq 0x2330
movq (%r12), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x20(%r12,%rax)
jne 0x6c13
addq $-0x21, %r14
cmpq $-0x21, %r14
ja 0x6c13
movq 0xe8(%r12,%rax), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x6f2f
movq (%rbx), %r15
movq 0x8(%rbx), %r12
cmpq %r12, %r15
je 0x6c41
leaq -0xb0(%rbp), %r14
movq (%r15), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x22a0
testl %eax, %eax
je 0x6c43
addq $0x8, %r15
cmpq %r12, %r15
jne 0x6c26
xorl %ebx, %ebx
testq %rbx, %rbx
jne 0x6cad
movl $0x16, %r14d
leaq 0x3a37(%rip), %r15      # 0xa68c
jmp 0x6e2b
movq 0x836f(%rip), %rdi      # 0xefd0
leaq 0x375b(%rip), %rsi      # 0xa3c3
movl $0x19, %edx
callq 0x2240
movq 0x8367(%rip), %rdi      # 0xefe0
leaq -0x68(%rbp), %rsi
callq 0x20f0
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq %rcx, %rax
je 0x6ca2
movl -0x68(%rbp), %edx
movq (%rax), %rbx
cmpl %edx, 0x44(%rbx)
je 0x6ca4
addq $0x8, %rax
cmpq %rcx, %rax
jne 0x6c91
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x6e1e
movq %rbx, %rdi
callq 0x5ed4
jmp 0x6f0a
movq 0x830f(%rip), %r12      # 0xefd0
leaq 0x39f0(%rip), %rsi      # 0xa6b8
movl $0xb, %edx
movq %r12, %rdi
callq 0x2240
movq (%r12), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq 0x82dc(%rip), %rdi      # 0xefd0
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %rax, %r12
leaq 0x39b9(%rip), %rsi      # 0xa6c4
movl $0xe, %edx
movq %rax, %rdi
callq 0x2240
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %rax, %r12
leaq 0x37d3(%rip), %rsi      # 0xa51d
movl $0x10, %edx
movq %rax, %rdi
callq 0x2240
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %rax, %r12
leaq 0x345a(%rip), %rsi      # 0xa1e3
movl $0xb, %edx
movq %rax, %rdi
callq 0x2240
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
leaq 0x3769(%rip), %rsi      # 0xa52e
movl $0x1c, %edx
movq %rax, %rdi
callq 0x2240
movq 0x8207(%rip), %rdi      # 0xefe0
leaq -0x6c(%rbp), %rsi
callq 0x20f0
movl -0x64(%rbp), %eax
decl %eax
cmpl $0x3, %eax
ja 0x6e2b
leaq 0x36cd(%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 -0x40(%rbp), %rdi
movq %rbx, %rsi
callq 0x68ec
jmp 0x6eb8
movl $0x14, %r14d
leaq 0x3878(%rip), %r15      # 0xa6a3
movq 0x819e(%rip), %rbx      # 0xefd0
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2240
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq 0x8172(%rip), %rdi      # 0xefd0
callq 0x2030
movq %rax, %rdi
callq 0x2110
jmp 0x6f0a
movabsq $0x736568746f6c63, %rax # imm = 0x736568746F6C63
leaq -0x90(%rbp), %rdx
movq %rax, (%rdx)
leaq -0x40(%rbp), %rdi
movq %rbx, %rsi
callq 0x68ec
jmp 0x6eb8
movabsq $0x7469646f6d6d6f63, %rax # imm = 0x7469646F6D6D6F63
leaq -0x90(%rbp), %rdx
movq %rax, (%rdx)
movw $0x79, 0x8(%rdx)
leaq -0x40(%rbp), %rdi
movq %rbx, %rsi
callq 0x68ec
movq -0x60(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movups -0x38(%rbp), %xmm0
movups %xmm0, -0x58(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
testq %rdi, %rdi
je 0x6eec
subq %rdi, %rsi
callq 0x21f0
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x6f01
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x21f0
leaq -0x60(%rbp), %rdi
callq 0x6f82
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x6f1f
movq -0x50(%rbp), %rsi
subq %rdi, %rsi
callq 0x21f0
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq (%rdi), %rax
callq *0x48(%rax)
cmpl $-0x1, %eax
jne 0x6c13
movq (%r12), %rax
movq -0x18(%rax), %rax
leaq (%r12,%rax), %rdi
movl 0x20(%r12,%rax), %esi
orl $0x2, %esi
callq 0x2310
jmp 0x6c13
jmp 0x6f62
jmp 0x6f62
jmp 0x6f62
movq %rax, %rbx
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x6f7a
movq -0x50(%rbp), %rsi
subq %rdi, %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2350