// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]def2fgd/src/entreader.cpp
// Function: readEntFile(std::istream&)
std::vector<Entity> readEntFile(std::istream& stream)
{
    std::vector<char> input((std::istreambuf_iterator<char>(stream)), std::istreambuf_iterator<char>());
    std::vector<Entity> toReturn;

    xml_document<> doc;
    doc.parse<parse_trim_whitespace>(&input[0]);

    xml_node<>* classes = doc.first_node("classes");
    if (!classes)
        throw std::runtime_error(translate("No 'classes' entry found"));

    for (xml_node<>* entityNode = classes->first_node(); entityNode; entityNode = entityNode->next_sibling())
    {
        Entity entity;

        entity.description = descriptionLines(std::string(entityNode->value(), entityNode->value_size()));

        if (hasName(entityNode, "point"))
            entity.solid = false;
        else if (hasName(entityNode, "group"))
            entity.solid = true;

        xml_attribute<>* nameAttr = entityNode->first_attribute("name");
        if (!nameAttr)
            continue; // no name, nothing to do here

        entity.name = valueString(nameAttr);

        xml_attribute<>* colorAttr = entityNode->first_attribute("color");
        if (colorAttr)
            readColor(colorAttr->value(), colorAttr->value_size(), entity.color);

        xml_attribute<>* boxAttr = entityNode->first_attribute("box");
        if (boxAttr)
            readBox(boxAttr->value(), boxAttr->value_size(), entity.box);

        xml_attribute<>* modelAttr = entityNode->first_attribute("model");
        if (modelAttr) {
            entity.model = valueString(modelAttr);
        }

        for (xml_node<>* keyNode = entityNode->first_node(); keyNode; keyNode = keyNode->next_sibling())
        {
            if (hasName(keyNode, "flag"))
            {
                xml_attribute<>* keyAttr = keyNode->first_attribute("key");
                xml_attribute<>* bitAttr = keyNode->first_attribute("bit");

                if (keyAttr && bitAttr)
                {
                    size_t flagnum = static_cast<size_t>(strtol(bitAttr->value(), NULL, 10));
                    if (flagnum < Entity::SpawnFlagNum)
                    {
                        entity.spawnflags[flagnum] = valueString(keyAttr);
                        entity.flagsdescriptions[flagnum] = withoutQuotes(valueString(keyNode));
                    }
                }
            }
            else
            {
                xml_attribute<>* keyAttr = keyNode->first_attribute("key");
                if (keyAttr)
                {
                    entity.keys.push_back(Key(
                        valueString(keyAttr),
                        withoutQuotes(valueString(keyNode)),
                        entTypeToFgdType(keyNode->name(), keyNode->name_size())
                    ));
                }
            }
        }

        xml_node<>* lastNode = entityNode->last_node();
        if (lastNode && lastNode->name_size() == 0)
        {
            std::string val = valueString(lastNode);
            size_t pos = val.find("modeldisabled=");
            if (pos != std::string::npos && entity.model.empty())
            {
                std::string::iterator it = val.begin() + pos + strlen("modeldisabled=");
                if (*it == '"')
                {
                    it++;
                    std::string::iterator start = it;
                    while(it != val.end() && *it != '"')
                        it++;
                    std::string modelname(start, it);
                    entity.model = modelname;
                }
            }
            if (pos != std::string::npos) {
                val.resize(pos);
            }
            if (val.size()) {
                if (entity.description.size()) {
                    entity.description += "\\n\\n";
                }
                entity.description += descriptionLines(val);
            }
        }

        toReturn.push_back(entity);
    }

    return toReturn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10a58, %rsp          # imm = 0x10A58
movq %rdi, %r12
movq (%rsi), %rax
movq -0x18(%rax), %rax
movq 0xe8(%rsi,%rax), %rsi
xorl %r15d, %r15d
leaq 0x118(%rsp), %rbx
leaq 0x9d0(%rsp), %r14
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movq %r14, %r9
callq 0x9804
movq %r15, 0x10(%r12)
xorps %xmm0, %xmm0
movq %r12, 0x30(%rsp)
movups %xmm0, (%r12)
movq %r15, 0x20(%r14)
movaps %xmm0, (%r14)
movl $0x0, 0x28(%r14)
movq %r15, 0x30(%r14)
movq %r15, 0x40(%r14)
leaq 0x10a48(%rsp), %rax
leaq 0xa48(%rsp), %rcx
movups %xmm0, (%rax)
movq %rcx, -0x18(%rcx)
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movq (%rbx), %rsi
leaq 0x9d0(%rsp), %rdi
callq 0x9846
leaq 0x3d31(%rip), %rsi      # 0xc8fd
leaq 0x9d0(%rsp), %rdi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x9976
testq %rax, %rax
je 0x95b3
movq 0x30(%rax), %r15
testq %r15, %r15
je 0x9534
leaq 0x48(%rsp), %rbp
leaq 0x8(%rsp), %r12
leaq 0x38(%rsp), %rbx
leaq 0x130(%rsp), %rdi
callq 0x8490
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x8c24
movq %rdx, %rsi
movq 0x18(%r15), %rdx
jmp 0x8c2b
leaq 0x8637(%rip), %rsi      # 0x11262
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
addq %rsi, %rdx
movq %r12, %rdi
callq 0x5ea4
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8830
leaq 0x150(%rsp), %rdi
movq %rbx, %rsi
callq 0x32d0
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8c72
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3250
movq %r12, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x8c91
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3250
movq (%r15), %r12
testq %r12, %r12
je 0x8ca2
movq %r12, %r13
movq 0x10(%r15), %r12
jmp 0x8ca9
leaq 0x85b9(%rip), %r13      # 0x11262
movq %r13, %rdi
leaq 0x3c3d(%rip), %rsi      # 0xc8f0
movq %r12, %rdx
callq 0x3130
testl %eax, %eax
je 0x8ce2
movq %r13, %rdi
leaq 0x3c55(%rip), %rsi      # 0xc91e
movq %r12, %rdx
callq 0x3130
testl %eax, %eax
movq %rbx, %r12
jne 0x8ced
movb $0x1, 0x9ac(%rsp)
jmp 0x8ced
movb $0x0, 0x9ac(%rsp)
movq %rbx, %r12
movq %r15, %rdi
leaq 0x3d09(%rip), %rsi      # 0xca00
xorl %edx, %edx
movl $0x1, %ecx
callq 0x9aa2
testq %rax, %rax
je 0x950e
movq 0x8(%rax), %rdx
testq %rdx, %rdx
je 0x8d1e
movq %rdx, %rsi
movq 0x18(%rax), %rdx
jmp 0x8d25
leaq 0x853d(%rip), %rsi      # 0x11262
movq %rbp, 0x38(%rsp)
addq %rsi, %rdx
leaq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0x5ea4
leaq 0x130(%rsp), %rdi
movq %r14, %rsi
callq 0x32d0
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8d61
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3250
movq %r15, %rdi
leaq 0x3367(%rip), %rsi      # 0xc0d2
xorl %edx, %edx
movl $0x1, %ecx
callq 0x9aa2
testq %rax, %rax
je 0x8e0e
movq 0x8(%rax), %r13
testq %r13, %r13
je 0x8d92
movq %r13, %r14
movq 0x18(%rax), %r13
jmp 0x8d99
leaq 0x84c9(%rip), %r14      # 0x11262
testq %r13, %r13
je 0x8e0e
addq %r14, %r13
xorl %ebp, %ebp
movq %r14, %r12
movsbl (%r12), %edi
callq 0x3080
testl %eax, %eax
je 0x8dbc
incq %r12
cmpq %r13, %r12
jne 0x8da6
movq %r12, %r14
cmpq %r13, %r12
je 0x8de6
movq %r12, %r14
movsbl (%r14), %eax
cmpl $0x2e, %eax
setne %cl
addl $-0x30, %eax
cmpl $0xa, %eax
setae %al
testb %al, %cl
jne 0x8de6
incq %r14
cmpq %r13, %r14
jne 0x8dc7
movq %r12, %rdi
xorl %esi, %esi
callq 0x31e0
cvtsd2ss %xmm0, %xmm0
callq 0x8308
movl %eax, 0x988(%rsp,%rbp,4)
cmpq $0x1, %rbp
ja 0x8e0e
incq %rbp
cmpq %r13, %r14
jne 0x8da3
movq %r15, %rdi
leaq 0x3b0c(%rip), %rsi      # 0xc924
xorl %edx, %edx
movl $0x1, %ecx
callq 0x9aa2
testq %rax, %rax
je 0x8eb7
movq 0x8(%rax), %r13
testq %r13, %r13
je 0x8e3f
movq %r13, %r14
movq 0x18(%rax), %r13
jmp 0x8e46
leaq 0x841c(%rip), %r14      # 0x11262
testq %r13, %r13
je 0x8eb7
addq %r14, %r13
xorl %ebp, %ebp
movq %r14, %r12
movsbl (%r12), %edi
callq 0x3080
testl %eax, %eax
je 0x8e69
incq %r12
cmpq %r13, %r12
jne 0x8e53
movq %r12, %r14
cmpq %r13, %r12
je 0x8e93
movq %r12, %r14
movsbl (%r14), %eax
cmpl $0x2d, %eax
setne %cl
addl $-0x30, %eax
cmpl $0xa, %eax
setae %al
testb %al, %cl
jne 0x8e93
incq %r14
cmpq %r13, %r14
jne 0x8e74
movq %r12, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x3320
movl %eax, 0x994(%rsp,%rbp,4)
cmpq $0x4, %rbp
ja 0x8eb7
incq %rbp
cmpq %r13, %r14
jne 0x8e50
movq %r15, %rdi
leaq 0x3256(%rip), %rsi      # 0xc117
xorl %edx, %edx
movl $0x1, %ecx
callq 0x9aa2
testq %rax, %rax
leaq 0x48(%rsp), %r12
je 0x8f2c
movq 0x8(%rax), %rdx
testq %rdx, %rdx
je 0x8ee9
movq %rdx, %rsi
movq 0x18(%rax), %rdx
jmp 0x8ef0
leaq 0x8372(%rip), %rsi      # 0x11262
movq %r12, 0x38(%rsp)
addq %rsi, %rdx
leaq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0x5ea4
leaq 0x9b0(%rsp), %rdi
movq %r14, %rsi
callq 0x32d0
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x8f2c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x30(%r15), %rbp
testq %rbp, %rbp
je 0x9369
movq (%rbp), %rdx
testq %rdx, %rdx
je 0x8f4b
movq %rdx, %rdi
movq 0x10(%rbp), %rdx
jmp 0x8f52
leaq 0x8310(%rip), %rdi      # 0x11262
leaq 0x39cf(%rip), %rsi      # 0xc928
callq 0x3130
testl %eax, %eax
je 0x8f9a
movq %rbp, %rdi
leaq 0x39c1(%rip), %rsi      # 0xc92d
xorl %edx, %edx
movl $0x1, %ecx
callq 0x9aa2
testq %rax, %rax
je 0x9261
movq 0x8(%rax), %rdx
testq %rdx, %rdx
je 0x9023
movq %rdx, %rsi
movq 0x18(%rax), %rdx
jmp 0x902a
movq %rbp, %rdi
leaq 0x3989(%rip), %rsi      # 0xc92d
xorl %edx, %edx
movl $0x1, %ecx
callq 0x9aa2
movq %rax, %r12
movq %rbp, %rdi
leaq 0x3974(%rip), %rsi      # 0xc931
xorl %edx, %edx
movl $0x1, %ecx
callq 0x9aa2
testq %r12, %r12
sete %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x9261
movq 0x8(%rax), %rdi
testq %rdi, %rdi
leaq 0x8277(%rip), %rax      # 0x11262
cmoveq %rax, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x3320
cmpq $0x1f, %rax
ja 0x9261
movq %rax, %r13
movq 0x8(%r12), %rdx
testq %rdx, %rdx
je 0x9275
movq %rdx, %rsi
movq 0x18(%r12), %rdx
jmp 0x927c
leaq 0x8238(%rip), %rsi      # 0x11262
movq %rbx, %rdi
leaq 0x98(%rsp), %r14
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
addq %rsi, %rdx
callq 0x5ea4
movq 0x8(%rbp), %rdx
testq %rdx, %rdx
je 0x9059
movq %rdx, %rsi
movq 0x18(%rbp), %rdx
jmp 0x9060
leaq 0x8202(%rip), %rsi      # 0x11262
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
addq %rsi, %rdx
movq %r14, %rdi
callq 0x5ea4
leaq 0xd8(%rsp), %rdi
movq %r14, %rsi
callq 0x8327
movq (%rbp), %r13
testq %r13, %r13
je 0x909d
movq %r13, %r12
movq 0x10(%rbp), %r13
jmp 0x90a4
leaq 0x81be(%rip), %r12      # 0x11262
movq %r12, %rdi
leaq 0x3047(%rip), %rsi      # 0xc0f5
movq %r13, %rdx
callq 0x3130
leaq 0x3032(%rip), %rsi      # 0xc0ef
testl %eax, %eax
je 0x913c
movq %r12, %rdi
leaq 0x3879(%rip), %rsi      # 0xc944
movq %r13, %rdx
callq 0x3130
leaq 0x386f(%rip), %rsi      # 0xc949
testl %eax, %eax
je 0x913c
movq %r12, %rdi
leaq 0x3867(%rip), %r14      # 0xc94f
movq %r14, %rsi
movq %r13, %rdx
callq 0x3130
movq %r14, %rsi
testl %eax, %eax
je 0x913c
movq %r12, %rdi
leaq 0x3853(%rip), %r14      # 0xc957
movq %r14, %rsi
movq %r13, %rdx
callq 0x3130
movq %r14, %rsi
testl %eax, %eax
je 0x913c
movq %r12, %rdi
leaq 0x2ff7(%rip), %rsi      # 0xc117
movq %r13, %rdx
callq 0x3130
testl %eax, %eax
leaq 0x30bd(%rip), %rsi      # 0xc1ee
leaq 0x3825(%rip), %rax      # 0xc95d
cmoveq %rax, %rsi
leaq 0xf8(%rsp), %r12
movq %r12, %rdi
leaq 0x2f(%rsp), %rdx
callq 0x9b9a
leaq 0x38(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
leaq 0xd8(%rsp), %rdx
movq %r12, %rcx
callq 0x83e0
leaq 0x170(%rsp), %rdi
movq %r14, %rsi
callq 0x5f34
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x919e
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x91ba
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x91d6
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x91fb
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x9220
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x9245
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9261
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3250
cmpq $0x0, 0x20(%rbp)
je 0x9575
movq 0x58(%rbp), %rbp
jmp 0x8f30
leaq 0x7fe6(%rip), %rsi      # 0x11262
leaq 0x48(%rsp), %r12
movq %r12, 0x38(%rsp)
addq %rsi, %rdx
leaq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0x5ea4
shlq $0x5, %r13
leaq 0x188(%rsp), %rax
leaq (%rax,%r13), %rdi
movq %r14, %rsi
callq 0x32d0
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x92c5
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x8(%rbp), %rdx
testq %rdx, %rdx
leaq 0xb8(%rsp), %r12
je 0x92df
movq %rdx, %rsi
movq 0x18(%rbp), %rdx
jmp 0x92e6
leaq 0x7f7c(%rip), %rsi      # 0x11262
leaq 0xc8(%rsp), %rax
movq %rax, 0xb8(%rsp)
addq %rsi, %rdx
movq %r12, %rdi
callq 0x5ea4
leaq 0x38(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x8327
leaq 0x588(%rsp), %rax
addq %rax, %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x32d0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x9343
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x9261
movq 0xc8(%rsp), %rsi
jmp 0x9259
cmpq $0x0, 0x30(%r15)
je 0x9594
movq 0x38(%r15), %rax
testq %rax, %rax
leaq 0x48(%rsp), %rbp
movq %rbx, %r12
je 0x94fc
cmpq $0x0, (%rax)
je 0x939a
cmpq $0x0, 0x10(%rax)
jne 0x94fc
movq 0x8(%rax), %rdx
testq %rdx, %rdx
je 0x93ac
movq %rdx, %rsi
movq 0x18(%rax), %rdx
jmp 0x93b3
leaq 0x7eaf(%rip), %rsi      # 0x11262
leaq 0x38(%rsp), %rbx
movq %rbp, 0x38(%rsp)
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x5ea4
movl $0xe, %ecx
movq %rbx, %rdi
leaq 0x355e(%rip), %rsi      # 0xc935
xorl %edx, %edx
callq 0x3410
cmpq $-0x1, %rax
je 0x9480
movq %rax, %r13
cmpq $0x0, 0x9b8(%rsp)
jne 0x9473
movq 0x38(%rsp), %rax
cmpb $0x22, 0xe(%rax,%r13)
jne 0x9473
leaq (%rax,%r13), %rsi
addq $0xf, %rsi
movq 0x40(%rsp), %rcx
addq %rcx, %rax
movq %rsi, %rdx
cmpq %rax, %rsi
je 0x9435
subq %r13, %rcx
addq $-0xf, %rcx
movq %rsi, %rdx
cmpb $0x22, (%rdx)
je 0x9435
incq %rdx
decq %rcx
jne 0x9425
movq %rax, %rdx
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r12, %rdi
callq 0x7d8c
leaq 0x9b0(%rsp), %rdi
movq %r12, %rsi
callq 0x3160
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9473
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3250
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x30c0
cmpq $0x0, 0x40(%rsp)
je 0x94e5
cmpq $0x0, 0x158(%rsp)
je 0x94a7
leaq 0x150(%rsp), %rdi
leaq 0x3404(%rip), %rsi      # 0xc8a6
callq 0x3460
movq %r12, %rdi
movq %rbx, %rsi
callq 0x8830
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x150(%rsp), %rdi
callq 0x30d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x94e5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x94fc
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x30(%rsp), %rdi
leaq 0x130(%rsp), %rsi
callq 0x7d44
leaq 0x130(%rsp), %rdi
callq 0x5a50
cmpq $0x0, 0x20(%r15)
je 0x9575
movq 0x58(%r15), %r15
testq %r15, %r15
leaq 0x38(%rsp), %rbx
jne 0x8c05
leaq 0xa30(%rsp), %rdi
callq 0x9bd8
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x955e
movq 0x128(%rsp), %rsi
subq %rdi, %rsi
callq 0x3250
movq 0x30(%rsp), %rax
addq $0x10a58, %rsp          # imm = 0x10A58
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3615(%rip), %rdi      # 0xcb91
leaq 0x33e6(%rip), %rsi      # 0xc969
leaq 0x3616(%rip), %rcx      # 0xcba0
movl $0x3ee, %edx            # imm = 0x3EE
callq 0x3190
leaq 0x3667(%rip), %rdi      # 0xcc02
leaq 0x33c7(%rip), %rsi      # 0xc969
leaq 0x3666(%rip), %rcx      # 0xcc0f
movl $0x3c0, %edx            # imm = 0x3C0
callq 0x3190
movl $0x10, %edi
callq 0x3140
movq %rax, %r14
leaq 0x333e(%rip), %rsi      # 0xc905
leaq 0x130(%rsp), %rdi
callq 0xb1bd
movb $0x1, %bpl
leaq 0x130(%rsp), %rsi
movq %r14, %rdi
callq 0x33a0
xorl %ebp, %ebp
movq 0x7a00(%rip), %rsi      # 0x10ff0
movq 0x79b1(%rip), %rdx      # 0x10fa8
movq %r14, %rdi
callq 0x33f0
jmp 0x964e
jmp 0x9676
movq %rax, %r15
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x962f
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x962f
movq %rax, %r15
movb $0x1, %bpl
testb %bpl, %bpl
je 0x97cd
movq %r14, %rdi
callq 0x31d0
jmp 0x97cd
jmp 0x97fc
jmp 0x96b4
jmp 0x96b4
movq %rax, %r15
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9679
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x9679
jmp 0x9676
jmp 0x97bd
movq %rax, %r15
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x97c0
movq 0x48(%rsp), %rsi
jmp 0x97b1
jmp 0x97bd
jmp 0x97bd
jmp 0x97bd
jmp 0x97bd
jmp 0x97bd
jmp 0x97bd
movq %rax, %r15
jmp 0x97cd
jmp 0x97bd
jmp 0x970a
jmp 0x97bd
jmp 0x97bd
movq %rax, %r15
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x97c0
movq 0xc8(%rsp), %rsi
jmp 0x97b1
jmp 0x97bd
jmp 0x97bd
jmp 0x97bd
movq %rax, %r15
jmp 0x9778
movq %rax, %r15
jmp 0x979d
jmp 0x97bd
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x5a02
jmp 0x9729
movq %rax, %r15
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x9753
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x9753
movq %rax, %r15
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x9778
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x979d
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x97c0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x97c0
jmp 0x97bd
movq %rax, %r15
leaq 0x130(%rsp), %rdi
callq 0x5a50
leaq 0xa30(%rsp), %rdi
callq 0x9bd8
leaq 0x9d0(%rsp), %rdi
leaq 0x118(%rsp), %rdx
movq 0x30(%rsp), %rsi
callq 0x39d4
movq %r15, %rdi
callq 0x3420
movq %rax, %rdi
callq 0x5b56