// File: jimmiebergmann[P]fbx-file/miniz.c
// Function: mz_zip_writer_add_from_zip_reader
mz_bool mz_zip_writer_add_from_zip_reader(mz_zip_archive *pZip, mz_zip_archive *pSource_zip, mz_uint src_file_index)
{
    mz_uint n, bit_flags, num_alignment_padding_bytes, src_central_dir_following_data_size;
    mz_uint64 src_archive_bytes_remaining, local_dir_header_ofs;
    mz_uint64 cur_src_file_ofs, cur_dst_file_ofs;
    mz_uint32 local_header_u32[(MZ_ZIP_LOCAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)];
    mz_uint8 *pLocal_header = (mz_uint8 *)local_header_u32;
    mz_uint8 new_central_header[MZ_ZIP_CENTRAL_DIR_HEADER_SIZE];
    size_t orig_central_dir_size;
    mz_zip_internal_state *pState;
    void *pBuf;
    const mz_uint8 *pSrc_central_header;
    mz_zip_archive_file_stat src_file_stat;
    mz_uint32 src_filename_len, src_comment_len, src_ext_len;
    mz_uint32 local_header_filename_size, local_header_extra_len;
    mz_uint64 local_header_comp_size, local_header_uncomp_size;
    mz_bool found_zip64_ext_data_in_ldir = MZ_FALSE;

    /* Sanity checks */
    if ((!pZip) || (!pZip->m_pState) || (pZip->m_zip_mode != MZ_ZIP_MODE_WRITING) || (!pSource_zip->m_pRead))
        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);

    pState = pZip->m_pState;

    /* Don't support copying files from zip64 archives to non-zip64, even though in some cases this is possible */
    if ((pSource_zip->m_pState->m_zip64) && (!pZip->m_pState->m_zip64))
        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);

    /* Get pointer to the source central dir header and crack it */
    if (NULL == (pSrc_central_header = mz_zip_get_cdh(pSource_zip, src_file_index)))
        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);

    if (MZ_READ_LE32(pSrc_central_header + MZ_ZIP_CDH_SIG_OFS) != MZ_ZIP_CENTRAL_DIR_HEADER_SIG)
        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);

    src_filename_len = MZ_READ_LE16(pSrc_central_header + MZ_ZIP_CDH_FILENAME_LEN_OFS);
    src_comment_len = MZ_READ_LE16(pSrc_central_header + MZ_ZIP_CDH_COMMENT_LEN_OFS);
    src_ext_len = MZ_READ_LE16(pSrc_central_header + MZ_ZIP_CDH_EXTRA_LEN_OFS);
    src_central_dir_following_data_size = src_filename_len + src_ext_len + src_comment_len;

    /* TODO: We don't support central dir's >= MZ_UINT32_MAX bytes right now (+32 fudge factor in case we need to add more extra data) */
    if ((pState->m_central_dir.m_size + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + src_central_dir_following_data_size + 32) >= MZ_UINT32_MAX)
        return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_CDIR_SIZE);

    num_alignment_padding_bytes = mz_zip_writer_compute_padding_needed_for_file_alignment(pZip);

    if (!pState->m_zip64)
    {
        if (pZip->m_total_files == MZ_UINT16_MAX)
            return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES);
    }
    else
    {
        /* TODO: Our zip64 support still has some 32-bit limits that may not be worth fixing. */
        if (pZip->m_total_files == MZ_UINT32_MAX)
            return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES);
    }

    if (!mz_zip_file_stat_internal(pSource_zip, src_file_index, pSrc_central_header, &src_file_stat, NULL))
        return MZ_FALSE;

    cur_src_file_ofs = src_file_stat.m_local_header_ofs;
    cur_dst_file_ofs = pZip->m_archive_size;

    /* Read the source archive's local dir header */
    if (pSource_zip->m_pRead(pSource_zip->m_pIO_opaque, cur_src_file_ofs, pLocal_header, MZ_ZIP_LOCAL_DIR_HEADER_SIZE) != MZ_ZIP_LOCAL_DIR_HEADER_SIZE)
        return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);

    if (MZ_READ_LE32(pLocal_header) != MZ_ZIP_LOCAL_DIR_HEADER_SIG)
        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);

    cur_src_file_ofs += MZ_ZIP_LOCAL_DIR_HEADER_SIZE;

    /* Compute the total size we need to copy (filename+extra data+compressed data) */
    local_header_filename_size = MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_FILENAME_LEN_OFS);
    local_header_extra_len = MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_EXTRA_LEN_OFS);
    local_header_comp_size = MZ_READ_LE32(pLocal_header + MZ_ZIP_LDH_COMPRESSED_SIZE_OFS);
    local_header_uncomp_size = MZ_READ_LE32(pLocal_header + MZ_ZIP_LDH_DECOMPRESSED_SIZE_OFS);
    src_archive_bytes_remaining = local_header_filename_size + local_header_extra_len + src_file_stat.m_comp_size;

    /* Try to find a zip64 extended information field */
    if ((local_header_extra_len) && ((local_header_comp_size == MZ_UINT32_MAX) || (local_header_uncomp_size == MZ_UINT32_MAX)))
    {
        mz_zip_array file_data_array;
        const mz_uint8 *pExtra_data;
        mz_uint32 extra_size_remaining = local_header_extra_len;

        mz_zip_array_init(&file_data_array, 1);
        if (!mz_zip_array_resize(pZip, &file_data_array, local_header_extra_len, MZ_FALSE))
        {
            return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
        }

        if (pSource_zip->m_pRead(pSource_zip->m_pIO_opaque, src_file_stat.m_local_header_ofs + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + local_header_filename_size, file_data_array.m_p, local_header_extra_len) != local_header_extra_len)
        {
            mz_zip_array_clear(pZip, &file_data_array);
            return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);
        }

        pExtra_data = (const mz_uint8 *)file_data_array.m_p;

        do
        {
            mz_uint32 field_id, field_data_size, field_total_size;

            if (extra_size_remaining < (sizeof(mz_uint16) * 2))
            {
                mz_zip_array_clear(pZip, &file_data_array);
                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));
            field_total_size = field_data_size + sizeof(mz_uint16) * 2;

            if (field_total_size > extra_size_remaining)
            {
                mz_zip_array_clear(pZip, &file_data_array);
                return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
            }

            if (field_id == MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID)
            {
                const mz_uint8 *pSrc_field_data = pExtra_data + sizeof(mz_uint32);

                if (field_data_size < sizeof(mz_uint64) * 2)
                {
                    mz_zip_array_clear(pZip, &file_data_array);
                    return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
                }

                local_header_uncomp_size = MZ_READ_LE64(pSrc_field_data);
                local_header_comp_size = MZ_READ_LE64(pSrc_field_data + sizeof(mz_uint64)); /* may be 0 if there's a descriptor */

                found_zip64_ext_data_in_ldir = MZ_TRUE;
                break;
            }

            pExtra_data += field_total_size;
            extra_size_remaining -= field_total_size;
        } while (extra_size_remaining);

        mz_zip_array_clear(pZip, &file_data_array);
    }

    if (!pState->m_zip64)
    {
        /* Try to detect if the new archive will most likely wind up too big and bail early (+(sizeof(mz_uint32) * 4) is for the optional descriptor which could be present, +64 is a fudge factor). */
        /* We also check when the archive is finalized so this doesn't need to be perfect. */
        mz_uint64 approx_new_archive_size = cur_dst_file_ofs + num_alignment_padding_bytes + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + src_archive_bytes_remaining + (sizeof(mz_uint32) * 4) +
                                            pState->m_central_dir.m_size + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + src_central_dir_following_data_size + MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE + 64;

        if (approx_new_archive_size >= MZ_UINT32_MAX)
            return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE);
    }

    /* Write dest archive padding */
    if (!mz_zip_writer_write_zeros(pZip, cur_dst_file_ofs, num_alignment_padding_bytes))
        return MZ_FALSE;

    cur_dst_file_ofs += num_alignment_padding_bytes;

    local_dir_header_ofs = cur_dst_file_ofs;
    if (pZip->m_file_offset_alignment)
    {
        MZ_ASSERT((local_dir_header_ofs & (pZip->m_file_offset_alignment - 1)) == 0);
    }

    /* The original zip's local header+ext block doesn't change, even with zip64, so we can just copy it over to the dest zip */
    if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_dst_file_ofs, pLocal_header, MZ_ZIP_LOCAL_DIR_HEADER_SIZE) != MZ_ZIP_LOCAL_DIR_HEADER_SIZE)
        return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED);

    cur_dst_file_ofs += MZ_ZIP_LOCAL_DIR_HEADER_SIZE;

    /* Copy over the source archive bytes to the dest archive, also ensure we have enough buf space to handle optional data descriptor */
    if (NULL == (pBuf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, (size_t)MZ_MAX(32U, MZ_MIN((mz_uint64)MZ_ZIP_MAX_IO_BUF_SIZE, src_archive_bytes_remaining)))))
        return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);

    while (src_archive_bytes_remaining)
    {
        n = (mz_uint)MZ_MIN((mz_uint64)MZ_ZIP_MAX_IO_BUF_SIZE, src_archive_bytes_remaining);
        if (pSource_zip->m_pRead(pSource_zip->m_pIO_opaque, cur_src_file_ofs, pBuf, n) != n)
        {
            pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf);
            return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);
        }
        cur_src_file_ofs += n;

        if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_dst_file_ofs, pBuf, n) != n)
        {
            pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf);
            return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED);
        }
        cur_dst_file_ofs += n;

        src_archive_bytes_remaining -= n;
    }

    /* Now deal with the optional data descriptor */
    bit_flags = MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_BIT_FLAG_OFS);
    if (bit_flags & 8)
    {
        /* Copy data descriptor */
        if ((pSource_zip->m_pState->m_zip64) || (found_zip64_ext_data_in_ldir))
        {
            /* src is zip64, dest must be zip64 */

            /* name			uint32_t's */
            /* id				1 (optional in zip64?) */
            /* crc			1 */
            /* comp_size	2 */
            /* uncomp_size 2 */
            if (pSource_zip->m_pRead(pSource_zip->m_pIO_opaque, cur_src_file_ofs, pBuf, (sizeof(mz_uint32) * 6)) != (sizeof(mz_uint32) * 6))
            {
                pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf);
                return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);
            }

            n = sizeof(mz_uint32) * ((MZ_READ_LE32(pBuf) == MZ_ZIP_DATA_DESCRIPTOR_ID) ? 6 : 5);
        }
        else
        {
            /* src is NOT zip64 */
            mz_bool has_id;

            if (pSource_zip->m_pRead(pSource_zip->m_pIO_opaque, cur_src_file_ofs, pBuf, sizeof(mz_uint32) * 4) != sizeof(mz_uint32) * 4)
            {
                pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf);
                return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);
            }

            has_id = (MZ_READ_LE32(pBuf) == MZ_ZIP_DATA_DESCRIPTOR_ID);

            if (pZip->m_pState->m_zip64)
            {
                /* dest is zip64, so upgrade the data descriptor */
                const mz_uint32 *pSrc_descriptor = (const mz_uint32 *)((const mz_uint8 *)pBuf + (has_id ? sizeof(mz_uint32) : 0));
                const mz_uint32 src_crc32 = pSrc_descriptor[0];
                const mz_uint64 src_comp_size = pSrc_descriptor[1];
                const mz_uint64 src_uncomp_size = pSrc_descriptor[2];

                mz_write_le32((mz_uint8 *)pBuf, MZ_ZIP_DATA_DESCRIPTOR_ID);
                mz_write_le32((mz_uint8 *)pBuf + sizeof(mz_uint32) * 1, src_crc32);
                mz_write_le64((mz_uint8 *)pBuf + sizeof(mz_uint32) * 2, src_comp_size);
                mz_write_le64((mz_uint8 *)pBuf + sizeof(mz_uint32) * 4, src_uncomp_size);

                n = sizeof(mz_uint32) * 6;
            }
            else
            {
                /* dest is NOT zip64, just copy it as-is */
                n = sizeof(mz_uint32) * (has_id ? 4 : 3);
            }
        }

        if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_dst_file_ofs, pBuf, n) != n)
        {
            pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf);
            return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED);
        }

        cur_src_file_ofs += n;
        cur_dst_file_ofs += n;
    }
    pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf);

    /* Finally, add the new central dir header */
    orig_central_dir_size = pState->m_central_dir.m_size;

    memcpy(new_central_header, pSrc_central_header, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE);

    if (pState->m_zip64)
    {
        /* This is the painful part: We need to write a new central dir header + ext block with updated zip64 fields, and ensure the old fields (if any) are not included. */
        const mz_uint8 *pSrc_ext = pSrc_central_header + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + src_filename_len;
        mz_zip_array new_ext_block;

        mz_zip_array_init(&new_ext_block, sizeof(mz_uint8));

        MZ_WRITE_LE32(new_central_header + MZ_ZIP_CDH_COMPRESSED_SIZE_OFS, MZ_UINT32_MAX);
        MZ_WRITE_LE32(new_central_header + MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS, MZ_UINT32_MAX);
        MZ_WRITE_LE32(new_central_header + MZ_ZIP_CDH_LOCAL_HEADER_OFS, MZ_UINT32_MAX);

        if (!mz_zip_writer_update_zip64_extension_block(&new_ext_block, pZip, pSrc_ext, src_ext_len, &src_file_stat.m_comp_size, &src_file_stat.m_uncomp_size, &local_dir_header_ofs, NULL))
        {
            mz_zip_array_clear(pZip, &new_ext_block);
            return MZ_FALSE;
        }

        MZ_WRITE_LE16(new_central_header + MZ_ZIP_CDH_EXTRA_LEN_OFS, new_ext_block.m_size);

        if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, new_central_header, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE))
        {
            mz_zip_array_clear(pZip, &new_ext_block);
            return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
        }

        if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, pSrc_central_header + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, src_filename_len))
        {
            mz_zip_array_clear(pZip, &new_ext_block);
            mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE);
            return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
        }

        if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, new_ext_block.m_p, new_ext_block.m_size))
        {
            mz_zip_array_clear(pZip, &new_ext_block);
            mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE);
            return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
        }

        if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, pSrc_central_header + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + src_filename_len + src_ext_len, src_comment_len))
        {
            mz_zip_array_clear(pZip, &new_ext_block);
            mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE);
            return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
        }

        mz_zip_array_clear(pZip, &new_ext_block);
    }
    else
    {
        /* sanity checks */
        if (cur_dst_file_ofs > MZ_UINT32_MAX)
            return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE);

        if (local_dir_header_ofs >= MZ_UINT32_MAX)
            return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE);

        MZ_WRITE_LE32(new_central_header + MZ_ZIP_CDH_LOCAL_HEADER_OFS, local_dir_header_ofs);

        if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, new_central_header, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE))
            return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);

        if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, pSrc_central_header + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, src_central_dir_following_data_size))
        {
            mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE);
            return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
        }
    }

    /* This shouldn't trigger unless we screwed up during the initial sanity checks */
    if (pState->m_central_dir.m_size >= MZ_UINT32_MAX)
    {
        /* TODO: Support central dirs >= 32-bits in size */
        mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE);
        return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_CDIR_SIZE);
    }

    n = (mz_uint32)orig_central_dir_size;
    if (!mz_zip_array_push_back(pZip, &pState->m_central_dir_offsets, &n, 1))
    {
        mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE);
        return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
    }

    pZip->m_total_files++;
    pZip->m_archive_size = cur_dst_file_ofs;

    return MZ_TRUE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd00, %rsp            # imm = 0xD00
movq %rdi, -0x6d8(%rbp)
movq %rsi, -0x6e0(%rbp)
movl %edx, -0x6e4(%rbp)
leaq -0x740(%rbp), %rax
movq %rax, -0x748(%rbp)
movl $0x0, -0xc24(%rbp)
cmpq $0x0, -0x6d8(%rbp)
je 0x1824a
movq -0x6d8(%rbp), %rax
cmpq $0x0, 0x68(%rax)
je 0x1824a
movq -0x6d8(%rbp), %rax
cmpl $0x2, 0x14(%rax)
jne 0x1824a
movq -0x6e0(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x1828b
movq -0x6d8(%rbp), %rax
movq %rax, -0x4d8(%rbp)
movl $0x18, -0x4dc(%rbp)
cmpq $0x0, -0x4d8(%rbp)
je 0x1827c
movl -0x4dc(%rbp), %ecx
movq -0x4d8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x6d8(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x790(%rbp)
movq -0x6e0(%rbp), %rax
movq 0x68(%rax), %rax
cmpl $0x0, 0x64(%rax)
je 0x18300
movq -0x6d8(%rbp), %rax
movq 0x68(%rax), %rax
cmpl $0x0, 0x64(%rax)
jne 0x18300
movq -0x6d8(%rbp), %rax
movq %rax, -0x4e8(%rbp)
movl $0x18, -0x4ec(%rbp)
cmpq $0x0, -0x4e8(%rbp)
je 0x182f1
movl -0x4ec(%rbp), %ecx
movq -0x4e8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x6e0(%rbp), %rcx
movl -0x6e4(%rbp), %eax
movq %rcx, -0x4c8(%rbp)
movl %eax, -0x4cc(%rbp)
cmpq $0x0, -0x4c8(%rbp)
je 0x18344
movq -0x4c8(%rbp), %rax
cmpq $0x0, 0x68(%rax)
je 0x18344
movl -0x4cc(%rbp), %eax
movq -0x4c8(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jb 0x18351
movq $0x0, -0x4c0(%rbp)
jmp 0x18381
movq -0x4c8(%rbp), %rax
movq 0x68(%rax), %rax
movq (%rax), %rax
movq -0x4c8(%rbp), %rcx
movq 0x68(%rcx), %rcx
movq 0x20(%rcx), %rcx
movl -0x4cc(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
addq %rcx, %rax
movq %rax, -0x4c0(%rbp)
movq -0x4c0(%rbp), %rcx
movq %rcx, -0x7a0(%rbp)
xorl %eax, %eax
cmpq %rcx, %rax
jne 0x183d7
movq -0x6d8(%rbp), %rax
movq %rax, -0x4f8(%rbp)
movl $0x18, -0x4fc(%rbp)
cmpq $0x0, -0x4f8(%rbp)
je 0x183c8
movl -0x4fc(%rbp), %ecx
movq -0x4f8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x7a0(%rbp), %rax
cmpl $0x2014b50, (%rax)      # imm = 0x2014B50
je 0x18427
movq -0x6d8(%rbp), %rax
movq %rax, -0x508(%rbp)
movl $0x9, -0x50c(%rbp)
cmpq $0x0, -0x508(%rbp)
je 0x18418
movl -0x50c(%rbp), %ecx
movq -0x508(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x7a0(%rbp), %rax
movzwl 0x1c(%rax), %eax
movl %eax, -0xbfc(%rbp)
movq -0x7a0(%rbp), %rax
movzwl 0x20(%rax), %eax
movl %eax, -0xc00(%rbp)
movq -0x7a0(%rbp), %rax
movzwl 0x1e(%rax), %eax
movl %eax, -0xc04(%rbp)
movl -0xbfc(%rbp), %eax
addl -0xc04(%rbp), %eax
addl -0xc00(%rbp), %eax
movl %eax, -0x6f4(%rbp)
movq -0x790(%rbp), %rax
movq 0x8(%rax), %rax
addq $0x2e, %rax
movl -0x6f4(%rbp), %ecx
addq %rcx, %rax
addq $0x20, %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jb 0x184d9
movq -0x6d8(%rbp), %rax
movq %rax, -0x518(%rbp)
movl $0xf, -0x51c(%rbp)
cmpq $0x0, -0x518(%rbp)
je 0x184ca
movl -0x51c(%rbp), %ecx
movq -0x518(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x6d8(%rbp), %rdi
callq 0x15320
movl %eax, -0x6f0(%rbp)
movq -0x790(%rbp), %rax
cmpl $0x0, 0x64(%rax)
jne 0x1854b
movq -0x6d8(%rbp), %rax
cmpl $0xffff, 0x10(%rax)     # imm = 0xFFFF
jne 0x18549
movq -0x6d8(%rbp), %rax
movq %rax, -0x528(%rbp)
movl $0x2, -0x52c(%rbp)
cmpq $0x0, -0x528(%rbp)
je 0x1853a
movl -0x52c(%rbp), %ecx
movq -0x528(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
jmp 0x1859b
movq -0x6d8(%rbp), %rax
cmpl $-0x1, 0x10(%rax)
jne 0x18599
movq -0x6d8(%rbp), %rax
movq %rax, -0x538(%rbp)
movl $0x2, -0x53c(%rbp)
cmpq $0x0, -0x538(%rbp)
je 0x1858a
movl -0x53c(%rbp), %ecx
movq -0x538(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
jmp 0x1859b
movq -0x6e0(%rbp), %rdi
movl -0x6e4(%rbp), %esi
movq -0x7a0(%rbp), %rdx
leaq -0xbf8(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0x11c80
cmpl $0x0, %eax
jne 0x185d4
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0xbb8(%rbp), %rax
movq %rax, -0x710(%rbp)
movq -0x6d8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x718(%rbp)
movq -0x6e0(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x6e0(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x710(%rbp), %rsi
movq -0x748(%rbp), %rdx
movl $0x1e, %ecx
callq *%rax
cmpq $0x1e, %rax
je 0x18665
movq -0x6d8(%rbp), %rax
movq %rax, -0x548(%rbp)
movl $0x14, -0x54c(%rbp)
cmpq $0x0, -0x548(%rbp)
je 0x18656
movl -0x54c(%rbp), %ecx
movq -0x548(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x748(%rbp), %rax
cmpl $0x4034b50, (%rax)      # imm = 0x4034B50
je 0x186b5
movq -0x6d8(%rbp), %rax
movq %rax, -0x558(%rbp)
movl $0x9, -0x55c(%rbp)
cmpq $0x0, -0x558(%rbp)
je 0x186a6
movl -0x55c(%rbp), %ecx
movq -0x558(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x710(%rbp), %rax
addq $0x1e, %rax
movq %rax, -0x710(%rbp)
movq -0x748(%rbp), %rax
movzwl 0x1a(%rax), %eax
movl %eax, -0xc08(%rbp)
movq -0x748(%rbp), %rax
movzwl 0x1c(%rax), %eax
movl %eax, -0xc0c(%rbp)
movq -0x748(%rbp), %rax
movl 0x12(%rax), %eax
movq %rax, -0xc18(%rbp)
movq -0x748(%rbp), %rax
movl 0x16(%rax), %eax
movq %rax, -0xc20(%rbp)
movl -0xc08(%rbp), %eax
addl -0xc0c(%rbp), %eax
movl %eax, %eax
addq -0xbd0(%rbp), %rax
movq %rax, -0x700(%rbp)
cmpl $0x0, -0xc0c(%rbp)
je 0x18c75
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0xc18(%rbp)
je 0x18754
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0xc20(%rbp)
jne 0x18c75
movl -0xc0c(%rbp), %eax
movl %eax, -0xc54(%rbp)
leaq -0xc48(%rbp), %rax
movq %rax, -0x4a0(%rbp)
movl $0x1, -0x4a4(%rbp)
movq -0x4a0(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movl -0x4a4(%rbp), %ecx
movq -0x4a0(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x6d8(%rbp), %rcx
movl -0xc0c(%rbp), %eax
movq %rcx, -0x3c0(%rbp)
leaq -0xc48(%rbp), %rcx
movq %rcx, -0x3c8(%rbp)
movq %rax, -0x3d0(%rbp)
movl $0x0, -0x3d4(%rbp)
movq -0x3d0(%rbp), %rax
movq -0x3c8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x18815
movq -0x3c0(%rbp), %rdi
movq -0x3c8(%rbp), %rsi
movq -0x3d0(%rbp), %rdx
movl -0x3d4(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x18813
movl $0x0, -0x3b4(%rbp)
jmp 0x18831
jmp 0x18815
movq -0x3d0(%rbp), %rcx
movq -0x3c8(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x3b4(%rbp)
cmpl $0x0, -0x3b4(%rbp)
jne 0x1887b
movq -0x6d8(%rbp), %rax
movq %rax, -0x568(%rbp)
movl $0x10, -0x56c(%rbp)
cmpq $0x0, -0x568(%rbp)
je 0x1886c
movl -0x56c(%rbp), %ecx
movq -0x568(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x6e0(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x6e0(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0xbb8(%rbp), %rsi
addq $0x1e, %rsi
movl -0xc08(%rbp), %ecx
addq %rcx, %rsi
movq -0xc48(%rbp), %rdx
movl -0xc0c(%rbp), %ecx
callq *%rax
movl -0xc0c(%rbp), %ecx
cmpq %rcx, %rax
je 0x18955
movq -0x6d8(%rbp), %rax
movq %rax, -0x308(%rbp)
leaq -0xc48(%rbp), %rax
movq %rax, -0x310(%rbp)
movq -0x308(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x308(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x310(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movq -0x310(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movq -0x6d8(%rbp), %rax
movq %rax, -0x578(%rbp)
movl $0x14, -0x57c(%rbp)
cmpq $0x0, -0x578(%rbp)
je 0x18946
movl -0x57c(%rbp), %ecx
movq -0x578(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0xc48(%rbp), %rax
movq %rax, -0xc50(%rbp)
movl -0xc54(%rbp), %eax
cmpq $0x4, %rax
jae 0x18a05
movq -0x6d8(%rbp), %rax
movq %rax, -0x318(%rbp)
leaq -0xc48(%rbp), %rax
movq %rax, -0x320(%rbp)
movq -0x318(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x318(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x320(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movq -0x320(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movq -0x6d8(%rbp), %rax
movq %rax, -0x588(%rbp)
movl $0x9, -0x58c(%rbp)
cmpq $0x0, -0x588(%rbp)
je 0x189f6
movl -0x58c(%rbp), %ecx
movq -0x588(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0xc50(%rbp), %rax
movzwl (%rax), %eax
movl %eax, -0xc58(%rbp)
movq -0xc50(%rbp), %rax
movzwl 0x2(%rax), %eax
movl %eax, -0xc5c(%rbp)
movl -0xc5c(%rbp), %eax
addq $0x4, %rax
movl %eax, -0xc60(%rbp)
movl -0xc60(%rbp), %eax
cmpl -0xc54(%rbp), %eax
jbe 0x18ada
movq -0x6d8(%rbp), %rax
movq %rax, -0x328(%rbp)
leaq -0xc48(%rbp), %rax
movq %rax, -0x330(%rbp)
movq -0x328(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x328(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x330(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movq -0x330(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movq -0x6d8(%rbp), %rax
movq %rax, -0x598(%rbp)
movl $0x9, -0x59c(%rbp)
cmpq $0x0, -0x598(%rbp)
je 0x18acb
movl -0x59c(%rbp), %ecx
movq -0x598(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
cmpl $0x1, -0xc58(%rbp)
jne 0x18bea
movq -0xc50(%rbp), %rax
addq $0x4, %rax
movq %rax, -0xc68(%rbp)
movl -0xc5c(%rbp), %eax
cmpq $0x10, %rax
jae 0x18b9b
movq -0x6d8(%rbp), %rax
movq %rax, -0x338(%rbp)
leaq -0xc48(%rbp), %rax
movq %rax, -0x340(%rbp)
movq -0x338(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x338(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x340(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movq -0x340(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movq -0x6d8(%rbp), %rax
movq %rax, -0x5a8(%rbp)
movl $0x9, -0x5ac(%rbp)
cmpq $0x0, -0x5a8(%rbp)
je 0x18b8c
movl -0x5ac(%rbp), %ecx
movq -0x5a8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0xc68(%rbp), %rax
movl (%rax), %eax
movq -0xc68(%rbp), %rcx
movl 0x4(%rcx), %ecx
shlq $0x20, %rcx
orq %rcx, %rax
movq %rax, -0xc20(%rbp)
movq -0xc68(%rbp), %rax
movl 0x8(%rax), %eax
movq -0xc68(%rbp), %rcx
movl 0xc(%rcx), %ecx
shlq $0x20, %rcx
orq %rcx, %rax
movq %rax, -0xc18(%rbp)
movl $0x1, -0xc24(%rbp)
jmp 0x18c24
movl -0xc60(%rbp), %ecx
movq -0xc50(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0xc50(%rbp)
movl -0xc60(%rbp), %ecx
movl -0xc54(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xc54(%rbp)
cmpl $0x0, -0xc54(%rbp)
jne 0x18963
movq -0x6d8(%rbp), %rax
movq %rax, -0x348(%rbp)
leaq -0xc48(%rbp), %rax
movq %rax, -0x350(%rbp)
movq -0x348(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x348(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x350(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movq -0x350(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movq -0x790(%rbp), %rax
cmpl $0x0, 0x64(%rax)
jne 0x18d1d
movq -0x718(%rbp), %rax
movl -0x6f0(%rbp), %ecx
addq %rcx, %rax
addq $0x1e, %rax
addq -0x700(%rbp), %rax
addq $0x10, %rax
movq -0x790(%rbp), %rcx
addq 0x8(%rcx), %rax
addq $0x2e, %rax
movl -0x6f4(%rbp), %ecx
addq %rcx, %rax
addq $0x16, %rax
addq $0x40, %rax
movq %rax, -0xc70(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0xc70(%rbp)
jb 0x18d1b
movq -0x6d8(%rbp), %rax
movq %rax, -0x5b8(%rbp)
movl $0x1d, -0x5bc(%rbp)
cmpq $0x0, -0x5b8(%rbp)
je 0x18d0c
movl -0x5bc(%rbp), %ecx
movq -0x5b8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
jmp 0x18d1d
movq -0x6d8(%rbp), %rdi
movq -0x718(%rbp), %rsi
movl -0x6f0(%rbp), %edx
callq 0x15380
cmpl $0x0, %eax
jne 0x18d4a
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movl -0x6f0(%rbp), %eax
addq -0x718(%rbp), %rax
movq %rax, -0x718(%rbp)
movq -0x718(%rbp), %rax
movq %rax, -0x708(%rbp)
movq -0x6d8(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x18dbc
movq -0x708(%rbp), %rax
movq -0x6d8(%rbp), %rcx
movq 0x20(%rcx), %rcx
subq $0x1, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
jne 0x18d9b
jmp 0x18dba
leaq 0x1d485(%rip), %rdi     # 0x36227
leaq 0x1d375(%rip), %rsi     # 0x3611e
movl $0x1adf, %edx           # imm = 0x1ADF
leaq 0x1d69f(%rip), %rcx     # 0x36454
callq 0x31d0
jmp 0x18dbc
movq -0x6d8(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x6d8(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x718(%rbp), %rsi
movq -0x748(%rbp), %rdx
movl $0x1e, %ecx
callq *%rax
cmpq $0x1e, %rax
je 0x18e2e
movq -0x6d8(%rbp), %rax
movq %rax, -0x5c8(%rbp)
movl $0x13, -0x5cc(%rbp)
cmpq $0x0, -0x5c8(%rbp)
je 0x18e1f
movl -0x5cc(%rbp), %ecx
movq -0x5c8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x718(%rbp), %rax
addq $0x1e, %rax
movq %rax, -0x718(%rbp)
movq -0x6d8(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0xcd0(%rbp)
movq -0x6d8(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0xcc8(%rbp)
movl $0x10000, %eax          # imm = 0x10000
cmpq -0x700(%rbp), %rax
jae 0x18e80
movl $0x10000, %eax          # imm = 0x10000
movq %rax, -0xcd8(%rbp)
jmp 0x18e8e
movq -0x700(%rbp), %rax
movq %rax, -0xcd8(%rbp)
movq -0xcd8(%rbp), %rcx
movl $0x20, %eax
cmpq %rcx, %rax
jbe 0x18ead
movl $0x20, %eax
movq %rax, -0xce0(%rbp)
jmp 0x18ee5
movl $0x10000, %eax          # imm = 0x10000
cmpq -0x700(%rbp), %rax
jae 0x18ec9
movl $0x10000, %eax          # imm = 0x10000
movq %rax, -0xce8(%rbp)
jmp 0x18ed7
movq -0x700(%rbp), %rax
movq %rax, -0xce8(%rbp)
movq -0xce8(%rbp), %rax
movq %rax, -0xce0(%rbp)
movq -0xcd0(%rbp), %rax
movq -0xcc8(%rbp), %rdi
movq -0xce0(%rbp), %rdx
movl $0x1, %esi
callq *%rax
movq %rax, %rcx
movq %rcx, -0x798(%rbp)
xorl %eax, %eax
cmpq %rcx, %rax
jne 0x18f53
movq -0x6d8(%rbp), %rax
movq %rax, -0x5d8(%rbp)
movl $0x10, -0x5dc(%rbp)
cmpq $0x0, -0x5d8(%rbp)
je 0x18f44
movl -0x5dc(%rbp), %ecx
movq -0x5d8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
jmp 0x18f55
cmpq $0x0, -0x700(%rbp)
je 0x1910e
movl $0x10000, %eax          # imm = 0x10000
cmpq -0x700(%rbp), %rax
jae 0x18f7f
movl $0x10000, %eax          # imm = 0x10000
movq %rax, -0xcf0(%rbp)
jmp 0x18f8d
movq -0x700(%rbp), %rax
movq %rax, -0xcf0(%rbp)
movq -0xcf0(%rbp), %rax
movl %eax, -0x6e8(%rbp)
movq -0x6e0(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x6e0(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x710(%rbp), %rsi
movq -0x798(%rbp), %rdx
movl -0x6e8(%rbp), %ecx
callq *%rax
movl -0x6e8(%rbp), %ecx
cmpq %rcx, %rax
je 0x19031
movq -0x6d8(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x6d8(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x798(%rbp), %rsi
callq *%rax
movq -0x6d8(%rbp), %rax
movq %rax, -0x5e8(%rbp)
movl $0x14, -0x5ec(%rbp)
cmpq $0x0, -0x5e8(%rbp)
je 0x19022
movl -0x5ec(%rbp), %ecx
movq -0x5e8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movl -0x6e8(%rbp), %eax
addq -0x710(%rbp), %rax
movq %rax, -0x710(%rbp)
movq -0x6d8(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x6d8(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x718(%rbp), %rsi
movq -0x798(%rbp), %rdx
movl -0x6e8(%rbp), %ecx
callq *%rax
movl -0x6e8(%rbp), %ecx
cmpq %rcx, %rax
je 0x190dc
movq -0x6d8(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x6d8(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x798(%rbp), %rsi
callq *%rax
movq -0x6d8(%rbp), %rax
movq %rax, -0x5f8(%rbp)
movl $0x13, -0x5fc(%rbp)
cmpq $0x0, -0x5f8(%rbp)
je 0x190cd
movl -0x5fc(%rbp), %ecx
movq -0x5f8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movl -0x6e8(%rbp), %eax
addq -0x718(%rbp), %rax
movq %rax, -0x718(%rbp)
movl -0x6e8(%rbp), %eax
movl %eax, %ecx
movq -0x700(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x700(%rbp)
jmp 0x18f55
movq -0x748(%rbp), %rax
movzwl 0x6(%rax), %eax
movl %eax, -0x6ec(%rbp)
movl -0x6ec(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x196e5
movq -0x6e0(%rbp), %rax
movq 0x68(%rax), %rax
cmpl $0x0, 0x64(%rax)
jne 0x1914f
cmpl $0x0, -0xc24(%rbp)
je 0x1920d
movq -0x6e0(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x6e0(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x710(%rbp), %rsi
movq -0x798(%rbp), %rdx
movl $0x18, %ecx
callq *%rax
cmpq $0x18, %rax
je 0x191e0
movq -0x6d8(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x6d8(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x798(%rbp), %rsi
callq *%rax
movq -0x6d8(%rbp), %rax
movq %rax, -0x608(%rbp)
movl $0x14, -0x60c(%rbp)
cmpq $0x0, -0x608(%rbp)
je 0x191d1
movl -0x60c(%rbp), %ecx
movq -0x608(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x798(%rbp), %rax
movl (%rax), %edx
movl $0x5, %eax
movl $0x6, %ecx
cmpl $0x8074b50, %edx        # imm = 0x8074B50
cmovel %ecx, %eax
cltq
shlq $0x2, %rax
movl %eax, -0x6e8(%rbp)
jmp 0x19626
movq -0x6e0(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x6e0(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x710(%rbp), %rsi
movq -0x798(%rbp), %rdx
movl $0x10, %ecx
callq *%rax
cmpq $0x10, %rax
je 0x1929e
movq -0x6d8(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x6d8(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x798(%rbp), %rsi
callq *%rax
movq -0x6d8(%rbp), %rax
movq %rax, -0x618(%rbp)
movl $0x14, -0x61c(%rbp)
cmpq $0x0, -0x618(%rbp)
je 0x1928f
movl -0x61c(%rbp), %ecx
movq -0x618(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x798(%rbp), %rax
cmpl $0x8074b50, (%rax)      # imm = 0x8074B50
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0xc74(%rbp)
movq -0x6d8(%rbp), %rax
movq 0x68(%rax), %rax
cmpl $0x0, 0x64(%rax)
je 0x19602
movq -0x798(%rbp), %rax
movl -0xc74(%rbp), %esi
xorl %ecx, %ecx
movl $0x4, %edx
cmpl $0x0, %esi
cmovneq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0xc80(%rbp)
movq -0xc80(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xc84(%rbp)
movq -0xc80(%rbp), %rax
movl 0x4(%rax), %eax
movq %rax, -0xc90(%rbp)
movq -0xc80(%rbp), %rax
movl 0x8(%rax), %eax
movq %rax, -0xc98(%rbp)
movq -0x798(%rbp), %rax
movq %rax, -0x2a8(%rbp)
movl $0x8074b50, -0x2ac(%rbp) # imm = 0x8074B50
movl -0x2ac(%rbp), %eax
movb %al, %cl
movq -0x2a8(%rbp), %rax
movb %cl, (%rax)
movl -0x2ac(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x2a8(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x2ac(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x2a8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x2ac(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x2a8(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x798(%rbp), %rcx
addq $0x4, %rcx
movl -0xc84(%rbp), %eax
movq %rcx, -0x2b8(%rbp)
movl %eax, -0x2bc(%rbp)
movl -0x2bc(%rbp), %eax
movb %al, %cl
movq -0x2b8(%rbp), %rax
movb %cl, (%rax)
movl -0x2bc(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x2b8(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x2bc(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x2b8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x2bc(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x2b8(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x798(%rbp), %rcx
addq $0x8, %rcx
movq -0xc90(%rbp), %rax
movq %rcx, -0x268(%rbp)
movq %rax, -0x270(%rbp)
movq -0x268(%rbp), %rcx
movq -0x270(%rbp), %rax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
movl -0x24c(%rbp), %eax
movb %al, %cl
movq -0x248(%rbp), %rax
movb %cl, (%rax)
movl -0x24c(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x248(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x24c(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x248(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x24c(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x248(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x268(%rbp), %rcx
addq $0x4, %rcx
movq -0x270(%rbp), %rax
shrq $0x20, %rax
movq %rcx, -0x258(%rbp)
movl %eax, -0x25c(%rbp)
movl -0x25c(%rbp), %eax
movb %al, %cl
movq -0x258(%rbp), %rax
movb %cl, (%rax)
movl -0x25c(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x258(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x25c(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x258(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x25c(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x258(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x798(%rbp), %rcx
addq $0x10, %rcx
movq -0xc98(%rbp), %rax
movq %rcx, -0x298(%rbp)
movq %rax, -0x2a0(%rbp)
movq -0x298(%rbp), %rcx
movq -0x2a0(%rbp), %rax
movq %rcx, -0x278(%rbp)
movl %eax, -0x27c(%rbp)
movl -0x27c(%rbp), %eax
movb %al, %cl
movq -0x278(%rbp), %rax
movb %cl, (%rax)
movl -0x27c(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x278(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x27c(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x278(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x27c(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x278(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x298(%rbp), %rcx
addq $0x4, %rcx
movq -0x2a0(%rbp), %rax
shrq $0x20, %rax
movq %rcx, -0x288(%rbp)
movl %eax, -0x28c(%rbp)
movl -0x28c(%rbp), %eax
movb %al, %cl
movq -0x288(%rbp), %rax
movb %cl, (%rax)
movl -0x28c(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x288(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x28c(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x288(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x28c(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x288(%rbp), %rax
movb %cl, 0x3(%rax)
movl $0x18, -0x6e8(%rbp)
jmp 0x19624
movl -0xc74(%rbp), %edx
movl $0x3, %eax
movl $0x4, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
cltq
shlq $0x2, %rax
movl %eax, -0x6e8(%rbp)
jmp 0x19626
movq -0x6d8(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x6d8(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x718(%rbp), %rsi
movq -0x798(%rbp), %rdx
movl -0x6e8(%rbp), %ecx
callq *%rax
movl -0x6e8(%rbp), %ecx
cmpq %rcx, %rax
je 0x196bd
movq -0x6d8(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x6d8(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x798(%rbp), %rsi
callq *%rax
movq -0x6d8(%rbp), %rax
movq %rax, -0x628(%rbp)
movl $0x13, -0x62c(%rbp)
cmpq $0x0, -0x628(%rbp)
je 0x196ae
movl -0x62c(%rbp), %ecx
movq -0x628(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movl -0x6e8(%rbp), %eax
addq -0x710(%rbp), %rax
movq %rax, -0x710(%rbp)
movl -0x6e8(%rbp), %eax
addq -0x718(%rbp), %rax
movq %rax, -0x718(%rbp)
movq -0x6d8(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x6d8(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x798(%rbp), %rsi
callq *%rax
movq -0x790(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x788(%rbp)
leaq -0x780(%rbp), %rdi
movq -0x7a0(%rbp), %rsi
movl $0x2e, %edx
callq 0x3280
movq -0x790(%rbp), %rax
cmpl $0x0, 0x64(%rax)
je 0x1a305
movq -0x7a0(%rbp), %rax
addq $0x2e, %rax
movl -0xbfc(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0xca0(%rbp)
leaq -0xcc0(%rbp), %rax
movq %rax, -0x4b0(%rbp)
movl $0x1, -0x4b4(%rbp)
movq -0x4b0(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movl -0x4b4(%rbp), %ecx
movq -0x4b0(%rbp), %rax
movl %ecx, 0x18(%rax)
leaq -0x780(%rbp), %rax
addq $0x14, %rax
movq %rax, -0x2c8(%rbp)
movl $0xffffffff, -0x2cc(%rbp) # imm = 0xFFFFFFFF
movl -0x2cc(%rbp), %eax
movb %al, %cl
movq -0x2c8(%rbp), %rax
movb %cl, (%rax)
movl -0x2cc(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x2c8(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x2cc(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x2c8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x2cc(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x2c8(%rbp), %rax
movb %cl, 0x3(%rax)
leaq -0x780(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x2d8(%rbp)
movl $0xffffffff, -0x2dc(%rbp) # imm = 0xFFFFFFFF
movl -0x2dc(%rbp), %eax
movb %al, %cl
movq -0x2d8(%rbp), %rax
movb %cl, (%rax)
movl -0x2dc(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x2d8(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x2dc(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x2d8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x2dc(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x2d8(%rbp), %rax
movb %cl, 0x3(%rax)
leaq -0x780(%rbp), %rax
addq $0x2a, %rax
movq %rax, -0x2e8(%rbp)
movl $0xffffffff, -0x2ec(%rbp) # imm = 0xFFFFFFFF
movl -0x2ec(%rbp), %eax
movb %al, %cl
movq -0x2e8(%rbp), %rax
movb %cl, (%rax)
movl -0x2ec(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x2e8(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x2ec(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x2e8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x2ec(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x2e8(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x6d8(%rbp), %rsi
movq -0xca0(%rbp), %rdx
movl -0xc04(%rbp), %ecx
leaq -0xbf8(%rbp), %r8
addq $0x28, %r8
leaq -0xbf8(%rbp), %r9
addq $0x30, %r9
leaq -0xcc0(%rbp), %rdi
leaq -0x708(%rbp), %rax
xorl %r10d, %r10d
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
callq 0x1ab40
cmpl $0x0, %eax
jne 0x1998b
movq -0x6d8(%rbp), %rax
movq %rax, -0x358(%rbp)
leaq -0xcc0(%rbp), %rax
movq %rax, -0x360(%rbp)
movq -0x358(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x358(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x360(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movq -0x360(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
leaq -0x780(%rbp), %rcx
addq $0x1e, %rcx
movq -0xcb8(%rbp), %rax
movq %rcx, -0x238(%rbp)
movw %ax, -0x23a(%rbp)
movw -0x23a(%rbp), %ax
movb %al, %cl
movq -0x238(%rbp), %rax
movb %cl, (%rax)
movzwl -0x23a(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x238(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x6d8(%rbp), %rdx
movq -0x790(%rbp), %rcx
leaq -0x780(%rbp), %rax
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq $0x2e, -0x48(%rbp)
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x50(%rbp), %rax
addq -0x48(%rbp), %rax
movq %rdx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq %rax, -0x20(%rbp)
movl $0x1, -0x24(%rbp)
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x19a5d
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movl -0x24(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x19a5b
movl $0x0, -0x4(%rbp)
jmp 0x19a70
jmp 0x19a5d
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
jne 0x19a7f
movl $0x0, -0x28(%rbp)
jmp 0x19ab7
movq -0x38(%rbp), %rax
movq (%rax), %rdi
movq -0x50(%rbp), %rax
movq -0x38(%rbp), %rcx
movl 0x18(%rcx), %ecx
imulq %rcx, %rax
addq %rax, %rdi
movq -0x40(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x38(%rbp), %rax
movl 0x18(%rax), %eax
imulq %rax, %rdx
callq 0x3280
movl $0x1, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
jne 0x19b53
movq -0x6d8(%rbp), %rax
movq %rax, -0x368(%rbp)
leaq -0xcc0(%rbp), %rax
movq %rax, -0x370(%rbp)
movq -0x368(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x368(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x370(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movq -0x370(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movq -0x6d8(%rbp), %rax
movq %rax, -0x638(%rbp)
movl $0x10, -0x63c(%rbp)
cmpq $0x0, -0x638(%rbp)
je 0x19b44
movl -0x63c(%rbp), %ecx
movq -0x638(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x6d8(%rbp), %rsi
movq -0x790(%rbp), %rdx
movq -0x7a0(%rbp), %rcx
addq $0x2e, %rcx
movl -0xbfc(%rbp), %eax
movq %rsi, -0x80(%rbp)
movq %rdx, -0x88(%rbp)
movq %rcx, -0x90(%rbp)
movq %rax, -0x98(%rbp)
movq -0x88(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x80(%rbp), %rdx
movq -0x88(%rbp), %rcx
movq -0xa0(%rbp), %rax
addq -0x98(%rbp), %rax
movq %rdx, -0x60(%rbp)
movq %rcx, -0x68(%rbp)
movq %rax, -0x70(%rbp)
movl $0x1, -0x74(%rbp)
movq -0x70(%rbp), %rax
movq -0x68(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x19bfb
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x70(%rbp), %rdx
movl -0x74(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x19bf9
movl $0x0, -0x54(%rbp)
jmp 0x19c0e
jmp 0x19bfb
movq -0x70(%rbp), %rcx
movq -0x68(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x54(%rbp)
cmpl $0x0, -0x54(%rbp)
jne 0x19c1d
movl $0x0, -0x78(%rbp)
jmp 0x19c67
movq -0x88(%rbp), %rax
movq (%rax), %rdi
movq -0xa0(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x18(%rcx), %ecx
imulq %rcx, %rax
addq %rax, %rdi
movq -0x90(%rbp), %rsi
movq -0x98(%rbp), %rdx
movq -0x88(%rbp), %rax
movl 0x18(%rax), %eax
imulq %rax, %rdx
callq 0x3280
movl $0x1, -0x78(%rbp)
cmpl $0x0, -0x78(%rbp)
jne 0x19d9a
movq -0x6d8(%rbp), %rax
movq %rax, -0x378(%rbp)
leaq -0xcc0(%rbp), %rax
movq %rax, -0x380(%rbp)
movq -0x378(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x378(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x380(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movq -0x380(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movq -0x6d8(%rbp), %rdx
movq -0x790(%rbp), %rcx
movq -0x788(%rbp), %rax
movq %rdx, -0x3e0(%rbp)
movq %rcx, -0x3e8(%rbp)
movq %rax, -0x3f0(%rbp)
movl $0x0, -0x3f4(%rbp)
movq -0x3f0(%rbp), %rax
movq -0x3e8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x19d3d
movq -0x3e0(%rbp), %rdi
movq -0x3e8(%rbp), %rsi
movq -0x3f0(%rbp), %rdx
movl -0x3f4(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x19d3b
movl $0x0, -0x3d8(%rbp)
jmp 0x19d59
jmp 0x19d3d
movq -0x3f0(%rbp), %rcx
movq -0x3e8(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x3d8(%rbp)
movq -0x6d8(%rbp), %rax
movq %rax, -0x648(%rbp)
movl $0x10, -0x64c(%rbp)
cmpq $0x0, -0x648(%rbp)
je 0x19d8b
movl -0x64c(%rbp), %ecx
movq -0x648(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x6d8(%rbp), %rsi
movq -0x790(%rbp), %rdx
movq -0xcc0(%rbp), %rcx
movq -0xcb8(%rbp), %rax
movq %rsi, -0xd0(%rbp)
movq %rdx, -0xd8(%rbp)
movq %rcx, -0xe0(%rbp)
movq %rax, -0xe8(%rbp)
movq -0xd8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xf0(%rbp)
movq -0xd0(%rbp), %rdx
movq -0xd8(%rbp), %rcx
movq -0xf0(%rbp), %rax
addq -0xe8(%rbp), %rax
movq %rdx, -0xb0(%rbp)
movq %rcx, -0xb8(%rbp)
movq %rax, -0xc0(%rbp)
movl $0x1, -0xc4(%rbp)
movq -0xc0(%rbp), %rax
movq -0xb8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x19e66
movq -0xb0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
movl -0xc4(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x19e64
movl $0x0, -0xa4(%rbp)
jmp 0x19e82
jmp 0x19e66
movq -0xc0(%rbp), %rcx
movq -0xb8(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0xa4(%rbp)
cmpl $0x0, -0xa4(%rbp)
jne 0x19e97
movl $0x0, -0xc8(%rbp)
jmp 0x19ee4
movq -0xd8(%rbp), %rax
movq (%rax), %rdi
movq -0xf0(%rbp), %rax
movq -0xd8(%rbp), %rcx
movl 0x18(%rcx), %ecx
imulq %rcx, %rax
addq %rax, %rdi
movq -0xe0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
movq -0xd8(%rbp), %rax
movl 0x18(%rax), %eax
imulq %rax, %rdx
callq 0x3280
movl $0x1, -0xc8(%rbp)
cmpl $0x0, -0xc8(%rbp)
jne 0x1a01a
movq -0x6d8(%rbp), %rax
movq %rax, -0x388(%rbp)
leaq -0xcc0(%rbp), %rax
movq %rax, -0x390(%rbp)
movq -0x388(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x388(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x390(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movq -0x390(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movq -0x6d8(%rbp), %rdx
movq -0x790(%rbp), %rcx
movq -0x788(%rbp), %rax
movq %rdx, -0x400(%rbp)
movq %rcx, -0x408(%rbp)
movq %rax, -0x410(%rbp)
movl $0x0, -0x414(%rbp)
movq -0x410(%rbp), %rax
movq -0x408(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x19fbd
movq -0x400(%rbp), %rdi
movq -0x408(%rbp), %rsi
movq -0x410(%rbp), %rdx
movl -0x414(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x19fbb
movl $0x0, -0x3f8(%rbp)
jmp 0x19fd9
jmp 0x19fbd
movq -0x410(%rbp), %rcx
movq -0x408(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x3f8(%rbp)
movq -0x6d8(%rbp), %rax
movq %rax, -0x658(%rbp)
movl $0x10, -0x65c(%rbp)
cmpq $0x0, -0x658(%rbp)
je 0x1a00b
movl -0x65c(%rbp), %ecx
movq -0x658(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x6d8(%rbp), %rsi
movq -0x790(%rbp), %rdx
movq -0x7a0(%rbp), %rcx
addq $0x2e, %rcx
movl -0xbfc(%rbp), %eax
addq %rax, %rcx
movl -0xc04(%rbp), %eax
addq %rax, %rcx
movl -0xc00(%rbp), %eax
movq %rsi, -0x120(%rbp)
movq %rdx, -0x128(%rbp)
movq %rcx, -0x130(%rbp)
movq %rax, -0x138(%rbp)
movq -0x128(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x140(%rbp)
movq -0x120(%rbp), %rdx
movq -0x128(%rbp), %rcx
movq -0x140(%rbp), %rax
addq -0x138(%rbp), %rax
movq %rdx, -0x100(%rbp)
movq %rcx, -0x108(%rbp)
movq %rax, -0x110(%rbp)
movl $0x1, -0x114(%rbp)
movq -0x110(%rbp), %rax
movq -0x108(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x1a0fb
movq -0x100(%rbp), %rdi
movq -0x108(%rbp), %rsi
movq -0x110(%rbp), %rdx
movl -0x114(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x1a0f9
movl $0x0, -0xf4(%rbp)
jmp 0x1a117
jmp 0x1a0fb
movq -0x110(%rbp), %rcx
movq -0x108(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0xf4(%rbp)
cmpl $0x0, -0xf4(%rbp)
jne 0x1a12c
movl $0x0, -0x118(%rbp)
jmp 0x1a179
movq -0x128(%rbp), %rax
movq (%rax), %rdi
movq -0x140(%rbp), %rax
movq -0x128(%rbp), %rcx
movl 0x18(%rcx), %ecx
imulq %rcx, %rax
addq %rax, %rdi
movq -0x130(%rbp), %rsi
movq -0x138(%rbp), %rdx
movq -0x128(%rbp), %rax
movl 0x18(%rax), %eax
imulq %rax, %rdx
callq 0x3280
movl $0x1, -0x118(%rbp)
cmpl $0x0, -0x118(%rbp)
jne 0x1a2af
movq -0x6d8(%rbp), %rax
movq %rax, -0x398(%rbp)
leaq -0xcc0(%rbp), %rax
movq %rax, -0x3a0(%rbp)
movq -0x398(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x398(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x3a0(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movq -0x3a0(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
movq -0x6d8(%rbp), %rdx
movq -0x790(%rbp), %rcx
movq -0x788(%rbp), %rax
movq %rdx, -0x420(%rbp)
movq %rcx, -0x428(%rbp)
movq %rax, -0x430(%rbp)
movl $0x0, -0x434(%rbp)
movq -0x430(%rbp), %rax
movq -0x428(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x1a252
movq -0x420(%rbp), %rdi
movq -0x428(%rbp), %rsi
movq -0x430(%rbp), %rdx
movl -0x434(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x1a250
movl $0x0, -0x418(%rbp)
jmp 0x1a26e
jmp 0x1a252
movq -0x430(%rbp), %rcx
movq -0x428(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x418(%rbp)
movq -0x6d8(%rbp), %rax
movq %rax, -0x668(%rbp)
movl $0x10, -0x66c(%rbp)
cmpq $0x0, -0x668(%rbp)
je 0x1a2a0
movl -0x66c(%rbp), %ecx
movq -0x668(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x6d8(%rbp), %rax
movq %rax, -0x3a8(%rbp)
leaq -0xcc0(%rbp), %rax
movq %rax, -0x3b0(%rbp)
movq -0x3a8(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x3a8(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x3b0(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movq -0x3b0(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x3190
jmp 0x1a7d7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x718(%rbp)
jbe 0x1a354
movq -0x6d8(%rbp), %rax
movq %rax, -0x678(%rbp)
movl $0x1d, -0x67c(%rbp)
cmpq $0x0, -0x678(%rbp)
je 0x1a345
movl -0x67c(%rbp), %ecx
movq -0x678(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x708(%rbp)
jb 0x1a3a3
movq -0x6d8(%rbp), %rax
movq %rax, -0x688(%rbp)
movl $0x1d, -0x68c(%rbp)
cmpq $0x0, -0x688(%rbp)
je 0x1a394
movl -0x68c(%rbp), %ecx
movq -0x688(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
leaq -0x780(%rbp), %rcx
addq $0x2a, %rcx
movq -0x708(%rbp), %rax
movq %rcx, -0x2f8(%rbp)
movl %eax, -0x2fc(%rbp)
movl -0x2fc(%rbp), %eax
movb %al, %cl
movq -0x2f8(%rbp), %rax
movb %cl, (%rax)
movl -0x2fc(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x2f8(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x2fc(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x2f8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x2fc(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x2f8(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x6d8(%rbp), %rdx
movq -0x790(%rbp), %rcx
leaq -0x780(%rbp), %rax
movq %rdx, -0x170(%rbp)
movq %rcx, -0x178(%rbp)
movq %rax, -0x180(%rbp)
movq $0x2e, -0x188(%rbp)
movq -0x178(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x190(%rbp)
movq -0x170(%rbp), %rdx
movq -0x178(%rbp), %rcx
movq -0x190(%rbp), %rax
addq -0x188(%rbp), %rax
movq %rdx, -0x150(%rbp)
movq %rcx, -0x158(%rbp)
movq %rax, -0x160(%rbp)
movl $0x1, -0x164(%rbp)
movq -0x160(%rbp), %rax
movq -0x158(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x1a4db
movq -0x150(%rbp), %rdi
movq -0x158(%rbp), %rsi
movq -0x160(%rbp), %rdx
movl -0x164(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x1a4d9
movl $0x0, -0x144(%rbp)
jmp 0x1a4f7
jmp 0x1a4db
movq -0x160(%rbp), %rcx
movq -0x158(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x144(%rbp)
cmpl $0x0, -0x144(%rbp)
jne 0x1a50c
movl $0x0, -0x168(%rbp)
jmp 0x1a559
movq -0x178(%rbp), %rax
movq (%rax), %rdi
movq -0x190(%rbp), %rax
movq -0x178(%rbp), %rcx
movl 0x18(%rcx), %ecx
imulq %rcx, %rax
addq %rax, %rdi
movq -0x180(%rbp), %rsi
movq -0x188(%rbp), %rdx
movq -0x178(%rbp), %rax
movl 0x18(%rax), %eax
imulq %rax, %rdx
callq 0x3280
movl $0x1, -0x168(%rbp)
cmpl $0x0, -0x168(%rbp)
jne 0x1a5a3
movq -0x6d8(%rbp), %rax
movq %rax, -0x698(%rbp)
movl $0x10, -0x69c(%rbp)
cmpq $0x0, -0x698(%rbp)
je 0x1a594
movl -0x69c(%rbp), %ecx
movq -0x698(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x6d8(%rbp), %rsi
movq -0x790(%rbp), %rdx
movq -0x7a0(%rbp), %rcx
addq $0x2e, %rcx
movl -0x6f4(%rbp), %eax
movq %rsi, -0x1c0(%rbp)
movq %rdx, -0x1c8(%rbp)
movq %rcx, -0x1d0(%rbp)
movq %rax, -0x1d8(%rbp)
movq -0x1c8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x1e0(%rbp)
movq -0x1c0(%rbp), %rdx
movq -0x1c8(%rbp), %rcx
movq -0x1e0(%rbp), %rax
addq -0x1d8(%rbp), %rax
movq %rdx, -0x1a0(%rbp)
movq %rcx, -0x1a8(%rbp)
movq %rax, -0x1b0(%rbp)
movl $0x1, -0x1b4(%rbp)
movq -0x1b0(%rbp), %rax
movq -0x1a8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x1a672
movq -0x1a0(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
movq -0x1b0(%rbp), %rdx
movl -0x1b4(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x1a670
movl $0x0, -0x194(%rbp)
jmp 0x1a68e
jmp 0x1a672
movq -0x1b0(%rbp), %rcx
movq -0x1a8(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x194(%rbp)
cmpl $0x0, -0x194(%rbp)
jne 0x1a6a3
movl $0x0, -0x1b8(%rbp)
jmp 0x1a6f0
movq -0x1c8(%rbp), %rax
movq (%rax), %rdi
movq -0x1e0(%rbp), %rax
movq -0x1c8(%rbp), %rcx
movl 0x18(%rcx), %ecx
imulq %rcx, %rax
addq %rax, %rdi
movq -0x1d0(%rbp), %rsi
movq -0x1d8(%rbp), %rdx
movq -0x1c8(%rbp), %rax
movl 0x18(%rax), %eax
imulq %rax, %rdx
callq 0x3280
movl $0x1, -0x1b8(%rbp)
cmpl $0x0, -0x1b8(%rbp)
jne 0x1a7d5
movq -0x6d8(%rbp), %rdx
movq -0x790(%rbp), %rcx
movq -0x788(%rbp), %rax
movq %rdx, -0x440(%rbp)
movq %rcx, -0x448(%rbp)
movq %rax, -0x450(%rbp)
movl $0x0, -0x454(%rbp)
movq -0x450(%rbp), %rax
movq -0x448(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x1a778
movq -0x440(%rbp), %rdi
movq -0x448(%rbp), %rsi
movq -0x450(%rbp), %rdx
movl -0x454(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x1a776
movl $0x0, -0x438(%rbp)
jmp 0x1a794
jmp 0x1a778
movq -0x450(%rbp), %rcx
movq -0x448(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x438(%rbp)
movq -0x6d8(%rbp), %rax
movq %rax, -0x6a8(%rbp)
movl $0x10, -0x6ac(%rbp)
cmpq $0x0, -0x6a8(%rbp)
je 0x1a7c6
movl -0x6ac(%rbp), %ecx
movq -0x6a8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
jmp 0x1a7d7
movq -0x790(%rbp), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, 0x8(%rax)
jb 0x1a8c5
movq -0x6d8(%rbp), %rdx
movq -0x790(%rbp), %rcx
movq -0x788(%rbp), %rax
movq %rdx, -0x460(%rbp)
movq %rcx, -0x468(%rbp)
movq %rax, -0x470(%rbp)
movl $0x0, -0x474(%rbp)
movq -0x470(%rbp), %rax
movq -0x468(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x1a868
movq -0x460(%rbp), %rdi
movq -0x468(%rbp), %rsi
movq -0x470(%rbp), %rdx
movl -0x474(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x1a866
movl $0x0, -0x458(%rbp)
jmp 0x1a884
jmp 0x1a868
movq -0x470(%rbp), %rcx
movq -0x468(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x458(%rbp)
movq -0x6d8(%rbp), %rax
movq %rax, -0x6b8(%rbp)
movl $0xf, -0x6bc(%rbp)
cmpq $0x0, -0x6b8(%rbp)
je 0x1a8b6
movl -0x6bc(%rbp), %ecx
movq -0x6b8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x788(%rbp), %rax
movl %eax, -0x6e8(%rbp)
movq -0x6d8(%rbp), %rcx
movq -0x790(%rbp), %rax
addq $0x20, %rax
movq %rcx, -0x210(%rbp)
movq %rax, -0x218(%rbp)
leaq -0x6e8(%rbp), %rax
movq %rax, -0x220(%rbp)
movq $0x1, -0x228(%rbp)
movq -0x218(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x230(%rbp)
movq -0x210(%rbp), %rdx
movq -0x218(%rbp), %rcx
movq -0x230(%rbp), %rax
addq -0x228(%rbp), %rax
movq %rdx, -0x1f0(%rbp)
movq %rcx, -0x1f8(%rbp)
movq %rax, -0x200(%rbp)
movl $0x1, -0x204(%rbp)
movq -0x200(%rbp), %rax
movq -0x1f8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x1a99f
movq -0x1f0(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
movq -0x200(%rbp), %rdx
movl -0x204(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x1a99d
movl $0x0, -0x1e4(%rbp)
jmp 0x1a9bb
jmp 0x1a99f
movq -0x200(%rbp), %rcx
movq -0x1f8(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x1e4(%rbp)
cmpl $0x0, -0x1e4(%rbp)
jne 0x1a9d0
movl $0x0, -0x208(%rbp)
jmp 0x1aa1d
movq -0x218(%rbp), %rax
movq (%rax), %rdi
movq -0x230(%rbp), %rax
movq -0x218(%rbp), %rcx
movl 0x18(%rcx), %ecx
imulq %rcx, %rax
addq %rax, %rdi
movq -0x220(%rbp), %rsi
movq -0x228(%rbp), %rdx
movq -0x218(%rbp), %rax
movl 0x18(%rax), %eax
imulq %rax, %rdx
callq 0x3280
movl $0x1, -0x208(%rbp)
cmpl $0x0, -0x208(%rbp)
jne 0x1aaff
movq -0x6d8(%rbp), %rdx
movq -0x790(%rbp), %rcx
movq -0x788(%rbp), %rax
movq %rdx, -0x480(%rbp)
movq %rcx, -0x488(%rbp)
movq %rax, -0x490(%rbp)
movl $0x0, -0x494(%rbp)
movq -0x490(%rbp), %rax
movq -0x488(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x1aaa5
movq -0x480(%rbp), %rdi
movq -0x488(%rbp), %rsi
movq -0x490(%rbp), %rdx
movl -0x494(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x1aaa3
movl $0x0, -0x478(%rbp)
jmp 0x1aac1
jmp 0x1aaa5
movq -0x490(%rbp), %rcx
movq -0x488(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x478(%rbp)
movq -0x6d8(%rbp), %rax
movq %rax, -0x6c8(%rbp)
movl $0x10, -0x6cc(%rbp)
cmpq $0x0, -0x6c8(%rbp)
je 0x1aaf3
movl -0x6cc(%rbp), %ecx
movq -0x6c8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x6d0(%rbp)
jmp 0x1ab2a
movq -0x6d8(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x718(%rbp), %rcx
movq -0x6d8(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x6d0(%rbp)
movl -0x6d0(%rbp), %eax
addq $0xd00, %rsp            # imm = 0xD00
popq %rbp
retq
nopl (%rax)