// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_editar.cpp
// Function: editar_animais(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>>>&, std::map<int, VETERINARIO, std::less<int>, std::allocator<std::pair<int const, VETERINARIO>>>, std::map<int, TRATADOR, std::less<int>, std::allocator<std::pair<int const, TRATADOR>>>)
void editar_animais(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, map <int, VETERINARIO> vets, map <int, TRATADOR> tratadores){
	char tipo_animal;
	char resp, op = 'n';

	do{  
		cout << "Qual animal deseja editar? \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'){
				editar(anfibios_nat, anfibios_ex, vets, tratadores);
			}
			else if(tipo_animal == 'm'){
				editar(mamiferos_nat, mamiferos_ex, vets, tratadores);
			}
			else if(tipo_animal == 'r'){
				editar(repteis_nat, repteis_ex, vets, tratadores);
			}
			else{
				editar(aves_nat, aves_ex, vets, tratadores);
			}	

		} // Primeiro else.
	}while(op == 's');
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %r9, -0x40(%rbp)
movq %r8, -0x38(%rbp)
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x1a1b1(%rip), %rdi     # 0x30fc8
leaq 0xd363(%rip), %rsi      # 0x24181
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq 0x1a1ae(%rip), %rdi     # 0x30fe0
leaq -0x2a(%rbp), %rbx
movq %rbx, %rsi
callq 0x3280
movzbl (%rbx), %eax
cmpl $0x61, %eax
je 0x16f49
cmpl $0x6d, %eax
je 0x16eaa
cmpl $0x72, %eax
je 0x16efa
cmpl $0x76, %eax
jne 0x16f9b
leaq -0x130(%rbp), %rbx
movq %rbx, %rdi
movq 0x20(%rbp), %rsi
callq 0x3ed0
leaq -0x70(%rbp), %rdi
movq 0x28(%rbp), %rsi
callq 0x430a
movq 0x18(%rbp), %rsi
movq 0x10(%rbp), %rdi
leaq -0x70(%rbp), %rcx
movq %rbx, %rdx
callq 0x1bc9c
leaq -0x70(%rbp), %rdi
callq 0x4676
leaq -0x130(%rbp), %rdi
jmp 0x16f94
leaq -0x190(%rbp), %rbx
movq %rbx, %rdi
movq 0x20(%rbp), %rsi
callq 0x3ed0
leaq -0xd0(%rbp), %rdi
movq 0x28(%rbp), %rsi
callq 0x430a
leaq -0xd0(%rbp), %rcx
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x18aac
leaq -0xd0(%rbp), %rdi
callq 0x4676
leaq -0x190(%rbp), %rdi
jmp 0x16f94
leaq -0x160(%rbp), %rbx
movq %rbx, %rdi
movq 0x20(%rbp), %rsi
callq 0x3ed0
leaq -0xa0(%rbp), %rdi
movq 0x28(%rbp), %rsi
callq 0x430a
leaq -0xa0(%rbp), %rcx
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq %rbx, %rdx
callq 0x1a2d0
leaq -0xa0(%rbp), %rdi
callq 0x4676
leaq -0x160(%rbp), %rdi
jmp 0x16f94
leaq -0x1c0(%rbp), %rbx
movq %rbx, %rdi
movq 0x20(%rbp), %rsi
callq 0x3ed0
leaq -0x100(%rbp), %rdi
movq 0x28(%rbp), %rsi
callq 0x430a
leaq -0x100(%rbp), %rcx
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x17045
leaq -0x100(%rbp), %rdi
callq 0x4676
leaq -0x1c0(%rbp), %rdi
callq 0x468e
jmp 0x16fe8
movq 0x1a026(%rip), %rbx     # 0x30fc8
leaq 0xd228(%rip), %rsi      # 0x241d1
movq %rbx, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rbx, %rdi
callq 0x3110
leaq 0xc610(%rip), %rsi      # 0x235d8
movq %rbx, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq 0x1a001(%rip), %rdi     # 0x30fe0
leaq -0x29(%rbp), %rsi
callq 0x3280
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x100(%rbp), %rdi
jmp 0x17025
movq %rax, %r14
leaq -0xa0(%rbp), %rdi
jmp 0x17025
movq %rax, %r14
leaq -0x70(%rbp), %rdi
jmp 0x17025
movq %rax, %r14
leaq -0xd0(%rbp), %rdi
callq 0x4676
jmp 0x17035
jmp 0x17032
jmp 0x17032
jmp 0x17032
movq %rax, %r14
movq %rbx, %rdi
callq 0x468e
movq %r14, %rdi
callq 0x3370