// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_remover.cpp
// Function: remover_animal(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 remover_animal(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 tipo_animal;
	char resp, op = 'n';

	do{  
		cout << "Qual animal deseja remover? \n a - anfíbio\n m - mamífero \n r - reptil \n v - ave" << endl;
		cin >> tipo_animal;
		if(tipo_animal != 'a' && tipo_animal != 'm' && tipo_animal != 'r' && tipo_animal != 'v' ){
			cout << "Opção inválida!! Tente novamente!\n" << endl;
			cout << endl;
			cout << "Deseja sair? s/n" << endl;
			cin >> resp;
			if(resp == 's'){
				break;
			}
		}
		else{
			if(tipo_animal == 'a'){
				remover(anfibios_nat, anfibios_ex); // Função remover sobrecarregada.
			}
			else if(tipo_animal == 'm'){
				remover(mamiferos_nat, mamiferos_ex);
			}
			else if(tipo_animal == 'r'){
				remover(repteis_nat, repteis_ex);
			}
			else{
				remover(aves_nat, aves_ex);
			}
		
		} // Primeiro else.
	}while(op == 's');
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, -0x40(%rbp)
movq %r8, -0x38(%rbp)
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
movq 0x1289c(%rip), %rdi     # 0x30fc8
leaq 0x5c54(%rip), %rsi      # 0x24387
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq 0x12899(%rip), %rdi     # 0x30fe0
leaq -0x2a(%rbp), %r14
movq %r14, %rsi
callq 0x3280
movzbl (%r14), %eax
cmpl $0x61, %eax
je 0x1e796
cmpl $0x6d, %eax
je 0x1e77a
cmpl $0x72, %eax
je 0x1e787
cmpl $0x76, %eax
jne 0x1e7a3
movq 0x18(%rbp), %rsi
movq 0x10(%rbp), %rdi
callq 0x1f3fc
jmp 0x1e7f0
movq %r12, %rdi
movq %r15, %rsi
callq 0x1ebfe
jmp 0x1e7f0
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x1effd
jmp 0x1e7f0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1e7ff
jmp 0x1e7f0
movq 0x1281e(%rip), %rbx     # 0x30fc8
leaq 0x5a20(%rip), %rsi      # 0x241d1
movq %rbx, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rbx, %rdi
callq 0x3110
leaq 0x4e08(%rip), %rsi      # 0x235d8
movq %rbx, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq 0x127f9(%rip), %rdi     # 0x30fe0
leaq -0x29(%rbp), %rsi
callq 0x3280
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq