// File: /workspace/github_cpp_makefile_star2_O1/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, -0x78(%rbp)
movq %r8, -0x70(%rbp)
movq %rcx, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movq %rsi, -0x58(%rbp)
movq %rdi, -0x80(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x29(%rbp), %rax
movq %rax, %rbx
movb $0x6e, (%rax)
movb $0x1, %r14b
movq 0x11ed9(%rip), %r15     # 0x47fd0
movq 0x11ee2(%rip), %r13     # 0x47fe0
leaq -0x50(%rbp), %r12
movl $0x1d, %edx
movq %r15, %rdi
leaq 0x5517(%rip), %rsi      # 0x3b628
callq 0x3250
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
testb $0x1, %r14b
je 0x3614b
movq %r13, %rdi
callq 0x33a0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x33c0
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3832d
testb %al, %al
je 0x36183
movb $0x73, -0x29(%rbp)
jmp 0x361e8
movl $0x2d, %edx
movq %r15, %rdi
leaq 0x4600(%rip), %rsi      # 0x3a792
callq 0x3250
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
xorl %r14d, %r14d
cmpb $0x6e, -0x29(%rbp)
je 0x36102
movq -0x80(%rbp), %rbx
movq 0x18(%rbx), %r14
addq $0x8, %rbx
cmpq %rbx, %r14
je 0x363e1
movq %rbx, %r13
xorl %r12d, %r12d
leaq -0xc0(%rbp), %r15
leaq 0x28(%r14), %rsi
movq %r15, %rdi
callq 0xf220
movq -0xb8(%rbp), %rdx
xorl %ebx, %ebx
cmpq -0x48(%rbp), %rdx
jne 0x36255
testq %rdx, %rdx
je 0x36250
movq -0x50(%rbp), %rsi
movq -0xc0(%rbp), %rdi
callq 0x3230
xorl %ebx, %ebx
testl %eax, %eax
sete %bl
jmp 0x36255
movl $0x1, %ebx
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x3626d
callq 0x31d0
addl %ebx, %r12d
movq %r14, %rdi
callq 0x3140
movq %rax, %r14
cmpq %r13, %rax
jne 0x36217
testl %r12d, %r12d
je 0x363e1
movq 0x11d40(%rip), %rbx     # 0x47fd0
leaq 0x53af(%rip), %rsi      # 0x3b646
movl $0x17, %edx
movq %rbx, %rdi
callq 0x3250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq 0x11d0e(%rip), %rdi     # 0x47fd0
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq 0x11cd0(%rip), %rdi     # 0x47fd0
leaq 0x52fc(%rip), %rsi      # 0x3b603
movl $0x3, %edx
callq 0x3250
movq 0x11cb8(%rip), %rdi     # 0x47fd0
leaq 0x533f(%rip), %rsi      # 0x3b65e
movl $0x24, %edx
callq 0x3250
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq 0x11c98(%rip), %rdi     # 0x47fd0
callq 0x3250
movq %rax, %rbx
leaq 0x52bc(%rip), %rsi      # 0x3b603
movl $0x3, %edx
movq %rax, %rdi
callq 0x3250
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
leaq -0x90(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0x4574
leaq -0xa0(%rbp), %rsi
movl $0x76, %edi
movq -0x58(%rbp), %rdx
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %r8
movq -0x70(%rbp), %r9
pushq 0x20(%rbp)
pushq 0x18(%rbp)
pushq 0x10(%rbp)
pushq -0x78(%rbp)
callq 0x364ac
addq $0x20, %rsp
movq -0xa0(%rbp), %rdi
cmpq %r14, %rdi
je 0x36451
callq 0x31d0
jmp 0x36451
movq 0x11be8(%rip), %rbx     # 0x47fd0
leaq 0x47ee(%rip), %rsi      # 0x3abdd
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x3250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq 0x11bb6(%rip), %rdi     # 0x47fd0
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x36463
callq 0x31d0
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r14, %rdi
je 0x36492
callq 0x31d0
jmp 0x36492
jmp 0x3648f
jmp 0x3648f
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x364a4
callq 0x31d0
movq %rbx, %rdi
callq 0x3380