// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]def2fgd/src/defreader.cpp
// Function: readDefFile(std::istream&)
std::vector<Entity> readDefFile(std::istream& stream)
{
    std::vector<Entity> toReturn;

    bool inKeys = false;
    bool shouldPush = false;
    size_t lineNum = 0;
    std::string line;

    Entity entity;

    while(getline(stream, line))
    {
        stripRight(line);
        lineNum++;

        if (line.empty()) {
            continue;
        }

        if (shouldPush) {
            toReturn.push_back(entity);
            entity = Entity();
            inKeys = false;
            shouldPush = false;
        }

        if (inKeys) {
            if (line.size() > 1)
            {
                if (line[0] == '*' && line[1] == '/') {
                    shouldPush = true;
                } else if (line[line.size()-2] == '*' && line[line.size()-1] == '/') {
                    line.resize(line.size()-2);
                    shouldPush = true;
                }
            }
        }

        std::string::iterator it = line.begin();
        std::string::iterator begin = line.begin();
        std::string::iterator end = line.end();
        std::string::iterator start = it;


        if (inKeys) {
            if (isalpha(line[0]) || line[0] == '_' || line[0] == '\"')
            {
                if (it != end && *it == '\"') {
                    it++;
                }

                start = it;

                std::string keyname;
                if (*begin == '\"') {
                    while(it != end && *it != '\"') {
                        it++;
                    }
                    if (it == end) {
                        throw DefReadError(translate("Expected pair quote"), lineNum, it-begin);
                    } else {
                        keyname = std::string(start, it);
                        it++;
                    }
                } else {
                    it = skipAlpha(it, end);
                    keyname = std::string(start, it);
                }

                it = skipSpaces(it, end);
                std::string* found = std::find(entity.spawnflags, entity.spawnflags+Entity::SpawnFlagNum, keyname);
                if (found != entity.spawnflags+Entity::SpawnFlagNum) {

                    if (it != end && *it == ':') {
                        it++;
                        it = skipSpaces(it, end);
                    }

                    entity.flagsdescriptions[found-entity.spawnflags] = withoutQuotes(std::string(it, end));
                    continue;
                }

                if (keyname == "model" && *it == '=')
                {
                    it++;
                    if (*it == '"') {
                        it++;
                        start = it;
                        while(it != end && *it != '"') {
                            it++;
                        }
                        std::string modelname(start, it);
                        entity.model = modelname;
                    }
                }
                else
                {
                    if ((it == end  || *it != ':') && *begin != '\"' )
                    {
                        start = it;
                        it = skipAlpha(it, end);
                        if (std::string(start, it) == "OR") //check if this is the field with two names
                        {
                            it = skipSpaces(it, end);
                            start = it;
                            it = skipAlpha(it, end);
                            keyname = std::string(start, it); //take the second name as a key name
                            it = skipSpaces(it, end);
                        }
                        else //description
                        {
                            if (entity.description.empty()) {
                                entity.description = withoutQuotes(line);
                            } else {
                                entity.description += "\\n\\n";
                                entity.description += withoutQuotes(line);
                            }
                            continue;
                        }
                    }
                    if (it != end && (*it == ':' || *begin == '\"'))
                    {
                        if (*it == ':') {
                            it++;
                        }
                        it = skipSpaces(it, end);

                        std::string description = withoutQuotes(std::string(it, end));

                        entity.keys.push_back(Key(keyname, description));
                    }
                }
            } else if (line[0] == ' ') {
                if (entity.description.empty()) {
                    entity.description = withoutQuotes(line);
                } else {
                    entity.description += "\\n";
                    entity.description += withoutQuotes(line);
                }
            }
        } else {
            if (*it == '/')
            {
                it++;
                if (*it == '/') {
                    continue; //skip comment
                } else if (*it == '*') {
                    it++;
                    if ( static_cast<size_t>(end - it) > quakednum && std::equal(quakedstr, quakedstr+quakednum, it)) // /*QUAKED starts here
                    {
                        advance(it, quakednum);
                        it = skipSpaces(it, end);
                        start = it;
                        it = skipAlpha(it, end);
                        entity.name = std::string(start, it);

                        it = skipSpaces(it, end);
                        if (it != end)
                        {
                            if (*it == '(')
                            {
                                it++;
                                for (int i=0; i<3; ++i)
                                {
                                    it = skipSpaces(it, end);
                                    start = it;
                                    it = skipFloat(it, end);
                                    std::string numstr(start, it);
                                    entity.color[i] = colorFromFloat(static_cast<float>(strtod(numstr.c_str(), NULL)));
                                }

                                while(*it != ')')
                                {
                                    it++;
                                    if (it == end) {
                                        throw DefReadError(unexpectedEndOfFile(), lineNum, it-begin);
                                    }
                                }
                                it++;
                                it = skipSpaces(it, end);
                                if (it != end)
                                {
                                    if (*it == '?') {
                                        entity.solid = true;
                                        it++;
                                    } else {
                                        it = readBox(it, lineNum, begin, end, entity.box, -8);
                                        it = skipSpaces(it, end);
                                        it = readBox(it, lineNum, begin, end, entity.box+3, 8);
                                    }
                                    it = skipSpaces(it, end);
                                    readFlags(it, lineNum, begin, end, entity.spawnflags);

                                    inKeys = true;
                                }
                                else
                                {
                                    throw DefReadError(unexpectedEndOfFile(), lineNum, it-begin);
                                }
                            }
                        }
                        else
                        {
                            throw DefReadError(unexpectedEndOfFile(), lineNum, it-begin);
                        }
                    }
                    else
                    {
                        throw DefReadError(translate("Expected QUAKED"), lineNum, it-begin);
                    }
                }
            }
        }
    }

    if (shouldPush) {
        toReturn.push_back(entity);
        entity = Entity();
    }

    return toReturn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x12b8, %rsp           # imm = 0x12B8
movq %rsi, %r15
xorl %eax, %eax
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movq %rdi, 0x68(%rsp)
movups %xmm0, (%rdi)
leaq 0x20(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0xa18(%rsp), %rbx
movq %rbx, %rdi
callq 0x8490
movl $0x858, %eax            # imm = 0x858
leaq (%rbx,%rax), %rcx
movq %rcx, 0x148(%rsp)
leaq 0x178(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x150(%rsp)
movl $0x880, %eax            # imm = 0x880
leaq (%rbx,%rax), %rdx
movq %rdx, 0x78(%rsp)
addq %rcx, %rax
movq %rax, 0x140(%rsp)
xorl %r14d, %r14d
leaq 0x10(%rsp), %r13
movq $0x0, 0x70(%rsp)
movl $0x0, 0x3c(%rsp)
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x3440
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7344
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0x6465
movq 0x10(%rsp), %rax
cmpb $0xd, -0x1(%rax,%rsi)
jne 0x6465
decq %rsi
movq %r13, %rdi
xorl %edx, %edx
callq 0x30c0
incq %r14
cmpq $0x0, 0x18(%rsp)
je 0x640e
movq 0x70(%rsp), %rcx
movl %ecx, %eax
testb $0x1, %cl
movl 0x3c(%rsp), %edx
je 0x65c9
movq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0x7d44
leaq 0x178(%rsp), %r12
movq %r12, %rdi
callq 0x8490
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32d0
leaq 0xa38(%rsp), %rdi
leaq 0x198(%rsp), %rsi
callq 0x32d0
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movups 0xa58(%rsp), %xmm0
movq 0xa68(%rsp), %rax
movups 0x1b8(%rsp), %xmm1
movups %xmm1, 0xa58(%rsp)
movq 0x1c8(%rsp), %rcx
movq %rcx, 0xa68(%rsp)
movaps 0x40(%rsp), %xmm1
movaps %xmm0, 0x40(%rsp)
movq %rax, 0x50(%rsp)
movups %xmm1, 0x1b8(%rsp)
movq $0x0, 0x1c8(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x5c30
movl $0x58, %ebx
leaq (%rsp,%rbx), %rdi
addq $0xa18, %rdi            # imm = 0xA18
leaq (%rsp,%rbx), %rsi
addq $0x178, %rsi            # imm = 0x178
callq 0x32d0
addq $0x20, %rbx
cmpq $0x458, %rbx            # imm = 0x458
jne 0x652b
movl $0x458, %ebx            # imm = 0x458
leaq (%rsp,%rbx), %rdi
addq $0xa18, %rdi            # imm = 0xA18
leaq (%rsp,%rbx), %rsi
addq $0x178, %rsi            # imm = 0x178
callq 0x32d0
addq $0x20, %rbx
cmpq $0x858, %rbx            # imm = 0x858
jne 0x6558
movq 0x150(%rsp), %rcx
movq 0x1d(%rcx), %rax
movq 0x148(%rsp), %rdx
movq %rax, 0x1d(%rdx)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups %xmm1, 0x10(%rdx)
movups %xmm0, (%rdx)
movq 0x78(%rsp), %rdi
movq 0x140(%rsp), %rsi
callq 0x32d0
leaq 0x178(%rsp), %rdi
callq 0x5a50
xorl %eax, %eax
xorl %edx, %edx
testb $0x1, %dl
je 0x6611
movq 0x18(%rsp), %rsi
cmpq $0x2, %rsi
jb 0x6611
movq 0x10(%rsp), %rcx
cmpb $0x2a, (%rcx)
jne 0x65eb
movb $0x1, %bl
cmpb $0x2f, 0x1(%rcx)
je 0x6613
cmpb $0x2a, -0x2(%rcx,%rsi)
jne 0x6611
cmpb $0x2f, -0x1(%rcx,%rsi)
movl %eax, %ebx
jne 0x6613
addq $-0x2, %rsi
movb $0x1, %bl
movl %edx, %ebp
movq %r13, %rdi
xorl %edx, %edx
callq 0x30c0
movl %ebp, %edx
jmp 0x6613
movl %eax, %ebx
movq %rbx, 0x70(%rsp)
movq 0x10(%rsp), %rbp
movq 0x18(%rsp), %r13
movq %rbp, 0x30(%rsp)
movq %rbp, %r12
addq %r13, %r12
movq %r12, 0x8(%rsp)
movsbl (%rbp), %ebx
testb $0x1, %dl
movl %edx, 0x3c(%rsp)
je 0x6702
movl %ebx, %edi
callq 0x3390
testl %eax, %eax
je 0x6adc
testq %r13, %r13
setne %al
cmpb $0x22, %bl
sete %cl
andb %al, %cl
movzbl %cl, %eax
leaq (%rax,%rbp), %rsi
leaq 0x50(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
movb $0x0, 0x50(%rsp)
cmpb $0x22, (%rbp)
jne 0x6919
movq %rsi, %rbx
subq %rax, %r13
je 0x66a4
movq %rsi, %rbx
cmpb $0x22, (%rbx)
je 0x66a4
incq %rbx
decq %r13
jne 0x6694
movq %r12, %rbx
cmpq %r12, %rbx
je 0x75a3
leaq 0x188(%rsp), %r13
movq %r13, 0x178(%rsp)
leaq 0x178(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rdx
callq 0x7d8c
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x32d0
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x66fa
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
incq %rbx
jmp 0x69a2
cmpb $0x2f, %bl
jne 0x6afa
cmpb $0x2a, 0x1(%rbp)
jne 0x6afa
leaq -0x9(%r13), %rax
cmpq $-0x8, %rax
ja 0x753c
movl 0x2(%rbp), %eax
movl $0x4b415551, %ecx       # imm = 0x4B415551
xorl %ecx, %eax
movzwl 0x6(%rbp), %ecx
xorl $0x4445, %ecx           # imm = 0x4445
orl %eax, %ecx
jne 0x753c
addq $0x8, %rbp
cmpq $0x8, %r13
je 0x6765
addq $-0x8, %r13
movsbl (%rbp), %edi
callq 0x3080
testl %eax, %eax
je 0x6765
incq %rbp
decq %r13
jne 0x674d
movq %r12, %rbp
movq %rbp, %rbx
cmpq %rbp, %r12
leaq 0x188(%rsp), %r13
je 0x67ad
movq %rbp, %r13
movq %rbp, %rbx
movq %r12, %rbp
movsbl (%rbx), %r12d
movl %r12d, %edi
callq 0x3260
cmpl $0x5f, %r12d
je 0x6794
testl %eax, %eax
je 0x67a2
incq %rbx
movq %rbp, %r12
cmpq %rbp, %rbx
jne 0x677b
movq %r12, %rbx
movq %r13, %rbp
leaq 0x188(%rsp), %r13
movq %r13, 0x178(%rsp)
leaq 0x178(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x7d8c
leaq 0xa18(%rsp), %rdi
movq %r12, %rsi
callq 0x32d0
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x67f8
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x8(%rsp), %r12
cmpq %rbx, %r12
leaq 0x10(%rsp), %r13
je 0x681e
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x681e
incq %rbx
cmpq %r12, %rbx
jne 0x6807
movq %r12, %rbx
cmpq %r12, %rbx
je 0x760a
cmpb $0x28, (%rbx)
jne 0x6aff
incq %rbx
xorl %r12d, %r12d
movq 0x8(%rsp), %r13
cmpq %rbx, %r13
je 0x6859
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6859
incq %rbx
cmpq %r13, %rbx
jne 0x6840
movq %r13, %rsi
jmp 0x685c
movq %rbx, %rsi
movq %rsi, %rbx
cmpq %rsi, %r13
je 0x6888
movq %rsi, %rbx
movsbl (%rbx), %eax
cmpl $0x2e, %eax
setne %cl
addl $-0x30, %eax
cmpl $0xa, %eax
setae %al
testb %al, %cl
jne 0x6888
incq %rbx
cmpq %r13, %rbx
jne 0x6867
movq %r13, %rbx
leaq 0x188(%rsp), %r13
movq %r13, 0x178(%rsp)
leaq 0x178(%rsp), %rdi
movq %rbx, %rdx
callq 0x7d8c
movq 0x178(%rsp), %rdi
xorl %esi, %esi
callq 0x31e0
cvtsd2ss %xmm0, %xmm0
callq 0x8308
movl %eax, 0x1270(%rsp,%r12,4)
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x68e5
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
incq %r12
cmpq $0x3, %r12
jne 0x6836
movq 0x8(%rsp), %r12
leaq 0x1(%rbx), %rax
leaq 0x10(%rsp), %r13
cmpb $0x29, (%rbx)
je 0x6d30
incq %rbx
incq %rax
cmpq %r12, %rbx
jne 0x6900
jmp 0x74d1
movq %r13, %r12
movq %rsi, %rbx
subq %rax, %r12
je 0x6955
addq %r13, %rbp
movq %rsi, 0x60(%rsp)
movq %rsi, %rbx
movsbl (%rbx), %r13d
movl %r13d, %edi
callq 0x3260
cmpl $0x5f, %r13d
je 0x6945
testl %eax, %eax
je 0x6950
incq %rbx
decq %r12
jne 0x692f
movq %rbp, %rbx
movq 0x60(%rsp), %rsi
leaq 0x188(%rsp), %r13
movq %r13, 0x178(%rsp)
leaq 0x178(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rdx
callq 0x7d8c
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x32d0
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x69a2
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x8(%rsp), %rbp
cmpq %rbx, %rbp
je 0x69c3
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x69c3
incq %rbx
cmpq %rbp, %rbx
jne 0x69ac
movq %rbp, %rbx
leaq 0xa70(%rsp), %rdi
leaq 0xe70(%rsp), %r12
movq %r12, %rsi
leaq 0x40(%rsp), %rdx
callq 0x81d0
movq %rax, %r13
cmpq %r12, %rax
je 0x6b0c
cmpq %rbp, %rbx
je 0x6a15
cmpb $0x3a, (%rbx)
jne 0x6a15
incq %rbx
cmpq %rbx, %rbp
je 0x6a15
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6a15
incq %rbx
cmpq %rbp, %rbx
jne 0x69fe
movq %rbp, %rbx
leaq 0x130(%rsp), %rax
movq %rax, 0x120(%rsp)
leaq 0x120(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x7d8c
leaq 0x178(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8327
leaq 0xe70(%rsp), %rcx
leaq 0xa70(%rsp), %rax
subq %rax, %r13
addq %rcx, %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0x32d0
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x6a94
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
leaq 0x10(%rsp), %r13
je 0x6abe
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x6aff
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x6aff
cmpb $0x20, %bl
je 0x6d84
movzbl %bl, %eax
cmpl $0x5f, %eax
je 0x6652
cmpl $0x22, %eax
je 0x6652
leaq 0x10(%rsp), %r13
leaq 0xa18(%rsp), %rbx
jmp 0x640e
leaq 0x40(%rsp), %rdi
leaq 0x55ff(%rip), %rsi      # 0xc117
callq 0x30b0
testl %eax, %eax
jne 0x6bae
cmpb $0x3d, (%rbx)
jne 0x6bae
cmpb $0x22, 0x1(%rbx)
leaq 0x10(%rsp), %r13
jne 0x6abe
addq $0x2, %rbx
movq %rbx, %rdx
cmpq %rbp, %rbx
leaq 0x188(%rsp), %rax
je 0x6b60
movq %rbx, %rdx
cmpb $0x22, (%rdx)
je 0x6b60
incq %rdx
cmpq %rbp, %rdx
jne 0x6b50
movq %rbp, %rdx
movq %rax, 0x178(%rsp)
leaq 0x178(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7d8c
movq 0x78(%rsp), %rdi
movq %r12, %rsi
callq 0x3160
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x6abe
movq 0x188(%rsp), %rsi
jmp 0x6ab6
cmpq %rbp, %rbx
leaq 0x10(%rsp), %r13
je 0x6bbd
cmpb $0x3a, (%rbx)
je 0x6bcb
movq 0x30(%rsp), %rax
cmpb $0x22, (%rax)
jne 0x6e51
movq 0x8(%rsp), %r12
cmpq %r12, %rbx
je 0x6abe
movb (%rbx), %al
cmpb $0x3a, %al
je 0x6bed
movq 0x30(%rsp), %rcx
cmpb $0x22, (%rcx)
jne 0x6abe
xorl %ecx, %ecx
cmpb $0x3a, %al
sete %cl
addq %rcx, %rbx
cmpq %rbx, %r12
je 0x6c13
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6c13
incq %rbx
cmpq %r12, %rbx
jne 0x6bfc
movq %r12, %rbx
leaq 0xd0(%rsp), %rax
movq %rax, 0xc0(%rsp)
leaq 0xc0(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x7d8c
leaq 0x158(%rsp), %rdi
movq %rbp, %rsi
callq 0x8327
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x6c6e
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x3250
leaq 0x178(%rsp), %rbx
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
leaq 0x158(%rsp), %rdx
callq 0x8368
leaq 0xa58(%rsp), %rdi
movq %rbx, %rsi
callq 0x5f34
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x6cc0
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
je 0x6ce5
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x6d0a
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x6abe
movq 0x168(%rsp), %rsi
jmp 0x6ab6
movq 0x8(%rsp), %r12
incq %rbx
cmpq %r12, %rbx
je 0x6d62
movq %r12, %r13
subq %rax, %r13
addq %rbx, %r13
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6d5d
incq %rbx
cmpq %r12, %rbx
jne 0x6d46
movq %r13, %rbx
leaq 0x10(%rsp), %r13
cmpq %r12, %rbx
je 0x7672
cmpb $0x3f, (%rbx)
jne 0x6fa7
movb $0x1, 0x1294(%rsp)
incq %rbx
jmp 0x7014
cmpq $0x0, 0xa40(%rsp)
leaq 0x188(%rsp), %rbx
je 0x7144
leaq 0xa38(%rsp), %rdi
leaq 0x5afe(%rip), %rsi      # 0xc8a8
callq 0x3460
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %r12
movq %r12, %rdi
callq 0x5e14
leaq 0x10(%rsp), %r13
leaq 0x178(%rsp), %rdi
movq %r12, %rsi
callq 0x8327
movq 0x178(%rsp), %rsi
movq 0x180(%rsp), %rdx
leaq 0xa38(%rsp), %rdi
callq 0x30d0
movq 0x178(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6e2b
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x6aff
movq 0x90(%rsp), %rsi
jmp 0x6ad2
movq %rbx, %r13
cmpq %rbp, %rbx
je 0x6e7e
movq %rbx, %r13
movsbl (%r13), %r12d
movl %r12d, %edi
callq 0x3260
cmpl $0x5f, %r12d
je 0x6e73
testl %eax, %eax
je 0x6e7e
incq %r13
cmpq %rbp, %r13
jne 0x6e5c
movq %rbp, %r13
leaq 0x188(%rsp), %r12
movq %r12, 0x178(%rsp)
leaq 0x178(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x7d8c
movq %rbp, %rdi
leaq 0x59f5(%rip), %rsi      # 0xc8a3
callq 0x30b0
movl %eax, %ebx
movq 0x178(%rsp), %rdi
cmpq %r12, %rdi
je 0x6ed2
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
testl %ebx, %ebx
je 0x71d5
cmpq $0x0, 0xa40(%rsp)
je 0x72a4
leaq 0xa38(%rsp), %rdi
leaq 0x59ae(%rip), %rsi      # 0xc8a6
callq 0x3460
leaq 0x188(%rsp), %rbx
leaq 0xf0(%rsp), %rax
movq %rax, 0xe0(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe0(%rsp), %r12
movq %r12, %rdi
callq 0x5e14
leaq 0x178(%rsp), %rdi
movq %r12, %rsi
callq 0x8327
leaq 0x10(%rsp), %r13
movq 0x178(%rsp), %rsi
movq 0x180(%rsp), %rdx
leaq 0xa38(%rsp), %rdi
callq 0x30d0
movq 0x178(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6f81
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x6abe
movq 0xf0(%rsp), %rsi
jmp 0x6ab6
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x30(%rsp), %rdx
leaq 0x8(%rsp), %rcx
leaq 0x127c(%rsp), %r8
movl $0xfffffff8, %r9d       # imm = 0xFFFFFFF8
callq 0x7a13
movq %rax, %rbx
movq 0x8(%rsp), %r12
cmpq %rax, %r12
je 0x6fee
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6fee
incq %rbx
cmpq %r12, %rbx
jne 0x6fd7
movq %r12, %rbx
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x30(%rsp), %rdx
leaq 0x8(%rsp), %rcx
leaq 0x1288(%rsp), %r8
movl $0x8, %r9d
callq 0x7a13
movq %rax, %rbx
movq 0x8(%rsp), %r12
cmpq %rbx, %r12
je 0x7035
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x7035
incq %rbx
cmpq %r12, %rbx
jne 0x701e
movq %r12, %rbx
movb $0x1, %al
movl %eax, 0x3c(%rsp)
cmpq %rbx, %r12
je 0x6aff
xorl %r12d, %r12d
movsbl (%rbx), %ebp
movl %ebp, %edi
callq 0x3260
cmpl $0x2d, %ebp
je 0x705e
testl %eax, %eax
je 0x6aff
cmpb $0x2d, %bpl
jne 0x706f
incq %rbx
movq %rbx, %r13
jmp 0x7108
movq %r12, 0x60(%rsp)
movq 0x8(%rsp), %r12
movq %rbx, %r13
cmpq %rbx, %r12
je 0x70a4
movq %rbx, %r13
movsbl (%r13), %ebp
movl %ebp, %edi
callq 0x3260
cmpl $0x5f, %ebp
je 0x7099
testl %eax, %eax
je 0x70a4
incq %r13
cmpq %r12, %r13
jne 0x7084
movq %r12, %r13
leaq 0x188(%rsp), %r12
movq %r12, 0x178(%rsp)
leaq 0x178(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x7d8c
movq 0x60(%rsp), %rdi
shlq $0x5, %rdi
leaq 0xa70(%rsp), %rax
addq %rax, %rdi
movq %rbp, %rsi
callq 0x32d0
movq 0x178(%rsp), %rdi
cmpq %r12, %rdi
je 0x7103
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x60(%rsp), %r12
movq 0x8(%rsp), %rbp
cmpq %r13, %rbp
je 0x712b
movsbl (%r13), %edi
callq 0x3080
testl %eax, %eax
je 0x712b
incq %r13
cmpq %rbp, %r13
jne 0x7112
movq %rbp, %r13
incq %r12
movq %r13, %rbx
cmpq %rbp, %r13
leaq 0x10(%rsp), %r13
jne 0x7047
jmp 0x6aff
leaq 0xb0(%rsp), %rax
movq %rax, 0xa0(%rsp)
leaq 0xa0(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x5e14
leaq 0x178(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x8327
leaq 0x10(%rsp), %r13
leaq 0xa38(%rsp), %rdi
movq %r12, %rsi
callq 0x32d0
movq 0x178(%rsp), %rdi
cmpq %rbx, %rdi
je 0x71af
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x6aff
movq 0xb0(%rsp), %rsi
jmp 0x6ad2
movq 0x8(%rsp), %r12
cmpq %r13, %r12
je 0x71f8
movsbl (%r13), %edi
callq 0x3080
testl %eax, %eax
je 0x71f8
incq %r13
cmpq %r12, %r13
jne 0x71df
movq %r12, %r13
movq %r13, %rbx
cmpq %r13, %r12
je 0x7221
movq %r13, %rbx
movsbl (%rbx), %ebp
movl %ebp, %edi
callq 0x3260
cmpl $0x5f, %ebp
je 0x7216
testl %eax, %eax
je 0x7221
incq %rbx
cmpq %r12, %rbx
jne 0x7203
movq %r12, %rbx
leaq 0x188(%rsp), %r12
movq %r12, 0x178(%rsp)
leaq 0x178(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x7d8c
leaq 0x40(%rsp), %rdi
movq %rbp, %rsi
callq 0x32d0
movq 0x178(%rsp), %rdi
cmpq %r12, %rdi
leaq 0x10(%rsp), %r13
je 0x7276
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x8(%rsp), %r12
cmpq %rbx, %r12
je 0x6bcb
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6bcb
incq %rbx
cmpq %r12, %rbx
jne 0x7284
movq %r12, %rbx
jmp 0x6bcb
leaq 0x110(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x100(%rsp), %r13
movq %r13, %rdi
callq 0x5e14
leaq 0x188(%rsp), %rbx
leaq 0x178(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x8327
leaq 0x10(%rsp), %r13
leaq 0xa38(%rsp), %rdi
movq %r12, %rsi
callq 0x32d0
movq 0x178(%rsp), %rdi
cmpq %rbx, %rdi
je 0x731e
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x6abe
movq 0x110(%rsp), %rsi
jmp 0x6ab6
testb $0x1, 0x70(%rsp)
je 0x7491
leaq 0xa18(%rsp), %rsi
movq 0x68(%rsp), %rdi
callq 0x7d44
leaq 0x178(%rsp), %rdi
callq 0x8490
leaq 0xa18(%rsp), %r14
leaq 0x178(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32d0
leaq 0xa38(%rsp), %r15
leaq 0x198(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x32d0
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rdi
movaps %xmm0, (%rdi)
movups 0x20(%r15), %xmm0
movq 0x30(%r15), %rax
movups 0x20(%r12), %xmm1
movups %xmm1, 0x20(%r15)
movq 0x30(%r12), %rcx
movq %rcx, 0x30(%r15)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movups %xmm1, 0x20(%r12)
movq $0x0, 0x30(%r12)
callq 0x5c30
movl $0x58, %r15d
leaq (%rsp,%r15), %rdi
addq $0xa18, %rdi            # imm = 0xA18
leaq (%rsp,%r15), %rsi
addq $0x178, %rsi            # imm = 0x178
callq 0x32d0
addq $0x20, %r15
cmpq $0x458, %r15            # imm = 0x458
jne 0x73f0
movl $0x458, %r15d           # imm = 0x458
leaq (%rsp,%r15), %rdi
addq $0xa18, %rdi            # imm = 0xA18
leaq (%rsp,%r15), %rsi
addq $0x178, %rsi            # imm = 0x178
callq 0x32d0
addq $0x20, %r15
cmpq $0x858, %r15            # imm = 0x858
jne 0x741e
movq 0x9ed(%rsp), %rax
movq %rax, 0x128d(%rsp)
movups 0x9d0(%rsp), %xmm0
movups 0x9e0(%rsp), %xmm1
movups %xmm1, 0x1280(%rsp)
movups %xmm0, 0x1270(%rsp)
movl $0x880, %esi            # imm = 0x880
addq %rsi, %r14
addq %rbx, %rsi
movq %r14, %rdi
callq 0x32d0
movq %rbx, %rdi
callq 0x5a50
leaq 0xa18(%rsp), %rdi
callq 0x5a50
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x74ba
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x68(%rsp), %rax
addq $0x12b8, %rsp           # imm = 0x12B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x53d6(%rip), %rsi      # 0xc8bb
leaq 0x178(%rsp), %rdi
callq 0xb1bd
movb $0x1, %bpl
movq 0x30(%rsp), %r15
leaq 0x178(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r15, %r12
leaq 0x980c(%rip), %rax      # 0x10d20
movq %rax, (%rbx)
movq %r14, 0x10(%rbx)
movq %r12, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x97d0(%rip), %rsi      # 0x10cf8
movq 0x9a81(%rip), %rdx      # 0x10fb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x76d8
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x535b(%rip), %rsi      # 0xc8ab
leaq 0x178(%rsp), %rdi
callq 0xb1bd
movb $0x1, %bpl
leaq 0x178(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
leaq 0x97a9(%rip), %rax      # 0x10d20
movq %rax, (%rbx)
movq %r14, 0x10(%rbx)
movq $0x2, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x9769(%rip), %rsi      # 0x10cf8
movq 0x9a1a(%rip), %rdx      # 0x10fb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x76d8
movl $0x20, %edi
callq 0x3140
movq %rax, %r15
leaq 0x52d8(%rip), %rsi      # 0xc88f
leaq 0x178(%rsp), %rdi
callq 0xb1bd
movb $0x1, %r12b
leaq 0x178(%rsp), %rsi
movq %r15, %rdi
callq 0x32e0
subq %rbp, %rbx
leaq 0x973f(%rip), %rax      # 0x10d20
movq %rax, (%r15)
movq %r14, 0x10(%r15)
movq %rbx, 0x18(%r15)
xorl %r12d, %r12d
leaq 0x9702(%rip), %rsi      # 0x10cf8
movq 0x99b3(%rip), %rdx      # 0x10fb0
movq %r15, %rdi
callq 0x33f0
jmp 0x76d8
movl $0x20, %edi
callq 0x3140
movq %rax, %r15
leaq 0x529d(%rip), %rsi      # 0xc8bb
leaq 0x178(%rsp), %rdi
callq 0xb1bd
movb $0x1, %bpl
movq 0x30(%rsp), %r12
leaq 0x178(%rsp), %rsi
movq %r15, %rdi
callq 0x32e0
subq %r12, %rbx
leaq 0x96d3(%rip), %rax      # 0x10d20
movq %rax, (%r15)
movq %r14, 0x10(%r15)
movq %rbx, 0x18(%r15)
xorl %ebp, %ebp
leaq 0x9697(%rip), %rsi      # 0x10cf8
movq 0x9948(%rip), %rdx      # 0x10fb0
movq %r15, %rdi
callq 0x33f0
jmp 0x76d8
movl $0x20, %edi
callq 0x3140
movq %rax, %r15
leaq 0x5235(%rip), %rsi      # 0xc8bb
leaq 0x178(%rsp), %rdi
callq 0xb1bd
movb $0x1, %bpl
movq 0x30(%rsp), %r12
leaq 0x178(%rsp), %rsi
movq %r15, %rdi
callq 0x32e0
subq %r12, %rbx
leaq 0x966b(%rip), %rax      # 0x10d20
movq %rax, (%r15)
movq %r14, 0x10(%r15)
movq %rbx, 0x18(%r15)
xorl %ebp, %ebp
leaq 0x962f(%rip), %rsi      # 0x10cf8
movq 0x98e0(%rip), %rdx      # 0x10fb0
movq %r15, %rdi
callq 0x33f0
movq %rax, %r14
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x794f
movq 0x110(%rsp), %rsi
jmp 0x793b
jmp 0x794c
movq %rax, %r14
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x794f
movq 0x188(%rsp), %rsi
jmp 0x793b
jmp 0x794c
jmp 0x794c
movq %rax, %r14
movq 0x178(%rsp), %rdi
cmpq %rbx, %rdi
je 0x775e
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x775e
movq %rax, %r14
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x794f
movq 0xf0(%rsp), %rsi
jmp 0x793b
jmp 0x794c
movq %rax, %r14
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x79d8
movq 0xb0(%rsp), %rsi
jmp 0x79c9
jmp 0x79d5
movq %rax, %r14
movq 0x178(%rsp), %rdi
cmpq %rbx, %rdi
je 0x77dc
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x77dc
movq %rax, %r14
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x79d8
movq 0x90(%rsp), %rsi
jmp 0x79c9
jmp 0x79d5
jmp 0x79d5
jmp 0x79d5
jmp 0x788b
jmp 0x78b5
jmp 0x79d5
jmp 0x794c
movq %rax, %r14
leaq 0x178(%rsp), %rdi
callq 0x5a02
jmp 0x7837
movq %rax, %r14
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x794f
movq 0x168(%rsp), %rsi
jmp 0x793b
movq %rax, %r14
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x794f
movq 0xd0(%rsp), %rsi
jmp 0x793b
jmp 0x794c
movq %rax, %r14
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x78bb
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x78bb
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x79d8
movq %r15, %rdi
jmp 0x79a5
movq %rax, %r14
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x78fc
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x78fc
movq %rax, %r14
movb $0x1, %r12b
testb %r12b, %r12b
je 0x794f
movq %r15, %rdi
callq 0x31d0
jmp 0x794f
jmp 0x796d
jmp 0x7997
jmp 0x79d5
jmp 0x794c
jmp 0x794c
movq %rax, %r14
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x794f
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x794f
jmp 0x794c
jmp 0x79d5
movq %rax, %r14
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x79d8
movq 0x50(%rsp), %rsi
jmp 0x79c9
jmp 0x79d5
jmp 0x79d5
jmp 0x79d5
jmp 0x79d5
movq %rax, %r14
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x799d
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x799d
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x79d8
movq %rbx, %rdi
callq 0x31d0
jmp 0x79d8
movq %rax, %r14
jmp 0x79e5
movq %rax, %r14
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x79d8
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x79d8
jmp 0x79d5
movq %rax, %r14
leaq 0xa18(%rsp), %rdi
callq 0x5a50
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x7a01
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x68(%rsp), %rdi
callq 0x5b12
movq %r14, %rdi
callq 0x3420