// File: /workspace/github_cpp_makefile_star2_O3/jimmiebergmann[P]fbx-file/fbx.cpp
// Function: Fbx::Record::read(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<void (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned int)>)
void Record::read(const std::string & filename, std::function<void(std::string, uint32_t)> onHeaderRead)
    {
        std::ifstream file(filename, std::ios::binary);
        if (file.is_open() == false)
        {
            throw std::runtime_error("Failed to open file.");
        }

        // Get file size.
        file.seekg(0, std::ios::end);
        std::streampos streamPos = file.tellg();
        if (streamPos > static_cast<std::streampos>(std::numeric_limits<uint32_t>::max()))
        {
            throw std::runtime_error("Input file size is too big.");
        }
        const std::size_t fileSize = static_cast<std::size_t>(streamPos);
        file.seekg(0, std::ios::beg);

        // Read header.
        std::string magic(20, '\0');
        file.read(&magic[0], 20);
        file.seekg(23);
        uint32_t version;
        file.read(reinterpret_cast<char*>(&version), 4);

        // call on header function.
        onHeaderRead(magic, version);

        if (file.eof())
        {
            throw std::runtime_error("Invalid FBX file.");
        }

        // Read record.
        std::stack<std::pair<Record *, size_t>> recordStack;
        recordStack.push(std::make_pair(this, fileSize));

        while (recordStack.size())
        {
            uint32_t endOffset = 0;
            uint32_t numProperties = 0;
            uint32_t propertyListLen = 0;
            uint8_t nameLen = 0;
            const size_t recordPos = static_cast<size_t>(file.tellg());

            file.read(reinterpret_cast<char*>(&endOffset), 4);
            file.read(reinterpret_cast<char*>(&numProperties), 4);
            file.read(reinterpret_cast<char*>(&propertyListLen), 4);
            file.read(reinterpret_cast<char*>(&nameLen), 1);

            std::string name(nameLen, '\0');
            file.read(&name[0], nameLen);

            if (file.eof())
            {
                throw std::runtime_error("Invalid record header.");
            }

            if (endOffset == 0) // End of nested list.
            {
                recordStack.pop();
                continue;
            }

            const auto & stackTop = recordStack.top();
            Record * pParentRecord = stackTop.first;
            size_t parentEndOffset = stackTop.second;

            // Validate endoffset.
            if (endOffset > fileSize)
            {
                throw std::runtime_error("Record end offset exceeding file size.");
            }
            if (endOffset >= parentEndOffset)
            {
                throw std::runtime_error("Record end offset exceeding parent record.");
            }

            // Validate property list length.
            if (recordPos + propertyListLen > endOffset)
            {
                throw std::runtime_error("Invalid record property list length.");
            }

            // Create and add new record.
            Record * pNewRecord = new Record(name, pParentRecord);
            recordStack.push(std::make_pair(pNewRecord, endOffset));

            // Read properties.
            size_t propertiesByteRead = 0;
            PropertyReader reader(file, pNewRecord);

            for (uint32_t i = 0; i < numProperties; ++i)
            {
                uint8_t code;
                file.read(reinterpret_cast<char*>(&code), 1);

                if (code == 'S' || code == 'R') // String/raw.
                {
                    propertiesByteRead += reader.readRaw(code) + 1;
                }
                else if (code < 'Z') // primitives.
                {
                    propertiesByteRead += reader.readPrimitive(code) + 1;
                }
                else // arrays.
                {
                    propertiesByteRead += reader.readArray(code) + 1;
                }
            }

            // Make sure all property bytes are extracted.
            if (propertiesByteRead != propertyListLen)
            {
                throw std::runtime_error("Invalid property list length of record: " + pParentRecord->name());
            }

            // Error check end record of nested list.
            const size_t curFilePos = static_cast<size_t>(file.tellg());
            if (parentEndOffset <= curFilePos)
            {
                throw std::runtime_error("Missing nested list end of record: " + pParentRecord->name());
            }

            // Exit record if no nested list is present.
            if (endOffset == curFilePos)
            {
                recordStack.pop();
                continue;
            }

            // Read nested list next loop.
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x378, %rsp            # imm = 0x378
movq %rdx, %r14
movq %rdi, %rbx
leaq -0x398(%rbp), %rdi
movl $0x4, %edx
callq 0x33a0
leaq -0x320(%rbp), %rdi
callq 0x3070
testb %al, %al
je 0x11de5
leaq -0x398(%rbp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x3330
leaq -0x398(%rbp), %rdi
callq 0x3420
movq %rax, -0xc8(%rbp)
movabsq $0x100000000, %rax      # imm = 0x100000000
cmpq %rax, -0xc8(%rbp)
jge 0x11e19
leaq -0x398(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3330
leaq -0x158(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x168(%rbp), %rdi
movl $0x14, %esi
xorl %edx, %edx
callq 0x32b0
movq -0x168(%rbp), %rsi
leaq -0x398(%rbp), %rdi
movl $0x14, %edx
callq 0x32e0
leaq -0x398(%rbp), %rdi
movl $0x17, %esi
xorl %edx, %edx
callq 0x32f0
leaq -0x398(%rbp), %rdi
leaq -0xcc(%rbp), %rsi
movl $0x4, %edx
callq 0x32e0
leaq -0x180(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x168(%rbp), %rsi
movq -0x160(%rbp), %rdx
addq %rsi, %rdx
leaq -0x190(%rbp), %rdi
callq 0x136d8
movl -0xcc(%rbp), %eax
movl %eax, -0x120(%rbp)
cmpq $0x0, 0x10(%r14)
je 0x11e4d
leaq -0x190(%rbp), %rsi
leaq -0x120(%rbp), %rdx
movq %r14, %rdi
callq *0x18(%r14)
movq -0x190(%rbp), %rdi
cmpq %r15, %rdi
je 0x10d7a
callq 0x3230
movq -0x398(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x378(%rbp,%rax)
jne 0x11e52
xorps %xmm0, %xmm0
leaq -0x120(%rbp), %rdi
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %esi, %esi
callq 0x13ebe
movq %rbx, -0x70(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xf0(%rbp), %rax
movq -0xe0(%rbp), %rcx
addq $-0x10, %rcx
cmpq %rcx, %rax
je 0x10dee
movups -0x70(%rbp), %xmm0
movups %xmm0, (%rax)
addq $0x10, -0xf0(%rbp)
jmp 0x10dfe
leaq -0x120(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x1403c
leaq -0x398(%rbp), %r14
leaq -0x70(%rbp), %r15
movq -0xd8(%rbp), %rax
movq %rax, %rcx
subq -0xf8(%rbp), %rcx
shrq $0x3, %rcx
cmpq $0x1, %rax
adcq $-0x1, %rcx
shlq $0x5, %rcx
movq -0x100(%rbp), %rax
movq -0xf0(%rbp), %rdx
subq -0xe8(%rbp), %rdx
sarq $0x4, %rdx
addq %rcx, %rdx
subq -0x110(%rbp), %rax
sarq $0x4, %rax
addq %rdx, %rax
je 0x11a21
xorl %eax, %eax
movl %eax, -0x7c(%rbp)
movl %eax, -0x90(%rbp)
movl %eax, -0x8c(%rbp)
movb $0x0, -0x29(%rbp)
movq %r14, %rdi
callq 0x3420
movq %rax, %rbx
movl $0x4, %edx
movq %r14, %rdi
leaq -0x7c(%rbp), %rsi
callq 0x32e0
movl $0x4, %edx
movq %r14, %rdi
leaq -0x90(%rbp), %rsi
callq 0x32e0
movl $0x4, %edx
movq %r14, %rdi
leaq -0x8c(%rbp), %rsi
callq 0x32e0
movl $0x1, %edx
movq %r14, %rdi
leaq -0x29(%rbp), %rsi
callq 0x32e0
movzbl -0x29(%rbp), %esi
leaq -0x138(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq -0x148(%rbp), %rdi
xorl %edx, %edx
callq 0x32b0
movq -0x148(%rbp), %rsi
movzbl -0x29(%rbp), %edx
movq %r14, %rdi
callq 0x32e0
movq -0x398(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x378(%rbp,%rax)
jne 0x11ac1
movl -0x7c(%rbp), %ecx
movq -0xf0(%rbp), %rax
movq -0xe8(%rbp), %rdi
testq %rcx, %rcx
je 0x119b8
cmpq %rdi, %rax
jne 0x10f42
movq -0xd8(%rbp), %rax
movq -0x8(%rax), %rax
movl $0x200, %edx            # imm = 0x200
addq %rdx, %rax
cmpq %rcx, -0xc8(%rbp)
jb 0x11b58
movq -0x8(%rax), %rdx
movq %rdx, -0x170(%rbp)
cmpq %rcx, %rdx
jbe 0x11b3a
movl -0x8c(%rbp), %edx
addq %rbx, %rdx
cmpq %rcx, %rdx
ja 0x11b1c
movq -0x10(%rax), %r12
movl $0x58, %edi
callq 0x3260
movq %rax, %rbx
movq %rax, %rdi
leaq -0x148(%rbp), %rsi
movq %r12, -0x128(%rbp)
movq %r12, %rdx
callq 0x10b18
movl -0x7c(%rbp), %eax
movq %rbx, -0x38(%rbp)
movq %rbx, -0x70(%rbp)
movq %rax, -0x68(%rbp)
movq -0xf0(%rbp), %rax
movq -0xe0(%rbp), %rcx
addq $-0x10, %rcx
cmpq %rcx, %rax
je 0x10fd6
movups -0x70(%rbp), %xmm0
movups %xmm0, (%rax)
addq $0x10, -0xf0(%rbp)
jmp 0x10fe5
leaq -0x120(%rbp), %rdi
movq %r15, %rsi
callq 0x1403c
cmpl $0x0, -0x90(%rbp)
je 0x1196b
movq -0x38(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x50(%rbp)
xorl %ecx, %ecx
movq $0x0, -0xa0(%rbp)
movq %rcx, -0x88(%rbp)
movl $0x1, %edx
movq %r14, %r12
movq %r14, %rdi
leaq -0x71(%rbp), %rsi
callq 0x32e0
movzbl -0x71(%rbp), %r14d
movl %r14d, %eax
andb $-0x2, %al
cmpb $0x52, %al
jne 0x110fc
movl $0x4, %edx
movq %r12, %rdi
leaq -0xc0(%rbp), %rsi
callq 0x32e0
movl -0xc0(%rbp), %ebx
testq %rbx, %rbx
je 0x1125c
movq %rbx, %rdi
callq 0x3030
movq %rax, %r15
movq %r12, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x32e0
leaq -0x70(%rbp), %r13
cmpl $0x53, %r14d
jne 0x112dc
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movl -0xc0(%rbp), %eax
movq %r15, %rdx
addq %rax, %rdx
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
movq %r13, %rdi
movq %r15, %rsi
callq 0x13784
movb $0x1, %r14b
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1023e
xorl %r14d, %r14d
movl $0x18, %edi
callq 0x3260
movq %rbx, 0x10(%rax)
movq %rax, %rdi
movq -0x50(%rbp), %rsi
callq 0x3050
movq -0x38(%rbp), %rax
incq 0x38(%rax)
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x1131c
callq 0x3230
jmp 0x1131c
cmpb $0x59, %r14b
ja 0x11189
leal -0x43(%r14), %eax
cmpl $0x9, %eax
leaq -0x70(%rbp), %rsi
ja 0x113cf
leaq 0x6b3a(%rip), %rcx      # 0x17c58
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, %edx
movq %r12, %rdi
callq 0x32e0
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movb -0x70(%rbp), %al
movl $0x0, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movb %al, 0x8(%rbx)
movl $0x18, %edi
callq 0x3260
movq %rbx, 0x10(%rax)
movq %rax, %rdi
movq -0x50(%rbp), %rsi
callq 0x3050
movq -0x38(%rbp), %rax
incq 0x38(%rax)
movl $0x1, %r13d
jmp 0x11588
movl $0x4, %edx
movq %r12, %rdi
leaq -0x44(%rbp), %rsi
callq 0x32e0
movl $0x4, %edx
movq %r12, %rdi
leaq -0x94(%rbp), %rsi
callq 0x32e0
movl $0x4, %edx
movq %r12, %rdi
leaq -0x78(%rbp), %rsi
callq 0x32e0
movl -0x94(%rbp), %eax
cmpl $0x1, %eax
je 0x11332
testl %eax, %eax
jne 0x11a63
leal -0x62(%r14), %eax
cmpl $0xa, %eax
ja 0x11d8f
leaq 0x6a42(%rip), %rcx      # 0x17c2c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x44(%rbp), %r13d
movq %r13, %rdi
callq 0x3030
movq %rax, %rbx
movq %r12, %r14
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x32e0
movl $0x40, %edi
callq 0x3260
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
movl %r13d, %edx
callq 0xfeb2
movl $0x18, %edi
callq 0x3260
movq %r15, 0x10(%rax)
movq %rax, %rdi
movq -0x50(%rbp), %rsi
callq 0x3050
movq -0x38(%rbp), %rax
incq 0x38(%rax)
addq $0xc, %r13
movq %rbx, %rdi
jmp 0x1193b
movl $0x4, %r13d
cmpl $0x53, %r14d
jne 0x11588
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
movq $0x0, -0x68(%rbp)
movb $0x0, -0x60(%rbp)
movb $0x1, %r14b
movq %rbx, %rdi
leaq -0x70(%rbp), %rsi
callq 0x1023e
xorl %r14d, %r14d
movl $0x18, %edi
callq 0x3260
movq %rbx, 0x10(%rax)
movq %rax, %rdi
movq -0x50(%rbp), %rsi
callq 0x3050
movq -0x38(%rbp), %rax
incq 0x38(%rax)
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x11588
callq 0x3230
jmp 0x11588
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movl -0xc0(%rbp), %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x1029e
movl $0x18, %edi
callq 0x3260
movq %rbx, 0x10(%rax)
movq %rax, %rdi
movq -0x50(%rbp), %rsi
callq 0x3050
movq -0x38(%rbp), %rax
incq 0x38(%rax)
movq %r12, %r14
movl -0xc0(%rbp), %r13d
addl $0x4, %r13d
movq %r15, %rdi
jmp 0x1193b
leal -0x62(%r14), %eax
cmpl $0xa, %eax
ja 0x11db0
leaq 0x68ba(%rip), %rcx      # 0x17c00
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x44(%rbp), %r15d
movl -0x78(%rbp), %r13d
movq %r15, -0xc0(%rbp)
movq %r15, %rdi
callq 0x3030
movq %rax, -0x40(%rbp)
movq %r13, %rdi
callq 0x3030
movq %r12, %r14
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
movq %rax, %r12
callq 0x32e0
movq -0x40(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x5da6
testl %eax, %eax
jne 0x11d01
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movq %rax, %rdi
movq -0x40(%rbp), %rsi
movl %r15d, %edx
callq 0xfeb2
movl $0x18, %edi
callq 0x3260
jmp 0x118a1
cmpl $0x59, %r14d
jne 0x11af8
movl $0x2, %edx
movq %r12, %rdi
callq 0x32e0
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movzwl -0x70(%rbp), %eax
movl $0x1, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movw %ax, 0x8(%rbx)
movl $0x18, %edi
callq 0x3260
movq %rbx, 0x10(%rax)
movq %rax, %rdi
movq -0x50(%rbp), %rsi
callq 0x3050
movq -0x38(%rbp), %rax
incq 0x38(%rax)
movl $0x2, %r13d
jmp 0x11588
movl $0x8, %edx
movq %r12, %rdi
callq 0x32e0
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movq -0x70(%rbp), %rax
movl $0x3, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movq %rax, 0x8(%rbx)
movl $0x18, %edi
callq 0x3260
jmp 0x114c3
movl $0x8, %edx
movq %r12, %rdi
callq 0x32e0
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movsd -0x70(%rbp), %xmm0
movl $0x5, (%rax)
xorps %xmm1, %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm1, 0x20(%rax)
movups %xmm1, 0x30(%rax)
movsd %xmm0, 0x8(%rax)
movl $0x18, %edi
callq 0x3260
movq %rbx, 0x10(%rax)
movq %rax, %rdi
movq -0x50(%rbp), %rsi
callq 0x3050
movq -0x38(%rbp), %rax
incq 0x38(%rax)
movl $0x8, %r13d
jmp 0x11588
movl $0x4, %edx
movq %r12, %rdi
callq 0x32e0
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movl -0x70(%rbp), %eax
movl $0x2, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movl %eax, 0x8(%rbx)
movl $0x18, %edi
callq 0x3260
jmp 0x1156a
movl $0x4, %edx
movq %r12, %rdi
callq 0x32e0
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movss -0x70(%rbp), %xmm0
movl $0x4, (%rax)
xorps %xmm1, %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm1, 0x20(%rax)
movups %xmm1, 0x30(%rax)
movss %xmm0, 0x8(%rax)
movl $0x18, %edi
callq 0x3260
movq %rbx, 0x10(%rax)
movq %rax, %rdi
movq -0x50(%rbp), %rsi
callq 0x3050
movq -0x38(%rbp), %rax
incq 0x38(%rax)
movl $0x4, %r13d
movq %r12, %r14
jmp 0x11940
movl -0x44(%rbp), %r15d
movl -0x78(%rbp), %r13d
leaq (,%r15,8), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x3030
movq %rax, -0x40(%rbp)
movq %r13, %rdi
callq 0x3030
movq %r12, %r14
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
movq %rax, %r12
callq 0x32e0
movq -0x40(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x5da6
testl %eax, %eax
jne 0x11cba
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movq %rax, %rdi
movq -0x40(%rbp), %rsi
movl %r15d, %edx
callq 0xfff2
movl $0x18, %edi
callq 0x3260
jmp 0x118a1
movl -0x44(%rbp), %r15d
movq %r15, %rdi
shlq $0x6, %rdi
callq 0x3030
leaq (,%r15,8), %r13
movq %r12, %r14
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
movq %rax, %r12
callq 0x32e0
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0xfff2
movl $0x18, %edi
callq 0x3260
jmp 0x1191c
movl -0x44(%rbp), %r15d
movl -0x78(%rbp), %r13d
leaq (,%r15,4), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x3030
movq %rax, -0x40(%rbp)
movq %r13, %rdi
callq 0x3030
movq %r12, %r14
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
movq %rax, %r12
callq 0x32e0
movq -0x40(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x5da6
testl %eax, %eax
jne 0x11c2c
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movq %rax, %rdi
movq -0x40(%rbp), %rsi
movl %r15d, %edx
callq 0x1008e
movl $0x18, %edi
callq 0x3260
jmp 0x118a1
movl -0x44(%rbp), %r15d
movq %r15, %rdi
shlq $0x4, %rdi
callq 0x3030
leaq (,%r15,4), %r13
movq %r12, %r14
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
movq %rax, %r12
callq 0x32e0
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x1008e
movl $0x18, %edi
callq 0x3260
jmp 0x1191c
movl -0x44(%rbp), %r15d
movl -0x78(%rbp), %r13d
leaq (,%r15,4), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x3030
movq %rax, -0x40(%rbp)
movq %r13, %rdi
callq 0x3030
movq %r12, %r14
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
movq %rax, %r12
callq 0x32e0
movq -0x40(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x5da6
testl %eax, %eax
jne 0x11d48
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movq %rax, %rdi
movq -0x40(%rbp), %rsi
movl %r15d, %edx
callq 0xff52
movl $0x18, %edi
callq 0x3260
jmp 0x118a1
movl -0x44(%rbp), %r15d
movq %r15, %rdi
shlq $0x4, %rdi
callq 0x3030
leaq (,%r15,4), %r13
movq %r12, %r14
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
movq %rax, %r12
callq 0x32e0
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0xff52
movl $0x18, %edi
callq 0x3260
jmp 0x1191c
movl -0x44(%rbp), %r15d
movl -0x78(%rbp), %r13d
leaq (,%r15,8), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x3030
movq %rax, -0x40(%rbp)
movq %r13, %rdi
callq 0x3030
movq %r12, %r14
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
movq %rax, %r12
callq 0x32e0
movq -0x40(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x5da6
testl %eax, %eax
jne 0x11c73
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movq %rax, %rdi
movq -0x40(%rbp), %rsi
movl %r15d, %edx
callq 0x10132
movl $0x18, %edi
callq 0x3260
movq %rbx, 0x10(%rax)
movq %rax, %rdi
movq -0x50(%rbp), %rsi
callq 0x3050
movq -0x38(%rbp), %rax
incq 0x38(%rax)
addl $0xc, %r13d
movq %r12, %rdi
callq 0x3300
movq -0x40(%rbp), %rdi
jmp 0x1193b
movl -0x44(%rbp), %r15d
movq %r15, %rdi
shlq $0x6, %rdi
callq 0x3030
leaq (,%r15,8), %r13
movq %r12, %r14
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
movq %rax, %r12
callq 0x32e0
movl $0x40, %edi
callq 0x3260
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x10132
movl $0x18, %edi
callq 0x3260
movq %rbx, 0x10(%rax)
movq %rax, %rdi
movq -0x50(%rbp), %rsi
callq 0x3050
movq -0x38(%rbp), %rax
incq 0x38(%rax)
addq $0xc, %r13
movq %r12, %rdi
callq 0x3300
movq -0x88(%rbp), %rcx
movq -0xa0(%rbp), %rax
addq %r13, %rax
incq %rax
movq %rax, -0xa0(%rbp)
incl %ecx
cmpl -0x90(%rbp), %ecx
jb 0x1100b
jmp 0x11976
movq $0x0, -0xa0(%rbp)
movl -0x8c(%rbp), %eax
cmpq %rax, -0xa0(%rbp)
jne 0x11bdb
movq %r14, %rdi
callq 0x3420
cmpq %rax, -0x170(%rbp)
leaq -0x70(%rbp), %r15
jbe 0x11b8a
movl -0x7c(%rbp), %ecx
cmpq %rcx, %rax
jne 0x11a00
movq -0xf0(%rbp), %rax
movq -0xe8(%rbp), %rdi
cmpq %rdi, %rax
je 0x119c3
addq $-0x10, %rax
jmp 0x119f9
callq 0x3230
movq -0xd8(%rbp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, -0xd8(%rbp)
movq -0x8(%rax), %rax
movq %rax, -0xe8(%rbp)
leaq 0x200(%rax), %rcx
movq %rcx, -0xe0(%rbp)
addq $0x1f0, %rax            # imm = 0x1F0
movq %rax, -0xf0(%rbp)
movq -0x148(%rbp), %rdi
leaq -0x138(%rbp), %rax
cmpq %rax, %rdi
je 0x10e09
callq 0x3230
jmp 0x10e09
leaq -0x120(%rbp), %rdi
callq 0x138a0
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
je 0x11a45
callq 0x3230
leaq -0x398(%rbp), %rdi
callq 0x3080
addq $0x378, %rsp            # imm = 0x378
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
movl -0x94(%rbp), %esi
leaq -0xc0(%rbp), %rdi
callq 0x1381a
leaq 0x64ea(%rip), %rsi      # 0x17f73
leaq -0x70(%rbp), %rdi
leaq -0xc0(%rbp), %rdx
callq 0x1342b
movb $0x1, %r14b
leaq -0x70(%rbp), %rsi
movq %rbx, %rdi
callq 0x33b0
xorl %r14d, %r14d
movq 0xb536(%rip), %rsi      # 0x1cfe8
movq 0xb507(%rip), %rdx      # 0x1cfc0
movq %rbx, %rdi
callq 0x3400
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x6326(%rip), %rsi      # 0x17dfb
movq %rax, %rdi
callq 0x30f0
movq 0xb504(%rip), %rsi      # 0x1cfe8
movq 0xb4d5(%rip), %rdx      # 0x1cfc0
movq %rbx, %rdi
callq 0x3400
jmp 0x11e84
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x642b(%rip), %rsi      # 0x17f37
addq %r14, %rsi
movq %rax, %rdi
callq 0x30f0
jmp 0x11dcf
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x6334(%rip), %rsi      # 0x17e64
movq %rax, %rdi
callq 0x30f0
jmp 0x11b74
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x62eb(%rip), %rsi      # 0x17e39
movq %rax, %rdi
callq 0x30f0
jmp 0x11b74
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x62a6(%rip), %rsi      # 0x17e12
movq %rax, %rdi
callq 0x30f0
movq 0xb46d(%rip), %rsi      # 0x1cfe8
movq 0xb43e(%rip), %rdx      # 0x1cfc0
movq %rbx, %rdi
callq 0x3400
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x6314(%rip), %rsi      # 0x17eb2
leaq -0x70(%rbp), %rdi
movq -0x128(%rbp), %rdx
callq 0x133a0
movb $0x1, %r14b
leaq -0x70(%rbp), %rsi
movq %rbx, %rdi
callq 0x33b0
xorl %r14d, %r14d
movq 0xb421(%rip), %rsi      # 0x1cfe8
movq 0xb3f2(%rip), %rdx      # 0x1cfc0
movq %rbx, %rdi
callq 0x3400
jmp 0x11e84
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x629a(%rip), %rsi      # 0x17e89
leaq -0x70(%rbp), %rdi
movq -0x128(%rbp), %rdx
callq 0x133a0
movb $0x1, %r14b
leaq -0x70(%rbp), %rsi
movq %rbx, %rdi
callq 0x33b0
xorl %r14d, %r14d
movq 0xb3d0(%rip), %rsi      # 0x1cfe8
movq 0xb3a1(%rip), %rdx      # 0x1cfc0
movq %rbx, %rdi
callq 0x3400
jmp 0x11e84
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x634d(%rip), %rsi      # 0x17f8d
leaq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rdx
callq 0x133a0
movb $0x1, %bl
leaq -0x70(%rbp), %rsi
movq %r14, %rdi
callq 0x33b0
xorl %ebx, %ebx
movq 0xb384(%rip), %rsi      # 0x1cfe8
movq 0xb355(%rip), %rdx      # 0x1cfc0
movq %r14, %rdi
callq 0x3400
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x6306(%rip), %rsi      # 0x17f8d
leaq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rdx
callq 0x133a0
movb $0x1, %bl
leaq -0x70(%rbp), %rsi
movq %r14, %rdi
callq 0x33b0
xorl %ebx, %ebx
movq 0xb33d(%rip), %rsi      # 0x1cfe8
movq 0xb30e(%rip), %rdx      # 0x1cfc0
movq %r14, %rdi
callq 0x3400
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x62bf(%rip), %rsi      # 0x17f8d
leaq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rdx
callq 0x133a0
movb $0x1, %bl
leaq -0x70(%rbp), %rsi
movq %r14, %rdi
callq 0x33b0
xorl %ebx, %ebx
movq 0xb2f6(%rip), %rsi      # 0x1cfe8
movq 0xb2c7(%rip), %rdx      # 0x1cfc0
movq %r14, %rdi
callq 0x3400
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x6278(%rip), %rsi      # 0x17f8d
leaq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rdx
callq 0x133a0
movb $0x1, %bl
leaq -0x70(%rbp), %rsi
movq %r14, %rdi
callq 0x33b0
xorl %ebx, %ebx
movq 0xb2af(%rip), %rsi      # 0x1cfe8
movq 0xb280(%rip), %rdx      # 0x1cfc0
movq %r14, %rdi
callq 0x3400
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x6231(%rip), %rsi      # 0x17f8d
leaq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rdx
callq 0x133a0
movb $0x1, %bl
leaq -0x70(%rbp), %rsi
movq %r14, %rdi
callq 0x33b0
xorl %ebx, %ebx
movq 0xb268(%rip), %rsi      # 0x1cfe8
movq 0xb239(%rip), %rdx      # 0x1cfc0
movq %r14, %rdi
callq 0x3400
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x61b4(%rip), %rsi      # 0x17f57
addq %r14, %rsi
movq %rax, %rdi
callq 0x30f0
jmp 0x11dcf
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x6193(%rip), %rsi      # 0x17f57
addq %r14, %rsi
movq %rax, %rdi
callq 0x30f0
movq 0xb212(%rip), %rsi      # 0x1cfe8
movq 0xb1e3(%rip), %rdx      # 0x1cfc0
movq %rbx, %rdi
callq 0x3400
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x5fbf(%rip), %rsi      # 0x17db8
movq %rax, %rdi
callq 0x30f0
movq 0xb1e0(%rip), %rsi      # 0x1cfe8
movq 0xb1b1(%rip), %rdx      # 0x1cfc0
movq %rbx, %rdi
callq 0x3400
jmp 0x11e84
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x5fa0(%rip), %rsi      # 0x17dcd
movq %rax, %rdi
callq 0x30f0
movq 0xb1ac(%rip), %rsi      # 0x1cfe8
movq 0xb17d(%rip), %rdx      # 0x1cfc0
movq %rbx, %rdi
callq 0x3400
jmp 0x11e84
callq 0x30e0
movl $0x10, %edi
callq 0x3120
movq %rax, %rbx
leaq 0x5f83(%rip), %rsi      # 0x17de9
movq %rax, %rdi
callq 0x30f0
movq 0xb173(%rip), %rsi      # 0x1cfe8
movq 0xb144(%rip), %rdx      # 0x1cfc0
movq %rbx, %rdi
callq 0x3400
jmp 0x120a0
movq %rax, %r13
movq %rbx, %rdi
callq 0x31b0
jmp 0x120d9
jmp 0x11e9b
movq %rax, %r13
movq %rbx, %rdi
callq 0x31b0
jmp 0x120f1
jmp 0x11eda
jmp 0x11eb3
jmp 0x11eb3
jmp 0x11eb3
movq %rax, %r13
jmp 0x120f1
movq %rax, %r13
movq -0x190(%rbp), %rdi
cmpq %r15, %rdi
je 0x120d9
callq 0x3230
jmp 0x120d9
jmp 0x11eda
movq %rax, %r13
jmp 0x120d9
jmp 0x12004
jmp 0x12004
jmp 0x11efc
jmp 0x11f1a
jmp 0x11efc
jmp 0x11f1a
jmp 0x11efc
jmp 0x11f1a
jmp 0x11efc
jmp 0x11f1a
movq %rax, %r13
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x11f11
callq 0x3230
testb %bl, %bl
jne 0x11f1d
jmp 0x12043
movq %rax, %r13
movq %r14, %rdi
callq 0x31b0
jmp 0x12043
jmp 0x120b2
jmp 0x11f55
jmp 0x11f65
jmp 0x11f75
jmp 0x11f55
jmp 0x11f55
jmp 0x11f65
jmp 0x11f75
jmp 0x11f55
jmp 0x11f65
jmp 0x11f75
movq %rax, %r13
movq %r15, %rdi
callq 0x3230
jmp 0x12019
jmp 0x11f75
movq %rax, %r13
movq %rbx, %rdi
callq 0x3230
jmp 0x12043
movq %rax, %r13
movq %rbx, %rdi
callq 0x3230
jmp 0x12028
movq %rax, %r13
jmp 0x1204b
jmp 0x11f84
jmp 0x12004
movq %rax, %r13
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
jmp 0x11fbb
jmp 0x12004
jmp 0x12004
jmp 0x12004
jmp 0x12004
jmp 0x12004
movq %rax, %r13
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x11fb0
callq 0x3230
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11fc5
callq 0x3230
testb %r14b, %r14b
jne 0x12007
jmp 0x120b5
movq %rax, %r13
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12007
callq 0x3230
jmp 0x12007
jmp 0x120b2
jmp 0x12004
jmp 0x120b2
jmp 0x120b2
movq %rax, %r13
jmp 0x12072
jmp 0x120b2
movq %rax, %r13
movq %rbx, %rdi
callq 0x31b0
jmp 0x120b5
jmp 0x12025
movq %rax, %r13
movq %rbx, %rdi
jmp 0x120ab
jmp 0x12025
jmp 0x12025
movq %rax, %r13
movq %r12, %rdi
jmp 0x120ab
jmp 0x120b2
jmp 0x120a0
jmp 0x120b2
jmp 0x120a0
jmp 0x12040
jmp 0x12040
jmp 0x12040
jmp 0x12040
movq %rax, %r13
movq %r12, %rdi
callq 0x3300
movq -0x40(%rbp), %rdi
jmp 0x120ab
jmp 0x12053
movq %rax, %r13
jmp 0x12096
movq %rax, %r13
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x1206d
callq 0x3230
testb %r14b, %r14b
je 0x120b5
movq %rbx, %rdi
callq 0x3230
jmp 0x120b5
movq %rax, %r13
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x12091
callq 0x3230
testb %r14b, %r14b
je 0x120a8
movq %rbx, %rdi
callq 0x3230
jmp 0x120a8
movq %rax, %r13
jmp 0x120cd
movq %rax, %r13
movq %r15, %rdi
callq 0x3300
jmp 0x120b5
movq %rax, %r13
movq -0x148(%rbp), %rdi
leaq -0x138(%rbp), %rax
cmpq %rax, %rdi
je 0x120cd
callq 0x3230
leaq -0x120(%rbp), %rdi
callq 0x138a0
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
je 0x120f1
callq 0x3230
leaq -0x398(%rbp), %rdi
callq 0x3080
movq %r13, %rdi
callq 0x3430
nop