// File: /workspace/github_cpp_makefile_star2_O3/jimmiebergmann[P]fbx-file/miniz.c
// Function: mz_zip_reader_read_central_dir(mz_zip_archive*, unsigned int)
static mz_bool mz_zip_reader_read_central_dir(mz_zip_archive *pZip, mz_uint flags)
{
    mz_uint cdir_size = 0, cdir_entries_on_this_disk = 0, num_this_disk = 0, cdir_disk_index = 0;
    mz_uint64 cdir_ofs = 0;
    mz_int64 cur_file_ofs = 0;
    const mz_uint8 *p;

    mz_uint32 buf_u32[4096 / sizeof(mz_uint32)];
    mz_uint8 *pBuf = (mz_uint8 *)buf_u32;
    mz_bool sort_central_dir = ((flags & MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY) == 0);
    mz_uint32 zip64_end_of_central_dir_locator_u32[(MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)];
    mz_uint8 *pZip64_locator = (mz_uint8 *)zip64_end_of_central_dir_locator_u32;

    mz_uint32 zip64_end_of_central_dir_header_u32[(MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)];
    mz_uint8 *pZip64_end_of_central_dir = (mz_uint8 *)zip64_end_of_central_dir_header_u32;

    mz_uint64 zip64_end_of_central_dir_ofs = 0;

    /* Basic sanity checks - reject files which are too small, and check the first 4 bytes of the file to make sure a local header is there. */
    if (pZip->m_archive_size < MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE)
        return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE);

    if (!mz_zip_reader_locate_header_sig(pZip, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE, &cur_file_ofs))
        return mz_zip_set_error(pZip, MZ_ZIP_FAILED_FINDING_CENTRAL_DIR);

    /* Read and verify the end of central directory record. */
    if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pBuf, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) != MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE)
        return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);

    if (MZ_READ_LE32(pBuf + MZ_ZIP_ECDH_SIG_OFS) != MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG)
        return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE);

    if (cur_file_ofs >= (MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE + MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE))
    {
        if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs - MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE, pZip64_locator, MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE) == MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE)
        {
            if (MZ_READ_LE32(pZip64_locator + MZ_ZIP64_ECDL_SIG_OFS) == MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIG)
            {
                zip64_end_of_central_dir_ofs = MZ_READ_LE64(pZip64_locator + MZ_ZIP64_ECDL_REL_OFS_TO_ZIP64_ECDR_OFS);
                if (zip64_end_of_central_dir_ofs > (pZip->m_archive_size - MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE))
                    return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE);

                if (pZip->m_pRead(pZip->m_pIO_opaque, zip64_end_of_central_dir_ofs, pZip64_end_of_central_dir, MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE) == MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE)
                {
                    if (MZ_READ_LE32(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_SIG_OFS) == MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIG)
                    {
                        pZip->m_pState->m_zip64 = MZ_TRUE;
                    }
                }
            }
        }
    }

    pZip->m_total_files = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_CDIR_TOTAL_ENTRIES_OFS);
    cdir_entries_on_this_disk = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS);
    num_this_disk = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_NUM_THIS_DISK_OFS);
    cdir_disk_index = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_NUM_DISK_CDIR_OFS);
    cdir_size = MZ_READ_LE32(pBuf + MZ_ZIP_ECDH_CDIR_SIZE_OFS);
    cdir_ofs = MZ_READ_LE32(pBuf + MZ_ZIP_ECDH_CDIR_OFS_OFS);

    if (pZip->m_pState->m_zip64)
    {
        mz_uint32 zip64_total_num_of_disks = MZ_READ_LE32(pZip64_locator + MZ_ZIP64_ECDL_TOTAL_NUMBER_OF_DISKS_OFS);
        mz_uint64 zip64_cdir_total_entries = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_TOTAL_ENTRIES_OFS);
        mz_uint64 zip64_cdir_total_entries_on_this_disk = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS);
        mz_uint64 zip64_size_of_end_of_central_dir_record = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_SIZE_OF_RECORD_OFS);
        mz_uint64 zip64_size_of_central_directory = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_SIZE_OFS);

        if (zip64_size_of_end_of_central_dir_record < (MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE - 12))
            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);

        if (zip64_total_num_of_disks != 1U)
            return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK);

        /* Check for miniz's practical limits */
        if (zip64_cdir_total_entries > MZ_UINT32_MAX)
            return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES);

        pZip->m_total_files = (mz_uint32)zip64_cdir_total_entries;

        if (zip64_cdir_total_entries_on_this_disk > MZ_UINT32_MAX)
            return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES);

        cdir_entries_on_this_disk = (mz_uint32)zip64_cdir_total_entries_on_this_disk;

        /* Check for miniz's current practical limits (sorry, this should be enough for millions of files) */
        if (zip64_size_of_central_directory > MZ_UINT32_MAX)
            return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_CDIR_SIZE);

        cdir_size = (mz_uint32)zip64_size_of_central_directory;

        num_this_disk = MZ_READ_LE32(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_NUM_THIS_DISK_OFS);

        cdir_disk_index = MZ_READ_LE32(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_NUM_DISK_CDIR_OFS);

        cdir_ofs = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_OFS_OFS);
    }

    if (pZip->m_total_files != cdir_entries_on_this_disk)
        return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK);

    if (((num_this_disk | cdir_disk_index) != 0) && ((num_this_disk != 1) || (cdir_disk_index != 1)))
        return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK);

    if (cdir_size < pZip->m_total_files * MZ_ZIP_CENTRAL_DIR_HEADER_SIZE)
        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);

    if ((cdir_ofs + (mz_uint64)cdir_size) > pZip->m_archive_size)
        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);

    pZip->m_central_directory_file_ofs = cdir_ofs;

    if (pZip->m_total_files)
    {
        mz_uint i, n;
        /* Read the entire central directory into a heap block, and allocate another heap block to hold the unsorted central dir file record offsets, and possibly another to hold the sorted indices. */
        if ((!mz_zip_array_resize(pZip, &pZip->m_pState->m_central_dir, cdir_size, MZ_FALSE)) ||
            (!mz_zip_array_resize(pZip, &pZip->m_pState->m_central_dir_offsets, pZip->m_total_files, MZ_FALSE)))
            return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);

        if (sort_central_dir)
        {
            if (!mz_zip_array_resize(pZip, &pZip->m_pState->m_sorted_central_dir_offsets, pZip->m_total_files, MZ_FALSE))
                return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
        }

        if (pZip->m_pRead(pZip->m_pIO_opaque, cdir_ofs, pZip->m_pState->m_central_dir.m_p, cdir_size) != cdir_size)
            return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);

        /* Now create an index into the central directory file records, do some basic sanity checking on each record */
        p = (const mz_uint8 *)pZip->m_pState->m_central_dir.m_p;
        for (n = cdir_size, i = 0; i < pZip->m_total_files; ++i)
        {
            mz_uint total_header_size, disk_index, bit_flags, filename_size, ext_data_size;
            mz_uint64 comp_size, decomp_size, local_header_ofs;

            if ((n < MZ_ZIP_CENTRAL_DIR_HEADER_SIZE) || (MZ_READ_LE32(p) != MZ_ZIP_CENTRAL_DIR_HEADER_SIG))
                return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);

            MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, i) = (mz_uint32)(p - (const mz_uint8 *)pZip->m_pState->m_central_dir.m_p);

            if (sort_central_dir)
                MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_sorted_central_dir_offsets, mz_uint32, i) = i;

            comp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_COMPRESSED_SIZE_OFS);
            decomp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS);
            local_header_ofs = MZ_READ_LE32(p + MZ_ZIP_CDH_LOCAL_HEADER_OFS);
            filename_size = MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS);
            ext_data_size = MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS);

            if ((!pZip->m_pState->m_zip64_has_extended_info_fields) &&
                (ext_data_size) &&
                (MZ_MAX(MZ_MAX(comp_size, decomp_size), local_header_ofs) == MZ_UINT32_MAX))
            {
                /* Attempt to find zip64 extended information field in the entry's extra data */
                mz_uint32 extra_size_remaining = ext_data_size;

                if (extra_size_remaining)
                {
                    const mz_uint8 *pExtra_data = p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + filename_size;

                    do
                    {
                        mz_uint32 field_id;
                        mz_uint32 field_data_size;

                        if (extra_size_remaining < (sizeof(mz_uint16) * 2))
                            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);

                        field_id = MZ_READ_LE16(pExtra_data);
                        field_data_size = MZ_READ_LE16(pExtra_data + sizeof(mz_uint16));

                        if ((field_data_size + sizeof(mz_uint16) * 2) > extra_size_remaining)
                            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);

                        if (field_id == MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID)
                        {
                            /* Ok, the archive didn't have any zip64 headers but it uses a zip64 extended information field so mark it as zip64 anyway (this can occur with infozip's zip util when it reads compresses files from stdin). */
                            pZip->m_pState->m_zip64 = MZ_TRUE;
                            pZip->m_pState->m_zip64_has_extended_info_fields = MZ_TRUE;
                            break;
                        }

                        pExtra_data += sizeof(mz_uint16) * 2 + field_data_size;
                        extra_size_remaining = extra_size_remaining - sizeof(mz_uint16) * 2 - field_data_size;
                    } while (extra_size_remaining);
                }
            }

            /* I've seen archives that aren't marked as zip64 that uses zip64 ext data, argh */
            if ((comp_size != MZ_UINT32_MAX) && (decomp_size != MZ_UINT32_MAX))
            {
                if (((!MZ_READ_LE32(p + MZ_ZIP_CDH_METHOD_OFS)) && (decomp_size != comp_size)) || (decomp_size && !comp_size))
                    return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
            }

            disk_index = MZ_READ_LE16(p + MZ_ZIP_CDH_DISK_START_OFS);
            if ((disk_index == MZ_UINT16_MAX) || ((disk_index != num_this_disk) && (disk_index != 1)))
                return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK);

            if (comp_size != MZ_UINT32_MAX)
            {
                if (((mz_uint64)MZ_READ_LE32(p + MZ_ZIP_CDH_LOCAL_HEADER_OFS) + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + comp_size) > pZip->m_archive_size)
                    return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
            }

            bit_flags = MZ_READ_LE16(p + MZ_ZIP_CDH_BIT_FLAG_OFS);
            if (bit_flags & MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_LOCAL_DIR_IS_MASKED)
                return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_ENCRYPTION);

            if ((total_header_size = MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_COMMENT_LEN_OFS)) > n)
                return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);

            n -= total_header_size;
            p += total_header_size;
        }
    }

    if (sort_central_dir)
        mz_zip_reader_sort_central_dir_offsets_by_filename(pZip);

    return MZ_TRUE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1098, %rsp           # imm = 0x1098
movq %rdi, %r8
movq (%rdi), %r12
cmpq $0x15, %r12
ja 0x804d
movl $0x8, 0x1c(%r8)
jmp 0x85da
movl %esi, -0x34(%rbp)
leaq -0x1000(%r12), %rax
xorl %r15d, %r15d
cmpq $0x1001, %r12           # imm = 0x1001
cmovgeq %rax, %r15
movl $0x1000, %eax           # imm = 0x1000
cmovgeq %r12, %rax
movl $0x1000, %ebx           # imm = 0x1000
subq %rax, %rbx
movl $0x1014, %ecx           # imm = 0x1014
subq %rax, %rcx
movq %rcx, -0x40(%rbp)
movq %r8, -0x30(%rbp)
movq %r12, %r14
subq %r15, %r14
movl $0x1000, %eax           # imm = 0x1000
cmpq %rax, %r14
movl $0x1000, %r13d          # imm = 0x1000
cmovbq %r14, %r13
movq 0x60(%r8), %rdi
movq %r15, %rsi
leaq -0x10c0(%rbp), %rdx
movq %r13, %rcx
movq -0x30(%rbp), %rax
callq *0x48(%rax)
movq -0x30(%rbp), %r8
cmpq %r13, %rax
jne 0x8200
cmpq $0x4, %r14
jb 0x8116
addq %rbx, %r12
movl $0x1000, %eax           # imm = 0x1000
cmpq %rax, %r12
cmovaeq %rax, %r12
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
leal (%r12,%rax), %r13d
leal -0x4(%r12), %ecx
movq %rbx, %rax
subq %rcx, %rax
addl $-0x3, %r12d
cmpl $0x6054b50, -0x10c0(%rbp,%r13) # imm = 0x6054B50
jne 0x810b
movq (%r8), %rcx
addq %rax, %rcx
cmpq $0x15, %rcx
ja 0x814c
decq %r13
incq %rax
decl %r12d
jg 0x80f1
testq %r15, %r15
je 0x81f7
movq (%r8), %r12
movq %r12, %rax
subq %r15, %rax
addq $-0xffd, %r15           # imm = 0xF003
movl $0xffd, %ecx            # imm = 0xFFD
addq %rcx, %rbx
addq %rcx, -0x40(%rbp)
cmpq $0x10015, %rax          # imm = 0x10015
jb 0x8087
jmp 0x8200
movq 0x60(%r8), %rdi
movq %r13, %r15
subq %rbx, %r15
leaq -0x10c0(%rbp), %rdx
movl $0x16, %ecx
movq %r15, %rsi
movq %r8, %rbx
callq *0x48(%r8)
cmpq $0x16, %rax
jne 0x85d3
cmpl $0x6054b50, -0x10c0(%rbp) # imm = 0x6054B50
jne 0x81e7
cmpq $0x4c, %r15
movq -0x30(%rbp), %rbx
jl 0x8245
movq 0x60(%rbx), %rdi
subq -0x40(%rbp), %r13
leaq -0xc0(%rbp), %rdx
movl $0x14, %ecx
movq %r13, %rsi
movq -0x30(%rbp), %rax
callq *0x48(%rax)
movq -0x30(%rbp), %rbx
cmpq $0x14, %rax
jne 0x8245
cmpl $0x7064b50, -0xc0(%rbp) # imm = 0x7064B50
jne 0x8245
movq -0xb8(%rbp), %rsi
movq (%rbx), %rax
addq $-0x38, %rax
cmpq %rax, %rsi
jbe 0x820d
movl $0x8, 0x1c(%rbx)
jmp 0x85da
movq -0x30(%rbp), %rax
movl $0x8, 0x1c(%rax)
jmp 0x85da
testq %r8, %r8
je 0x85da
movl $0x7, 0x1c(%r8)
jmp 0x85da
movq 0x60(%rbx), %rdi
leaq -0xa0(%rbp), %rdx
movl $0x38, %ecx
movq -0x30(%rbp), %rax
callq *0x48(%rax)
movq -0x30(%rbp), %rbx
cmpq $0x38, %rax
jne 0x8245
cmpl $0x6064b50, -0xa0(%rbp) # imm = 0x6064B50
jne 0x8245
movq 0x68(%rbx), %rax
movl $0x1, 0x64(%rax)
movzwl -0x10b6(%rbp), %eax
movl %eax, 0x10(%rbx)
movq 0x68(%rbx), %r13
cmpl $0x0, 0x64(%r13)
je 0x8274
cmpq $0x2b, -0x9c(%rbp)
ja 0x839a
movl $0x9, 0x1c(%rbx)
jmp 0x85da
movzwl -0x10b8(%rbp), %ecx
movzwl -0x10bc(%rbp), %r12d
movzwl -0x10ba(%rbp), %edx
movl -0x10b4(%rbp), %edi
movl -0x10b0(%rbp), %r15d
cmpl %ecx, %eax
jne 0x83d1
movl %r12d, %ecx
orl %edx, %ecx
je 0x82b7
movl %r12d, %ecx
xorl $0x1, %ecx
xorl $0x1, %edx
orl %ecx, %edx
jne 0x83d1
imull $0x2e, %eax, %ecx
cmpl %ecx, %edi
jb 0x8268
movl %edi, %ecx
leaq (%r15,%rcx), %rdx
cmpq (%rbx), %rdx
ja 0x8268
movq %r15, 0x8(%rbx)
movq $0x0, -0x40(%rbp)
testl %eax, %eax
je 0x85f2
movl %edi, -0x44(%rbp)
movq %r13, %r14
cmpq %rcx, 0x10(%r13)
movq %rcx, -0x50(%rbp)
jae 0x8310
movq %rbx, %rdi
movq %r13, %rsi
movq %rcx, %rdx
xorl %ecx, %ecx
callq 0xfd63
testl %eax, %eax
je 0x8403
movq 0x68(%rbx), %r14
movl 0x10(%rbx), %eax
movq -0x50(%rbp), %rcx
movq %rcx, 0x8(%r13)
movl %eax, %r13d
movq %r14, %rsi
cmpq %r13, 0x30(%r14)
jae 0x8341
leaq 0x20(%r14), %rsi
movq %rbx, %rdi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0xfd63
testl %eax, %eax
je 0x8403
movq 0x68(%rbx), %rsi
movq -0x50(%rbp), %rcx
btl $0xb, -0x34(%rbp)
movq %r13, 0x28(%r14)
jb 0x840f
movl 0x10(%rbx), %edx
movq %rsi, %rax
cmpq %rdx, 0x50(%rsi)
movl -0x44(%rbp), %r14d
jae 0x8391
movq %rsi, -0x60(%rbp)
addq $0x40, %rsi
xorl %r13d, %r13d
movq %rbx, %rdi
movq %rdx, -0x58(%rbp)
xorl %ecx, %ecx
callq 0xfd63
testl %eax, %eax
je 0x861b
movq 0x68(%rbx), %rax
movq -0x50(%rbp), %rcx
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %rdx, 0x48(%rsi)
movq %rax, %rsi
jmp 0x8413
cmpl $0x1, -0xb0(%rbp)
jne 0x83d1
cmpl $0x0, -0x7c(%rbp)
jne 0x83c5
movl -0x80(%rbp), %eax
movl -0x88(%rbp), %ecx
movl -0x84(%rbp), %esi
movl -0x78(%rbp), %edi
movl -0x74(%rbp), %edx
movl %eax, 0x10(%rbx)
testl %esi, %esi
je 0x83dd
movl $0x2, 0x1c(%rbx)
jmp 0x85da
movl $0xa, 0x1c(%rbx)
jmp 0x85da
testl %edx, %edx
je 0x83ed
movl $0xf, 0x1c(%rbx)
jmp 0x85da
movl -0x90(%rbp), %r12d
movl -0x8c(%rbp), %edx
movq -0x70(%rbp), %r15
jmp 0x8297
movl $0x10, 0x1c(%rbx)
jmp 0x85da
movl -0x44(%rbp), %r14d
movq 0x60(%rbx), %rdi
movq (%rsi), %rdx
movq %r15, %rsi
movq %rcx, %r15
callq *0x48(%rbx)
cmpq %r15, %rax
jne 0x85d3
cmpl $0x0, 0x10(%rbx)
je 0x85f2
movq 0x68(%rbx), %rax
movq (%rax), %rcx
xorl %edx, %edx
movq %rcx, %rdi
cmpl $0x2e, %r14d
jb 0x8268
cmpl $0x2014b50, (%rdi)      # imm = 0x2014B50
jne 0x8268
movl %r14d, %esi
movl %edi, %r8d
subl %ecx, %r8d
btl $0xb, -0x34(%rbp)
movq 0x20(%rax), %r9
movl %r8d, (%r9,%rdx,4)
jb 0x8478
movq 0x40(%rax), %r8
movl %edx, (%r8,%rdx,4)
movl 0x14(%rdi), %r10d
movl 0x18(%rdi), %r11d
movzwl 0x1c(%rdi), %r8d
movzwl 0x1e(%rdi), %ebx
movzwl %bx, %r9d
cmpl $0x0, 0x68(%rax)
jne 0x84b6
testw %bx, %bx
je 0x84b6
movl 0x2a(%rdi), %ebx
cmpl %r11d, %r10d
movl %r11d, %r14d
cmoval %r10d, %r14d
cmpl %ebx, %r14d
cmovbel %ebx, %r14d
cmpl $-0x1, %r14d
je 0x8582
cmpl $-0x1, %r10d
setne %bl
cmpl $-0x1, %r11d
setne %r14b
andb %bl, %r14b
cmpb $0x1, %r14b
jne 0x84ff
cmpl $0x0, 0xa(%rdi)
setne %bl
cmpl %r10d, %r11d
sete %r14b
orb %bl, %r14b
cmpb $0x1, %r14b
jne 0x860e
testl %r11d, %r11d
sete %r11b
testl %r10d, %r10d
setne %bl
orb %r11b, %bl
je 0x860e
movzwl 0x22(%rdi), %r11d
cmpl $0xffff, %r11d          # imm = 0xFFFF
je 0x8624
movl %esi, %r14d
cmpl $0x1, %r11d
je 0x8523
cmpl %r11d, %r12d
jne 0x8624
cmpl $-0x1, %r10d
je 0x8541
movl 0x2a(%rdi), %r11d
addq %r11, %r10
addq $0x1e, %r10
movq -0x30(%rbp), %r11
cmpq (%r11), %r10
ja 0x860e
testb $0x20, 0x9(%rdi)
movq -0x30(%rbp), %rbx
jne 0x8631
addl %r9d, %r8d
movzwl 0x20(%rdi), %r9d
addl %r9d, %r8d
addl $0x2e, %r8d
subl %r8d, %r14d
jb 0x8268
movl %r8d, %r8d
addq %r8, %rdi
incq %rdx
movl 0x10(%rbx), %esi
movq %rsi, -0x40(%rbp)
cmpq %rsi, %rdx
jb 0x8442
jmp 0x85f2
leaq (%rdi,%r8), %rbx
addq $0x2e, %rbx
movl %r9d, %r14d
cmpl $0x3, %r14d
jbe 0x860e
movl %r14d, %r14d
movzwl 0x2(%rbx), %r15d
leaq 0x4(%r15), %r13
cmpq %r14, %r13
ja 0x860e
cmpw $0x1, (%rbx)
je 0x85c0
addq %r13, %rbx
movl $0xfffffffc, %r13d      # imm = 0xFFFFFFFC
addl %r13d, %r14d
subl %r15d, %r14d
jne 0x858d
jmp 0x84b6
movabsq $0x100000001, %rbx      # imm = 0x100000001
movq %rbx, 0x64(%rax)
jmp 0x84b6
movl $0x14, 0x1c(%rbx)
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x1098, %rsp           # imm = 0x1098
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %r13d
btl $0xb, -0x34(%rbp)
jb 0x85dd
movq 0x68(%rbx), %rsi
movq -0x40(%rbp), %rdi
callq 0xf96f
jmp 0x85dd
movq -0x30(%rbp), %rax
movl $0x9, 0x1c(%rax)
jmp 0x85da
movl $0x10, 0x1c(%rbx)
jmp 0x85dd
movq -0x30(%rbp), %rax
movl $0xa, 0x1c(%rax)
jmp 0x85da
movl $0x5, 0x1c(%rbx)
jmp 0x85da