// File: /workspace/github_cpp_makefile_star2_O3/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
movb $0x6e, (%rax)
movb $0x1, %bl
movq 0x11ff9(%rip), %r15     # 0x47fd0
movq 0x12002(%rip), %r13     # 0x47fe0
leaq -0x50(%rbp), %r12
movl $0x1d, %edx
movq %r15, %rdi
leaq 0x5637(%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, %bl
je 0x3602a
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
leaq -0x29(%rbp), %rsi
callq 0x3821c
testb %al, %al
jne 0x360d0
movl $0x2d, %edx
movq %r15, %rdi
leaq 0x4726(%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 %ebx, %ebx
cmpb $0x6e, -0x29(%rbp)
je 0x35fe2
jmp 0x360d4
movb $0x73, -0x29(%rbp)
movq -0x80(%rbp), %rax
movq 0x18(%rax), %r14
addq $0x8, %rax
cmpq %rax, %r14
je 0x362c5
movq %rax, %r15
xorl %r13d, %r13d
leaq 0x28(%r14), %rsi
leaq -0xc0(%rbp), %rdi
callq 0xf224
movq -0xb8(%rbp), %rdx
cmpq -0x48(%rbp), %rdx
jne 0x3612d
movq -0xc0(%rbp), %r12
testq %rdx, %rdx
je 0x36138
movq -0x50(%rbp), %rsi
movq %r12, %rdi
callq 0x3230
xorl %ebx, %ebx
testl %eax, %eax
sete %bl
jmp 0x3613d
xorl %ebx, %ebx
movq -0xc0(%rbp), %r12
jmp 0x3613d
movl $0x1, %ebx
leaq -0xb0(%rbp), %rax
cmpq %rax, %r12
je 0x36151
movq %r12, %rdi
callq 0x31d0
addl %ebx, %r13d
movq %r14, %rdi
callq 0x3140
movq %rax, %r14
cmpq %r15, %rax
jne 0x360ef
testl %r13d, %r13d
je 0x362c5
movq 0x11e5c(%rip), %rbx     # 0x47fd0
leaq 0x54cb(%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 0x11e2a(%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 0x11dec(%rip), %rdi     # 0x47fd0
leaq 0x5418(%rip), %rsi      # 0x3b603
movl $0x3, %edx
callq 0x3250
movq 0x11dd4(%rip), %rdi     # 0x47fd0
leaq 0x545b(%rip), %rsi      # 0x3b65e
movl $0x24, %edx
callq 0x3250
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq 0x11db4(%rip), %rdi     # 0x47fd0
callq 0x3250
movq %rax, %rbx
leaq 0x53d8(%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 0x36390
addq $0x20, %rsp
movq -0xa0(%rbp), %rdi
cmpq %r14, %rdi
je 0x36335
callq 0x31d0
jmp 0x36335
movq 0x11d04(%rip), %rbx     # 0x47fd0
leaq 0x490a(%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 0x11cd2(%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 0x36347
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 0x36376
callq 0x31d0
jmp 0x36376
jmp 0x36373
jmp 0x36373
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x36388
callq 0x31d0
movq %rbx, %rdi
callq 0x3380