// File: /workspace/github_cpp_makefile_star2_O1/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 $0x1a8, %rsp            # imm = 0x1A8
movq %r9, -0x38(%rbp)
movq %r8, %r14
movq %rcx, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq %rsi, %r15
movq %rdi, %r12
movq 0x239c0(%rip), %rbx     # 0x47fd0
leaq 0x16baa(%rip), %rsi     # 0x3b1c1
movl $0x4f, %edx
movq %rbx, %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
movq 0x2398e(%rip), %rdi     # 0x47fe0
leaq -0x2a(%rbp), %r13
movq %r13, %rsi
callq 0x3280
movzbl (%r13), %eax
cmpl $0x71, %eax
jg 0x246cc
cmpl $0x61, %eax
je 0x247d5
cmpl $0x6d, %eax
jne 0x24723
leaq -0x198(%rbp), %rbx
movq %rbx, %rdi
movq 0x20(%rbp), %rsi
callq 0x41fc
leaq -0xd8(%rbp), %rdi
movq 0x28(%rbp), %rsi
callq 0x468c
leaq -0xd8(%rbp), %rcx
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq %rbx, %rdx
callq 0x2800e
leaq -0xd8(%rbp), %rdi
callq 0x4a86
leaq -0x198(%rbp), %rdi
jmp 0x2486e
cmpl $0x72, %eax
je 0x24822
cmpl $0x76, %eax
jne 0x24723
leaq -0x138(%rbp), %rbx
movq %rbx, %rdi
movq 0x20(%rbp), %rsi
callq 0x41fc
leaq -0x78(%rbp), %rdi
movq 0x28(%rbp), %rsi
callq 0x468c
movq 0x18(%rbp), %rsi
movq 0x10(%rbp), %rdi
leaq -0x78(%rbp), %rcx
movq %rbx, %rdx
callq 0x2e850
leaq -0x78(%rbp), %rdi
callq 0x4a86
leaq -0x138(%rbp), %rdi
jmp 0x2486e
leaq 0x16ae7(%rip), %rsi     # 0x3b211
movl $0x25, %edx
movq %rbx, %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
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 0x15e8c(%rip), %rsi     # 0x3a618
movl $0x10, %edx
movq %rbx, %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
movq 0x23819(%rip), %rdi     # 0x47fe0
leaq -0x29(%rbp), %rsi
callq 0x3280
jmp 0x24873
leaq -0x1c8(%rbp), %rbx
movq %rbx, %rdi
movq 0x20(%rbp), %rsi
callq 0x41fc
leaq -0x108(%rbp), %rdi
movq 0x28(%rbp), %rsi
callq 0x468c
leaq -0x108(%rbp), %rcx
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x248d0
leaq -0x108(%rbp), %rdi
callq 0x4a86
leaq -0x1c8(%rbp), %rdi
jmp 0x2486e
leaq -0x168(%rbp), %rbx
movq %rbx, %rdi
movq 0x20(%rbp), %rsi
callq 0x41fc
leaq -0xa8(%rbp), %rdi
movq 0x28(%rbp), %rsi
callq 0x468c
leaq -0xa8(%rbp), %rcx
movq %r14, %rdi
movq -0x38(%rbp), %rsi
movq %rbx, %rdx
callq 0x2b2dd
leaq -0xa8(%rbp), %rdi
callq 0x4a86
leaq -0x168(%rbp), %rdi
callq 0x4a9e
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0xa8(%rbp), %rdi
jmp 0x248b0
movq %rax, %r14
leaq -0x108(%rbp), %rdi
jmp 0x248b0
movq %rax, %r14
leaq -0x78(%rbp), %rdi
jmp 0x248b0
movq %rax, %r14
leaq -0xd8(%rbp), %rdi
callq 0x4a86
jmp 0x248c0
jmp 0x248bd
jmp 0x248bd
jmp 0x248bd
movq %rax, %r14
movq %rbx, %rdi
callq 0x4a9e
movq %r14, %rdi
callq 0x3380