// File: /workspace/github_cpp_makefile_star2_O2/viniciu21[P]PetLolja/./src/PetFera.cpp
// Function: Petfera::salvar_doc_animais()
void Petfera::salvar_doc_animais()
{
	vector<string> chaves{"Cuidadores", "Veterinario", "Tratador", "ID", "Classe", "Nome", "Cientifico", "Sexo", "Temperatura", "Habitat", "Possui", "Ovos", "Pele", "Fecundacao", "Troca", "Pele", "Material", "Eliminado", "Batismo", "Dono", "/", "Aquatico", "Terrestre", "Aquatico/Terrestre", "Registro", "Ibama",
												"Territorio"
												"Brasileiro",
												"Ameacado", "Extinsao", "Pais", "Origem", "Tamanho", "bico ", "Envergadura", "Dentes", "Pelagem", "Tipo", "gestacao"};

	ifstream arqCache_animais("cache_animais.dat");
	ofstream arqDados_animais("temp_animais.dat");
	ofstream arqDados_csv_animais("../banco/Dados_csv_animais.csv");
	vector<string> tokens_animais;
	string linha;
	string palavra;

	while (arqCache_animais >> linha)
	{
		if (linha != " " && linha != "==============")
		{
			tokens_animais.push_back(linha);
		}
	}

	for (auto &novo : tokens_animais)
	{
		arqDados_animais << novo << endl;
	}

	for (unsigned int i = 0; i < tokens_animais.size(); ++i)
	{
		for (unsigned int j = 0; j < chaves.size(); ++j)
		{
			if (tokens_animais[i] == chaves[j] || tokens_animais[i] == "|")
			{
				tokens_animais[i] = "";
			}
		}
	}

	for (auto &novo : tokens_animais)
	{
		if (novo == "." && novo != "")
		{
			arqDados_csv_animais << "" << endl;
		}
		else if (novo != "")
		{
			arqDados_csv_animais << novo << ";";
		}
	}

	inicio();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x968, %rsp            # imm = 0x968
movq %rdi, %r15
leaq 0x14f63(%rip), %rsi     # 0x21287
leaq -0x590(%rbp), %rbx
leaq -0x990(%rbp), %rdx
movq %rbx, %rdi
callq 0x40b0
leaq -0x570(%rbp), %r14
leaq 0x14730(%rip), %rsi     # 0x20a78
leaq -0x790(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x550(%rbp), %r14
leaq 0x146f9(%rip), %rsi     # 0x20a5e
leaq -0xb0(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x530(%rbp), %r14
leaq 0x14f10(%rip), %rsi     # 0x21292
leaq -0xd0(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x510(%rbp), %r14
leaq 0x14ef6(%rip), %rsi     # 0x21295
leaq -0x70(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x4f0(%rbp), %r14
leaq 0x14ee3(%rip), %rsi     # 0x2129c
leaq -0x4a(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x4d0(%rbp), %r14
leaq 0x14ece(%rip), %rsi     # 0x212a1
leaq -0x49(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x4b0(%rbp), %r14
leaq 0x14ebf(%rip), %rsi     # 0x212ac
leaq -0x48(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x490(%rbp), %r14
leaq 0x14eaa(%rip), %rsi     # 0x212b1
leaq -0x47(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x470(%rbp), %r14
leaq 0x14e9c(%rip), %rsi     # 0x212bd
leaq -0x46(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x450(%rbp), %r14
leaq 0x14e8a(%rip), %rsi     # 0x212c5
leaq -0x45(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x430(%rbp), %r14
leaq 0x14e77(%rip), %rsi     # 0x212cc
leaq -0x44(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x410(%rbp), %r14
leaq 0x14e62(%rip), %rsi     # 0x212d1
leaq -0x43(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x3f0(%rbp), %r14
leaq 0x14e4d(%rip), %rsi     # 0x212d6
leaq -0x42(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x3d0(%rbp), %r14
leaq 0x14e3e(%rip), %rsi     # 0x212e1
leaq -0x41(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x3b0(%rbp), %r14
leaq 0x14e14(%rip), %rsi     # 0x212d1
leaq -0x40(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x390(%rbp), %r14
leaq 0x14e10(%rip), %rsi     # 0x212e7
leaq -0x3f(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x370(%rbp), %r14
leaq 0x14dff(%rip), %rsi     # 0x212f0
leaq -0x3e(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x350(%rbp), %r14
leaq 0x14def(%rip), %rsi     # 0x212fa
leaq -0x3d(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x330(%rbp), %r14
leaq 0x14ddd(%rip), %rsi     # 0x21302
leaq -0x3c(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x310(%rbp), %r14
leaq 0x14dc8(%rip), %rsi     # 0x21307
leaq -0x3b(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x2f0(%rbp), %r14
leaq 0x14db0(%rip), %rsi     # 0x21309
leaq -0x3a(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x2d0(%rbp), %r14
leaq 0x14da8(%rip), %rsi     # 0x2131b
leaq -0x39(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x2b0(%rbp), %r14
leaq 0x14d85(%rip), %rsi     # 0x21312
leaq -0x38(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x290(%rbp), %r14
leaq 0x14d7e(%rip), %rsi     # 0x21325
leaq -0x37(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x270(%rbp), %r14
leaq 0x14d6d(%rip), %rsi     # 0x2132e
leaq -0x36(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x250(%rbp), %r14
leaq 0x14d59(%rip), %rsi     # 0x21334
leaq -0x35(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x230(%rbp), %r14
leaq 0x12cb3(%rip), %rsi     # 0x1f2a8
leaq -0x34(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x210(%rbp), %r14
leaq 0x14d3a(%rip), %rsi     # 0x21349
leaq -0x33(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x1f0(%rbp), %r14
leaq 0x14d29(%rip), %rsi     # 0x21352
leaq -0x32(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x1d0(%rbp), %r14
leaq 0x14d14(%rip), %rsi     # 0x21357
leaq -0x31(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x1b0(%rbp), %r14
leaq 0x14d01(%rip), %rsi     # 0x2135e
leaq -0x30(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x190(%rbp), %r14
leaq 0x14cef(%rip), %rsi     # 0x21366
leaq -0x2f(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x170(%rbp), %r14
leaq 0x14cdb(%rip), %rsi     # 0x2136c
leaq -0x2e(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x150(%rbp), %r14
leaq 0x14ccd(%rip), %rsi     # 0x21378
leaq -0x2d(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x130(%rbp), %r14
leaq 0x14cba(%rip), %rsi     # 0x2137f
leaq -0x2c(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x110(%rbp), %r14
leaq 0x14ca8(%rip), %rsi     # 0x21387
leaq -0x2b(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0xf0(%rbp), %r14
leaq 0x1498c(%rip), %rsi     # 0x21085
leaq -0x2a(%rbp), %rdx
movq %r14, %rdi
callq 0x40b0
leaq -0x90(%rbp), %rdi
leaq -0x590(%rbp), %rsi
pushq $0x26
popq %rdx
leaq -0x29(%rbp), %rcx
callq 0x14152
movl $0x4a0, %ebx            # imm = 0x4A0
leaq (%rbx,%rbp), %rdi
addq $-0x590, %rdi           # imm = 0xFA70
callq 0x40e0
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0xc724
leaq 0x13885(%rip), %rsi     # 0x1ffca
leaq -0x590(%rbp), %rdi
pushq $0x8
popq %rdx
callq 0x42d0
leaq 0x14c31(%rip), %rsi     # 0x2138c
leaq -0x990(%rbp), %rdi
pushq $0x10
popq %rdx
callq 0x41d0
movq %r15, -0x78(%rbp)
leaq 0x1317d(%rip), %rsi     # 0x1f8f2
leaq -0x790(%rbp), %rdi
pushq $0x10
popq %rdx
callq 0x41d0
xorps %xmm0, %xmm0
leaq -0x70(%rbp), %rbx
movaps %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq -0x590(%rbp), %r14
leaq -0xb0(%rbp), %r15
leaq 0x1522f(%rip), %r12     # 0x219fd
leaq 0x12dd3(%rip), %r13     # 0x1f5a8
movq %r14, %rdi
movq %r15, %rsi
callq 0x41f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xc819
movq %r15, %rdi
movq %r12, %rsi
callq 0x13f87
testb %al, %al
je 0xc7d5
movq %r15, %rdi
movq %r13, %rsi
callq 0x13f87
testb %al, %al
je 0xc7d5
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1328e
jmp 0xc7d5
movq -0x70(%rbp), %rbx
movq -0x68(%rbp), %r15
leaq -0x990(%rbp), %r14
cmpq %r15, %rbx
je 0xc846
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4190
movq %rax, %rdi
callq 0x40f0
addq $0x20, %rbx
jmp 0xc828
xorl %r13d, %r13d
leaq 0x131c2(%rip), %r14     # 0x1fa12
leaq 0x14b46(%rip), %r12     # 0x2139d
movl %r13d, %r13d
movq -0x70(%rbp), %rbx
movq -0x68(%rbp), %r15
movq %r15, %rax
subq %rbx, %rax
sarq $0x5, %rax
cmpq %r13, %rax
jbe 0xc8de
xorl %ebx, %ebx
movq %r13, %r15
shlq $0x5, %r15
movl %ebx, %ebx
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rbx, %rax
jbe 0xc8d6
movq -0x70(%rbp), %rdi
addq %r15, %rdi
movq %rbx, %rax
shlq $0x5, %rax
addq %rax, %rsi
callq 0x13945
testb %al, %al
jne 0xc8c3
movq -0x70(%rbp), %rdi
addq %r15, %rdi
movq %r12, %rsi
callq 0x132c9
testb %al, %al
je 0xc8d2
movq -0x70(%rbp), %rdi
addq %r15, %rdi
movq %r14, %rsi
callq 0x42f0
incl %ebx
jmp 0xc87a
incl %r13d
jmp 0xc857
leaq 0x12906(%rip), %r14     # 0x1f1eb
leaq 0x13126(%rip), %r12     # 0x1fa12
leaq -0x790(%rbp), %r13
cmpq %r15, %rbx
je 0xc95a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x132c9
testb %al, %al
je 0xc92b
movq %rbx, %rdi
movq %r12, %rsi
callq 0x13f87
testb %al, %al
je 0xc92b
movq %r13, %rdi
movq %r12, %rsi
callq 0x41a0
movq %rax, %rdi
callq 0x40f0
jmp 0xc954
movq %rbx, %rdi
movq %r12, %rsi
callq 0x13f87
testb %al, %al
je 0xc954
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4190
movq %rax, %rdi
leaq 0x14a50(%rip), %rsi     # 0x2139f
callq 0x41a0
addq $0x20, %rbx
jmp 0xc8f3
movq -0x78(%rbp), %rdi
callq 0xadc2
leaq -0xd0(%rbp), %rdi
callq 0x40e0
leaq -0xb0(%rbp), %rdi
callq 0x40e0
leaq -0x70(%rbp), %rdi
callq 0x13392
leaq -0x790(%rbp), %rdi
callq 0x4250
leaq -0x990(%rbp), %rdi
callq 0x4250
leaq -0x590(%rbp), %rdi
callq 0x4070
leaq -0x90(%rbp), %rdi
callq 0x13392
addq $0x968, %rsp            # imm = 0x968
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xca83
movq %rax, %r15
jmp 0xcab3
movq %rax, %r15
jmp 0xcabf
movq %rax, %r15
jmp 0xcacb
movq %rax, %r15
movl $0x4a0, %r12d           # imm = 0x4A0
leaq (%r12,%rbp), %rdi
addq $-0x590, %rdi           # imm = 0xFA70
callq 0x40e0
addq $-0x20, %r12
cmpq $-0x20, %r12
jne 0xc9ec
movb $0x1, %al
jmp 0xca57
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
jmp 0xca52
movq %rax, %r15
xorl %eax, %eax
cmpq %r14, %rbx
sete %cl
testb %al, %al
jne 0xcad7
testb %cl, %cl
jne 0xcad7
addq $-0x20, %r14
movq %r14, %rdi
callq 0x40e0
cmpq %rbx, %r14
jne 0xca65
jmp 0xcad7
movq %rax, %r15
jmp 0xcad7
jmp 0xca83
jmp 0xca83
jmp 0xca83
movq %rax, %r15
leaq -0xd0(%rbp), %rdi
callq 0x40e0
leaq -0xb0(%rbp), %rdi
callq 0x40e0
leaq -0x70(%rbp), %rdi
callq 0x13392
leaq -0x790(%rbp), %rdi
callq 0x4250
leaq -0x990(%rbp), %rdi
callq 0x4250
leaq -0x590(%rbp), %rdi
callq 0x4070
leaq -0x90(%rbp), %rdi
callq 0x13392
movq %r15, %rdi
callq 0x42c0
nop