// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x4
popq %rdx
callq 0x33c0
leaq -0x320(%rbp), %rdi
callq 0x3060
testb %al, %al
je 0x10fdd
leaq -0x398(%rbp), %rdi
pushq $0x2
popq %rdx
xorl %esi, %esi
callq 0x3340
leaq -0x398(%rbp), %rdi
callq 0x3440
movq %rax, -0xc0(%rbp)
movabsq $0x100000000, %rax      # imm = 0x100000000
cmpq %rax, -0xc0(%rbp)
jge 0x1100f
leaq -0x398(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3340
leaq -0x110(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x120(%rbp), %rdi
pushq $0x14
popq %rsi
xorl %edx, %edx
callq 0x32a0
movq -0x120(%rbp), %rsi
leaq -0x398(%rbp), %rdi
pushq $0x14
popq %rdx
callq 0x32e0
leaq -0x398(%rbp), %rdi
pushq $0x17
popq %rsi
xorl %edx, %edx
callq 0x32f0
leaq -0x398(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
pushq $0x4
popq %rdx
callq 0x32e0
leaq -0x190(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x3350
movl -0xd0(%rbp), %edx
leaq -0x190(%rbp), %rsi
movq %r14, %rdi
callq 0x125ae
leaq -0x190(%rbp), %rdi
callq 0x3120
movq -0x398(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x378(%rbp,%rax)
jne 0x11041
leaq -0x170(%rbp), %rdi
callq 0x125d2
leaq -0x78(%rbp), %rsi
movq %rbx, (%rsi)
movq -0xc0(%rbp), %rax
movq %rax, 0x8(%rsi)
leaq -0x170(%rbp), %rdi
callq 0x13580
leaq -0x398(%rbp), %r14
leaq -0x78(%rbp), %r12
leaq -0x170(%rbp), %rdi
callq 0x13624
testq %rax, %rax
je 0x10c3a
andl $0x0, -0x80(%rbp)
andl $0x0, -0x94(%rbp)
andl $0x0, -0x84(%rbp)
movb $0x0, -0x29(%rbp)
movq %r14, %rdi
callq 0x3440
movq %rax, %rbx
movq %r14, %rdi
leaq -0x80(%rbp), %rsi
pushq $0x4
popq %rdx
callq 0x32e0
movq %r14, %rdi
leaq -0x94(%rbp), %rsi
pushq $0x4
popq %rdx
callq 0x32e0
movq %r14, %rdi
leaq -0x84(%rbp), %rsi
pushq $0x4
popq %rdx
callq 0x32e0
movq %r14, %rdi
leaq -0x29(%rbp), %rsi
pushq $0x1
popq %rdx
callq 0x32e0
movzbl -0x29(%rbp), %esi
leaq -0xf0(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0x100(%rbp), %rdi
xorl %edx, %edx
callq 0x32a0
movq -0x100(%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 0x10cec
movl -0x80(%rbp), %eax
testq %rax, %rax
je 0x10c1d
movq -0x140(%rbp), %rcx
cmpq -0x138(%rbp), %rcx
jne 0x10282
movq -0x128(%rbp), %rcx
movq -0x8(%rcx), %rcx
movl $0x200, %edx            # imm = 0x200
addq %rdx, %rcx
cmpq %rax, -0xc0(%rbp)
jb 0x10d59
movq -0x8(%rcx), %rdx
movq %rdx, -0xe0(%rbp)
cmpq %rax, %rdx
jbe 0x10d3d
movl -0x84(%rbp), %edx
addq %rbx, %rdx
cmpq %rax, %rdx
ja 0x10d21
movq -0x10(%rcx), %r14
pushq $0x58
popq %rdi
callq 0x3270
movq %rax, %rbx
movq %rax, %rdi
leaq -0x100(%rbp), %rsi
movq %r14, -0xd8(%rbp)
movq %r14, %rdx
callq 0xff7a
movl -0x80(%rbp), %eax
movq %rbx, -0x78(%rbp)
movq %rax, -0x70(%rbp)
leaq -0x170(%rbp), %rdi
movq %r12, %rsi
callq 0x13580
movq %rbx, -0x90(%rbp)
addq $0x28, %rbx
movq %rbx, -0x48(%rbp)
movq $0x0, -0xc8(%rbp)
xorl %eax, %eax
movl %eax, -0xcc(%rbp)
cmpl -0x94(%rbp), %eax
jae 0x10be6
leaq -0x398(%rbp), %rdi
leaq -0x49(%rbp), %rsi
pushq $0x1
popq %rdx
callq 0x32e0
movzbl -0x49(%rbp), %r13d
movl %r13d, %eax
andb $-0x2, %al
cmpb $0x52, %al
jne 0x103e9
leaq -0x398(%rbp), %rdi
leaq -0x38(%rbp), %rsi
pushq $0x4
popq %rdx
callq 0x32e0
movl -0x38(%rbp), %ebx
testq %rbx, %rbx
je 0x10517
movq %rbx, %rdi
callq 0x3030
movq %rax, %r15
movq %rax, -0xb8(%rbp)
leaq -0x398(%rbp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x32e0
cmpl $0x53, %r13d
jne 0x10571
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %r14
movl -0x38(%rbp), %eax
movq %r15, %rdx
addq %rax, %rdx
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
movq %r12, %r13
movq %r12, %rdi
movq %r15, %rsi
callq 0x12af6
movb $0x1, %bl
movq %r14, %rdi
movq %r13, %rsi
callq 0xf9ea
xorl %ebx, %ebx
movq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0xfce0
movq %r12, %rdi
callq 0x3120
jmp 0x10596
cmpb $0x59, %r13b
ja 0x10451
leal -0x43(%r13), %eax
cmpl $0x9, %eax
movq %r12, %rsi
ja 0x10667
leaq 0x6832(%rip), %rcx      # 0x16c38
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x398(%rbp), %rdi
pushq $0x1
popq %rdx
callq 0x32e0
pushq $0x40
popq %rdi
callq 0x3270
movb -0x78(%rbp), %cl
andl $0x0, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movb %cl, 0x8(%rax)
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0xfce0
pushq $0x1
jmp 0x107c7
leaq -0x398(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
pushq $0x4
popq %rdx
callq 0x32e0
leaq -0x398(%rbp), %rdi
leaq -0x98(%rbp), %rsi
pushq $0x4
popq %rdx
callq 0x32e0
leaq -0x398(%rbp), %rdi
leaq -0x7c(%rbp), %rsi
pushq $0x4
popq %rdx
callq 0x32e0
movl -0x98(%rbp), %eax
cmpl $0x1, %eax
je 0x105af
testl %eax, %eax
jne 0x10c70
leal -0x62(%r13), %eax
cmpl $0xa, %eax
ja 0x10faa
leaq 0x6754(%rip), %rcx      # 0x16c0c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x3c(%rbp), %r14d
movq %r14, %rdi
callq 0x3030
movq %rax, %r15
movq %rax, -0x78(%rbp)
leaq -0x398(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x32e0
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0xf6de
movq -0x48(%rbp), %rdi
movq %rbx, %rsi
callq 0xfce0
addq $0xc, %r14
movq %r12, %rdi
jmp 0x1065d
pushq $0x4
popq %r14
cmpl $0x53, %r13d
jne 0x107c9
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %r14
movq %r12, %r15
movq %r12, %rdi
leaq 0x5c46(%rip), %rsi      # 0x16183
leaq -0xb8(%rbp), %rdx
callq 0x30e0
movb $0x1, %bl
movq %r14, %rdi
movq %r15, %rsi
callq 0xf9ea
xorl %ebx, %ebx
movq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0xfce0
movq %r12, %rdi
callq 0x3120
jmp 0x107c5
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %r14
movl -0x38(%rbp), %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0xfa42
movq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0xfce0
movl -0x38(%rbp), %r14d
addl $0x4, %r14d
leaq -0xb8(%rbp), %rdi
callq 0x12ad2
jmp 0x107c9
leal -0x62(%r13), %eax
cmpl $0xa, %eax
ja 0x10f8b
leaq 0x661d(%rip), %rcx      # 0x16be0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x3c(%rbp), %r15d
movl -0x7c(%rbp), %r14d
movq %r15, -0xb8(%rbp)
movq %r15, %rdi
callq 0x3030
movq %rax, -0x38(%rbp)
movq %r14, %rdi
callq 0x3030
movq %rax, %rbx
movq %rax, -0x58(%rbp)
leaq -0x398(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x32e0
movq -0x38(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x6b87
testl %eax, %eax
jne 0x10f43
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %rbx
movq -0x38(%rbp), %rsi
movq %rax, %rdi
movl %r15d, %edx
callq 0xf6de
movq -0x48(%rbp), %rdi
movq %rbx, %rsi
callq 0xfce0
addl $0xc, %r14d
leaq -0x58(%rbp), %rdi
callq 0x12ad2
leaq -0x38(%rbp), %rdi
callq 0x12cbe
jmp 0x107c9
cmpl $0x59, %r13d
jne 0x10cca
leaq -0x398(%rbp), %rdi
pushq $0x2
popq %rdx
callq 0x32e0
pushq $0x40
popq %rdi
callq 0x3270
movzwl -0x78(%rbp), %ecx
movl $0x1, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movw %cx, 0x8(%rax)
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0xfce0
pushq $0x2
jmp 0x107c7
leaq -0x398(%rbp), %rdi
pushq $0x8
popq %rdx
callq 0x32e0
pushq $0x40
popq %rdi
callq 0x3270
movq -0x78(%rbp), %rcx
movl $0x3, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movq %rcx, 0x8(%rax)
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0xfce0
jmp 0x1073c
leaq -0x398(%rbp), %rdi
pushq $0x8
popq %rdx
callq 0x32e0
pushq $0x40
popq %rdi
callq 0x3270
movsd -0x78(%rbp), %xmm0
movl $0x5, (%rax)
xorps %xmm1, %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm1, 0x20(%rax)
movups %xmm1, 0x30(%rax)
movsd %xmm0, 0x8(%rax)
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0xfce0
pushq $0x8
jmp 0x107c7
leaq -0x398(%rbp), %rdi
pushq $0x4
popq %rdx
callq 0x32e0
pushq $0x40
popq %rdi
callq 0x3270
movl -0x78(%rbp), %ecx
movl $0x2, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movl %ecx, 0x8(%rax)
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0xfce0
jmp 0x107c5
leaq -0x398(%rbp), %rdi
pushq $0x4
popq %rdx
callq 0x32e0
pushq $0x40
popq %rdi
callq 0x3270
movss -0x78(%rbp), %xmm0
movl $0x4, (%rax)
xorps %xmm1, %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm1, 0x20(%rax)
movups %xmm1, 0x30(%rax)
movss %xmm0, 0x8(%rax)
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0xfce0
pushq $0x4
popq %r14
movq -0xc8(%rbp), %rax
addq %r14, %rax
incq %rax
movq %rax, -0xc8(%rbp)
movl -0xcc(%rbp), %eax
incl %eax
jmp 0x10313
movl -0x3c(%rbp), %r15d
movl -0x7c(%rbp), %r14d
leaq (,%r15,8), %rdi
movq %rdi, -0xb8(%rbp)
callq 0x3030
movq %rax, -0x38(%rbp)
movq %r14, %rdi
callq 0x3030
movq %rax, %rbx
movq %rax, -0x58(%rbp)
leaq -0x398(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x32e0
movq -0x38(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x6b87
testl %eax, %eax
jne 0x10e23
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %r13
movq -0x38(%rbp), %rsi
movq %rax, %rdi
movl %r15d, %edx
callq 0xf7ea
movq -0x48(%rbp), %rdi
movq %r13, %rsi
callq 0xfce0
addl $0xc, %r14d
leaq -0x58(%rbp), %rdi
callq 0x12ad2
leaq -0x38(%rbp), %rdi
jmp 0x108df
movl -0x3c(%rbp), %r15d
movq %r15, %rdi
shlq $0x6, %rdi
callq 0x3030
movq %rax, %r13
leaq (,%r15,8), %r14
movq %rax, -0x78(%rbp)
leaq -0x398(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x32e0
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %rbx
movq %rax, %rdi
movq %r13, %rsi
movl %r15d, %edx
callq 0xf7ea
movq -0x48(%rbp), %rdi
movq %rbx, %rsi
callq 0xfce0
addq $0xc, %r14
movq %r12, %rdi
callq 0x12c86
jmp 0x107c9
movl -0x3c(%rbp), %r15d
movl -0x7c(%rbp), %r14d
leaq (,%r15,4), %rdi
movq %rdi, -0xb8(%rbp)
callq 0x3030
movq %rax, -0x38(%rbp)
movq %r14, %rdi
callq 0x3030
movq %rax, %rbx
movq %rax, -0x58(%rbp)
leaq -0x398(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x32e0
movq -0x38(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x6b87
testl %eax, %eax
jne 0x10eb3
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %r13
movq -0x38(%rbp), %rsi
movq %rax, %rdi
movl %r15d, %edx
callq 0xf872
movq -0x48(%rbp), %rdi
movq %r13, %rsi
callq 0xfce0
addl $0xc, %r14d
leaq -0x58(%rbp), %rdi
callq 0x12ad2
leaq -0x38(%rbp), %rdi
jmp 0x109de
movl -0x3c(%rbp), %r15d
movq %r15, %rdi
shlq $0x4, %rdi
callq 0x3030
movq %rax, %r13
leaq (,%r15,4), %r14
movq %rax, -0x78(%rbp)
leaq -0x398(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x32e0
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %rbx
movq %rax, %rdi
movq %r13, %rsi
movl %r15d, %edx
callq 0xf872
movq -0x48(%rbp), %rdi
movq %rbx, %rsi
callq 0xfce0
addq $0xc, %r14
movq %r12, %rdi
callq 0x12c16
jmp 0x107c9
movl -0x3c(%rbp), %r15d
movl -0x7c(%rbp), %r14d
leaq (,%r15,4), %rdi
movq %rdi, -0xb8(%rbp)
callq 0x3030
movq %rax, -0x38(%rbp)
movq %r14, %rdi
callq 0x3030
movq %rax, %rbx
movq %rax, -0x58(%rbp)
leaq -0x398(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x32e0
movq -0x38(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x6b87
testl %eax, %eax
jne 0x10e6b
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %r13
movq -0x38(%rbp), %rsi
movq %rax, %rdi
movl %r15d, %edx
callq 0xf764
movq -0x48(%rbp), %rdi
movq %r13, %rsi
callq 0xfce0
addl $0xc, %r14d
leaq -0x58(%rbp), %rdi
callq 0x12ad2
leaq -0x38(%rbp), %rdi
jmp 0x10add
movl -0x3c(%rbp), %r15d
movq %r15, %rdi
shlq $0x4, %rdi
callq 0x3030
movq %rax, %r13
leaq (,%r15,4), %r14
movq %rax, -0x78(%rbp)
leaq -0x398(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x32e0
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %rbx
movq %rax, %rdi
movq %r13, %rsi
movl %r15d, %edx
callq 0xf764
movq -0x48(%rbp), %rdi
movq %rbx, %rsi
callq 0xfce0
addq $0xc, %r14
movq %r12, %rdi
callq 0x12bde
jmp 0x107c9
movl -0x3c(%rbp), %r15d
movl -0x7c(%rbp), %r14d
leaq (,%r15,8), %rdi
movq %rdi, -0xb8(%rbp)
callq 0x3030
movq %rax, -0x38(%rbp)
movq %r14, %rdi
callq 0x3030
movq %rax, %rbx
movq %rax, -0x58(%rbp)
leaq -0x398(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x32e0
movq -0x38(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x6b87
testl %eax, %eax
jne 0x10efb
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %r13
movq -0x38(%rbp), %rsi
movq %rax, %rdi
movl %r15d, %edx
callq 0xf8fc
movq -0x48(%rbp), %rdi
movq %r13, %rsi
callq 0xfce0
addl $0xc, %r14d
leaq -0x58(%rbp), %rdi
callq 0x12ad2
leaq -0x38(%rbp), %rdi
jmp 0x10bdc
movl -0x3c(%rbp), %r15d
movq %r15, %rdi
shlq $0x6, %rdi
callq 0x3030
movq %rax, %r13
leaq (,%r15,8), %r14
movq %rax, -0x78(%rbp)
leaq -0x398(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x32e0
pushq $0x40
popq %rdi
callq 0x3270
movq %rax, %rbx
movq %rax, %rdi
movq %r13, %rsi
movl %r15d, %edx
callq 0xf8fc
movq -0x48(%rbp), %rdi
movq %rbx, %rsi
callq 0xfce0
addq $0xc, %r14
movq %r12, %rdi
callq 0x12c4e
jmp 0x107c9
movl -0x84(%rbp), %eax
cmpq %rax, -0xc8(%rbp)
jne 0x10d89
leaq -0x398(%rbp), %r14
movq %r14, %rdi
callq 0x3440
cmpq %rax, -0xe0(%rbp)
jbe 0x10dd6
movl -0x80(%rbp), %ecx
cmpq %rcx, %rax
jne 0x10c29
leaq -0x170(%rbp), %rdi
callq 0x137ce
leaq -0x100(%rbp), %rdi
callq 0x3120
jmp 0x1018f
leaq -0x170(%rbp), %rdi
callq 0x12cf6
leaq -0x120(%rbp), %rdi
callq 0x3120
leaq -0x398(%rbp), %rdi
callq 0x3080
addq $0x378, %rsp            # imm = 0x378
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
movl -0x98(%rbp), %esi
leaq -0xb8(%rbp), %rdi
callq 0x12b9e
leaq 0x62bf(%rip), %rsi      # 0x16f53
leaq -0x78(%rbp), %rdi
leaq -0xb8(%rbp), %rdx
callq 0x126e9
movb $0x1, %bl
leaq -0x78(%rbp), %rsi
movq %r14, %rdi
callq 0x33d0
xorl %ebx, %ebx
movq 0xc335(%rip), %rsi      # 0x1cff0
movq 0xc306(%rip), %rdx      # 0x1cfc8
movq %r14, %rdi
callq 0x3420
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x623b(%rip), %rsi      # 0x16f17
addq %r13, %rsi
movq %rax, %rdi
callq 0x30d0
jmp 0x10fc7
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %rbx
leaq 0x60dd(%rip), %rsi      # 0x16ddb
movq %rax, %rdi
callq 0x30d0
movq 0xc2e3(%rip), %rsi      # 0x1cff0
movq 0xc2b4(%rip), %rdx      # 0x1cfc8
movq %rbx, %rdi
callq 0x3420
jmp 0x11071
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x6111(%rip), %rsi      # 0x16e44
movq %rax, %rdi
callq 0x30d0
jmp 0x10d73
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x60ca(%rip), %rsi      # 0x16e19
movq %rax, %rdi
callq 0x30d0
jmp 0x10d73
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x6087(%rip), %rsi      # 0x16df2
movq %rax, %rdi
callq 0x30d0
movq 0xc276(%rip), %rsi      # 0x1cff0
movq 0xc247(%rip), %rdx      # 0x1cfc8
movq %r14, %rdi
callq 0x3420
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x60ce(%rip), %rsi      # 0x16e69
leaq -0x78(%rbp), %rdi
movq -0xd8(%rbp), %rdx
callq 0x125f2
movb $0x1, %bl
leaq -0x78(%rbp), %rsi
movq %r14, %rdi
callq 0x33d0
xorl %ebx, %ebx
movq 0xc22e(%rip), %rsi      # 0x1cff0
movq 0xc1ff(%rip), %rdx      # 0x1cfc8
movq %r14, %rdi
callq 0x3420
jmp 0x11071
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x60aa(%rip), %rsi      # 0x16e92
leaq -0x78(%rbp), %rdi
movq -0xd8(%rbp), %rdx
callq 0x125f2
movb $0x1, %bl
leaq -0x78(%rbp), %rsi
movq %r14, %rdi
callq 0x33d0
xorl %ebx, %ebx
movq 0xc1e1(%rip), %rsi      # 0x1cff0
movq 0xc1b2(%rip), %rdx      # 0x1cfc8
movq %r14, %rdi
callq 0x3420
jmp 0x11071
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x6138(%rip), %rsi      # 0x16f6d
leaq -0x78(%rbp), %rdi
movq -0x90(%rbp), %rdx
callq 0x125f2
movb $0x1, %bl
leaq -0x78(%rbp), %rsi
movq %r14, %rdi
callq 0x33d0
xorl %ebx, %ebx
movq 0xc194(%rip), %rsi      # 0x1cff0
movq 0xc165(%rip), %rdx      # 0x1cfc8
movq %r14, %rdi
callq 0x3420
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x60f0(%rip), %rsi      # 0x16f6d
leaq -0x78(%rbp), %rdi
movq -0x90(%rbp), %rdx
callq 0x125f2
movb $0x1, %bl
leaq -0x78(%rbp), %rsi
movq %r14, %rdi
callq 0x33d0
xorl %ebx, %ebx
movq 0xc14c(%rip), %rsi      # 0x1cff0
movq 0xc11d(%rip), %rdx      # 0x1cfc8
movq %r14, %rdi
callq 0x3420
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x60a8(%rip), %rsi      # 0x16f6d
leaq -0x78(%rbp), %rdi
movq -0x90(%rbp), %rdx
callq 0x125f2
movb $0x1, %bl
leaq -0x78(%rbp), %rsi
movq %r14, %rdi
callq 0x33d0
xorl %ebx, %ebx
movq 0xc104(%rip), %rsi      # 0x1cff0
movq 0xc0d5(%rip), %rdx      # 0x1cfc8
movq %r14, %rdi
callq 0x3420
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x6060(%rip), %rsi      # 0x16f6d
leaq -0x78(%rbp), %rdi
movq -0x90(%rbp), %rdx
callq 0x125f2
movb $0x1, %bl
leaq -0x78(%rbp), %rsi
movq %r14, %rdi
callq 0x33d0
xorl %ebx, %ebx
movq 0xc0bc(%rip), %rsi      # 0x1cff0
movq 0xc08d(%rip), %rdx      # 0x1cfc8
movq %r14, %rdi
callq 0x3420
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x6018(%rip), %rsi      # 0x16f6d
leaq -0x78(%rbp), %rdi
movq -0x90(%rbp), %rdx
callq 0x125f2
movb $0x1, %bl
leaq -0x78(%rbp), %rsi
movq %r14, %rdi
callq 0x33d0
xorl %ebx, %ebx
movq 0xc074(%rip), %rsi      # 0x1cff0
movq 0xc045(%rip), %rdx      # 0x1cfc8
movq %r14, %rdi
callq 0x3420
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x5f9a(%rip), %rsi      # 0x16f37
addq %r13, %rsi
movq %rax, %rdi
callq 0x30d0
jmp 0x10fc7
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %r14
leaq 0x5f7b(%rip), %rsi      # 0x16f37
addq %r13, %rsi
movq %rax, %rdi
callq 0x30d0
movq 0xc022(%rip), %rsi      # 0x1cff0
movq 0xbff3(%rip), %rdx      # 0x1cfc8
movq %r14, %rdi
callq 0x3420
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %rbx
leaq 0x5da9(%rip), %rsi      # 0x16d98
movq %rax, %rdi
callq 0x30d0
movq 0xbff2(%rip), %rsi      # 0x1cff0
movq 0xbfc3(%rip), %rdx      # 0x1cfc8
movq %rbx, %rdi
callq 0x3420
jmp 0x11071
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %rbx
leaq 0x5d8c(%rip), %rsi      # 0x16dad
movq %rax, %rdi
callq 0x30d0
movq 0xbfc0(%rip), %rsi      # 0x1cff0
movq 0xbf91(%rip), %rdx      # 0x1cfc8
movq %rbx, %rdi
callq 0x3420
jmp 0x11071
pushq $0x10
popq %rdi
callq 0x3140
movq %rax, %rbx
leaq 0x5d76(%rip), %rsi      # 0x16dc9
movq %rax, %rdi
callq 0x30d0
movq 0xbf8e(%rip), %rsi      # 0x1cff0
movq 0xbf5f(%rip), %rdx      # 0x1cfc8
movq %rbx, %rdi
callq 0x3420
movq %rax, %r15
movq %rbx, %rdi
callq 0x31c0
jmp 0x11415
jmp 0x11083
movq %rax, %r15
movq %rbx, %rdi
callq 0x31c0
jmp 0x11421
jmp 0x113ca
jmp 0x110be
movq %rax, %r15
leaq -0x190(%rbp), %rdi
callq 0x3120
jmp 0x11415
jmp 0x110b4
jmp 0x110b4
jmp 0x110b4
movq %rax, %r15
jmp 0x11421
jmp 0x110be
movq %rax, %r15
jmp 0x11415
jmp 0x112e2
jmp 0x112e2
movq %rax, %r15
leaq -0x78(%rbp), %rdi
callq 0x3120
testb %bl, %bl
jne 0x110e8
jmp 0x1134a
movq %rax, %r15
movq %r14, %rdi
callq 0x31c0
jmp 0x1134a
movq %rax, %r15
leaq -0x78(%rbp), %rdi
callq 0x3120
testb %bl, %bl
jne 0x1110d
jmp 0x11364
movq %rax, %r15
movq %r14, %rdi
callq 0x31c0
jmp 0x11364
movq %rax, %r15
leaq -0x78(%rbp), %rdi
callq 0x3120
testb %bl, %bl
jne 0x11132
jmp 0x1137e
movq %rax, %r15
movq %r14, %rdi
callq 0x31c0
jmp 0x1137e
movq %rax, %r15
leaq -0x78(%rbp), %rdi
callq 0x3120
testb %bl, %bl
jne 0x11157
jmp 0x11395
movq %rax, %r15
movq %r14, %rdi
callq 0x31c0
jmp 0x11395
movq %rax, %r15
leaq -0x78(%rbp), %rdi
callq 0x3120
testb %bl, %bl
jne 0x1117c
jmp 0x11330
movq %rax, %r15
movq %r14, %rdi
callq 0x31c0
jmp 0x11330
jmp 0x11190
jmp 0x112e2
movq %rax, %r15
leaq -0x78(%rbp), %rdi
jmp 0x112a1
jmp 0x112e2
jmp 0x112e2
jmp 0x112e2
jmp 0x112e2
movq %rax, %r15
jmp 0x11353
movq %rax, %r15
jmp 0x1136d
movq %rax, %r15
movq %rbx, %rdi
callq 0x3240
jmp 0x1134a
movq %rax, %r15
jmp 0x11387
movq %rax, %r15
movq %rbx, %rdi
callq 0x3240
jmp 0x112f5
movq %rax, %r15
jmp 0x1139e
movq %rax, %r15
movq %r13, %rdi
callq 0x3240
jmp 0x11364
movq %rax, %r15
jmp 0x11339
movq %rax, %r15
movq %r13, %rdi
callq 0x3240
jmp 0x1137e
movq %rax, %r15
movq %r13, %rdi
callq 0x3240
jmp 0x11395
movq %rax, %r15
movq %r13, %rdi
callq 0x3240
jmp 0x11330
movq %rax, %r15
movq %rbx, %rdi
callq 0x3240
jmp 0x11316
movq %rax, %r15
movq %rbx, %rdi
callq 0x3240
jmp 0x1131f
movq %rax, %r15
movq %rbx, %rdi
callq 0x3240
jmp 0x1130a
movq %rax, %r15
movq %rbx, %rdi
callq 0x3240
jmp 0x112fe
jmp 0x113fa
movq %rax, %r15
movq %rbx, %rdi
jmp 0x112e8
jmp 0x112e2
movq %rax, %r15
leaq -0x78(%rbp), %rdi
callq 0x3120
jmp 0x1129a
movq %rax, %r15
movb $0x1, %bl
leaq -0xb8(%rbp), %rdi
callq 0x3120
testb %bl, %bl
jne 0x112e5
jmp 0x113fd
jmp 0x113fa
jmp 0x113fa
jmp 0x113fa
movq %rax, %r15
movq %rbx, %rdi
jmp 0x113c3
jmp 0x113fa
jmp 0x113ca
jmp 0x113fa
jmp 0x113ca
jmp 0x113fa
movq %rax, %r15
movq %r14, %rdi
callq 0x31c0
jmp 0x113fd
movq %rax, %r15
leaq -0x78(%rbp), %rdi
jmp 0x11371
movq %rax, %r15
leaq -0x78(%rbp), %rdi
jmp 0x1138b
movq %rax, %r15
leaq -0x78(%rbp), %rdi
jmp 0x113a2
movq %rax, %r15
leaq -0x78(%rbp), %rdi
jmp 0x1133d
movq %rax, %r15
leaq -0x78(%rbp), %rdi
jmp 0x11357
movq %rax, %r15
jmp 0x113c0
movq %rax, %r15
leaq -0x58(%rbp), %rdi
callq 0x12ad2
leaq -0x38(%rbp), %rdi
callq 0x12c86
jmp 0x113fd
movq %rax, %r15
leaq -0x58(%rbp), %rdi
callq 0x12ad2
leaq -0x38(%rbp), %rdi
callq 0x12cbe
jmp 0x113fd
movq %rax, %r15
leaq -0x58(%rbp), %rdi
callq 0x12ad2
leaq -0x38(%rbp), %rdi
callq 0x12c4e
jmp 0x113fd
movq %rax, %r15
leaq -0x58(%rbp), %rdi
callq 0x12ad2
leaq -0x38(%rbp), %rdi
callq 0x12c16
jmp 0x113fd
movq %rax, %r15
leaq -0x58(%rbp), %rdi
callq 0x12ad2
leaq -0x38(%rbp), %rdi
callq 0x12bde
jmp 0x113fd
jmp 0x113ab
movq %rax, %r15
jmp 0x113df
movq %rax, %r15
leaq -0x78(%rbp), %rdi
callq 0x3120
testb %bl, %bl
je 0x113fd
movq %r14, %rdi
callq 0x3240
jmp 0x113fd
movq %rax, %r15
jmp 0x11409
movq %rax, %r15
leaq -0x78(%rbp), %rdi
callq 0x3120
testb %bl, %bl
je 0x113ec
movq %r14, %rdi
callq 0x3240
jmp 0x113ec
movq %rax, %r15
leaq -0xb8(%rbp), %rdi
callq 0x12ad2
jmp 0x113fd
movq %rax, %r15
leaq -0x100(%rbp), %rdi
callq 0x3120
leaq -0x170(%rbp), %rdi
callq 0x12cf6
leaq -0x120(%rbp), %rdi
callq 0x3120
leaq -0x398(%rbp), %rdi
callq 0x3080
movq %r15, %rdi
callq 0x3450
nop