// File: /workspace/github_cpp_makefile_star2_O3/viniciu21[P]PetLolja/./src/PetFera.cpp
// Function: Petfera::cadastrarAveNativa()
void Petfera::cadastrarAveNativa()
{
	std::shared_ptr<Funcionario> tratador = pegarTratador();
	std::shared_ptr<Funcionario> veterinario = pegarVeterinario();

	string especie = leString("Digite o nome cientifico para o animal \n");
	string nome = leString("Digite o nome popular para o animal \n");
	t_genero genero = leGenero("Digite F para femea e M para macho \n");
	string tipo_temperatura = leString("Digite o tipo de temperatura do animal \n");
	string tipo_pele = leString("Digite o tipo de pele do animal \n");
	string tipo_fecundacao = leString("Digite o tipo de fecundacao do animal \n");
	string material_eliminidado = leString("Digite o tipo de material eliminidado pelo animal \n");
	string envergadura = leString("Digite a envergadura do animal \n");
	string tamanhoDoBico = leString("Digite o tamanho do bico do animal \n");
	bool troca_pele = leBool("Digite S se o animal troca de pele ou N se o animal nao troca de pele \n");
	string aquatico_terrestre = leString("Digite se o animal e aquatico ou terrestre \n");
	bool registro_ibama = leBool("Digite S se o animal possui registro no ibama e N se o animal nao registro no Ibama \n");
	bool territorio_brasileiro = true;
	enExtincao extincao = nao_ameacado;

	std::shared_ptr<Animal> criado = std::make_shared<AveNativo>(this->animalStore.size(), especie, nome, genero, Aves, veterinario, tratador, tipo_temperatura, tipo_pele, tipo_fecundacao, troca_pele, material_eliminidado, tamanhoDoBico, envergadura, aquatico_terrestre, registro_ibama, territorio_brasileiro, extincao);

	if (adicionarAnimal(criado))
	{
		this->animais_cadastrados++;
	}
	else
	{
		cout << "Erro no cadastro, tente novamente " << endl;
		cadastrarAveNativa();
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
movq %rdi, %rbx
leaq -0x70(%rbp), %rdi
movq %rbx, %rsi
callq 0x13898
leaq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x1371c
leaq -0x1e8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x18fe3(%rip), %rsi     # 0x2e072
leaq 0x19004(%rip), %rdx     # 0x2e09a
leaq -0x1f8(%rbp), %rdi
callq 0x1e0e2
leaq -0x2f8(%rbp), %rdi
leaq -0x1f8(%rbp), %rdx
callq 0x142ec
movq -0x1f8(%rbp), %rdi
cmpq %r14, %rdi
je 0x150d0
movq -0x1e8(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x1c8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x18fb9(%rip), %rsi     # 0x2e09b
leaq 0x18fd7(%rip), %rdx     # 0x2e0c0
leaq -0x1d8(%rbp), %rdi
callq 0x1e0e2
leaq -0x2d8(%rbp), %rdi
leaq -0x1d8(%rbp), %rdx
callq 0x142ec
movq -0x1d8(%rbp), %rdi
cmpq %r14, %rdi
je 0x15123
movq -0x1c8(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x1a8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x18f8c(%rip), %rsi     # 0x2e0c1
leaq 0x18fa9(%rip), %rdx     # 0x2e0e5
leaq -0x1b8(%rbp), %rdi
callq 0x1e0e2
leaq -0x1b8(%rbp), %rsi
callq 0x1435a
movl %eax, %r14d
movq -0x1b8(%rbp), %rdi
cmpq %r15, %rdi
je 0x15172
movq -0x1a8(%rbp), %rsi
incq %rsi
callq 0x41d0
movl %r14d, -0x30(%rbp)
leaq -0x188(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x18f5e(%rip), %rsi     # 0x2e0e6
leaq 0x18f7f(%rip), %rdx     # 0x2e10e
leaq -0x198(%rbp), %rdi
callq 0x1e0e2
leaq -0x2b8(%rbp), %rdi
leaq -0x198(%rbp), %rdx
callq 0x142ec
movq -0x198(%rbp), %rdi
cmpq %r14, %rdi
je 0x151c9
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x168(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x18f34(%rip), %rsi     # 0x2e10f
leaq 0x18f4e(%rip), %rdx     # 0x2e130
leaq -0x178(%rbp), %rdi
callq 0x1e0e2
leaq -0x318(%rbp), %r13
leaq -0x178(%rbp), %rdx
movq %r13, %rdi
callq 0x142ec
movq -0x178(%rbp), %rdi
cmpq %r14, %rdi
je 0x1521f
movq -0x168(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x148(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x18f00(%rip), %rsi     # 0x2e131
leaq 0x18f20(%rip), %rdx     # 0x2e158
leaq -0x158(%rbp), %rdi
callq 0x1e0e2
leaq -0x298(%rbp), %rdi
leaq -0x158(%rbp), %rdx
callq 0x142ec
movq -0x158(%rbp), %rdi
cmpq %r14, %rdi
je 0x15272
movq -0x148(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x128(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x18f18(%rip), %rsi     # 0x2e19c
leaq 0x18f44(%rip), %rdx     # 0x2e1cf
leaq -0x138(%rbp), %rdi
callq 0x1e0e2
leaq -0x278(%rbp), %rdi
leaq -0x138(%rbp), %rdx
callq 0x142ec
movq -0x138(%rbp), %rdi
cmpq %r14, %rdi
je 0x152c5
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x108(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x18ef9(%rip), %rsi     # 0x2e1d0
leaq 0x18f12(%rip), %rdx     # 0x2e1f0
leaq -0x118(%rbp), %rdi
callq 0x1e0e2
leaq -0x258(%rbp), %rdi
leaq -0x118(%rbp), %rdx
callq 0x142ec
movq -0x118(%rbp), %rdi
cmpq %r14, %rdi
je 0x15318
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0xe8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x18ec7(%rip), %rsi     # 0x2e1f1
leaq 0x18ee4(%rip), %rdx     # 0x2e215
leaq -0xf8(%rbp), %rdi
callq 0x1e0e2
leaq -0x238(%rbp), %rdi
leaq -0xf8(%rbp), %rdx
callq 0x142ec
movq -0xf8(%rbp), %rdi
cmpq %r14, %rdi
je 0x1536b
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0xc8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x18eb8(%rip), %rsi     # 0x2e235
leaq 0x18ef8(%rip), %rdx     # 0x2e27c
leaq -0xd8(%rbp), %rdi
callq 0x1e0e2
leaq -0xd8(%rbp), %rsi
callq 0x144be
movl %eax, %r14d
movq -0xd8(%rbp), %rdi
cmpq %r15, %rdi
je 0x153ba
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x41d0
movb %r14b, -0x29(%rbp)
leaq -0xa8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x18ead(%rip), %rsi     # 0x2e27d
leaq 0x18ed2(%rip), %rdx     # 0x2e2a9
leaq -0xb8(%rbp), %rdi
callq 0x1e0e2
leaq -0x218(%rbp), %rdi
leaq -0xb8(%rbp), %rdx
callq 0x142ec
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x15411
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x88(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x18e86(%rip), %rsi     # 0x2e2aa
leaq 0x18ed4(%rip), %rdx     # 0x2e2ff
leaq -0x98(%rbp), %rdi
callq 0x1e0e2
leaq -0x98(%rbp), %rsi
callq 0x144be
movl %eax, %r15d
movq %r13, %r14
movq -0x98(%rbp), %rdi
cmpq %r12, %rdi
je 0x15464
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x2b(%rbp), %rax
movb %r15b, (%rax)
leaq -0x2a(%rbp), %r10
movb $0x1, (%r10)
movl $0x1, %edx
leaq -0x78(%rbp), %r15
movl %edx, (%r15)
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x4, %rsi
leaq -0x320(%rbp), %rcx
movq %rsi, (%rcx)
leaq -0x74(%rbp), %r11
movl %edx, (%r11)
leaq -0x48(%rbp), %rdi
movq $0x0, -0x8(%rdi)
subq $0x8, %rsp
leaq -0x29(%rbp), %r12
leaq -0x30(%rbp), %r13
leaq -0x50(%rbp), %rsi
leaq -0x2c(%rbp), %rdx
leaq -0x2f8(%rbp), %r8
leaq -0x2d8(%rbp), %r9
pushq %r15
pushq %r10
pushq %rax
leaq -0x218(%rbp), %rax
pushq %rax
leaq -0x258(%rbp), %rax
pushq %rax
leaq -0x238(%rbp), %rax
pushq %rax
leaq -0x278(%rbp), %rax
pushq %rax
pushq %r12
leaq -0x298(%rbp), %rax
pushq %rax
pushq %r14
leaq -0x2b8(%rbp), %rax
pushq %rax
leaq -0x70(%rbp), %rax
pushq %rax
leaq -0x60(%rbp), %rax
pushq %rax
pushq %r11
pushq %r13
callq 0x2423e
addq $0x80, %rsp
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %r14
movq %rax, -0x40(%rbp)
movq %r14, -0x38(%rbp)
testq %r14, %r14
je 0x15548
movq 0x25a90(%rip), %rax     # 0x3afc8
cmpb $0x0, (%rax)
je 0x15543
incl 0x8(%r14)
jmp 0x15548
lock
incl 0x8(%r14)
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x10b76
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x15562
callq 0x4eac
incl 0x18(%rbx)
testq %r14, %r14
je 0x15572
movq %r14, %rdi
callq 0x4eac
leaq -0x208(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15591
movq -0x208(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x228(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x155b0
movq -0x228(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x248(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x155cf
movq -0x248(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x268(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x155ee
movq -0x268(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x288(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1560d
movq -0x288(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x308(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1562c
movq -0x308(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x2a8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1564b
movq -0x2a8(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x2c8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1566a
movq -0x2c8(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x2e8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15689
movq -0x2e8(%rbp), %rsi
incq %rsi
callq 0x41d0
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x15697
callq 0x4eac
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x156a5
callq 0x4eac
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x156c8
callq 0x4eac
testq %r14, %r14
je 0x156fc
movq %r14, %rdi
callq 0x4eac
jmp 0x156fc
jmp 0x156f9
movq %rax, %rbx
movq -0x98(%rbp), %rdi
cmpq %r12, %rdi
je 0x156fc
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x41d0
jmp 0x156fc
movq %rax, %rbx
leaq -0x208(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15752
movq -0x208(%rbp), %rsi
jmp 0x15745
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x15752
movq -0xa8(%rbp), %rsi
jmp 0x15745
jmp 0x1574f
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
cmpq %r15, %rdi
je 0x15752
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x41d0
jmp 0x15752
movq %rax, %rbx
leaq -0x228(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15771
movq -0x228(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x248(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15790
movq -0x248(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x268(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x157af
movq -0x268(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x288(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x157ce
movq -0x288(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x308(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x157ed
movq -0x308(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x2a8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1580c
movq -0x2a8(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x2c8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1582b
movq -0x2c8(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x2e8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1584a
movq -0x2e8(%rbp), %rsi
incq %rsi
callq 0x41d0
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x15858
callq 0x4eac
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x15866
callq 0x4eac
movq %rbx, %rdi
callq 0x42f0
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
cmpq %r14, %rdi
je 0x15771
movq -0xe8(%rbp), %rsi
jmp 0x15769
movq %rax, %rbx
jmp 0x15771
movq %rax, %rbx
movq -0x118(%rbp), %rdi
cmpq %r14, %rdi
je 0x15790
movq -0x108(%rbp), %rsi
jmp 0x15788
movq %rax, %rbx
jmp 0x15790
movq %rax, %rbx
movq -0x138(%rbp), %rdi
cmpq %r14, %rdi
je 0x157af
movq -0x128(%rbp), %rsi
jmp 0x157a7
movq %rax, %rbx
jmp 0x157af
movq %rax, %rbx
movq -0x158(%rbp), %rdi
cmpq %r14, %rdi
je 0x157ce
movq -0x148(%rbp), %rsi
jmp 0x157c6
movq %rax, %rbx
jmp 0x157ce
movq %rax, %rbx
movq -0x178(%rbp), %rdi
cmpq %r14, %rdi
je 0x157ed
movq -0x168(%rbp), %rsi
jmp 0x157e5
movq %rax, %rbx
jmp 0x157ed
movq %rax, %rbx
movq -0x198(%rbp), %rdi
cmpq %r14, %rdi
je 0x1580c
movq -0x188(%rbp), %rsi
jmp 0x15804
jmp 0x15971
movq %rax, %rbx
movq -0x1b8(%rbp), %rdi
cmpq %r15, %rdi
je 0x1580c
movq -0x1a8(%rbp), %rsi
jmp 0x15804
movq %rax, %rbx
jmp 0x1580c
movq %rax, %rbx
movq -0x1d8(%rbp), %rdi
cmpq %r14, %rdi
je 0x1582b
movq -0x1c8(%rbp), %rsi
jmp 0x15823
movq %rax, %rbx
jmp 0x1582b
movq %rax, %rbx
movq -0x1f8(%rbp), %rdi
cmpq %r14, %rdi
je 0x1584a
movq -0x1e8(%rbp), %rsi
jmp 0x15842
movq %rax, %rbx
jmp 0x1584a
movq %rax, %rbx
jmp 0x15858
nop