// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_consulta_p_func.cpp
// Function: consulta_p_tratador(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_tratador(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){	int count = 0;
	string nome;
	char tipo = 't', sucesso = 'n';
	int cont = 0;

	do{
		cout << "Digite o nome do tratador:" << 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 = tratadores.begin(); it != tratadores.end();it++){
		if(it->second.getNome() == nome){
			count ++;
		}
	}
	if(count == 0){
		cout << "\nTratador não cadastrado!" << endl << endl;
	}
	else{
		cout << "\nTratador cadastrado!" << endl << endl;
		cout << "***" << "Animais atendidos pelo Tratador " << 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 0x10cd4(%rip), %r15     # 0x30fc8
movq 0x10ce5(%rip), %r13     # 0x30fe0
leaq -0x80(%rbp), %r12
movq %r15, %rdi
leaq 0x426e(%rip), %rsi      # 0x24577
callq 0x31f0
movq %rax, %rdi
callq 0x3110
testb $0x1, %bl
je 0x20323
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 0x20366
movq %r15, %rdi
leaq 0x340b(%rip), %rsi      # 0x23752
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
xorl %ebx, %ebx
cmpb $0x6e, -0x29(%rbp)
je 0x202ff
jmp 0x2036a
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 0x203bb
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 0x20380
testl %ebx, %ebx
je 0x20478
movq 0x10bfe(%rip), %rdi     # 0x30fc8
leaq 0x41dc(%rip), %rsi      # 0x245ad
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
movq 0x10bdb(%rip), %rdi     # 0x30fc8
leaq 0x41cf(%rip), %rsi      # 0x245c3
callq 0x31f0
leaq 0x41c7(%rip), %rsi      # 0x245c7
movq %rax, %rdi
callq 0x31f0
leaq -0x80(%rbp), %rsi
movq %rax, %rdi
callq 0x31c0
leaq 0x41a8(%rip), %rsi      # 0x245c3
movq %rax, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x3110
leaq -0xa0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x3290
pushq $0x74
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 0x2049b
movq 0x10b49(%rip), %rdi     # 0x30fc8
leaq 0x410c(%rip), %rsi      # 0x24592
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 0x204ce
jmp 0x204cb
jmp 0x204cb
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x3370