// File: /workspace/github_cpp_makefile_star2_O1/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 $0x938, %rsp            # imm = 0x938
movq %rdi, %r12
leaq -0x550(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c722(%rip), %rsi     # 0x2f2a7
leaq 0x1c725(%rip), %rdx     # 0x2f2b1
leaq -0x560(%rbp), %r14
movq %r14, %rdi
callq 0x1e03c
leaq -0x540(%rbp), %r15
leaq -0x530(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1bee4(%rip), %rsi     # 0x2ea98
leaq 0x1bee8(%rip), %rdx     # 0x2eaa3
movq %r15, %rdi
callq 0x1e03c
leaq -0x520(%rbp), %r15
leaq -0x510(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1bea2(%rip), %rsi     # 0x2ea7e
leaq 0x1bea3(%rip), %rdx     # 0x2ea86
movq %r15, %rdi
callq 0x1e03c
leaq -0x500(%rbp), %r15
leaq -0x4f0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c6ae(%rip), %rsi     # 0x2f2b2
leaq 0x1c6a9(%rip), %rdx     # 0x2f2b4
movq %r15, %rdi
callq 0x1e03c
leaq -0x4e0(%rbp), %r15
leaq -0x4d0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c689(%rip), %rsi     # 0x2f2b5
leaq 0x1c688(%rip), %rdx     # 0x2f2bb
movq %r15, %rdi
callq 0x1e03c
leaq -0x4c0(%rbp), %r15
leaq -0x4b0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c668(%rip), %rsi     # 0x2f2bc
leaq 0x1c665(%rip), %rdx     # 0x2f2c0
movq %r15, %rdi
callq 0x1e03c
leaq -0x4a0(%rbp), %r15
leaq -0x490(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c645(%rip), %rsi     # 0x2f2c1
leaq 0x1c648(%rip), %rdx     # 0x2f2cb
movq %r15, %rdi
callq 0x1e03c
leaq -0x480(%rbp), %r15
leaq -0x470(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c628(%rip), %rsi     # 0x2f2cc
leaq 0x1c625(%rip), %rdx     # 0x2f2d0
movq %r15, %rdi
callq 0x1e03c
leaq -0x460(%rbp), %r15
leaq -0x450(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c605(%rip), %rsi     # 0x2f2d1
leaq 0x1c609(%rip), %rdx     # 0x2f2dc
movq %r15, %rdi
callq 0x1e03c
leaq -0x440(%rbp), %r15
leaq -0x430(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c5e9(%rip), %rsi     # 0x2f2dd
leaq 0x1c5e9(%rip), %rdx     # 0x2f2e4
movq %r15, %rdi
callq 0x1e03c
leaq -0x420(%rbp), %r15
leaq -0x410(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c5c9(%rip), %rsi     # 0x2f2e5
leaq 0x1c5c8(%rip), %rdx     # 0x2f2eb
movq %r15, %rdi
callq 0x1e03c
leaq -0x400(%rbp), %r15
leaq -0x3f0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c5a8(%rip), %rsi     # 0x2f2ec
leaq 0x1c5a5(%rip), %rdx     # 0x2f2f0
movq %r15, %rdi
callq 0x1e03c
leaq -0x3e0(%rbp), %r15
leaq -0x3d0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c585(%rip), %rsi     # 0x2f2f1
leaq 0x1c582(%rip), %rdx     # 0x2f2f5
movq %r15, %rdi
callq 0x1e03c
leaq -0x3c0(%rbp), %r15
leaq -0x3b0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c562(%rip), %rsi     # 0x2f2f6
leaq 0x1c565(%rip), %rdx     # 0x2f300
movq %r15, %rdi
callq 0x1e03c
leaq -0x3a0(%rbp), %r15
leaq -0x390(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c545(%rip), %rsi     # 0x2f301
leaq 0x1c543(%rip), %rdx     # 0x2f306
movq %r15, %rdi
callq 0x1e03c
leaq -0x380(%rbp), %r15
leaq -0x370(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c50d(%rip), %rsi     # 0x2f2f1
leaq 0x1c50a(%rip), %rdx     # 0x2f2f5
movq %r15, %rdi
callq 0x1e03c
leaq -0x360(%rbp), %r15
leaq -0x350(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c4fb(%rip), %rsi     # 0x2f307
leaq 0x1c4fc(%rip), %rdx     # 0x2f30f
movq %r15, %rdi
callq 0x1e03c
leaq -0x340(%rbp), %r15
leaq -0x330(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c4dc(%rip), %rsi     # 0x2f310
leaq 0x1c4de(%rip), %rdx     # 0x2f319
movq %r15, %rdi
callq 0x1e03c
leaq -0x320(%rbp), %r15
leaq -0x310(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c4be(%rip), %rsi     # 0x2f31a
leaq 0x1c4be(%rip), %rdx     # 0x2f321
movq %r15, %rdi
callq 0x1e03c
leaq -0x300(%rbp), %r15
leaq -0x2f0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c49e(%rip), %rsi     # 0x2f322
leaq 0x1c49b(%rip), %rdx     # 0x2f326
movq %r15, %rdi
callq 0x1e03c
leaq -0x2e0(%rbp), %r15
leaq -0x2d0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c47b(%rip), %rsi     # 0x2f327
leaq 0x1c475(%rip), %rdx     # 0x2f328
movq %r15, %rdi
callq 0x1e03c
leaq -0x2c0(%rbp), %r15
leaq -0x2b0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c455(%rip), %rsi     # 0x2f329
leaq 0x1c456(%rip), %rdx     # 0x2f331
movq %r15, %rdi
callq 0x1e03c
leaq -0x2a0(%rbp), %r15
leaq -0x290(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c43f(%rip), %rsi     # 0x2f33b
leaq 0x1c441(%rip), %rdx     # 0x2f344
movq %r15, %rdi
callq 0x1e03c
leaq -0x280(%rbp), %r15
leaq -0x270(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c40e(%rip), %rsi     # 0x2f332
leaq 0x1c419(%rip), %rdx     # 0x2f344
movq %r15, %rdi
callq 0x1e03c
leaq -0x260(%rbp), %r15
leaq -0x250(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c3f9(%rip), %rsi     # 0x2f345
leaq 0x1c3fa(%rip), %rdx     # 0x2f34d
movq %r15, %rdi
callq 0x1e03c
leaq -0x240(%rbp), %r15
leaq -0x230(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c3da(%rip), %rsi     # 0x2f34e
leaq 0x1c3d8(%rip), %rdx     # 0x2f353
movq %r15, %rdi
callq 0x1e03c
leaq -0x220(%rbp), %r15
leaq -0x210(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c3b8(%rip), %rsi     # 0x2f354
leaq 0x1c3c5(%rip), %rdx     # 0x2f368
movq %r15, %rdi
callq 0x1e03c
leaq -0x200(%rbp), %r15
leaq -0x1f0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1a30e(%rip), %rsi     # 0x2d2d2
leaq 0x1a30f(%rip), %rdx     # 0x2d2da
movq %r15, %rdi
callq 0x1e03c
leaq -0x1e0(%rbp), %r15
leaq -0x1d0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c37d(%rip), %rsi     # 0x2f369
leaq 0x1c37e(%rip), %rdx     # 0x2f371
movq %r15, %rdi
callq 0x1e03c
leaq -0x1c0(%rbp), %r15
leaq -0x1b0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c35e(%rip), %rsi     # 0x2f372
leaq 0x1c35b(%rip), %rdx     # 0x2f376
movq %r15, %rdi
callq 0x1e03c
leaq -0x1a0(%rbp), %r15
leaq -0x190(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c33b(%rip), %rsi     # 0x2f377
leaq 0x1c33a(%rip), %rdx     # 0x2f37d
movq %r15, %rdi
callq 0x1e03c
leaq -0x180(%rbp), %r15
leaq -0x170(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c31a(%rip), %rsi     # 0x2f37e
leaq 0x1c31a(%rip), %rdx     # 0x2f385
movq %r15, %rdi
callq 0x1e03c
leaq -0x160(%rbp), %r15
leaq -0x150(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c2fa(%rip), %rsi     # 0x2f386
leaq 0x1c2f8(%rip), %rdx     # 0x2f38b
movq %r15, %rdi
callq 0x1e03c
leaq -0x140(%rbp), %r15
leaq -0x130(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c2d8(%rip), %rsi     # 0x2f38c
leaq 0x1c2dc(%rip), %rdx     # 0x2f397
movq %r15, %rdi
callq 0x1e03c
leaq -0x120(%rbp), %r15
leaq -0x110(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c2bc(%rip), %rsi     # 0x2f398
leaq 0x1c2bb(%rip), %rdx     # 0x2f39e
movq %r15, %rdi
callq 0x1e03c
leaq -0x100(%rbp), %r15
leaq -0xf0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c29b(%rip), %rsi     # 0x2f39f
leaq 0x1c29b(%rip), %rdx     # 0x2f3a6
movq %r15, %rdi
callq 0x1e03c
leaq -0xe0(%rbp), %r15
leaq -0xd0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c27b(%rip), %rsi     # 0x2f3a7
leaq 0x1c278(%rip), %rdx     # 0x2f3ab
movq %r15, %rdi
callq 0x1e03c
leaq -0xc0(%rbp), %r15
leaq -0xb0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x1bf51(%rip), %rsi     # 0x2f0a5
leaq 0x1bf52(%rip), %rdx     # 0x2f0ad
movq %r15, %rdi
callq 0x1e03c
leaq -0x58(%rbp), %rdi
leaq -0x560(%rbp), %rsi
leaq -0x960(%rbp), %rcx
movl $0x26, %edx
callq 0x1dff4
movq $-0x4c0, %r14           # imm = 0xFB40
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x1319a
movq (%rbx), %rsi
incq %rsi
callq 0x41d0
addq $-0x20, %rbx
addq $0x20, %r14
jne 0x13186
leaq 0x1ae3f(%rip), %rsi     # 0x2dfea
leaq -0x560(%rbp), %rdi
movl $0x8, %edx
callq 0x4310
leaq 0x1c1e9(%rip), %rsi     # 0x2f3ac
leaq -0x960(%rbp), %rdi
movl $0x10, %edx
callq 0x41f0
movq %r12, -0x60(%rbp)
leaq 0x1a733(%rip), %rsi     # 0x2d912
leaq -0x760(%rbp), %rdi
movl $0x10, %edx
callq 0x41f0
xorps %xmm0, %xmm0
leaq -0x40(%rbp), %rbx
movaps %xmm0, (%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
leaq -0x70(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x90(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x560(%rbp), %r14
leaq -0x80(%rbp), %r12
leaq 0x1c7ec(%rip), %r13     # 0x2fa1d
leaq 0x1a39a(%rip), %r15     # 0x2d5d2
movq %r14, %rdi
movq %r12, %rsi
callq 0x4220
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1327c
movq %r12, %rdi
movq %r13, %rsi
callq 0x4090
testl %eax, %eax
je 0x13238
movq %r12, %rdi
movq %r15, %rsi
callq 0x4090
testl %eax, %eax
je 0x13238
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1de06
jmp 0x13238
movq -0x40(%rbp), %r15
movq -0x38(%rbp), %r12
cmpq %r12, %r15
je 0x132d2
leaq -0x960(%rbp), %rbx
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x4210
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x41b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4120
addq $0x20, %r15
cmpq %r12, %r15
jne 0x13290
movq -0x40(%rbp), %r12
movq -0x38(%rbp), %r14
cmpq %r12, %r14
je 0x1339d
xorl %r15d, %r15d
leaq 0x1c0d0(%rip), %r13     # 0x2f3bd
xorl %ebx, %ebx
movq -0x58(%rbp), %rax
cmpq %rax, -0x50(%rbp)
je 0x1337d
movl $0x1, %r12d
shlq $0x5, %r15
xorl %ecx, %ecx
movq -0x40(%rbp), %r14
shlq $0x5, %rcx
movq 0x8(%r14,%r15), %rdx
addq %r15, %r14
cmpq 0x8(%rax,%rcx), %rdx
jne 0x13337
testq %rdx, %rdx
je 0x13346
addq %rcx, %rax
movq (%rax), %rsi
movq (%r14), %rdi
callq 0x41e0
testl %eax, %eax
je 0x13346
movq %r14, %rdi
movq %r13, %rsi
callq 0x4090
testl %eax, %eax
jne 0x13363
movq -0x40(%rbp), %rdi
movq 0x8(%rdi,%r15), %rdx
addq %r15, %rdi
xorl %esi, %esi
leaq 0x1a6d7(%rip), %rcx     # 0x2da32
xorl %r8d, %r8d
callq 0x42a0
movl %r12d, %ecx
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
incl %r12d
cmpq %rcx, %rdx
ja 0x13309
incl %ebx
movq -0x40(%rbp), %r12
movq -0x38(%rbp), %r14
movq %r14, %rax
subq %r12, %rax
sarq $0x5, %rax
movq %rbx, %r15
cmpq %rbx, %rax
ja 0x132ef
cmpq %r14, %r12
je 0x13463
leaq 0x19e68(%rip), %r13     # 0x2d215
leaq 0x1a67e(%rip), %rbx     # 0x2da32
leaq 0x1c004(%rip), %r15     # 0x2f3bf
movq %r12, %rdi
movq %r13, %rsi
callq 0x4090
testl %eax, %eax
je 0x13400
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4090
testl %eax, %eax
je 0x13456
movq (%r12), %rsi
movq 0x8(%r12), %rdx
leaq -0x760(%rbp), %rdi
callq 0x4210
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4210
jmp 0x13456
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4090
testl %eax, %eax
je 0x133ca
leaq -0x760(%rbp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x4210
movq -0x760(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x760(%rbp), %rax
addq %rax, %rdi
movl $0xa, %esi
callq 0x41b0
movsbl %al, %esi
leaq -0x760(%rbp), %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4120
addq $0x20, %r12
cmpq %r14, %r12
jne 0x133bb
movq -0x60(%rbp), %rdi
callq 0x10be2
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x1348e
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x41d0
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x134a7
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x40(%rbp), %rdi
callq 0x1de52
movq 0x27b09(%rip), %rax     # 0x3afc0
movq (%rax), %rbx
movq 0x18(%rax), %r14
leaq -0x758(%rbp), %rdi
movq %rbx, -0x8(%rdi)
movq -0x18(%rbx), %rax
movq %r14, -0x760(%rbp,%rax)
callq 0x4180
movl $0xf8, %r15d
leaq -0x760(%rbp), %rdi
addq %r15, %rdi
callq 0x40a0
leaq -0x958(%rbp), %rdi
movq %rbx, -0x8(%rdi)
movq -0x18(%rbx), %rax
movq %r14, -0x960(%rbp,%rax)
callq 0x4180
leaq -0x960(%rbp), %rdi
addq %r15, %rdi
callq 0x40a0
leaq -0x560(%rbp), %rdi
callq 0x4070
leaq -0x58(%rbp), %rdi
callq 0x1de52
addq $0x938, %rsp            # imm = 0x938
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x13617
movq %rax, %rbx
jmp 0x1366a
movq %rax, %rbx
jmp 0x13676
movq %rax, %rbx
jmp 0x13682
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
leaq -0x560(%rbp), %rsi
callq 0x4380
movb $0x1, %al
jmp 0x135c5
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
jmp 0x135c0
movq %rax, %rbx
xorl %eax, %eax
cmpq %r15, %r14
sete %cl
orb %al, %cl
jne 0x1368b
addq $-0x10, %r15
leaq -0x560(%rbp), %r14
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x135f2
movq (%r15), %rsi
incq %rsi
callq 0x41d0
leaq -0x20(%r15), %rax
addq $-0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0x135de
jmp 0x1368b
movq %rax, %rbx
xorl %eax, %eax
movq %r14, %r15
jmp 0x135c5
jmp 0x13617
jmp 0x13617
jmp 0x13617
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x1363c
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x41d0
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x13655
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x41d0
leaq -0x40(%rbp), %rdi
callq 0x1de52
leaq -0x760(%rbp), %rdi
callq 0x4270
leaq -0x960(%rbp), %rdi
callq 0x4270
leaq -0x560(%rbp), %rdi
callq 0x4070
leaq -0x58(%rbp), %rdi
callq 0x1de52
movq %rbx, %rdi
callq 0x42f0
nop