// File: jimmiebergmann[P]fbx-file/miniz.c
// Function: mz_zip_writer_add_mem_ex_v2
mz_bool mz_zip_writer_add_mem_ex_v2(mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size,
                                    mz_uint level_and_flags, mz_uint64 uncomp_size, mz_uint32 uncomp_crc32, MZ_TIME_T *last_modified,
                                    const char *user_extra_data, mz_uint user_extra_data_len, const char *user_extra_data_central, mz_uint user_extra_data_central_len)
{
    mz_uint16 method = 0, dos_time = 0, dos_date = 0;
    mz_uint level, ext_attributes = 0, num_alignment_padding_bytes;
    mz_uint64 local_dir_header_ofs = pZip->m_archive_size, cur_archive_file_ofs = pZip->m_archive_size, comp_size = 0;
    size_t archive_name_size;
    mz_uint8 local_dir_header[MZ_ZIP_LOCAL_DIR_HEADER_SIZE];
    tdefl_compressor *pComp = NULL;
    mz_bool store_data_uncompressed;
    mz_zip_internal_state *pState;
    mz_uint8 *pExtra_data = NULL;
    mz_uint32 extra_size = 0;
    mz_uint8 extra_data[MZ_ZIP64_MAX_CENTRAL_EXTRA_FIELD_SIZE];
    mz_uint16 bit_flags = 0;

    if ((int)level_and_flags < 0)
        level_and_flags = MZ_DEFAULT_LEVEL;

    if (uncomp_size || (buf_size && !(level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA)))
        bit_flags |= MZ_ZIP_LDH_BIT_FLAG_HAS_LOCATOR;

    if (!(level_and_flags & MZ_ZIP_FLAG_ASCII_FILENAME))
        bit_flags |= MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_UTF8;

    level = level_and_flags & 0xF;
    store_data_uncompressed = ((!level) || (level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA));

    if ((!pZip) || (!pZip->m_pState) || (pZip->m_zip_mode != MZ_ZIP_MODE_WRITING) || ((buf_size) && (!pBuf)) || (!pArchive_name) || ((comment_size) && (!pComment)) || (level > MZ_UBER_COMPRESSION))
        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);

    pState = pZip->m_pState;

    if (pState->m_zip64)
    {
        if (pZip->m_total_files == MZ_UINT32_MAX)
            return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES);
    }
    else
    {
        if (pZip->m_total_files == MZ_UINT16_MAX)
        {
            pState->m_zip64 = MZ_TRUE;
            /*return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); */
        }
        if ((buf_size > 0xFFFFFFFF) || (uncomp_size > 0xFFFFFFFF))
        {
            pState->m_zip64 = MZ_TRUE;
            /*return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); */
        }
    }

    if ((!(level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) && (uncomp_size))
        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);

    if (!mz_zip_writer_validate_archive_name(pArchive_name))
        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_FILENAME);

#ifndef MINIZ_NO_TIME
    if (last_modified != NULL)
    {
        mz_zip_time_t_to_dos_time(*last_modified, &dos_time, &dos_date);
    }
    else
    {
        MZ_TIME_T cur_time;
        time(&cur_time);
        mz_zip_time_t_to_dos_time(cur_time, &dos_time, &dos_date);
    }
#endif /* #ifndef MINIZ_NO_TIME */

    archive_name_size = strlen(pArchive_name);
    if (archive_name_size > MZ_UINT16_MAX)
        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_FILENAME);

    num_alignment_padding_bytes = mz_zip_writer_compute_padding_needed_for_file_alignment(pZip);

    /* miniz doesn't support central dirs >= MZ_UINT32_MAX bytes yet */
    if (((mz_uint64)pState->m_central_dir.m_size + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + archive_name_size + MZ_ZIP64_MAX_CENTRAL_EXTRA_FIELD_SIZE + comment_size) >= MZ_UINT32_MAX)
        return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_CDIR_SIZE);

    if (!pState->m_zip64)
    {
        /* Bail early if the archive would obviously become too large */
        if ((pZip->m_archive_size + num_alignment_padding_bytes + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + archive_name_size 
			+ MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + archive_name_size + comment_size + user_extra_data_len + 
			pState->m_central_dir.m_size + MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE + user_extra_data_central_len
			+ MZ_ZIP_DATA_DESCRIPTER_SIZE32) > 0xFFFFFFFF)
        {
            pState->m_zip64 = MZ_TRUE;
            /*return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); */
        }
    }

    if ((archive_name_size) && (pArchive_name[archive_name_size - 1] == '/'))
    {
        /* Set DOS Subdirectory attribute bit. */
        ext_attributes |= MZ_ZIP_DOS_DIR_ATTRIBUTE_BITFLAG;

        /* Subdirectories cannot contain data. */
        if ((buf_size) || (uncomp_size))
            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
    }

    /* Try to do any allocations before writing to the archive, so if an allocation fails the file remains unmodified. (A good idea if we're doing an in-place modification.) */
    if ((!mz_zip_array_ensure_room(pZip, &pState->m_central_dir, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + archive_name_size + comment_size + (pState->m_zip64 ? MZ_ZIP64_MAX_CENTRAL_EXTRA_FIELD_SIZE : 0))) || (!mz_zip_array_ensure_room(pZip, &pState->m_central_dir_offsets, 1)))
        return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);

    if ((!store_data_uncompressed) && (buf_size))
    {
        if (NULL == (pComp = (tdefl_compressor *)pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, sizeof(tdefl_compressor))))
            return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
    }

    if (!mz_zip_writer_write_zeros(pZip, cur_archive_file_ofs, num_alignment_padding_bytes))
    {
        pZip->m_pFree(pZip->m_pAlloc_opaque, pComp);
        return MZ_FALSE;
    }

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

    MZ_CLEAR_OBJ(local_dir_header);

    if (!store_data_uncompressed || (level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA))
    {
        method = MZ_DEFLATED;
    }

    if (pState->m_zip64)
    {
        if (uncomp_size >= MZ_UINT32_MAX || local_dir_header_ofs >= MZ_UINT32_MAX)
        {
            pExtra_data = extra_data;
            extra_size = mz_zip_writer_create_zip64_extra_data(extra_data, (uncomp_size >= MZ_UINT32_MAX) ? &uncomp_size : NULL,
                                                               (uncomp_size >= MZ_UINT32_MAX) ? &comp_size : NULL, (local_dir_header_ofs >= MZ_UINT32_MAX) ? &local_dir_header_ofs : NULL);
        }

        if (!mz_zip_writer_create_local_dir_header(pZip, local_dir_header, (mz_uint16)archive_name_size, extra_size + user_extra_data_len, 0, 0, 0, method, bit_flags, dos_time, dos_date))
            return mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR);

        if (pZip->m_pWrite(pZip->m_pIO_opaque, local_dir_header_ofs, local_dir_header, sizeof(local_dir_header)) != sizeof(local_dir_header))
            return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED);

        cur_archive_file_ofs += sizeof(local_dir_header);

        if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, pArchive_name, archive_name_size) != archive_name_size)
        {
            pZip->m_pFree(pZip->m_pAlloc_opaque, pComp);
            return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED);
        }
        cur_archive_file_ofs += archive_name_size;

        if (pExtra_data != NULL)
        {
            if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, extra_data, extra_size) != extra_size)
                return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED);

            cur_archive_file_ofs += extra_size;
        }
    }
    else
    {
        if ((comp_size > MZ_UINT32_MAX) || (cur_archive_file_ofs > MZ_UINT32_MAX))
            return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE);
        if (!mz_zip_writer_create_local_dir_header(pZip, local_dir_header, (mz_uint16)archive_name_size, user_extra_data_len, 0, 0, 0, method, bit_flags, dos_time, dos_date))
            return mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR);

        if (pZip->m_pWrite(pZip->m_pIO_opaque, local_dir_header_ofs, local_dir_header, sizeof(local_dir_header)) != sizeof(local_dir_header))
            return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED);

        cur_archive_file_ofs += sizeof(local_dir_header);

        if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, pArchive_name, archive_name_size) != archive_name_size)
        {
            pZip->m_pFree(pZip->m_pAlloc_opaque, pComp);
            return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED);
        }
        cur_archive_file_ofs += archive_name_size;
    }

    if (user_extra_data_len > 0)
    {
        if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, user_extra_data, user_extra_data_len) != user_extra_data_len)
            return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED);

        cur_archive_file_ofs += user_extra_data_len;
    }

    if (!(level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA))
    {
        uncomp_crc32 = (mz_uint32)mz_crc32(MZ_CRC32_INIT, (const mz_uint8 *)pBuf, buf_size);
        uncomp_size = buf_size;
        if (uncomp_size <= 3)
        {
            level = 0;
            store_data_uncompressed = MZ_TRUE;
        }
    }

    if (store_data_uncompressed)
    {
        if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, pBuf, buf_size) != buf_size)
        {
            pZip->m_pFree(pZip->m_pAlloc_opaque, pComp);
            return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED);
        }

        cur_archive_file_ofs += buf_size;
        comp_size = buf_size;
    }
    else if (buf_size)
    {
        mz_zip_writer_add_state state;

        state.m_pZip = pZip;
        state.m_cur_archive_file_ofs = cur_archive_file_ofs;
        state.m_comp_size = 0;

        if ((tdefl_init(pComp, mz_zip_writer_add_put_buf_callback, &state, tdefl_create_comp_flags_from_zip_params(level, -15, MZ_DEFAULT_STRATEGY)) != TDEFL_STATUS_OKAY) ||
            (tdefl_compress_buffer(pComp, pBuf, buf_size, TDEFL_FINISH) != TDEFL_STATUS_DONE))
        {
            pZip->m_pFree(pZip->m_pAlloc_opaque, pComp);
            return mz_zip_set_error(pZip, MZ_ZIP_COMPRESSION_FAILED);
        }

        comp_size = state.m_comp_size;
        cur_archive_file_ofs = state.m_cur_archive_file_ofs;
    }

    pZip->m_pFree(pZip->m_pAlloc_opaque, pComp);
    pComp = NULL;

    if (uncomp_size)
    {
        mz_uint8 local_dir_footer[MZ_ZIP_DATA_DESCRIPTER_SIZE64];
        mz_uint32 local_dir_footer_size = MZ_ZIP_DATA_DESCRIPTER_SIZE32;

        MZ_ASSERT(bit_flags & MZ_ZIP_LDH_BIT_FLAG_HAS_LOCATOR);

        MZ_WRITE_LE32(local_dir_footer + 0, MZ_ZIP_DATA_DESCRIPTOR_ID);
        MZ_WRITE_LE32(local_dir_footer + 4, uncomp_crc32);
        if (pExtra_data == NULL)
        {
            if (comp_size > MZ_UINT32_MAX)
                return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE);

            MZ_WRITE_LE32(local_dir_footer + 8, comp_size);
            MZ_WRITE_LE32(local_dir_footer + 12, uncomp_size);
        }
        else
        {
            MZ_WRITE_LE64(local_dir_footer + 8, comp_size);
            MZ_WRITE_LE64(local_dir_footer + 16, uncomp_size);
            local_dir_footer_size = MZ_ZIP_DATA_DESCRIPTER_SIZE64;
        }

        if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, local_dir_footer, local_dir_footer_size) != local_dir_footer_size)
            return MZ_FALSE;

        cur_archive_file_ofs += local_dir_footer_size;
    }

    if (pExtra_data != NULL)
    {
        extra_size = mz_zip_writer_create_zip64_extra_data(extra_data, (uncomp_size >= MZ_UINT32_MAX) ? &uncomp_size : NULL,
                                                           (uncomp_size >= MZ_UINT32_MAX) ? &comp_size : NULL, (local_dir_header_ofs >= MZ_UINT32_MAX) ? &local_dir_header_ofs : NULL);
    }

    if (!mz_zip_writer_add_to_central_dir(pZip, pArchive_name, (mz_uint16)archive_name_size, pExtra_data, extra_size, pComment,
                                          comment_size, uncomp_size, comp_size, uncomp_crc32, method, bit_flags, dos_time, dos_date, local_dir_header_ofs, ext_attributes,
                                          user_extra_data_central, user_extra_data_central_len))
        return MZ_FALSE;

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

    return MZ_TRUE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x458, %rsp            # imm = 0x458
movw %r9w, %ax
movl 0x48(%rbp), %r9d
movq 0x40(%rbp), %r9
movl 0x38(%rbp), %r9d
movq 0x30(%rbp), %r9
movq 0x28(%rbp), %r9
movl 0x20(%rbp), %r9d
movq 0x18(%rbp), %r9
movl 0x10(%rbp), %r9d
movq %rdi, -0x298(%rbp)
movq %rsi, -0x2a0(%rbp)
movq %rdx, -0x2a8(%rbp)
movq %rcx, -0x2b0(%rbp)
movq %r8, -0x2b8(%rbp)
movw %ax, -0x2ba(%rbp)
movw $0x0, -0x2bc(%rbp)
movw $0x0, -0x2be(%rbp)
movw $0x0, -0x2c0(%rbp)
movl $0x0, -0x2c8(%rbp)
movq -0x298(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x2d8(%rbp)
movq -0x298(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x2e0(%rbp)
movq $0x0, -0x2e8(%rbp)
movq $0x0, -0x318(%rbp)
movq $0x0, -0x330(%rbp)
movl $0x0, -0x334(%rbp)
movw $0x0, -0x352(%rbp)
cmpl $0x0, 0x10(%rbp)
jge 0x13aaa
movl $0x6, 0x10(%rbp)
cmpq $0x0, 0x18(%rbp)
jne 0x13ac8
cmpq $0x0, -0x2b0(%rbp)
je 0x13ad9
movl 0x10(%rbp), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
jne 0x13ad9
movzwl -0x352(%rbp), %eax
orl $0x8, %eax
movw %ax, -0x352(%rbp)
movl 0x10(%rbp), %eax
andl $0x10000, %eax          # imm = 0x10000
cmpl $0x0, %eax
jne 0x13af9
movzwl -0x352(%rbp), %eax
orl $0x800, %eax            # imm = 0x800
movw %ax, -0x352(%rbp)
movl 0x10(%rbp), %eax
andl $0xf, %eax
movl %eax, -0x2c4(%rbp)
movb $0x1, %al
cmpl $0x0, -0x2c4(%rbp)
movb %al, -0x395(%rbp)
je 0x13b2a
movl 0x10(%rbp), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
setne %al
movb %al, -0x395(%rbp)
movb -0x395(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x31c(%rbp)
cmpq $0x0, -0x298(%rbp)
je 0x13b9b
movq -0x298(%rbp), %rax
cmpq $0x0, 0x68(%rax)
je 0x13b9b
movq -0x298(%rbp), %rax
cmpl $0x2, 0x14(%rax)
jne 0x13b9b
cmpq $0x0, -0x2b0(%rbp)
je 0x13b74
cmpq $0x0, -0x2a8(%rbp)
je 0x13b9b
cmpq $0x0, -0x2a0(%rbp)
je 0x13b9b
cmpw $0x0, -0x2ba(%rbp)
je 0x13b92
cmpq $0x0, -0x2b8(%rbp)
je 0x13b9b
cmpl $0xa, -0x2c4(%rbp)
jbe 0x13bdc
movq -0x298(%rbp), %rax
movq %rax, -0x148(%rbp)
movl $0x18, -0x14c(%rbp)
cmpq $0x0, -0x148(%rbp)
je 0x13bcd
movl -0x14c(%rbp), %ecx
movq -0x148(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x298(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x328(%rbp)
movq -0x328(%rbp), %rax
cmpl $0x0, 0x64(%rax)
je 0x13c4b
movq -0x298(%rbp), %rax
cmpl $-0x1, 0x10(%rax)
jne 0x13c49
movq -0x298(%rbp), %rax
movq %rax, -0x158(%rbp)
movl $0x2, -0x15c(%rbp)
cmpq $0x0, -0x158(%rbp)
je 0x13c3a
movl -0x15c(%rbp), %ecx
movq -0x158(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
jmp 0x13c92
movq -0x298(%rbp), %rax
cmpl $0xffff, 0x10(%rax)     # imm = 0xFFFF
jne 0x13c69
movq -0x328(%rbp), %rax
movl $0x1, 0x64(%rax)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x2b0(%rbp)
ja 0x13c82
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, 0x18(%rbp)
jbe 0x13c90
movq -0x328(%rbp), %rax
movl $0x1, 0x64(%rax)
jmp 0x13c92
movl 0x10(%rbp), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
jne 0x13ce7
cmpq $0x0, 0x18(%rbp)
je 0x13ce7
movq -0x298(%rbp), %rax
movq %rax, -0x168(%rbp)
movl $0x18, -0x16c(%rbp)
cmpq $0x0, -0x168(%rbp)
je 0x13cd8
movl -0x16c(%rbp), %ecx
movq -0x168(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x2a0(%rbp), %rdi
callq 0x15220
cmpl $0x0, %eax
jne 0x13d39
movq -0x298(%rbp), %rax
movq %rax, -0x178(%rbp)
movl $0x19, -0x17c(%rbp)
cmpq $0x0, -0x178(%rbp)
je 0x13d2a
movl -0x17c(%rbp), %ecx
movq -0x178(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
cmpq $0x0, 0x28(%rbp)
je 0x13d5c
movq 0x28(%rbp), %rax
movq (%rax), %rdi
leaq -0x2be(%rbp), %rsi
leaq -0x2c0(%rbp), %rdx
callq 0x15290
jmp 0x13d82
leaq -0x360(%rbp), %rdi
callq 0x32c0
movq -0x360(%rbp), %rdi
leaq -0x2be(%rbp), %rsi
leaq -0x2c0(%rbp), %rdx
callq 0x15290
movq -0x2a0(%rbp), %rdi
callq 0x3140
movq %rax, -0x2f0(%rbp)
cmpq $0xffff, -0x2f0(%rbp) # imm = 0xFFFF
jbe 0x13de3
movq -0x298(%rbp), %rax
movq %rax, -0x188(%rbp)
movl $0x19, -0x18c(%rbp)
cmpq $0x0, -0x188(%rbp)
je 0x13dd4
movl -0x18c(%rbp), %ecx
movq -0x188(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x298(%rbp), %rdi
callq 0x15320
movl %eax, -0x2cc(%rbp)
movq -0x328(%rbp), %rax
movq 0x8(%rax), %rax
addq $0x2e, %rax
addq -0x2f0(%rbp), %rax
addq $0x1c, %rax
movzwl -0x2ba(%rbp), %ecx
addq %rcx, %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jb 0x13e64
movq -0x298(%rbp), %rax
movq %rax, -0x198(%rbp)
movl $0xf, -0x19c(%rbp)
cmpq $0x0, -0x198(%rbp)
je 0x13e55
movl -0x19c(%rbp), %ecx
movq -0x198(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x328(%rbp), %rax
cmpl $0x0, 0x64(%rax)
jne 0x13edd
movq -0x298(%rbp), %rax
movq (%rax), %rax
movl -0x2cc(%rbp), %ecx
addq %rcx, %rax
addq $0x1e, %rax
addq -0x2f0(%rbp), %rax
addq $0x2e, %rax
addq -0x2f0(%rbp), %rax
movzwl -0x2ba(%rbp), %ecx
addq %rcx, %rax
movl 0x38(%rbp), %ecx
addq %rcx, %rax
movq -0x328(%rbp), %rcx
addq 0x8(%rcx), %rax
addq $0x16, %rax
movl 0x48(%rbp), %ecx
addq %rcx, %rax
addq $0x10, %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jbe 0x13edb
movq -0x328(%rbp), %rax
movl $0x1, 0x64(%rax)
jmp 0x13edd
cmpq $0x0, -0x2f0(%rbp)
je 0x13f65
movq -0x2a0(%rbp), %rax
movq -0x2f0(%rbp), %rcx
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2f, %eax
jne 0x13f65
movl -0x2c8(%rbp), %eax
orl $0x10, %eax
movl %eax, -0x2c8(%rbp)
cmpq $0x0, -0x2b0(%rbp)
jne 0x13f22
cmpq $0x0, 0x18(%rbp)
je 0x13f63
movq -0x298(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movl $0x18, -0x1ac(%rbp)
cmpq $0x0, -0x1a8(%rbp)
je 0x13f54
movl -0x1ac(%rbp), %ecx
movq -0x1a8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
jmp 0x13f65
movq -0x298(%rbp), %rdx
movq -0x328(%rbp), %rcx
movq -0x2f0(%rbp), %rax
addq $0x2e, %rax
movzwl -0x2ba(%rbp), %esi
addq %rsi, %rax
movq -0x328(%rbp), %rsi
movl 0x64(%rsi), %r8d
xorl %esi, %esi
movl $0x1c, %edi
cmpl $0x0, %r8d
cmovneq %rdi, %rsi
addq %rsi, %rax
movq %rdx, -0x118(%rbp)
movq %rcx, -0x120(%rbp)
movq %rax, -0x128(%rbp)
movq -0x118(%rbp), %rdx
movq -0x120(%rbp), %rcx
movq -0x120(%rbp), %rax
movq 0x8(%rax), %rax
addq -0x128(%rbp), %rax
movq %rdx, -0x58(%rbp)
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movl $0x1, -0x6c(%rbp)
movq -0x68(%rbp), %rax
movq -0x60(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x1401f
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdx
movl -0x6c(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x1401d
movl $0x0, -0x50(%rbp)
jmp 0x14026
jmp 0x1401f
movl $0x1, -0x50(%rbp)
cmpl $0x0, -0x50(%rbp)
je 0x140cd
movq -0x298(%rbp), %rcx
movq -0x328(%rbp), %rax
addq $0x20, %rax
movq %rcx, -0x130(%rbp)
movq %rax, -0x138(%rbp)
movq $0x1, -0x140(%rbp)
movq -0x130(%rbp), %rdx
movq -0x138(%rbp), %rcx
movq -0x138(%rbp), %rax
movq 0x8(%rax), %rax
addq -0x140(%rbp), %rax
movq %rdx, -0x38(%rbp)
movq %rcx, -0x40(%rbp)
movq %rax, -0x48(%rbp)
movl $0x1, -0x4c(%rbp)
movq -0x48(%rbp), %rax
movq -0x40(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x140c0
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x48(%rbp), %rdx
movl -0x4c(%rbp), %ecx
callq 0x20220
cmpl $0x0, %eax
jne 0x140be
movl $0x0, -0x2c(%rbp)
jmp 0x140c7
jmp 0x140c0
movl $0x1, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0x1410e
movq -0x298(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movl $0x10, -0x1bc(%rbp)
cmpq $0x0, -0x1b8(%rbp)
je 0x140ff
movl -0x1bc(%rbp), %ecx
movq -0x1b8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
cmpl $0x0, -0x31c(%rbp)
jne 0x1419b
cmpq $0x0, -0x2b0(%rbp)
je 0x1419b
movq -0x298(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x40(%rcx), %rdi
movl $0x1, %esi
movl $0x4df78, %edx          # imm = 0x4DF78
callq *%rax
movq %rax, %rcx
movq %rcx, -0x318(%rbp)
xorl %eax, %eax
cmpq %rcx, %rax
jne 0x14199
movq -0x298(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movl $0x10, -0x1cc(%rbp)
cmpq $0x0, -0x1c8(%rbp)
je 0x1418a
movl -0x1cc(%rbp), %ecx
movq -0x1c8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
jmp 0x1419b
movq -0x298(%rbp), %rdi
movq -0x2e0(%rbp), %rsi
movl -0x2cc(%rbp), %edx
callq 0x15380
cmpl $0x0, %eax
jne 0x141e7
movq -0x298(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x318(%rbp), %rsi
callq *%rax
movl $0x0, -0x290(%rbp)
jmp 0x15204
movl -0x2cc(%rbp), %eax
addq -0x2d8(%rbp), %rax
movq %rax, -0x2d8(%rbp)
movq -0x298(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x1424b
movq -0x2d8(%rbp), %rax
movq -0x298(%rbp), %rcx
movq 0x20(%rcx), %rcx
subq $0x1, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
jne 0x1422a
jmp 0x14249
leaq 0x21ff6(%rip), %rdi     # 0x36227
leaq 0x21ee6(%rip), %rsi     # 0x3611e
movl $0x17fb, %edx           # imm = 0x17FB
leaq 0x22025(%rip), %rcx     # 0x36269
callq 0x31d0
jmp 0x1424b
movl -0x2cc(%rbp), %eax
addq -0x2e0(%rbp), %rax
movq %rax, -0x2e0(%rbp)
leaq -0x310(%rbp), %rdi
xorl %esi, %esi
movl $0x1e, %edx
callq 0x3190
cmpl $0x0, -0x31c(%rbp)
je 0x14288
movl 0x10(%rbp), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x14291
movw $0x8, -0x2bc(%rbp)
movq -0x328(%rbp), %rax
cmpl $0x0, 0x64(%rax)
je 0x14621
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, 0x18(%rbp)
jae 0x142bf
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x2d8(%rbp)
jb 0x14390
leaq -0x350(%rbp), %rax
movq %rax, -0x330(%rbp)
leaq -0x350(%rbp), %rax
movq %rax, -0x3a0(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, 0x18(%rbp)
jb 0x142f3
leaq 0x18(%rbp), %rax
movq %rax, -0x3a8(%rbp)
jmp 0x142fe
xorl %eax, %eax
movq %rax, -0x3a8(%rbp)
jmp 0x142fe
movq -0x3a8(%rbp), %rax
movq %rax, -0x3b0(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, 0x18(%rbp)
jb 0x14327
leaq -0x2e8(%rbp), %rax
movq %rax, -0x3b8(%rbp)
jmp 0x14332
xorl %eax, %eax
movq %rax, -0x3b8(%rbp)
jmp 0x14332
movq -0x3b8(%rbp), %rax
movq %rax, -0x3c0(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x2d8(%rbp)
jb 0x1435e
leaq -0x2d8(%rbp), %rax
movq %rax, -0x3c8(%rbp)
jmp 0x14369
xorl %eax, %eax
movq %rax, -0x3c8(%rbp)
jmp 0x14369
movq -0x3c0(%rbp), %rdx
movq -0x3b0(%rbp), %rsi
movq -0x3a0(%rbp), %rdi
movq -0x3c8(%rbp), %rcx
callq 0x154b0
movl %eax, -0x334(%rbp)
movq -0x298(%rbp), %rdi
leaq -0x310(%rbp), %rsi
movq -0x2f0(%rbp), %rax
movw %ax, %dx
movl -0x334(%rbp), %eax
addl 0x38(%rbp), %eax
movw %ax, %cx
movw -0x2bc(%rbp), %r11w
movw -0x352(%rbp), %r10w
movw -0x2be(%rbp), %ax
xorl %r8d, %r8d
movl %r8d, %r9d
xorl %r8d, %r8d
movzwl %dx, %edx
movzwl %cx, %ecx
movq %r9, %r8
movl $0x0, (%rsp)
movzwl %r11w, %r11d
movl %r11d, 0x8(%rsp)
movzwl %r10w, %r10d
movl %r10d, 0x10(%rsp)
movzwl %ax, %eax
movl %eax, 0x18(%rsp)
movzwl -0x2c0(%rbp), %eax
movl %eax, 0x20(%rsp)
callq 0x158b0
cmpl $0x0, %eax
jne 0x14453
movq -0x298(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movl $0x1b, -0x1dc(%rbp)
cmpq $0x0, -0x1d8(%rbp)
je 0x14444
movl -0x1dc(%rbp), %ecx
movq -0x1d8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x298(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x2d8(%rbp), %rsi
leaq -0x310(%rbp), %rdx
movl $0x1e, %ecx
callq *%rax
cmpq $0x1e, %rax
je 0x144c5
movq -0x298(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movl $0x13, -0x1ec(%rbp)
cmpq $0x0, -0x1e8(%rbp)
je 0x144b6
movl -0x1ec(%rbp), %ecx
movq -0x1e8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x2e0(%rbp), %rax
addq $0x1e, %rax
movq %rax, -0x2e0(%rbp)
movq -0x298(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x2e0(%rbp), %rsi
movq -0x2a0(%rbp), %rdx
movq -0x2f0(%rbp), %rcx
callq *%rax
cmpq -0x2f0(%rbp), %rax
je 0x1456d
movq -0x298(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x318(%rbp), %rsi
callq *%rax
movq -0x298(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movl $0x13, -0x1fc(%rbp)
cmpq $0x0, -0x1f8(%rbp)
je 0x1455e
movl -0x1fc(%rbp), %ecx
movq -0x1f8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x2f0(%rbp), %rax
addq -0x2e0(%rbp), %rax
movq %rax, -0x2e0(%rbp)
cmpq $0x0, -0x330(%rbp)
je 0x1461c
movq -0x298(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x2e0(%rbp), %rsi
leaq -0x350(%rbp), %rdx
movl -0x334(%rbp), %ecx
callq *%rax
movl -0x334(%rbp), %ecx
cmpq %rcx, %rax
je 0x14608
movq -0x298(%rbp), %rax
movq %rax, -0x208(%rbp)
movl $0x13, -0x20c(%rbp)
cmpq $0x0, -0x208(%rbp)
je 0x145f9
movl -0x20c(%rbp), %ecx
movq -0x208(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movl -0x334(%rbp), %eax
addq -0x2e0(%rbp), %rax
movq %rax, -0x2e0(%rbp)
jmp 0x1486a
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x2e8(%rbp)
ja 0x1463d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x2e0(%rbp)
jbe 0x1467e
movq -0x298(%rbp), %rax
movq %rax, -0x218(%rbp)
movl $0x1d, -0x21c(%rbp)
cmpq $0x0, -0x218(%rbp)
je 0x1466f
movl -0x21c(%rbp), %ecx
movq -0x218(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x298(%rbp), %rdi
leaq -0x310(%rbp), %rsi
movq -0x2f0(%rbp), %rax
movw %ax, %dx
movl 0x38(%rbp), %eax
movw %ax, %cx
movw -0x2bc(%rbp), %r11w
movw -0x352(%rbp), %r10w
movw -0x2be(%rbp), %ax
xorl %r8d, %r8d
movl %r8d, %r9d
xorl %r8d, %r8d
movzwl %dx, %edx
movzwl %cx, %ecx
movq %r9, %r8
movl $0x0, (%rsp)
movzwl %r11w, %r11d
movl %r11d, 0x8(%rsp)
movzwl %r10w, %r10d
movl %r10d, 0x10(%rsp)
movzwl %ax, %eax
movl %eax, 0x18(%rsp)
movzwl -0x2c0(%rbp), %eax
movl %eax, 0x20(%rsp)
callq 0x158b0
cmpl $0x0, %eax
jne 0x1473b
movq -0x298(%rbp), %rax
movq %rax, -0x228(%rbp)
movl $0x1b, -0x22c(%rbp)
cmpq $0x0, -0x228(%rbp)
je 0x1472c
movl -0x22c(%rbp), %ecx
movq -0x228(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x298(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x2d8(%rbp), %rsi
leaq -0x310(%rbp), %rdx
movl $0x1e, %ecx
callq *%rax
cmpq $0x1e, %rax
je 0x147ad
movq -0x298(%rbp), %rax
movq %rax, -0x238(%rbp)
movl $0x13, -0x23c(%rbp)
cmpq $0x0, -0x238(%rbp)
je 0x1479e
movl -0x23c(%rbp), %ecx
movq -0x238(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x2e0(%rbp), %rax
addq $0x1e, %rax
movq %rax, -0x2e0(%rbp)
movq -0x298(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x2e0(%rbp), %rsi
movq -0x2a0(%rbp), %rdx
movq -0x2f0(%rbp), %rcx
callq *%rax
cmpq -0x2f0(%rbp), %rax
je 0x14855
movq -0x298(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x318(%rbp), %rsi
callq *%rax
movq -0x298(%rbp), %rax
movq %rax, -0x248(%rbp)
movl $0x13, -0x24c(%rbp)
cmpq $0x0, -0x248(%rbp)
je 0x14846
movl -0x24c(%rbp), %ecx
movq -0x248(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x2f0(%rbp), %rax
addq -0x2e0(%rbp), %rax
movq %rax, -0x2e0(%rbp)
cmpl $0x0, 0x38(%rbp)
jbe 0x148f4
movq -0x298(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x2e0(%rbp), %rsi
movq 0x30(%rbp), %rdx
movl 0x38(%rbp), %ecx
callq *%rax
movl 0x38(%rbp), %ecx
cmpq %rcx, %rax
je 0x148e3
movq -0x298(%rbp), %rax
movq %rax, -0x258(%rbp)
movl $0x13, -0x25c(%rbp)
cmpq $0x0, -0x258(%rbp)
je 0x148d4
movl -0x25c(%rbp), %ecx
movq -0x258(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movl 0x38(%rbp), %eax
addq -0x2e0(%rbp), %rax
movq %rax, -0x2e0(%rbp)
movl 0x10(%rbp), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
jne 0x14943
movq -0x2a8(%rbp), %rsi
movq -0x2b0(%rbp), %rdx
xorl %eax, %eax
movl %eax, %edi
callq 0x3910
movl %eax, 0x20(%rbp)
movq -0x2b0(%rbp), %rax
movq %rax, 0x18(%rbp)
cmpq $0x3, 0x18(%rbp)
ja 0x14941
movl $0x0, -0x2c4(%rbp)
movl $0x1, -0x31c(%rbp)
jmp 0x14943
cmpl $0x0, -0x31c(%rbp)
je 0x14a0e
movq -0x298(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x2e0(%rbp), %rsi
movq -0x2a8(%rbp), %rdx
movq -0x2b0(%rbp), %rcx
callq *%rax
cmpq -0x2b0(%rbp), %rax
je 0x149e6
movq -0x298(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x318(%rbp), %rsi
callq *%rax
movq -0x298(%rbp), %rax
movq %rax, -0x268(%rbp)
movl $0x13, -0x26c(%rbp)
cmpq $0x0, -0x268(%rbp)
je 0x149d7
movl -0x26c(%rbp), %ecx
movq -0x268(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x2b0(%rbp), %rax
addq -0x2e0(%rbp), %rax
movq %rax, -0x2e0(%rbp)
movq -0x2b0(%rbp), %rax
movq %rax, -0x2e8(%rbp)
jmp 0x14b26
cmpq $0x0, -0x2b0(%rbp)
je 0x14b24
movq -0x298(%rbp), %rax
movq %rax, -0x378(%rbp)
movq -0x2e0(%rbp), %rax
movq %rax, -0x370(%rbp)
movq $0x0, -0x368(%rbp)
movq -0x318(%rbp), %rax
movq %rax, -0x3d0(%rbp)
movl -0x2c4(%rbp), %edi
movl $0xfffffff1, %esi       # imm = 0xFFFFFFF1
xorl %edx, %edx
callq 0x3cc0
movq -0x3d0(%rbp), %rdi
movl %eax, %ecx
leaq 0x122d(%rip), %rsi      # 0x15ca0
leaq -0x378(%rbp), %rdx
callq 0x3da0
cmpl $0x0, %eax
jne 0x14aa8
movq -0x318(%rbp), %rdi
movq -0x2a8(%rbp), %rsi
movq -0x2b0(%rbp), %rdx
movl $0x4, %ecx
callq 0xaed0
cmpl $0x1, %eax
je 0x14b08
movq -0x298(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x318(%rbp), %rsi
callq *%rax
movq -0x298(%rbp), %rax
movq %rax, -0x278(%rbp)
movl $0xc, -0x27c(%rbp)
cmpq $0x0, -0x278(%rbp)
je 0x14af9
movl -0x27c(%rbp), %ecx
movq -0x278(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x368(%rbp), %rax
movq %rax, -0x2e8(%rbp)
movq -0x370(%rbp), %rax
movq %rax, -0x2e0(%rbp)
jmp 0x14b26
movq -0x298(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x40(%rcx), %rdi
movq -0x318(%rbp), %rsi
callq *%rax
movq $0x0, -0x318(%rbp)
cmpq $0x0, 0x18(%rbp)
je 0x14fe4
movl $0x10, -0x394(%rbp)
movzwl -0x352(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x14b76
jmp 0x14b95
leaq 0x217b6(%rip), %rdi     # 0x36333
leaq 0x2159a(%rip), %rsi     # 0x3611e
movl $0x1873, %edx           # imm = 0x1873
leaq 0x216d9(%rip), %rcx     # 0x36269
callq 0x31d0
leaq -0x390(%rbp), %rax
movq %rax, -0xd8(%rbp)
movl $0x8074b50, -0xdc(%rbp) # imm = 0x8074B50
movl -0xdc(%rbp), %eax
movb %al, %cl
movq -0xd8(%rbp), %rax
movb %cl, (%rax)
movl -0xdc(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0xd8(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0xdc(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0xd8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0xdc(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0xd8(%rbp), %rax
movb %cl, 0x3(%rax)
leaq -0x390(%rbp), %rcx
addq $0x4, %rcx
movl 0x20(%rbp), %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %eax
movb %al, %cl
movq -0xe8(%rbp), %rax
movb %cl, (%rax)
movl -0xec(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0xe8(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0xec(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0xe8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0xec(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0xe8(%rbp), %rax
movb %cl, 0x3(%rax)
cmpq $0x0, -0x330(%rbp)
jne 0x14da5
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x2e8(%rbp)
jbe 0x14cc5
movq -0x298(%rbp), %rax
movq %rax, -0x288(%rbp)
movl $0x1d, -0x28c(%rbp)
cmpq $0x0, -0x288(%rbp)
je 0x14cb6
movl -0x28c(%rbp), %ecx
movq -0x288(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x290(%rbp)
jmp 0x15204
leaq -0x390(%rbp), %rcx
addq $0x8, %rcx
movq -0x2e8(%rbp), %rax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
movl -0xfc(%rbp), %eax
movb %al, %cl
movq -0xf8(%rbp), %rax
movb %cl, (%rax)
movl -0xfc(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0xf8(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0xfc(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0xf8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0xfc(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0xf8(%rbp), %rax
movb %cl, 0x3(%rax)
leaq -0x390(%rbp), %rcx
addq $0xc, %rcx
movq 0x18(%rbp), %rax
movq %rcx, -0x108(%rbp)
movl %eax, -0x10c(%rbp)
movl -0x10c(%rbp), %eax
movb %al, %cl
movq -0x108(%rbp), %rax
movb %cl, (%rax)
movl -0x10c(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x108(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x10c(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x108(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x10c(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x108(%rbp), %rax
movb %cl, 0x3(%rax)
jmp 0x14f8a
leaq -0x390(%rbp), %rcx
addq $0x8, %rcx
movq -0x2e8(%rbp), %rax
movq %rcx, -0x98(%rbp)
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rcx
movq -0xa0(%rbp), %rax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movb %cl, (%rax)
movl -0x7c(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x7c(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x7c(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x98(%rbp), %rcx
addq $0x4, %rcx
movq -0xa0(%rbp), %rax
shrq $0x20, %rax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
movb %al, %cl
movq -0x88(%rbp), %rax
movb %cl, (%rax)
movl -0x8c(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x88(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x8c(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x88(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x8c(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x88(%rbp), %rax
movb %cl, 0x3(%rax)
leaq -0x390(%rbp), %rcx
addq $0x10, %rcx
movq 0x18(%rbp), %rax
movq %rcx, -0xc8(%rbp)
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rcx
movq -0xd0(%rbp), %rax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
movl -0xac(%rbp), %eax
movb %al, %cl
movq -0xa8(%rbp), %rax
movb %cl, (%rax)
movl -0xac(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0xa8(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0xac(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0xa8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0xac(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0xa8(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0xc8(%rbp), %rcx
addq $0x4, %rcx
movq -0xd0(%rbp), %rax
shrq $0x20, %rax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
movl -0xbc(%rbp), %eax
movb %al, %cl
movq -0xb8(%rbp), %rax
movb %cl, (%rax)
movl -0xbc(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0xb8(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0xbc(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0xb8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0xbc(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0xb8(%rbp), %rax
movb %cl, 0x3(%rax)
movl $0x18, -0x394(%rbp)
movq -0x298(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x298(%rbp), %rcx
movq 0x60(%rcx), %rdi
movq -0x2e0(%rbp), %rsi
leaq -0x390(%rbp), %rdx
movl -0x394(%rbp), %ecx
callq *%rax
movl -0x394(%rbp), %ecx
cmpq %rcx, %rax
je 0x14fd0
movl $0x0, -0x290(%rbp)
jmp 0x15204
movl -0x394(%rbp), %eax
addq -0x2e0(%rbp), %rax
movq %rax, -0x2e0(%rbp)
cmpq $0x0, -0x330(%rbp)
je 0x150b5
leaq -0x350(%rbp), %rax
movq %rax, -0x3d8(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, 0x18(%rbp)
jb 0x15018
leaq 0x18(%rbp), %rax
movq %rax, -0x3e0(%rbp)
jmp 0x15023
xorl %eax, %eax
movq %rax, -0x3e0(%rbp)
jmp 0x15023
movq -0x3e0(%rbp), %rax
movq %rax, -0x3e8(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, 0x18(%rbp)
jb 0x1504c
leaq -0x2e8(%rbp), %rax
movq %rax, -0x3f0(%rbp)
jmp 0x15057
xorl %eax, %eax
movq %rax, -0x3f0(%rbp)
jmp 0x15057
movq -0x3f0(%rbp), %rax
movq %rax, -0x3f8(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x2d8(%rbp)
jb 0x15083
leaq -0x2d8(%rbp), %rax
movq %rax, -0x400(%rbp)
jmp 0x1508e
xorl %eax, %eax
movq %rax, -0x400(%rbp)
jmp 0x1508e
movq -0x3f8(%rbp), %rdx
movq -0x3e8(%rbp), %rsi
movq -0x3d8(%rbp), %rdi
movq -0x400(%rbp), %rcx
callq 0x154b0
movl %eax, -0x334(%rbp)
movq -0x298(%rbp), %rdi
movq -0x2a0(%rbp), %rsi
movq -0x2f0(%rbp), %rax
movw %ax, %dx
movq -0x330(%rbp), %rcx
movl -0x334(%rbp), %eax
movw %ax, %r8w
movq -0x2b8(%rbp), %r9
movw -0x2ba(%rbp), %ax
movw %ax, -0x41a(%rbp)
movq 0x18(%rbp), %rax
movq %rax, -0x418(%rbp)
movq -0x2e8(%rbp), %rax
movq %rax, -0x410(%rbp)
movl 0x20(%rbp), %eax
movl %eax, -0x408(%rbp)
movw -0x2bc(%rbp), %r13w
movw -0x352(%rbp), %r12w
movw -0x2be(%rbp), %r15w
movw -0x2c0(%rbp), %r14w
movq -0x2d8(%rbp), %rbx
movl -0x2c8(%rbp), %r11d
movq 0x40(%rbp), %r10
movl 0x48(%rbp), %eax
movl %eax, -0x404(%rbp)
movw -0x41a(%rbp), %ax
movzwl %dx, %edx
movzwl %r8w, %r8d
movzwl %ax, %eax
movl %eax, (%rsp)
movq -0x418(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0x410(%rbp), %rax
movq %rax, 0x10(%rsp)
movl -0x408(%rbp), %eax
movl %eax, 0x18(%rsp)
movl -0x404(%rbp), %eax
movzwl %r13w, %r13d
movl %r13d, 0x20(%rsp)
movzwl %r12w, %r12d
movl %r12d, 0x28(%rsp)
movzwl %r15w, %r15d
movl %r15d, 0x30(%rsp)
movzwl %r14w, %r14d
movl %r14d, 0x38(%rsp)
movq %rbx, 0x40(%rsp)
movl %r11d, 0x48(%rsp)
movq %r10, 0x50(%rsp)
movl %eax, 0x58(%rsp)
callq 0x15d30
cmpl $0x0, %eax
jne 0x151d9
movl $0x0, -0x290(%rbp)
jmp 0x15204
movq -0x298(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x2e0(%rbp), %rcx
movq -0x298(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x290(%rbp)
movl -0x290(%rbp), %eax
addq $0x458, %rsp            # imm = 0x458
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)