// File: /workspace/github_cpp_makefile_star2_O3/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 $0x12a8, %rsp           # imm = 0x12A8
movq %rsi, %r15
xorl %eax, %eax
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movq %rdi, 0x60(%rsp)
movups %xmm0, (%rdi)
leaq 0x30(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0xa08(%rsp), %rbx
movq %rbx, %rdi
callq 0x825c
movl $0x880, %ecx            # imm = 0x880
leaq (%rbx,%rcx), %rax
movq %rax, 0x68(%rsp)
movl $0x858, %edx            # imm = 0x858
leaq (%rbx,%rdx), %rax
movq %rax, 0x70(%rsp)
leaq 0x168(%rsp), %rax
addq %rax, %rdx
movq %rdx, 0x138(%rsp)
addq %rax, %rcx
movq %rcx, 0x140(%rsp)
xorl %r14d, %r14d
leaq 0x40(%rsp), %r13
xorl %ebx, %ebx
xorl %ebp, %ebp
movq %r15, (%rsp)
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %edx
movq %r15, %rdi
leaq 0x20(%rsp), %rsi
callq 0x3440
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x71b1
movq 0x28(%rsp), %r12
testq %r12, %r12
je 0x62cc
movq 0x20(%rsp), %rax
cmpb $0xd, -0x1(%rax,%r12)
jne 0x62d1
decq %r12
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x30c0
movq 0x28(%rsp), %r12
incq %r14
testq %r12, %r12
je 0x625e
jmp 0x62d4
incq %r14
jmp 0x625e
incq %r14
testb $0x1, %bl
je 0x642b
movq 0x60(%rsp), %rdi
leaq 0xa08(%rsp), %rbx
movq %rbx, %rsi
callq 0x7b22
leaq 0x168(%rsp), %r15
movq %r15, %rdi
callq 0x825c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32d0
leaq 0xa28(%rsp), %rdi
leaq 0x188(%rsp), %rsi
callq 0x32d0
movq 0xa58(%rsp), %rax
movups 0x1a8(%rsp), %xmm0
movq 0x1b8(%rsp), %rcx
movq %rcx, 0xa58(%rsp)
movups 0xa48(%rsp), %xmm1
movups %xmm0, 0xa48(%rsp)
movaps %xmm1, 0x40(%rsp)
movq %rax, 0x50(%rsp)
xorps %xmm0, %xmm0
leaq 0x178(%rsp), %rax
movups %xmm0, 0x30(%rax)
movq $0x0, 0x40(%rax)
movq %r13, %rdi
callq 0x5a7a
movl $0x58, %ebx
leaq (%rsp,%rbx), %rdi
addq $0xa08, %rdi            # imm = 0xA08
leaq (%rsp,%rbx), %rsi
addq $0x168, %rsi            # imm = 0x168
callq 0x32d0
addq $0x20, %rbx
cmpq $0x458, %rbx            # imm = 0x458
jne 0x6380
movl $0x458, %ebx            # imm = 0x458
leaq (%rsp,%rbx), %rdi
addq $0xa08, %rdi            # imm = 0xA08
leaq (%rsp,%rbx), %rsi
addq $0x168, %rsi            # imm = 0x168
callq 0x32d0
addq $0x20, %rbx
cmpq $0x858, %rbx            # imm = 0x858
jne 0x63ad
movq 0x138(%rsp), %rdx
movq 0x1d(%rdx), %rax
movq 0x70(%rsp), %rcx
movq %rax, 0x1d(%rcx)
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups %xmm1, 0x10(%rcx)
movups %xmm0, (%rcx)
movq 0x68(%rsp), %rdi
movq 0x140(%rsp), %rsi
callq 0x32d0
leaq 0x168(%rsp), %rdi
callq 0x5894
movq 0x20(%rsp), %r15
movq 0x28(%rsp), %r12
movl $0x0, 0xc(%rsp)
jmp 0x6499
movq 0x20(%rsp), %r15
testb $0x1, %bpl
je 0x6493
cmpq $0x2, %r12
jb 0x650e
cmpb $0x2a, (%r15)
jne 0x6457
movb $0x1, %al
movl %eax, 0xc(%rsp)
cmpb $0x2f, 0x1(%r15)
je 0x651a
cmpb $0x2a, -0x2(%r15,%r12)
jne 0x6514
cmpb $0x2f, -0x1(%r15,%r12)
jne 0x6514
addq $-0x2, %r12
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x30c0
movq 0x20(%rsp), %r15
movq 0x28(%rsp), %r12
movb $0x1, %al
jmp 0x6516
movl %ebx, %eax
movl %eax, 0xc(%rsp)
movq %r15, 0x18(%rsp)
leaq (%r15,%r12), %rbx
movq %rbx, 0x10(%rsp)
cmpb $0x2f, (%r15)
jne 0x6729
cmpb $0x2a, 0x1(%r15)
jne 0x6729
leaq -0x9(%r12), %rax
cmpq $-0x8, %rax
ja 0x7383
movl 0x2(%r15), %eax
movl $0x4b415551, %ecx       # imm = 0x4B415551
xorl %ecx, %eax
movzwl 0x6(%r15), %ecx
xorl $0x4445, %ecx           # imm = 0x4445
orl %eax, %ecx
jne 0x7383
addq $0x8, %r15
addq $-0x8, %r12
movsbl (%r15), %edi
callq 0x3080
testl %eax, %eax
je 0x6558
incq %r15
decq %r12
jne 0x64f1
movq %rbx, %r15
jmp 0x65bd
movl $0x1, %r12d
movl %ebx, %eax
movl %eax, 0xc(%rsp)
movq %r15, 0x18(%rsp)
leaq (%r15,%r12), %rbp
movq %rbp, 0x10(%rsp)
movsbl (%r15), %ebx
movl %ebx, %edi
callq 0x3390
testl %eax, %eax
je 0x6583
movq %r15, %rsi
testq %r12, %r12
je 0x6910
movq %r15, %rsi
cmpb $0x22, %bl
jne 0x6910
leaq 0x1(%r15), %rsi
jmp 0x6910
testq %r12, %r12
je 0x65ad
leaq (%r15,%r12), %rbx
xorl %r13d, %r13d
movsbl (%r15,%r13), %ebp
movl %ebp, %edi
callq 0x3260
cmpl $0x5f, %ebp
je 0x6579
testl %eax, %eax
je 0x65b2
incq %r13
cmpq %r13, %r12
jne 0x6564
jmp 0x65b8
movzbl %bl, %eax
cmpl $0x20, %eax
je 0x6c57
movq %r15, %rsi
cmpl $0x22, %eax
je 0x6907
cmpl $0x5f, %eax
je 0x6910
movq (%rsp), %r15
jmp 0x6b5c
movq %r15, %rbx
jmp 0x65bd
addq %r15, %r13
movq %r13, %rbx
leaq 0x40(%rsp), %r13
leaq 0x178(%rsp), %rbp
movq %rbp, 0x168(%rsp)
leaq 0x168(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x7b6a
leaq 0xa08(%rsp), %rdi
movq %r12, %rsi
callq 0x32d0
movq 0x168(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6610
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x10(%rsp), %r15
cmpq %r15, %rbx
je 0x6631
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6631
incq %rbx
cmpq %r15, %rbx
jne 0x661a
movq %r15, %rbx
cmpq %r15, %rbx
je 0x73ea
cmpb $0x28, (%rbx)
jne 0x6729
incq %rbx
xorl %r15d, %r15d
leaq 0x178(%rsp), %r13
movq 0x10(%rsp), %r12
cmpq %r12, %rbx
je 0x6674
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6674
incq %rbx
cmpq %r12, %rbx
jne 0x665b
movq %r12, %rsi
jmp 0x6677
movq %rbx, %rsi
movq %rsi, %rbx
cmpq %r12, %rsi
je 0x66a3
movq %rsi, %rbx
movsbl (%rbx), %eax
cmpl $0x2e, %eax
setne %cl
addl $-0x30, %eax
cmpl $0xa, %eax
setae %al
testb %al, %cl
jne 0x66a3
incq %rbx
cmpq %r12, %rbx
jne 0x6682
movq %r12, %rbx
movq %r13, 0x168(%rsp)
leaq 0x168(%rsp), %rdi
movq %rbx, %rdx
callq 0x7b6a
movq 0x168(%rsp), %rdi
xorl %esi, %esi
callq 0x31e0
cvtsd2ss %xmm0, %xmm0
callq 0x80d4
movl %eax, 0x1260(%rsp,%r15,4)
movq 0x168(%rsp), %rdi
cmpq %r13, %rdi
je 0x66f8
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
incq %r15
cmpq $0x3, %r15
jne 0x6651
movq 0x10(%rsp), %r12
movq %rbx, %r15
notq %r15
addq %r12, %r15
cmpb $0x29, (%rbx)
leaq 0x1(%rbx), %rbx
je 0x6734
decq %r15
cmpq %r12, %rbx
jne 0x6713
jmp 0x7318
xorl %ebp, %ebp
movq (%rsp), %r15
jmp 0x6b5f
cmpq %r12, %rbx
je 0x6753
addq %rbx, %r15
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6753
incq %rbx
cmpq %r12, %rbx
jne 0x673c
movq %r15, %rbx
cmpq %r12, %rbx
movq (%rsp), %r15
je 0x74b5
cmpb $0x3f, (%rbx)
jne 0x6772
movb $0x1, 0x1284(%rsp)
incq %rbx
jmp 0x67e8
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x18(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x126c(%rsp), %r8
movl $0xfffffff8, %r9d       # imm = 0xFFFFFFF8
callq 0x781d
movq %rax, %rbx
movq 0x10(%rsp), %r15
cmpq %r15, %rax
je 0x67b9
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x67b9
incq %rbx
cmpq %r15, %rbx
jne 0x67a2
movq %r15, %rbx
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x18(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x1278(%rsp), %r8
movl $0x8, %r9d
callq 0x781d
movq (%rsp), %r15
movq %rax, %rbx
movq 0x10(%rsp), %r12
cmpq %r12, %rbx
je 0x6804
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6804
incq %rbx
cmpq %r12, %rbx
jne 0x67ed
movq %r12, %rbx
movb $0x1, %bpl
cmpq %rbx, %r12
je 0x68fd
xorl %r13d, %r13d
movb (%rbx), %bpl
movsbl %bpl, %edi
callq 0x3260
testl %eax, %eax
je 0x68b7
cmpb $0x2d, %bpl
je 0x68bd
movq %rbx, %r15
movsbl (%r15), %ebp
movl %ebp, %edi
callq 0x3260
cmpl $0x5f, %ebp
je 0x6848
testl %eax, %eax
je 0x6853
incq %r15
cmpq %r12, %r15
jne 0x6834
movq %r12, %r15
leaq 0x178(%rsp), %rbp
movq %rbp, 0x168(%rsp)
leaq 0x168(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x7b6a
movq %r13, %rdi
shlq $0x5, %rdi
leaq 0xa60(%rsp), %rax
addq %rax, %rdi
movq %r12, %rsi
callq 0x32d0
movq 0x168(%rsp), %rdi
cmpq %rbp, %rdi
je 0x68b0
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x10(%rsp), %r12
jmp 0x68c3
cmpb $0x2d, %bpl
jne 0x68f3
incq %rbx
movq %rbx, %r15
cmpq %r12, %r15
je 0x68e0
movsbl (%r15), %edi
callq 0x3080
testl %eax, %eax
je 0x68e0
incq %r15
cmpq %r12, %r15
jne 0x68c8
movq %r12, %r15
incq %r13
movq %r15, %rbx
cmpq %r12, %r15
movq (%rsp), %r15
jne 0x6813
leaq 0x40(%rsp), %r13
jmp 0x6b5c
leaq 0x40(%rsp), %r13
jmp 0x6b5f
testq %r12, %r12
jne 0x654f
leaq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
movb $0x0, 0x50(%rsp)
cmpb $0x22, (%r15)
jne 0x699f
movq %rsi, %rbx
cmpq %rbp, %rsi
je 0x6946
movq %rsi, %rbx
cmpb $0x22, (%rbx)
je 0x6946
incq %rbx
cmpq %rbp, %rbx
jne 0x6939
cmpq %rbp, %rbx
je 0x7455
leaq 0x178(%rsp), %rbp
movq %rbp, 0x168(%rsp)
leaq 0x168(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rdx
callq 0x7b6a
movq %r13, %rdi
movq %r15, %rsi
callq 0x32d0
movq 0x168(%rsp), %rdi
cmpq %rbp, %rdi
je 0x699a
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
incq %rbx
jmp 0x6a1c
movq %rsi, %rbx
cmpq %rbp, %rsi
je 0x69d1
movq %rsi, %r12
movq %rsi, %rbx
movsbl (%rbx), %r15d
movl %r15d, %edi
callq 0x3260
cmpl $0x5f, %r15d
je 0x69c3
testl %eax, %eax
je 0x69ce
incq %rbx
cmpq %rbp, %rbx
jne 0x69ad
movq %rbp, %rbx
movq %r12, %rsi
leaq 0x178(%rsp), %rbp
movq %rbp, 0x168(%rsp)
leaq 0x168(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rdx
callq 0x7b6a
movq %r13, %rdi
movq %r15, %rsi
callq 0x32d0
movq 0x168(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6a1c
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x10(%rsp), %r12
cmpq %r12, %rbx
je 0x6a42
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6a42
incq %rbx
cmpq %r12, %rbx
jne 0x6a26
movq %r13, %rbp
movq %r12, %rbx
jmp 0x6a45
movq %r13, %rbp
leaq 0xa60(%rsp), %rdi
leaq 0xe60(%rsp), %r13
movq %r13, %rsi
movq %rbp, %rdx
callq 0x7fac
movq %rax, %r15
cmpq %r13, %rax
je 0x6b6a
cmpq %r12, %rbx
movq %rbp, %r13
je 0x6a98
cmpb $0x3a, (%rbx)
jne 0x6a98
incq %rbx
cmpq %r12, %rbx
je 0x6a98
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6a98
incq %rbx
cmpq %r12, %rbx
jne 0x6a81
movq %r12, %rbx
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
leaq 0x118(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x7b6a
leaq 0x168(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x80f3
leaq 0xa60(%rsp), %rax
subq %rax, %r15
leaq 0xe60(%rsp), %rax
addq %rax, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x32d0
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x6b17
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
movq (%rsp), %r15
je 0x6b40
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x6b5c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3250
movb $0x1, %bpl
movl 0xc(%rsp), %eax
movl %eax, %ebx
jmp 0x625e
movq %rbp, %r13
movq %rbp, %rdi
leaq 0x45a0(%rip), %rsi      # 0xb117
callq 0x30b0
testl %eax, %eax
jne 0x6c08
cmpb $0x3d, (%rbx)
jne 0x6c08
cmpb $0x22, 0x1(%rbx)
movq (%rsp), %r15
jne 0x6b40
addq $0x2, %rbx
movq %rbx, %rdx
cmpq %r12, %rbx
je 0x6bb2
movq %rbx, %rdx
cmpb $0x22, (%rdx)
je 0x6bb2
incq %rdx
cmpq %r12, %rdx
jne 0x6ba2
movq %r12, %rdx
leaq 0x178(%rsp), %rax
movq %rax, 0x168(%rsp)
leaq 0x168(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7b6a
movq 0x68(%rsp), %rdi
movq %r12, %rsi
callq 0x3160
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x6b40
movq 0x178(%rsp), %rsi
jmp 0x6b38
cmpq %r12, %rbx
movq (%rsp), %r15
je 0x6d1d
cmpb $0x3a, (%rbx)
je 0x6fbc
movq 0x18(%rsp), %rax
cmpb $0x22, (%rax)
je 0x6fbc
movq %rbx, %r15
movsbl (%r15), %ebp
movl %ebp, %edi
callq 0x3260
cmpl $0x5f, %ebp
je 0x6c47
testl %eax, %eax
je 0x6d33
incq %r15
cmpq %r12, %r15
jne 0x6c2f
movq %r12, %r15
jmp 0x6d33
cmpq $0x0, 0xa30(%rsp)
je 0x6e5b
leaq 0xa28(%rsp), %rdi
leaq 0x4c2d(%rip), %rsi      # 0xb8a2
callq 0x3460
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rbx
movq %rbx, %rdi
callq 0x5c5e
movq (%rsp), %r15
movb $0x1, %bpl
leaq 0x168(%rsp), %rdi
movq %rbx, %rsi
callq 0x80f3
movq 0x168(%rsp), %rsi
movq 0x170(%rsp), %rdx
leaq 0xa28(%rsp), %rdi
callq 0x30d0
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x6cfa
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x6b5f
movq 0x88(%rsp), %rsi
jmp 0x6ef1
movq 0x18(%rsp), %rax
cmpb $0x22, (%rax)
movq %rbx, %r15
jne 0x6d33
movq (%rsp), %r15
jmp 0x6fbc
leaq 0x178(%rsp), %rbp
movq %rbp, 0x168(%rsp)
leaq 0x168(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x7b6a
movq %r12, %rdi
leaq 0x4b3a(%rip), %rsi      # 0xb89d
callq 0x30b0
movl %eax, %ebx
movq 0x168(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6d87
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
testl %ebx, %ebx
je 0x6efe
cmpq $0x0, 0xa30(%rsp)
je 0x7112
leaq 0xa28(%rsp), %rdi
leaq 0x4af3(%rip), %rsi      # 0xb8a0
callq 0x3460
leaq 0xe8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %rbx
movq %rbx, %rdi
callq 0x5c5e
leaq 0x168(%rsp), %rdi
movq %rbx, %rsi
callq 0x80f3
movq (%rsp), %r15
movq 0x168(%rsp), %rsi
movq 0x170(%rsp), %rdx
leaq 0xa28(%rsp), %rdi
callq 0x30d0
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x6e35
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x6b40
movq 0xe8(%rsp), %rsi
jmp 0x6b38
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
leaq 0x98(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x5c5e
leaq 0x168(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x80f3
leaq 0x178(%rsp), %rbp
movq (%rsp), %r15
leaq 0xa28(%rsp), %rdi
movq %rbx, %rsi
callq 0x32d0
movq 0x168(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6ecd
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
movb $0x1, %bpl
je 0x6b5f
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x6b5f
movq 0x10(%rsp), %r12
cmpq %r12, %r15
je 0x6f20
movsbl (%r15), %edi
callq 0x3080
testl %eax, %eax
je 0x6f20
incq %r15
cmpq %r12, %r15
jne 0x6f08
movq %r12, %r15
movq %r15, %rbx
cmpq %r12, %r15
je 0x6f49
movq %r15, %rbx
movsbl (%rbx), %ebp
movl %ebp, %edi
callq 0x3260
cmpl $0x5f, %ebp
je 0x6f3e
testl %eax, %eax
je 0x6f49
incq %rbx
cmpq %r12, %rbx
jne 0x6f2b
movq %r12, %rbx
leaq 0x178(%rsp), %rbp
movq %rbp, 0x168(%rsp)
leaq 0x168(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x7b6a
movq %r13, %rdi
movq %r12, %rsi
callq 0x32d0
movq 0x168(%rsp), %rdi
cmpq %rbp, %rdi
movq (%rsp), %r15
je 0x6f9b
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x10(%rsp), %r12
cmpq %r12, %rbx
je 0x6fbc
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6fbc
incq %rbx
cmpq %r12, %rbx
jne 0x6fa5
movq %r12, %rbx
cmpq %r12, %rbx
je 0x6b40
cmpb $0x3a, (%rbx)
jne 0x6fcf
incq %rbx
jmp 0x6fdd
movq 0x18(%rsp), %rax
cmpb $0x22, (%rax)
jne 0x6b40
cmpq %r12, %rbx
je 0x6ff9
movsbl (%rbx), %edi
callq 0x3080
testl %eax, %eax
je 0x6ff9
incq %rbx
cmpq %r12, %rbx
jne 0x6fe2
movq %r12, %rbx
leaq 0xc8(%rsp), %rax
movq %rax, 0xb8(%rsp)
leaq 0xb8(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x7b6a
leaq 0x148(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
callq 0x80f3
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x7057
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3250
leaq 0x168(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x8134
leaq 0xa48(%rsp), %rdi
movq %rbx, %rsi
callq 0x5d8a
movq 0x1a8(%rsp), %rdi
leaq 0x1b8(%rsp), %rax
cmpq %rax, %rdi
je 0x70a2
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x188(%rsp), %rdi
leaq 0x198(%rsp), %rax
cmpq %rax, %rdi
je 0x70c7
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x70ec
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x6b40
movq 0x158(%rsp), %rsi
jmp 0x6b38
leaq 0x108(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %r15
movq %r15, %rdi
callq 0x5c5e
leaq 0x168(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x80f3
movq (%rsp), %r15
leaq 0xa28(%rsp), %rdi
movq %rbx, %rsi
callq 0x32d0
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x718b
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x6b40
movq 0x108(%rsp), %rsi
jmp 0x6b38
testb $0x1, %bl
je 0x72d8
leaq 0xa08(%rsp), %rsi
movq 0x60(%rsp), %rdi
callq 0x7b22
leaq 0x168(%rsp), %rdi
callq 0x825c
leaq 0xa08(%rsp), %rbx
leaq 0x168(%rsp), %rsi
movq %rbx, %rdi
callq 0x32d0
leaq 0x188(%rsp), %r14
leaq 0xa28(%rsp), %rdi
movq %r14, %rsi
callq 0x32d0
movq 0x50(%rbx), %rax
movups 0x20(%r14), %xmm0
movq 0x30(%r14), %rcx
movq %rcx, 0x50(%rbx)
movups 0x40(%rbx), %xmm1
movups %xmm0, 0x40(%rbx)
leaq 0x40(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movq $0x0, 0x30(%r14)
callq 0x5a7a
movl $0x58, %ebx
leaq (%rsp,%rbx), %rdi
addq $0xa08, %rdi            # imm = 0xA08
leaq (%rsp,%rbx), %rsi
addq $0x168, %rsi            # imm = 0x168
callq 0x32d0
addq $0x20, %rbx
cmpq $0x458, %rbx            # imm = 0x458
jne 0x7248
movl $0x458, %ebx            # imm = 0x458
leaq (%rsp,%rbx), %rdi
addq $0xa08, %rdi            # imm = 0xA08
leaq (%rsp,%rbx), %rsi
addq $0x168, %rsi            # imm = 0x168
callq 0x32d0
addq $0x20, %rbx
cmpq $0x858, %rbx            # imm = 0x858
jne 0x7275
leaq 0x9e8(%rsp), %rsi
movq -0xb(%rsi), %rax
movq 0x70(%rsp), %rcx
movq %rax, 0x1d(%rcx)
movups -0x28(%rsi), %xmm0
movups -0x18(%rsi), %xmm1
movups %xmm1, 0x10(%rcx)
movups %xmm0, (%rcx)
movq 0x68(%rsp), %rdi
callq 0x32d0
leaq 0x168(%rsp), %rdi
callq 0x5894
leaq 0xa08(%rsp), %rdi
callq 0x5894
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x7301
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x60(%rsp), %rax
addq $0x12a8, %rsp           # imm = 0x12A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x4589(%rip), %rsi      # 0xb8b5
leaq 0x168(%rsp), %rdi
callq 0xaed9
movb $0x1, %bpl
movq 0x18(%rsp), %r15
leaq 0x168(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r15, %r12
leaq 0x89c5(%rip), %rax      # 0xfd20
movq %rax, (%rbx)
movq %r14, 0x10(%rbx)
movq %r12, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x8989(%rip), %rsi      # 0xfcf8
movq 0x8c3a(%rip), %rdx      # 0xffb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x751b
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x450e(%rip), %rsi      # 0xb8a5
leaq 0x168(%rsp), %rdi
callq 0xaed9
movb $0x1, %bpl
leaq 0x168(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
leaq 0x8962(%rip), %rax      # 0xfd20
movq %rax, (%rbx)
movq %r14, 0x10(%rbx)
movq $0x2, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x8922(%rip), %rsi      # 0xfcf8
movq 0x8bd3(%rip), %rdx      # 0xffb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x751b
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x44b7(%rip), %rsi      # 0xb8b5
leaq 0x168(%rsp), %rdi
callq 0xaed9
movb $0x1, %bpl
movq 0x18(%rsp), %r12
leaq 0x168(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r12, %r15
leaq 0x88f3(%rip), %rax      # 0xfd20
movq %rax, (%rbx)
movq %r14, 0x10(%rbx)
movq %r15, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x88b7(%rip), %rsi      # 0xfcf8
movq 0x8b68(%rip), %rdx      # 0xffb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x751b
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x4420(%rip), %rsi      # 0xb889
leaq 0x168(%rsp), %rdi
callq 0xaed9
movb $0x1, %bpl
leaq 0x168(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
leaq 0x8890(%rip), %rax      # 0xfd20
movq %rax, (%rbx)
movq %r14, 0x10(%rbx)
movq %r12, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x8854(%rip), %rsi      # 0xfcf8
movq 0x8b05(%rip), %rdx      # 0xffb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x751b
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x43ec(%rip), %rsi      # 0xb8b5
leaq 0x168(%rsp), %rdi
callq 0xaed9
movb $0x1, %bpl
movq 0x18(%rsp), %r15
leaq 0x168(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r15, %r12
leaq 0x8828(%rip), %rax      # 0xfd20
movq %rax, (%rbx)
movq %r14, 0x10(%rbx)
movq %r12, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x87ec(%rip), %rsi      # 0xfcf8
movq 0x8a9d(%rip), %rdx      # 0xffb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x7757
movq %rax, %r14
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x775a
movq 0x108(%rsp), %rsi
jmp 0x7742
movq %rax, %r14
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x775a
movq 0x178(%rsp), %rsi
jmp 0x7742
jmp 0x7757
movq %rax, %r14
jmp 0x75a9
jmp 0x7757
movq %rax, %r14
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x75a9
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x775a
movq 0xe8(%rsp), %rsi
jmp 0x7742
jmp 0x7757
movq %rax, %r14
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x77e2
movq 0xa8(%rsp), %rsi
jmp 0x77d5
jmp 0x77df
movq %rax, %r14
jmp 0x7639
jmp 0x77df
jmp 0x77df
movq %rax, %r14
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x7639
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x77e2
movq 0x88(%rsp), %rsi
jmp 0x77d5
jmp 0x7757
movq %rax, %r14
leaq 0x168(%rsp), %rdi
callq 0x5846
jmp 0x76a4
movq %rax, %r14
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x775a
movq 0xc8(%rsp), %rsi
jmp 0x7742
jmp 0x7757
movq %rax, %r14
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x775a
movq 0x158(%rsp), %rsi
jmp 0x7742
jmp 0x777f
jmp 0x77ae
jmp 0x77df
jmp 0x77df
movq %rax, %r14
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x7703
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
testb %bpl, %bpl
jne 0x770d
jmp 0x775a
movq %rax, %r14
movq %rbx, %rdi
callq 0x31d0
jmp 0x775a
jmp 0x777f
jmp 0x77ae
jmp 0x7757
jmp 0x7757
movq %rax, %r14
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x775a
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x775a
jmp 0x7757
jmp 0x777f
jmp 0x77ae
jmp 0x77df
movq %rax, %r14
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x77e2
movq 0x50(%rsp), %rsi
jmp 0x77d5
jmp 0x77df
jmp 0x77df
jmp 0x77df
jmp 0x77df
jmp 0x77df
movq %rax, %r14
jmp 0x77ef
movq %rax, %r14
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x77a7
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
testb %bpl, %bpl
jne 0x77b1
jmp 0x77e2
movq %rax, %r14
movq %rbx, %rdi
callq 0x31d0
jmp 0x77e2
jmp 0x77df
movq %rax, %r14
movq 0x168(%rsp), %rdi
cmpq %r13, %rdi
je 0x77e2
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x77e2
movq %rax, %r14
leaq 0xa08(%rsp), %rdi
callq 0x5894
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x780b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x60(%rsp), %rdi
callq 0x5956
movq %r14, %rdi
callq 0x3420