// File: /workspace/github_cpp_makefile_star2_O1/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)
movb $0x6e, %r13b
movq 0x34c69(%rip), %r12     # 0x47fd0
movq 0x34c72(%rip), %rbx     # 0x47fe0
movl $0x54, %edx
movq %r12, %rdi
leaq 0x276da(%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 0x13412
cmpl $0x61, %eax
leaq -0xf0(%rbp), %r15
je 0x13522
cmpl $0x6d, %eax
jne 0x13464
movq %r15, %rdi
movq 0x20(%rbp), %rsi
callq 0x41fc
leaq -0x1b0(%rbp), %r14
movq %r14, %rdi
movq 0x28(%rbp), %rsi
callq 0x468c
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x15c92
movq %r14, %rdi
jmp 0x1359c
cmpl $0x72, %eax
je 0x13560
cmpl $0x76, %eax
jne 0x13464
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 0x468c
movq 0x10(%rbp), %rdi
movq 0x18(%rbp), %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x1a65f
movq %r15, %rdi
movq %r14, %r15
jmp 0x1359c
movl $0x2c, %edx
movq %r12, %rdi
leaq 0x27639(%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 0x27141(%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 $0x73, %r13b
cmpb $0x73, -0x29(%rbp)
jne 0x135a9
jmp 0x135b3
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 0x468c
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x13644
movq %r14, %rdi
jmp 0x1359c
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 0x468c
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x180f2
movq %r14, %rdi
callq 0x4a86
movq %r15, %rdi
callq 0x4a9e
cmpb $0x73, %r13b
je 0x1336e
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x1e0(%rbp), %rdi
callq 0x4a86
jmp 0x135d9
movq %rax, %rbx
leaq -0x120(%rbp), %rdi
jmp 0x13637
movq %rax, %rbx
leaq -0x1b0(%rbp), %rdi
callq 0x4a86
jmp 0x135f6
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
jmp 0x13637
movq %rax, %rbx
leaq -0x180(%rbp), %rdi
callq 0x4a86
jmp 0x13613
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
jmp 0x13637
movq %rax, %rbx
leaq -0x150(%rbp), %rdi
callq 0x4a86
jmp 0x13630
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x4a9e
movq %rbx, %rdi
callq 0x3380