// File: /workspace/github_cpp_makefile_star2_O3/brashi[P]PetFera/src/./banco_dados.cpp
// Function: BancoDados::lerAnimais()
void BancoDados::lerAnimais() {
    if(!fs::exists(animalArq)) {
        cout << "Arquivo de animais ainda não criado." << endl;
        cout << "Leitura cancelada..." << endl;
        
        return;
    }
    if(fs::is_empty(animalArq)) {
        cout << "Arquivo de animais vazio." << endl;
        cout << "Leitura cancelada..." << endl;
        return;
    }

    ifstream arqDados(animalArq);
    if(arqDados.bad() || arqDados.fail()){
        throw "Arquivo de animais inexistente ou corrompido.";
    }
    int count = 0;
    int prox;

    string temp;
    string linha;
    string palavra;
    string classe, classificacao;
    vector<string> tokens;
    shared_ptr<Animal> animal;

    while(!arqDados.eof()) {
        tokens.clear();

        getline(arqDados, linha);
        stringstream s(linha);
        while(getline(s, palavra, ';')) {
            tokens.push_back(palavra);
        }

        if(tokens.size()) {
            classe = tokens.at(0);
            classificacao = tokens.at(1);

            animal = mapa.aMap[classe + classificacao]();
            animal->setNome(tokens.at(2));
            animal->setEspecie(tokens.at(3));
            animal->setAmeacadoPor(tokens.at(4));
            animal->setVeterinario(petshop->findVeterinario(tokens.at(5)));
            animal->setTratador(petshop->findTratador(tokens.at(6)));
            animal->setPerigoso(stoi(tokens.at(7)));

            switch(strFiltro[classificacao]) {
                case 'D':
                    dynamic_pointer_cast<Domestico>(animal)->setAdestrado(stoi(tokens.at(8)));
                    prox = 9;
                    break;
                case 'E':
                    dynamic_pointer_cast<Exotico>(animal)->setLocal(tokens.at(8));
                    prox = 9;
                    break;
                case 'N':
                    dynamic_pointer_cast<Nativo>(animal)->setRegiao(tokens.at(8));
                    dynamic_pointer_cast<Nativo>(animal)->setLicenca(tokens.at(9));
                    prox = 10;
                    break;
            }
            
            switch(strFiltro[classe]) {
                case 'A':
                    dynamic_pointer_cast<Ave>(animal)->setVoa(stoi(tokens.at(prox)));
                    break;
                case 'F':
                    dynamic_pointer_cast<Anfibio>(animal)->setCauda(stoi(tokens.at(prox)));
                    dynamic_pointer_cast<Anfibio>(animal)->setPata(stoi(tokens.at(prox + 1)));
                    break;
                case 'R':
                    dynamic_pointer_cast<Reptil>(animal)->setPele(static_cast<Pele>(stoi(tokens.at(prox))));
                    break;
                case 'M':
                    dynamic_pointer_cast<Mamifero>(animal)->setGestacao(stoi(tokens.at(prox)));
            }

            petshop->adicionarAnimal(animal);
            count++;
        }


    }
    arqDados.close();
    cout << "Arquivo de animais carregado com sucesso." << endl;
    cout << "Foram carregados " << count << " animais." << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5f8, %rsp            # imm = 0x5F8
movq %rdi, 0x70(%rsp)
leaq 0x30(%rdi), %rbx
leaq 0x268(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x2, %edx
callq 0x9a64
movq %r14, %rdi
callq 0x5120
movq %rax, %r14
leaq 0x268(%rsp), %rdi
callq 0x9ae4
cmpb $-0x1, %r14b
je 0x7ce0
movzbl %r14b, %eax
testl %eax, %eax
jne 0x7d6f
movq 0x232e9(%rip), %rbx     # 0x2afd0
leaq 0x17578(%rip), %rsi     # 0x1f266
movl $0x25, %edx
movq %rbx, %rdi
callq 0x5310
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51c0
leaq 0x1748c(%rip), %rsi     # 0x1f1b5
movl $0x14, %edx
movq %rbx, %rdi
callq 0x5310
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51c0
addq $0x5f8, %rsp            # imm = 0x5F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x268(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x2, %edx
callq 0x9a64
movq %r14, %rdi
callq 0x54a0
movl %eax, %ebp
leaq 0x268(%rsp), %rdi
callq 0x9ae4
testb %bpl, %bpl
je 0x7dbb
movq 0x23226(%rip), %rbx     # 0x2afd0
leaq 0x174db(%rip), %rsi     # 0x1f28c
movl $0x19, %edx
jmp 0x7cf3
leaq 0x268(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x5410
movq (%r14), %rax
movq -0x18(%rax), %rcx
testb $0x5, 0x288(%rsp,%rcx)
jne 0x90ed
leaq 0x238(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %r12d, %r12d
movq %r12, -0x8(%rcx)
movb %r12b, (%rcx)
leaq 0x218(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %r12, -0x8(%rcx)
movb %r12b, (%rcx)
leaq 0x1f8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %r12, -0x8(%rcx)
movb %r12b, (%rcx)
leaq 0x1d0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %r12, -0x8(%rcx)
movb %r12b, (%rcx)
leaq 0x1b0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %r12, -0x8(%rcx)
movb %r12b, (%rcx)
movq %r12, 0x30(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq -0x18(%rax), %rcx
testb $0x2, 0x288(%rsp,%rcx)
movl $0x0, %ecx
movq %rcx, 0x68(%rsp)
jne 0x8dc4
movq %r14, %rdx
movq 0x70(%rsp), %rcx
leaq 0x70(%rcx), %rsi
movq %rsi, 0x1e0(%rsp)
addq $0xa0, %rcx
movq %rcx, 0x78(%rsp)
movq $0x0, 0x68(%rsp)
leaq 0x470(%rsp), %rbp
leaq 0x1e8(%rsp), %r13
movq %rcx, 0x40(%rsp)
xorl %ebx, %ebx
movq 0x20(%rsp), %r14
movq 0x28(%rsp), %r12
cmpq %r14, %r12
je 0x7eff
leaq 0x10(%r14), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x7ee2
movq (%r15), %rsi
incq %rsi
callq 0x52b0
leaq 0x268(%rsp), %rdx
leaq 0x20(%r15), %rax
addq $0x10, %r15
cmpq %r12, %r15
movq %rax, %r15
jne 0x7ec6
movq %r14, 0x28(%rsp)
movq 0x268(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rdx, %rdi
movl $0xa, %esi
movq %rdx, %r14
callq 0x5280
leaq 0x208(%rsp), %r15
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x5480
movq %rbp, %rdi
movq %r15, %rsi
movl $0x18, %edx
movq %rbx, %r12
callq 0x5400
movq %rbp, %rdi
movq %r13, %rsi
movl $0x3b, %edx
callq 0x5480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7f69
leaq 0x20(%rsp), %rdi
movq %r13, %rsi
callq 0x9c06
jmp 0x7f3c
movq 0x20(%rsp), %rsi
cmpq %rsi, 0x28(%rsp)
je 0x8d86
leaq 0x1c0(%rsp), %rdi
callq 0x5190
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x1, %rdx
jbe 0x8f6c
addq $0x20, %rsi
movq %rbx, %r12
leaq 0x1a0(%rsp), %rdi
callq 0x5190
leaq 0x48(%rsp), %r14
movq %r14, %rdi
leaq 0x1c0(%rsp), %rsi
leaq 0x1a0(%rsp), %rdx
callq 0x9d1e
movq 0x1e0(%rsp), %rdi
movq %r14, %rsi
callq 0x9ca2
cmpq $0x0, 0x10(%rax)
je 0x8f67
leaq 0x80(%rsp), %rdi
movq %rax, %rsi
callq *0x18(%rax)
movq 0x80(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %r12
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
testq %rbx, %rbx
je 0x803a
movq %rbx, %rdi
callq 0x9f52
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x803a
callq 0x9f52
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x8056
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x3, %rdx
movq %r12, 0x8(%rsp)
jb 0x8f84
leaq 0x190(%rsp), %rcx
movq %rcx, 0x180(%rsp)
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
addq %rsi, %rdx
leaq 0x180(%rsp), %rdi
callq 0x9fc2
movq 0x18(%rsp), %rdi
leaq 0x180(%rsp), %rsi
callq 0x1669e
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x80d5
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x4, %rdx
jb 0x8f60
leaq 0x170(%rsp), %rcx
movq %rcx, 0x160(%rsp)
movq 0x60(%rax), %rsi
movq 0x68(%rax), %rdx
addq %rsi, %rdx
leaq 0x160(%rsp), %rdi
callq 0x9fc2
movq 0x18(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0x16970
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x814f
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x5, %rdx
jb 0x8fb8
leaq 0x150(%rsp), %rcx
movq %rcx, 0x140(%rsp)
movq 0x80(%rax), %rsi
movq 0x88(%rax), %rdx
addq %rsi, %rdx
leaq 0x140(%rsp), %rdi
callq 0x9fc2
movq 0x18(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x16af0
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x81cf
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x6, %rdx
jb 0x8f9e
movq 0x70(%rsp), %rcx
movq (%rcx), %r14
leaq 0x130(%rsp), %rcx
movq %rcx, 0x120(%rsp)
movq 0xa0(%rax), %rsi
movq 0xa8(%rax), %rdx
addq %rsi, %rdx
leaq 0x120(%rsp), %rdi
callq 0x9fc2
leaq 0x258(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
leaq 0x120(%rsp), %rdx
callq 0xd190
movq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x16b26
movq 0x260(%rsp), %rdi
testq %rdi, %rdi
je 0x825a
callq 0x9f52
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x827f
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x7, %rdx
jb 0x8fa5
movq 0x70(%rsp), %rcx
movq (%rcx), %r14
leaq 0x110(%rsp), %rcx
movq %rcx, 0x100(%rsp)
movq 0xc0(%rax), %rsi
movq 0xc8(%rax), %rdx
addq %rsi, %rdx
leaq 0x100(%rsp), %rdi
callq 0x9fc2
leaq 0x248(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
leaq 0x100(%rsp), %rdx
callq 0xd536
movq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x16b6a
movq 0x250(%rsp), %rdi
testq %rdi, %rdi
je 0x830a
callq 0x9f52
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x832f
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x7, %rdx
jbe 0x8f97
movq 0xe0(%rax), %r14
callq 0x5050
movl (%rax), %r12d
movq %rax, 0x10(%rsp)
movl $0x0, (%rax)
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
movl $0xa, %edx
callq 0x5380
cmpq %r14, 0x48(%rsp)
je 0x8fac
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x8f8b
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
cmpl $0x22, %ecx
je 0x8f8b
testl %ecx, %ecx
jne 0x83b7
movq 0x10(%rsp), %rcx
movl %r12d, (%rcx)
xorl %esi, %esi
testl %eax, %eax
setne %sil
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %r12
callq 0x16c7e
movq 0x78(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
callq 0xa57c
movzbl (%rax), %eax
cmpl $0x44, %eax
je 0x8480
cmpl $0x45, %eax
je 0x843f
cmpl $0x4e, %eax
jne 0x87f2
movq 0x18(%rsp), %rdi
leaq 0x21a82(%rip), %rsi     # 0x29e88
leaq 0x21aab(%rip), %rdx     # 0x29eb8
movq $-0x2, %rcx
callq 0x5300
movq %rax, %r15
testq %rax, %rax
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
je 0x84ee
xorl %ebx, %ebx
leaq 0xc0(%rsp), %r14
jmp 0x8665
movq 0x18(%rsp), %rdi
leaq 0x21a3d(%rip), %rsi     # 0x29e88
leaq 0x21a56(%rip), %rdx     # 0x29ea8
movq $-0x2, %rcx
callq 0x5300
movq %rax, %r15
testq %rax, %rax
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
je 0x84b9
xorl %ebx, %ebx
leaq 0xe0(%rsp), %r14
jmp 0x8519
movq 0x18(%rsp), %rdi
leaq 0x219fc(%rip), %rsi     # 0x29e88
leaq 0x21a05(%rip), %rdx     # 0x29e98
movq $-0x2, %rcx
callq 0x5300
movq %rax, %r15
testq %rax, %rax
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
je 0x84d4
xorl %ebx, %ebx
jmp 0x85a6
movq 0x22b08(%rip), %rax     # 0x2afc8
cmpb $0x0, (%rax)
leaq 0xe0(%rsp), %r14
je 0x8510
incl 0x8(%r12)
jmp 0x8516
movq 0x22aed(%rip), %rax     # 0x2afc8
cmpb $0x0, (%rax)
je 0x859d
incl 0x8(%r12)
jmp 0x85a3
movq 0x22ad3(%rip), %rax     # 0x2afc8
cmpb $0x0, (%rax)
leaq 0xc0(%rsp), %r14
je 0x865c
incl 0x8(%r12)
jmp 0x8662
lock
incl 0x8(%r12)
movq %r12, %rbx
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x8, %rdx
jbe 0x901c
leaq 0xf0(%rsp), %rcx
movq %rcx, 0xe0(%rsp)
movq 0x100(%rax), %rsi
movq 0x108(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x9fc2
movq %r15, %rdi
movq %r14, %rsi
callq 0x18e6a
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x858d
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x52b0
movl $0x9, %r14d
movl $0x9, %eax
jmp 0x87d8
lock
incl 0x8(%r12)
movq %r12, %rbx
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x8, %rdx
jbe 0x8fcb
movq 0x100(%rax), %r14
movq 0x10(%rsp), %rax
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
movl $0xa, %edx
callq 0x5380
cmpq %r14, 0x48(%rsp)
je 0x8fea
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x8fde
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
cmpl $0x22, %ecx
je 0x8fde
testl %ecx, %ecx
jne 0x8629
movq 0x10(%rsp), %rcx
movl %r12d, (%rcx)
xorl %esi, %esi
testl %eax, %eax
setne %sil
movq %r15, %rdi
callq 0x18c9a
movl $0x9, %r14d
movl $0x9, %eax
movq %rax, 0x40(%rsp)
testq %rbx, %rbx
movq 0x8(%rsp), %r12
jne 0x87e2
jmp 0x87f2
lock
incl 0x8(%r12)
movq %r12, %rbx
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x8, %rdx
jbe 0x8ff6
leaq 0xd0(%rsp), %rcx
movq %rcx, 0xc0(%rsp)
movq 0x100(%rax), %rsi
movq 0x108(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x9fc2
movq %r15, %rdi
movq %r14, %rsi
callq 0x1b18c
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x86d9
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x52b0
testq %rbx, %rbx
je 0x86e6
movq %rbx, %rdi
callq 0x9f52
testq %r12, %r12
sete %r12b
movq 0x18(%rsp), %rdi
leaq 0x2178f(%rip), %rsi     # 0x29e88
leaq 0x217b8(%rip), %rdx     # 0x29eb8
movq $-0x2, %rcx
callq 0x5300
movq %rax, %r14
testq %rax, %rax
sete %al
orb %r12b, %al
je 0x872b
xorl %ebx, %ebx
movq 0x8(%rsp), %r12
leaq 0xa0(%rsp), %r15
jmp 0x8759
movq 0x22896(%rip), %rax     # 0x2afc8
cmpb $0x0, (%rax)
leaq 0xa0(%rsp), %r15
je 0x874b
movq 0x8(%rsp), %r12
incl 0x8(%r12)
jmp 0x8756
movq 0x8(%rsp), %r12
lock
incl 0x8(%r12)
movq %r12, %rbx
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x9, %rdx
jbe 0x9009
leaq 0xb0(%rsp), %rcx
movq %rcx, 0xa0(%rsp)
movq 0x120(%rax), %rsi
movq 0x128(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9fc2
movq %r14, %rdi
movq %r15, %rsi
callq 0x1b00c
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x87cd
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x52b0
movl $0xa, %r14d
movl $0xa, %eax
movq %rax, 0x40(%rsp)
testq %rbx, %rbx
je 0x87f2
movq %rbx, %rdi
callq 0x9f52
movl %r14d, %eax
movq %rax, 0x40(%rsp)
movq 0x78(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
callq 0xa57c
movzbl (%rax), %eax
cmpl $0x4c, %eax
jg 0x886e
cmpl $0x41, %eax
je 0x88d1
cmpl $0x46, %eax
jne 0x8d1d
movq 0x18(%rsp), %rdi
leaq 0x2165e(%rip), %rsi     # 0x29e88
leaq 0x216af(%rip), %rdx     # 0x29ee0
xorl %ecx, %ecx
callq 0x5300
movq %rax, %r15
testq %rax, %rax
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
movl $0x0, %ebx
jne 0x897c
movq 0x2276d(%rip), %rax     # 0x2afc8
cmpb $0x0, (%rax)
je 0x8973
incl 0x8(%r12)
jmp 0x8979
cmpl $0x4d, %eax
je 0x8922
cmpl $0x52, %eax
jne 0x8d1d
movq 0x18(%rsp), %rdi
leaq 0x215fc(%rip), %rsi     # 0x29e88
leaq 0x21665(%rip), %rdx     # 0x29ef8
xorl %ecx, %ecx
callq 0x5300
movq %rax, %rbx
testq %rax, %rax
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
movl $0x0, %r15d
jne 0x8a82
movq 0x2270a(%rip), %rax     # 0x2afc8
cmpb $0x0, (%rax)
je 0x8a79
incl 0x8(%r12)
jmp 0x8a7f
movq 0x18(%rsp), %rdi
leaq 0x215ab(%rip), %rsi     # 0x29e88
leaq 0x215e4(%rip), %rdx     # 0x29ec8
xorl %ecx, %ecx
callq 0x5300
movq %rax, %rbx
testq %rax, %rax
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
movl $0x0, %r15d
jne 0x8b22
movq 0x226b9(%rip), %rax     # 0x2afc8
cmpb $0x0, (%rax)
je 0x8b19
incl 0x8(%r12)
jmp 0x8b1f
movq 0x18(%rsp), %rdi
leaq 0x2155a(%rip), %rsi     # 0x29e88
leaq 0x215db(%rip), %rdx     # 0x29f10
xorl %ecx, %ecx
callq 0x5300
movq %rax, %rbx
testq %rax, %rax
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
movl $0x0, %r15d
jne 0x8bc8
movq 0x22668(%rip), %rax     # 0x2afc8
cmpb $0x0, (%rax)
je 0x8bbf
incl 0x8(%r12)
jmp 0x8bc5
lock
incl 0x8(%r12)
movq %r12, %rbx
movslq 0x40(%rsp), %rsi
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0x907b
shlq $0x5, %rsi
movq (%rax,%rsi), %r14
movq 0x10(%rsp), %rax
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
movl $0xa, %edx
callq 0x5380
cmpq %r14, 0x48(%rsp)
je 0x90bb
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x90af
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
cmpl $0x22, %ecx
je 0x90af
testl %ecx, %ecx
jne 0x8a04
movq 0x10(%rsp), %rcx
movl %r12d, (%rcx)
xorl %esi, %esi
testl %eax, %eax
setne %sil
movq %r15, %rdi
callq 0x1dc9e
testq %rbx, %rbx
movq 0x8(%rsp), %r12
je 0x8a26
movq %rbx, %rdi
callq 0x9f52
testq %r12, %r12
sete %r14b
movq 0x18(%rsp), %rdi
leaq 0x2144f(%rip), %rsi     # 0x29e88
leaq 0x214a0(%rip), %rdx     # 0x29ee0
xorl %ecx, %ecx
callq 0x5300
movq %rax, %rbx
testq %rax, %rax
sete %al
orb %r14b, %al
movl $0x0, %r15d
jne 0x8c6e
movq 0x22562(%rip), %rax     # 0x2afc8
cmpb $0x0, (%rax)
je 0x8c65
incl 0x8(%r12)
jmp 0x8c6b
lock
incl 0x8(%r12)
movq %r12, %r15
movslq 0x40(%rsp), %rsi
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0x902f
shlq $0x5, %rsi
movq (%rax,%rsi), %r14
movq 0x10(%rsp), %rax
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
movl $0xa, %edx
callq 0x5380
cmpq %r14, 0x48(%rsp)
je 0x9049
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x903d
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
cmpl $0x22, %ecx
je 0x903d
testl %ecx, %ecx
jne 0x8b0a
movq 0x10(%rsp), %rcx
movl %r12d, (%rcx)
movq %rbx, %rdi
movl %eax, %esi
callq 0x1d014
jmp 0x8d0b
lock
incl 0x8(%r12)
movq %r12, %r15
movslq 0x40(%rsp), %rsi
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0x90c7
shlq $0x5, %rsi
movq (%rax,%rsi), %r14
movq 0x10(%rsp), %rax
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
movl $0xa, %edx
callq 0x5380
cmpq %r14, 0x48(%rsp)
je 0x90e1
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x90d5
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
cmpl $0x22, %ecx
je 0x90d5
testl %ecx, %ecx
jne 0x8baa
movq 0x10(%rsp), %rcx
movl %r12d, (%rcx)
xorl %esi, %esi
testl %eax, %eax
setne %sil
movq %rbx, %rdi
callq 0x1b62c
jmp 0x8d0b
lock
incl 0x8(%r12)
movq %r12, %r15
movslq 0x40(%rsp), %rsi
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0x9055
shlq $0x5, %rsi
movq (%rax,%rsi), %r14
movq 0x10(%rsp), %rax
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
movl $0xa, %edx
callq 0x5380
cmpq %r14, 0x48(%rsp)
je 0x906f
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x9063
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
cmpl $0x22, %ecx
je 0x9063
testl %ecx, %ecx
jne 0x8c50
movq 0x10(%rsp), %rcx
movl %r12d, (%rcx)
xorl %esi, %esi
testl %eax, %eax
setne %sil
movq %rbx, %rdi
callq 0x1c2b0
jmp 0x8d0b
lock
incl 0x8(%r12)
movq %r12, %r15
movq 0x40(%rsp), %rax
incl %eax
movslq %eax, %rsi
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0x9089
shlq $0x5, %rsi
movq (%rax,%rsi), %r14
movq 0x10(%rsp), %rax
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
movl $0xa, %edx
callq 0x5380
cmpq %r14, 0x48(%rsp)
je 0x90a3
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x9097
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
cmpl $0x22, %ecx
je 0x9097
testl %ecx, %ecx
jne 0x8cfb
movq 0x10(%rsp), %rcx
movl %r12d, (%rcx)
xorl %esi, %esi
testl %eax, %eax
setne %sil
movq %rbx, %rdi
callq 0x1ddd0
testq %r15, %r15
movq 0x8(%rsp), %r12
je 0x8d1d
movq %r15, %rdi
callq 0x9f52
movq 0x70(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rax
movq %rax, 0x90(%rsp)
movq %r12, 0x98(%rsp)
testq %r12, %r12
je 0x8d58
movq 0x22282(%rip), %rax     # 0x2afc8
cmpb $0x0, (%rax)
je 0x8d52
incl 0x8(%r12)
jmp 0x8d58
lock
incl 0x8(%r12)
leaq 0x90(%rsp), %rsi
callq 0xce9c
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x8d77
callq 0x9f52
movq 0x68(%rsp), %rax
incl %eax
movq %rax, 0x68(%rsp)
movq %r12, %rbx
movq %rbp, %rdi
movq 0x22208(%rip), %rsi     # 0x2af98
callq 0x5200
leaq 0x4f0(%rsp), %rdi
callq 0x50f0
movq 0x268(%rsp), %rax
movq -0x18(%rax), %rcx
testb $0x2, 0x288(%rsp,%rcx)
leaq 0x268(%rsp), %rdx
je 0x7eb3
leaq 0x268(%rsp), %rdi
callq 0x5080
movq 0x221f8(%rip), %rbx     # 0x2afd0
leaq 0x164f5(%rip), %rsi     # 0x1f2d4
movl $0x29, %edx
movq %rbx, %rdi
callq 0x5310
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq 0x221c6(%rip), %rdi     # 0x2afd0
callq 0x5030
movq %rax, %rdi
callq 0x51c0
movq 0x221b2(%rip), %rdi     # 0x2afd0
leaq 0x1642f(%rip), %rsi     # 0x1f254
movl $0x11, %edx
callq 0x5310
movq 0x2219a(%rip), %rdi     # 0x2afd0
movq 0x68(%rsp), %rsi
callq 0x5450
movq %rax, %rbx
leaq 0x16562(%rip), %rsi     # 0x1f3ac
movl $0x9, %edx
movq %rax, %rdi
callq 0x5310
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51c0
testq %r12, %r12
je 0x8e8b
movq %r12, %rdi
callq 0x9f52
leaq 0x20(%rsp), %rdi
callq 0x9c44
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x8eba
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x8edf
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x1e8(%rsp), %rdi
leaq 0x1f8(%rsp), %rax
cmpq %rax, %rdi
je 0x8f04
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x208(%rsp), %rdi
leaq 0x218(%rsp), %rax
cmpq %rax, %rdi
je 0x8f29
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x8f4e
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x52b0
leaq 0x268(%rsp), %rdi
callq 0x5090
jmp 0x7d5d
movl $0x3, %esi
jmp 0x8fbd
callq 0x5110
leaq 0x1648c(%rip), %rdi     # 0x1f3ff
movl $0x1, %esi
movq %rbx, 0x8(%rsp)
xorl %eax, %eax
callq 0x53d0
movl $0x2, %esi
jmp 0x8fbd
leaq 0x1644e(%rip), %rdi     # 0x1f3e0
callq 0x53a0
movl $0x7, %esi
jmp 0x8fbd
movl $0x5, %esi
jmp 0x8fbd
movl $0x6, %esi
jmp 0x8fbd
leaq 0x1642d(%rip), %rdi     # 0x1f3e0
callq 0x51b0
movl $0x4, %esi
leaq 0x1643b(%rip), %rdi     # 0x1f3ff
xorl %eax, %eax
callq 0x53d0
leaq 0x1642d(%rip), %rdi     # 0x1f3ff
movl $0x8, %esi
xorl %eax, %eax
callq 0x53d0
leaq 0x163fb(%rip), %rdi     # 0x1f3e0
callq 0x53a0
leaq 0x163ef(%rip), %rdi     # 0x1f3e0
callq 0x51b0
leaq 0x16402(%rip), %rdi     # 0x1f3ff
movl $0x8, %esi
xorl %eax, %eax
callq 0x53d0
leaq 0x163ef(%rip), %rdi     # 0x1f3ff
movl $0x9, %esi
xorl %eax, %eax
callq 0x53d0
leaq 0x163dc(%rip), %rdi     # 0x1f3ff
movl $0x8, %esi
xorl %eax, %eax
callq 0x53d0
leaq 0x163c9(%rip), %rdi     # 0x1f3ff
xorl %eax, %eax
callq 0x53d0
leaq 0x1639c(%rip), %rdi     # 0x1f3e0
callq 0x53a0
leaq 0x16390(%rip), %rdi     # 0x1f3e0
callq 0x51b0
leaq 0x163a3(%rip), %rdi     # 0x1f3ff
xorl %eax, %eax
callq 0x53d0
leaq 0x16376(%rip), %rdi     # 0x1f3e0
callq 0x53a0
leaq 0x1636a(%rip), %rdi     # 0x1f3e0
callq 0x51b0
leaq 0x1637d(%rip), %rdi     # 0x1f3ff
xorl %eax, %eax
callq 0x53d0
leaq 0x1636f(%rip), %rdi     # 0x1f3ff
xorl %eax, %eax
callq 0x53d0
leaq 0x16342(%rip), %rdi     # 0x1f3e0
callq 0x53a0
leaq 0x16336(%rip), %rdi     # 0x1f3e0
callq 0x51b0
leaq 0x1632a(%rip), %rdi     # 0x1f3e0
callq 0x53a0
leaq 0x1631e(%rip), %rdi     # 0x1f3e0
callq 0x51b0
leaq 0x16331(%rip), %rdi     # 0x1f3ff
xorl %eax, %eax
callq 0x53d0
leaq 0x16304(%rip), %rdi     # 0x1f3e0
callq 0x53a0
leaq 0x162f8(%rip), %rdi     # 0x1f3e0
callq 0x51b0
movl $0x8, %edi
callq 0x5170
leaq 0x161a8(%rip), %rcx     # 0x1f2a6
movq %rcx, (%rax)
movq 0x21ea8(%rip), %rsi     # 0x2afb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x5440
movq %rax, %r14
jmp 0x9492
jmp 0x9132
jmp 0x9132
jmp 0x9132
jmp 0x9132
jmp 0x91bb
jmp 0x91bb
jmp 0x9132
jmp 0x9132
jmp 0x9132
movq %rax, %r14
jmp 0x91ec
jmp 0x9214
movq %rax, %r14
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x91be
movq 0xf0(%rsp), %rsi
jmp 0x91ab
jmp 0x91bb
jmp 0x91bb
movq %rax, %r14
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x91be
movq 0xb0(%rsp), %rsi
jmp 0x91ab
jmp 0x91bb
jmp 0x91bb
movq %rax, %r14
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x91be
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x52b0
jmp 0x91be
jmp 0x91bb
jmp 0x91bb
jmp 0x91bb
movq %rax, %r14
testq %rbx, %rbx
je 0x9395
movq %rbx, %rdi
jmp 0x9284
jmp 0x91d7
jmp 0x91fd
jmp 0x91d7
jmp 0x91d7
movq %rax, %r14
movq 0x10(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x91ec
movq 0x10(%rsp), %rax
movl %r12d, (%rax)
testq %r15, %r15
je 0x9395
movq %r15, %rdi
jmp 0x9284
movq %rax, %r14
movq 0x10(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x91be
movq 0x10(%rsp), %rax
movl %r12d, (%rax)
jmp 0x91be
movq %rax, %r14
leaq 0x268(%rsp), %rdi
callq 0x9ae4
jmp 0x949f
movq %rax, %r14
movq 0x260(%rsp), %rdi
testq %rdi, %rdi
je 0x92ce
callq 0x9f52
jmp 0x92ce
movq %rax, %r14
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x9395
movq 0x150(%rsp), %rsi
jmp 0x9339
movq %rax, %r14
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x9395
callq 0x9f52
jmp 0x9395
movq %rax, %r14
jmp 0x92a8
movq %rax, %r14
movq 0x250(%rsp), %rdi
testq %rdi, %rdi
je 0x92a8
callq 0x9f52
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x9395
movq 0x110(%rsp), %rsi
jmp 0x9339
movq %rax, %r14
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x9395
movq 0x130(%rsp), %rsi
jmp 0x9339
movq %rax, %r14
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x9395
movq 0x170(%rsp), %rsi
jmp 0x9339
jmp 0x9366
movq %rax, %r14
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x9395
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x52b0
jmp 0x9395
movq %rax, %r14
jmp 0x9385
jmp 0x934a
movq %rax, %r14
jmp 0x93c2
movq %rax, %r14
movq 0x10(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x9395
movq 0x10(%rsp), %rax
movl %r12d, (%rax)
jmp 0x9395
movq %rax, %r14
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x9385
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x52b0
movq %rbx, %r12
jmp 0x93a1
movq %rax, %r14
movq %rbx, %r12
jmp 0x93c2
movq %rax, %r14
movq 0x8(%rsp), %r12
jmp 0x93a1
jmp 0x939e
movq %rax, %r14
movq 0x21bf0(%rip), %rsi     # 0x2af98
leaq 0x470(%rsp), %rdi
callq 0x5200
leaq 0x4f0(%rsp), %rdi
callq 0x50f0
testq %r12, %r12
je 0x93cf
movq %r12, %rdi
callq 0x9f52
leaq 0x20(%rsp), %rdi
callq 0x9c44
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x93fe
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x9423
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x1e8(%rsp), %rdi
leaq 0x1f8(%rsp), %rax
cmpq %rax, %rdi
je 0x9448
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x208(%rsp), %rdi
leaq 0x218(%rsp), %rax
cmpq %rax, %rdi
je 0x946d
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x9492
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x52b0
leaq 0x268(%rsp), %rdi
callq 0x5090
movq %r14, %rdi
callq 0x5460
nop