// File: /workspace/github_cpp_makefile_star2_O3/nataly-enne[P]pet-fera/pet_fera_cadastrar.cpp
// Function: cadastrar_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>>>&, 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 cadastrar_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, map <int, VETERINARIO> vets, map <int, TRATADOR> tratadores){
	char tipo_func;
	char continuar = 'n', resp;

	do{
		cout << "Qual animal a ser cadastrado? \n a - anfíbio\n m - mamífero \n r - repteis \n v - aves" << endl;
		cin >> tipo_func;
		if(tipo_func != 'a' && tipo_func != 'm' && tipo_func != 'r' && tipo_func != 'v'){
			cout << "Tipo de animal incorreto!! Tente novamente!\n" << endl;
			cout << endl;
			cout << "Deseja sair? s/n" << endl;
			cin >> resp;
			if(resp == 's'){
				continuar = 'n';;
				break;
			}
			continuar = 's';
			continue;
		}
		else{
			if(tipo_func == 'a'){
				cadastrar(anfibios_nat, anfibios_ex, vets, tratadores);
			}
			else if(tipo_func == 'm'){
				cadastrar(mamiferos_nat, mamiferos_ex, vets, tratadores);
			}
			else if(tipo_func == 'r'){
				cadastrar(repteis_nat, repteis_ex, vets, tratadores);
			}		
			else{
				cadastrar(aves_nat, aves_ex, vets, tratadores);
			}
		}
	}while (continuar == 's');	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %r9, -0x60(%rbp)
movq %r8, -0x58(%rbp)
movq %rcx, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq %rsi, -0x40(%rbp)
movq %rdi, -0x38(%rbp)
xorl %r13d, %r13d
movq 0x34c5d(%rip), %r12     # 0x47fd0
movq 0x34c66(%rip), %rbx     # 0x47fe0
movl $0x54, %edx
movq %r12, %rdi
leaq 0x276ce(%rip), %rsi     # 0x3aa57
callq 0x3250
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq %rbx, %rdi
leaq -0x2a(%rbp), %rsi
callq 0x3280
movzbl -0x2a(%rbp), %eax
cmpl $0x71, %eax
jg 0x1341e
cmpl $0x61, %eax
leaq -0xf0(%rbp), %r15
je 0x1352e
cmpl $0x6d, %eax
jne 0x13470
movq %r15, %rdi
movq 0x20(%rbp), %rsi
callq 0x41fc
leaq -0x1b0(%rbp), %r14
movq %r14, %rdi
movq 0x28(%rbp), %rsi
callq 0x4690
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x15cb7
movq %r14, %rdi
jmp 0x135a8
cmpl $0x72, %eax
je 0x1356c
cmpl $0x76, %eax
jne 0x13470
leaq -0x90(%rbp), %r14
movq %r14, %rdi
movq 0x20(%rbp), %rsi
callq 0x41fc
leaq -0x150(%rbp), %r15
movq %r15, %rdi
movq 0x28(%rbp), %rsi
callq 0x4690
movq 0x10(%rbp), %rdi
movq 0x18(%rbp), %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x1a614
movq %r15, %rdi
movq %r14, %r15
jmp 0x135a8
movl $0x2c, %edx
movq %r12, %rdi
leaq 0x2762d(%rip), %rsi     # 0x3aaac
callq 0x3250
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
movl $0x10, %edx
movq %r12, %rdi
leaq 0x27135(%rip), %rsi     # 0x3a618
callq 0x3250
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq %rbx, %rdi
leaq -0x29(%rbp), %rsi
callq 0x3280
movb $0x1, %r13b
cmpb $0x73, -0x29(%rbp)
jne 0x1337a
jmp 0x135c2
leaq -0x120(%rbp), %r15
movq %r15, %rdi
movq 0x20(%rbp), %rsi
callq 0x41fc
leaq -0x1e0(%rbp), %r14
movq %r14, %rdi
movq 0x28(%rbp), %rsi
callq 0x4690
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x13653
movq %r14, %rdi
jmp 0x135a8
leaq -0xc0(%rbp), %r15
movq %r15, %rdi
movq 0x20(%rbp), %rsi
callq 0x41fc
leaq -0x180(%rbp), %r14
movq %r14, %rdi
movq 0x28(%rbp), %rsi
callq 0x4690
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x18095
movq %r14, %rdi
callq 0x4a8a
movq %r15, %rdi
callq 0x4aa2
testb $0x1, %r13b
movb $0x1, %r13b
jne 0x1337a
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x150(%rbp), %rdi
callq 0x4a8a
jmp 0x135e8
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
jmp 0x13646
movq %rax, %rbx
leaq -0x1e0(%rbp), %rdi
callq 0x4a8a
jmp 0x13605
movq %rax, %rbx
leaq -0x120(%rbp), %rdi
jmp 0x13646
movq %rax, %rbx
leaq -0x1b0(%rbp), %rdi
callq 0x4a8a
jmp 0x13622
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
jmp 0x13646
movq %rax, %rbx
leaq -0x180(%rbp), %rdi
callq 0x4a8a
jmp 0x1363f
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x4aa2
movq %rbx, %rdi
callq 0x3380