// File: /workspace/github_cpp_makefile_star2_O3/nataly-enne[P]pet-fera/pet_fera_consulta_p_func.cpp
// Function: consulta_p_func(std::map<int, VETERINARIO, std::less<int>, std::allocator<std::pair<int const, VETERINARIO>>>&, std::map<int, TRATADOR, std::less<int>, std::allocator<std::pair<int const, TRATADOR>>>&, std::map<int, ANFIBIO_NATIVO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_NATIVO>>>&, std::map<int, ANFIBIO_EXOTICO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_EXOTICO>>>&, std::map<int, MAMIFERO_NATIVO, std::less<int>, std::allocator<std::pair<int const, MAMIFERO_NATIVO>>>&, std::map<int, MAMIFERO_EXOTICO, std::less<int>, std::allocator<std::pair<int const, MAMIFERO_EXOTICO>>>&, std::map<int, REPTIL_NATIVO, std::less<int>, std::allocator<std::pair<int const, REPTIL_NATIVO>>>&, std::map<int, REPTIL_EXOTICO, std::less<int>, std::allocator<std::pair<int const, REPTIL_EXOTICO>>>&, std::map<int, AVE_NATIVO, std::less<int>, std::allocator<std::pair<int const, AVE_NATIVO>>>&, std::map<int, AVE_EXOTICO, std::less<int>, std::allocator<std::pair<int const, AVE_EXOTICO>>>&)
void consulta_p_func(map <int, VETERINARIO> &vets, map <int, TRATADOR>  &tratadores, map <int, ANFIBIO_NATIVO> &anfibios_nat, map <int, ANFIBIO_EXOTICO> &anfibios_ex, map <int, MAMIFERO_NATIVO> &mamiferos_nat, map <int, MAMIFERO_EXOTICO> &mamiferos_ex, map <int, REPTIL_NATIVO> &repteis_nat, map <int, REPTIL_EXOTICO> &repteis_ex, map <int, AVE_NATIVO> &aves_nat, map <int, AVE_EXOTICO> &aves_ex){
	char cargo, continuar;

	do{
		cout << "Deseja consultar por tratador ou veterinario: \n v - Veterinario \n t - Tratador" << endl;
		cin >> cargo;
		if(cargo != 'v' && cargo != 't'){
			cout << "Cargo inexistente!! Tente novamente." << endl << endl;
		}
		else if(cargo == 't'){
			consulta_p_tratador(tratadores, anfibios_nat, anfibios_ex, mamiferos_nat, mamiferos_ex, repteis_nat, repteis_ex, aves_nat, aves_ex);
		}
		else{
			consulta_p_veterinario(vets, anfibios_nat, anfibios_ex, mamiferos_nat, mamiferos_ex, repteis_nat, repteis_ex, aves_nat, aves_ex);
		}
	
		cout << "Deseja consultar novamente? \n s - SIM \n n - NÃO" << endl;
		cin >> continuar;
			
	}while(continuar == 's');	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, -0x50(%rbp)
movq %r8, -0x48(%rbp)
movq %rcx, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq %rsi, -0x60(%rbp)
movq %rdi, -0x58(%rbp)
movq 0x125f8(%rip), %r13     # 0x47fd0
leaq 0x5b33(%rip), %r15      # 0x3b512
movq 0x125fa(%rip), %r14     # 0x47fe0
leaq -0x2a(%rbp), %r12
leaq 0x5b95(%rip), %rbx      # 0x3b586
movl $0x4e, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x3250
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r13, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq %r14, %rdi
movq %r12, %rsi
callq 0x3280
movb -0x2a(%rbp), %al
movl %eax, %ecx
andb $-0x3, %cl
cmpb $0x74, %cl
jne 0x35a78
subq $0x8, %rsp
cmpb $0x74, %al
jne 0x35af9
movq -0x60(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq 0x10(%rbp), %r9
pushq 0x28(%rbp)
pushq 0x20(%rbp)
pushq 0x18(%rbp)
callq 0x35b80
jmp 0x35b1f
movl $0x24, %edx
movq %r13, %rdi
leaq 0x5ada(%rip), %rsi      # 0x3b561
callq 0x3250
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r13, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq %rbx, %r14
movq %r12, %rbx
movq %r15, %r12
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r15, %rdi
movq %r12, %r15
movq %rbx, %r12
movq %r14, %rbx
movq 0x124f6(%rip), %r14     # 0x47fe0
callq 0x3030
movq %rax, %rdi
callq 0x3130
jmp 0x35b23
movq -0x58(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq 0x10(%rbp), %r9
pushq 0x28(%rbp)
pushq 0x20(%rbp)
pushq 0x18(%rbp)
callq 0x35f88
addq $0x20, %rsp
movl $0x30, %edx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x3250
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r13, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq %r14, %rdi
leaq -0x29(%rbp), %rsi
callq 0x3280
cmpb $0x73, -0x29(%rbp)
je 0x359f1
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq