// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_consulta_p_func.cpp
// Function: consulta_p_veterinario(std::map<int, VETERINARIO, std::less<int>, std::allocator<std::pair<int const, VETERINARIO>>>&, 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_veterinario(map <int, VETERINARIO> &vets, 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){
	int count = 0, cont = 0;
	string nome;
	char tipo = 'v', sucesso = 'n';

	do{
		cout << "Digite o nome do veterinario:" << endl;
		if(!cont){
			cin.ignore();
			cont++;
		}
		getline(cin, nome);
		if(!verifica_nome(nome, sucesso)){
			cout << "ERRO: só pode ser inserido letra ou espaço!" << endl << endl;
		}
		else{
			sucesso = 's';
		}
	}while(sucesso == 'n');
	
	for(auto it = vets.begin(); it != vets.end();it++){
		if(it->second.getNome() == nome){
			count ++;
		}
	}
	if(count == 0){
		cout << "Veterinario não cadastrado!" << endl << endl;
	}
	else{
		cout << "Veterinario cadastrado!" << endl << endl;
		cout << "***" << "Animais atendidos pelo Veterinário " << nome << "***" << endl;
		imprime_animais(tipo, nome, anfibios_nat, anfibios_ex, mamiferos_nat, mamiferos_ex, repteis_nat, repteis_ex, aves_nat, aves_ex);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r9, -0x58(%rbp)
movq %r8, -0x50(%rbp)
movq %rcx, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdi, -0x60(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x29(%rbp), %r14
movb $0x6e, (%r14)
movb $0x1, %bl
movq 0x10a9c(%rip), %r15     # 0x30fc8
movq 0x10aad(%rip), %r13     # 0x30fe0
leaq -0x80(%rbp), %r12
movq %r15, %rdi
leaq 0x40a7(%rip), %rsi      # 0x245e8
callq 0x31f0
movq %rax, %rdi
callq 0x3110
testb $0x1, %bl
je 0x2055b
movq %r13, %rdi
callq 0x3380
movq %r13, %rdi
movq %r12, %rsi
callq 0x3060
movq %r12, %rdi
movq %r14, %rsi
callq 0x21b16
testb %al, %al
jne 0x2059e
movq %r15, %rdi
leaq 0x31d3(%rip), %rsi      # 0x23752
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
xorl %ebx, %ebx
cmpb $0x6e, -0x29(%rbp)
je 0x20537
jmp 0x205a2
movb $0x73, -0x29(%rbp)
movq -0x60(%rbp), %r12
movq 0x18(%r12), %r14
addq $0x8, %r12
xorl %ebx, %ebx
leaq -0xc0(%rbp), %r15
cmpq %r12, %r14
je 0x205f3
leaq 0x28(%r14), %rsi
movq %r15, %rdi
callq 0xaa16
movq %r15, %rdi
leaq -0x80(%rbp), %rsi
callq 0x20d72
movl %eax, %r13d
movq %r15, %rdi
callq 0x3100
movzbl %r13b, %eax
addl %eax, %ebx
movq %r14, %rdi
callq 0x3160
movq %rax, %r14
jmp 0x205b8
testl %ebx, %ebx
je 0x206b0
movq 0x109c6(%rip), %rdi     # 0x30fc8
leaq 0x3ffd(%rip), %rsi      # 0x24606
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
movq 0x109a3(%rip), %rdi     # 0x30fc8
leaq 0x3f97(%rip), %rsi      # 0x245c3
callq 0x31f0
leaq 0x3fe6(%rip), %rsi      # 0x2461e
movq %rax, %rdi
callq 0x31f0
leaq -0x80(%rbp), %rsi
movq %rax, %rdi
callq 0x31c0
leaq 0x3f70(%rip), %rsi      # 0x245c3
movq %rax, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x3110
leaq -0xa0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x3290
pushq $0x76
popq %rdi
leaq -0xa0(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq -0x48(%rbp), %r8
movq -0x50(%rbp), %r9
pushq 0x20(%rbp)
pushq 0x18(%rbp)
pushq 0x10(%rbp)
pushq -0x58(%rbp)
callq 0x20717
addq $0x20, %rsp
leaq -0xa0(%rbp), %rdi
callq 0x3100
jmp 0x206d3
movq 0x10911(%rip), %rdi     # 0x30fc8
leaq 0x34df(%rip), %rsi      # 0x23b9d
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
leaq -0x80(%rbp), %rdi
callq 0x3100
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x3100
jmp 0x20706
jmp 0x20703
jmp 0x20703
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x3370