// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_draw.cpp
// Function: ImFontAtlasBuildWithStbTruetype(ImFontAtlas*)
bool    ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas)
{
    IM_ASSERT(atlas->ConfigData.Size > 0);

    ImFontAtlasBuildInit(atlas);

    // Clear atlas
    atlas->TexID = (ImTextureID)NULL;
    atlas->TexWidth = atlas->TexHeight = 0;
    atlas->TexUvScale = ImVec2(0.0f, 0.0f);
    atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f);
    atlas->ClearTexData();

    // Temporary storage for building
    ImVector<ImFontBuildSrcData> src_tmp_array;
    ImVector<ImFontBuildDstData> dst_tmp_array;
    src_tmp_array.resize(atlas->ConfigData.Size);
    dst_tmp_array.resize(atlas->Fonts.Size);
    memset(src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes());
    memset(dst_tmp_array.Data, 0, (size_t)dst_tmp_array.size_in_bytes());

    // 1. Initialize font loading structure, check font data validity
    for (int src_i = 0; src_i < atlas->ConfigData.Size; src_i++)
    {
        ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
        ImFontConfig& cfg = atlas->ConfigData[src_i];
        IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == atlas));

        // Find index from cfg.DstFont (we allow the user to set cfg.DstFont. Also it makes casual debugging nicer than when storing indices)
        src_tmp.DstIndex = -1;
        for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++)
            if (cfg.DstFont == atlas->Fonts[output_i])
                src_tmp.DstIndex = output_i;
        if (src_tmp.DstIndex == -1)
        {
            IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array?
            return false;
        }
        // Initialize helper structure for font loading and verify that the TTF/OTF data is correct
        const int font_offset = stbtt_GetFontOffsetForIndex((unsigned char*)cfg.FontData, cfg.FontNo);
        IM_ASSERT(font_offset >= 0 && "FontData is incorrect, or FontNo cannot be found.");
        if (!stbtt_InitFont(&src_tmp.FontInfo, (unsigned char*)cfg.FontData, font_offset))
            return false;

        // Measure highest codepoints
        ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex];
        src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault();
        for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2)
            src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]);
        dst_tmp.SrcCount++;
        dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest);
    }

    // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs.
    int total_glyphs_count = 0;
    for (int src_i = 0; src_i < src_tmp_array.Size; src_i++)
    {
        ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
        ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex];
        src_tmp.GlyphsSet.Create(src_tmp.GlyphsHighest + 1);
        if (dst_tmp.GlyphsSet.Storage.empty())
            dst_tmp.GlyphsSet.Create(dst_tmp.GlyphsHighest + 1);

        for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2)
            for (unsigned int codepoint = src_range[0]; codepoint <= src_range[1]; codepoint++)
            {
                if (dst_tmp.GlyphsSet.TestBit(codepoint))    // Don't overwrite existing glyphs. We could make this an option for MergeMode (e.g. MergeOverwrite==true)
                    continue;
                if (!stbtt_FindGlyphIndex(&src_tmp.FontInfo, codepoint))    // It is actually in the font?
                    continue;

                // Add to avail set/counters
                src_tmp.GlyphsCount++;
                dst_tmp.GlyphsCount++;
                src_tmp.GlyphsSet.SetBit(codepoint);
                dst_tmp.GlyphsSet.SetBit(codepoint);
                total_glyphs_count++;
            }
    }

    // 3. Unpack our bit map into a flat list (we now have all the Unicode points that we know are requested _and_ available _and_ not overlapping another)
    for (int src_i = 0; src_i < src_tmp_array.Size; src_i++)
    {
        ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
        src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount);
        UnpackBitVectorToFlatIndexList(&src_tmp.GlyphsSet, &src_tmp.GlyphsList);
        src_tmp.GlyphsSet.Clear();
        IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount);
    }
    for (int dst_i = 0; dst_i < dst_tmp_array.Size; dst_i++)
        dst_tmp_array[dst_i].GlyphsSet.Clear();
    dst_tmp_array.clear();

    // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0)
    // (We technically don't need to zero-clear buf_rects, but let's do it for the sake of sanity)
    ImVector<stbrp_rect> buf_rects;
    ImVector<stbtt_packedchar> buf_packedchars;
    buf_rects.resize(total_glyphs_count);
    buf_packedchars.resize(total_glyphs_count);
    memset(buf_rects.Data, 0, (size_t)buf_rects.size_in_bytes());
    memset(buf_packedchars.Data, 0, (size_t)buf_packedchars.size_in_bytes());

    // 4. Gather glyphs sizes so we can pack them in our virtual canvas.
    int total_surface = 0;
    int buf_rects_out_n = 0;
    int buf_packedchars_out_n = 0;
    for (int src_i = 0; src_i < src_tmp_array.Size; src_i++)
    {
        ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
        if (src_tmp.GlyphsCount == 0)
            continue;

        src_tmp.Rects = &buf_rects[buf_rects_out_n];
        src_tmp.PackedChars = &buf_packedchars[buf_packedchars_out_n];
        buf_rects_out_n += src_tmp.GlyphsCount;
        buf_packedchars_out_n += src_tmp.GlyphsCount;

        // Convert our ranges in the format stb_truetype wants
        ImFontConfig& cfg = atlas->ConfigData[src_i];
        src_tmp.PackRange.font_size = cfg.SizePixels;
        src_tmp.PackRange.first_unicode_codepoint_in_range = 0;
        src_tmp.PackRange.array_of_unicode_codepoints = src_tmp.GlyphsList.Data;
        src_tmp.PackRange.num_chars = src_tmp.GlyphsList.Size;
        src_tmp.PackRange.chardata_for_range = src_tmp.PackedChars;
        src_tmp.PackRange.h_oversample = (unsigned char)cfg.OversampleH;
        src_tmp.PackRange.v_oversample = (unsigned char)cfg.OversampleV;

        // Gather the sizes of all rectangles we will need to pack (this loop is based on stbtt_PackFontRangesGatherRects)
        const float scale = (cfg.SizePixels > 0) ? stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels) : stbtt_ScaleForMappingEmToPixels(&src_tmp.FontInfo, -cfg.SizePixels);
        const int padding = atlas->TexGlyphPadding;
        for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++)
        {
            int x0, y0, x1, y1;
            const int glyph_index_in_font = stbtt_FindGlyphIndex(&src_tmp.FontInfo, src_tmp.GlyphsList[glyph_i]);
            IM_ASSERT(glyph_index_in_font != 0);
            stbtt_GetGlyphBitmapBoxSubpixel(&src_tmp.FontInfo, glyph_index_in_font, scale * cfg.OversampleH, scale * cfg.OversampleV, 0, 0, &x0, &y0, &x1, &y1);
            src_tmp.Rects[glyph_i].w = (stbrp_coord)(x1 - x0 + padding + cfg.OversampleH - 1);
            src_tmp.Rects[glyph_i].h = (stbrp_coord)(y1 - y0 + padding + cfg.OversampleV - 1);
            total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h;
        }
    }

    // We need a width for the skyline algorithm, any width!
    // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height.
    // User can override TexDesiredWidth and TexGlyphPadding if they wish, otherwise we use a simple heuristic to select the width based on expected surface.
    const int surface_sqrt = (int)ImSqrt((float)total_surface) + 1;
    atlas->TexHeight = 0;
    if (atlas->TexDesiredWidth > 0)
        atlas->TexWidth = atlas->TexDesiredWidth;
    else
        atlas->TexWidth = (surface_sqrt >= 4096 * 0.7f) ? 4096 : (surface_sqrt >= 2048 * 0.7f) ? 2048 : (surface_sqrt >= 1024 * 0.7f) ? 1024 : 512;

    // 5. Start packing
    // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values).
    const int TEX_HEIGHT_MAX = 1024 * 32;
    stbtt_pack_context spc = {};
    stbtt_PackBegin(&spc, NULL, atlas->TexWidth, TEX_HEIGHT_MAX, 0, atlas->TexGlyphPadding, NULL);
    ImFontAtlasBuildPackCustomRects(atlas, spc.pack_info);

    // 6. Pack each source font. No rendering yet, we are working with rectangles in an infinitely tall texture at this point.
    for (int src_i = 0; src_i < src_tmp_array.Size; src_i++)
    {
        ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
        if (src_tmp.GlyphsCount == 0)
            continue;

        stbrp_pack_rects((stbrp_context*)spc.pack_info, src_tmp.Rects, src_tmp.GlyphsCount);

        // Extend texture height and mark missing glyphs as non-packed so we won't render them.
        // FIXME: We are not handling packing failure here (would happen if we got off TEX_HEIGHT_MAX or if a single if larger than TexWidth?)
        for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++)
            if (src_tmp.Rects[glyph_i].was_packed)
                atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h);
    }

    // 7. Allocate texture
    atlas->TexHeight = (atlas->Flags & ImFontAtlasFlags_NoPowerOfTwoHeight) ? (atlas->TexHeight + 1) : ImUpperPowerOfTwo(atlas->TexHeight);
    atlas->TexUvScale = ImVec2(1.0f / atlas->TexWidth, 1.0f / atlas->TexHeight);
    atlas->TexPixelsAlpha8 = (unsigned char*)IM_ALLOC(atlas->TexWidth * atlas->TexHeight);
    memset(atlas->TexPixelsAlpha8, 0, atlas->TexWidth * atlas->TexHeight);
    spc.pixels = atlas->TexPixelsAlpha8;
    spc.height = atlas->TexHeight;

    // 8. Render/rasterize font characters into the texture
    for (int src_i = 0; src_i < src_tmp_array.Size; src_i++)
    {
        ImFontConfig& cfg = atlas->ConfigData[src_i];
        ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
        if (src_tmp.GlyphsCount == 0)
            continue;

        stbtt_PackFontRangesRenderIntoRects(&spc, &src_tmp.FontInfo, &src_tmp.PackRange, 1, src_tmp.Rects);

        // Apply multiply operator
        if (cfg.RasterizerMultiply != 1.0f)
        {
            unsigned char multiply_table[256];
            ImFontAtlasBuildMultiplyCalcLookupTable(multiply_table, cfg.RasterizerMultiply);
            stbrp_rect* r = &src_tmp.Rects[0];
            for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++, r++)
                if (r->was_packed)
                    ImFontAtlasBuildMultiplyRectAlpha8(multiply_table, atlas->TexPixelsAlpha8, r->x, r->y, r->w, r->h, atlas->TexWidth * 1);
        }
        src_tmp.Rects = NULL;
    }

    // End packing
    stbtt_PackEnd(&spc);
    buf_rects.clear();

    // 9. Setup ImFont and glyphs for runtime
    for (int src_i = 0; src_i < src_tmp_array.Size; src_i++)
    {
        ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
        if (src_tmp.GlyphsCount == 0)
            continue;

        // When merging fonts with MergeMode=true:
        // - We can have multiple input fonts writing into a same destination font.
        // - dst_font->ConfigData is != from cfg which is our source configuration.
        ImFontConfig& cfg = atlas->ConfigData[src_i];
        ImFont* dst_font = cfg.DstFont;

        const float font_scale = stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels);
        int unscaled_ascent, unscaled_descent, unscaled_line_gap;
        stbtt_GetFontVMetrics(&src_tmp.FontInfo, &unscaled_ascent, &unscaled_descent, &unscaled_line_gap);

        const float ascent = ImFloor(unscaled_ascent * font_scale + ((unscaled_ascent > 0.0f) ? +1 : -1));
        const float descent = ImFloor(unscaled_descent * font_scale + ((unscaled_descent > 0.0f) ? +1 : -1));
        ImFontAtlasBuildSetupFont(atlas, dst_font, &cfg, ascent, descent);
        const float font_off_x = cfg.GlyphOffset.x;
        const float font_off_y = cfg.GlyphOffset.y + IM_ROUND(dst_font->Ascent);

        for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++)
        {
            // Register glyph
            const int codepoint = src_tmp.GlyphsList[glyph_i];
            const stbtt_packedchar& pc = src_tmp.PackedChars[glyph_i];
            stbtt_aligned_quad q;
            float unused_x = 0.0f, unused_y = 0.0f;
            stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &unused_x, &unused_y, &q, 0);
            dst_font->AddGlyph(&cfg, (ImWchar)codepoint, q.x0 + font_off_x, q.y0 + font_off_y, q.x1 + font_off_x, q.y1 + font_off_y, q.s0, q.t0, q.s1, q.t1, pc.xadvance);
        }
    }

    // Cleanup temporary (ImVector doesn't honor destructor)
    for (int src_i = 0; src_i < src_tmp_array.Size; src_i++)
        src_tmp_array[src_i].~ImFontBuildSrcData();

    ImFontAtlasBuildFinish(atlas);
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x468, %rsp            # imm = 0x468
cmpl $0x0, 0x60(%rdi)
jle 0x7f683
movq %rdi, %r13
callq 0x7f7ca
xorl %eax, %eax
movq %rax, 0x8(%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%r13)
movq $0x0, -0x58(%rbp)
movq %rax, 0x38(%r13)
movq %r13, %rdi
callq 0x7b13a
movslq 0x60(%r13), %rcx
movq %rcx, -0x68(%rbp)
testq %rcx, %rcx
jle 0x7c4c2
movq -0x68(%rbp), %rcx
cmpl $0x9, %ecx
movl $0x8, %eax
cmovael %ecx, %eax
imulq $0x110, %rax, %rdi      # imm = 0x110
movq $0x0, -0x58(%rbp)
callq 0x41c63
movq %rax, -0x58(%rbp)
movslq 0x40(%r13), %r14
testq %r14, %r14
jle 0x7c4e6
cmpl $0x9, %r14d
movl $0x8, %edi
cmovael %r14d, %edi
shlq $0x5, %rdi
callq 0x41c63
movq %rax, %rbx
jmp 0x7c4e8
xorl %ebx, %ebx
imulq $0x110, -0x68(%rbp), %rdx # imm = 0x110
xorl %r15d, %r15d
movq -0x58(%rbp), %rdi
xorl %esi, %esi
movq %rdx, -0x1f8(%rbp)
callq 0xc260
movq %r14, %rdx
shlq $0x5, %rdx
movq %rbx, -0x40(%rbp)
movq %rbx, %rdi
xorl %esi, %esi
movq %rdx, -0x1d0(%rbp)
callq 0xc260
cmpl $0x0, 0x60(%r13)
movq %r13, -0x78(%rbp)
movq %r14, -0x70(%rbp)
jle 0x7cc04
movq -0x68(%rbp), %rax
testl %eax, %eax
movl $0x0, %ecx
cmovgl %eax, %ecx
movq %rcx, -0x60(%rbp)
xorl %r8d, %r8d
cmpq -0x60(%rbp), %r8
je 0x7f669
movq 0x68(%r13), %r9
movq %r8, %rax
shlq $0x7, %rax
leaq (%rax,%r8,8), %rdx
movq 0x80(%r9,%rdx), %rax
testq %rax, %rax
je 0x7f5d8
movq 0x40(%rax), %rcx
testq %rcx, %rcx
sete %sil
cmpq %r13, %rcx
sete %cl
orb %sil, %cl
je 0x7f5d8
imulq $0x110, %r8, %rbx       # imm = 0x110
addq -0x58(%rbp), %rbx
movl $0xffffffff, 0xe0(%rbx) # imm = 0xFFFFFFFF
movslq 0x40(%r13), %rcx
testq %rcx, %rcx
jle 0x7f4cb
addq %rdx, %r9
movq 0x48(%r13), %rsi
xorl %edx, %edx
movq (%rsi,%rdx,8), %rdi
cmpq %rdi, %rax
je 0x7c5d7
incq %rdx
cmpq %rcx, %rdx
jae 0x7f4cb
cmpq %rdi, %rax
jne 0x7c5b8
jmp 0x7f4cb
movq %r8, -0x100(%rbp)
movl %edx, 0xe0(%rbx)
movq (%r9), %r12
movslq 0x10(%r9), %rax
movzbl (%r12), %ecx
cmpl $0x4e, %ecx
jg 0x7c60f
testl %ecx, %ecx
je 0x7c657
cmpl $0x31, %ecx
jne 0x7f561
cmpb $0x0, 0x1(%r12)
je 0x7c663
jmp 0x7f561
cmpl $0x4f, %ecx
je 0x7c680
cmpl $0x74, %ecx
jne 0x7f561
movzbl 0x1(%r12), %ecx
cmpl $0x72, %ecx
je 0x7c6f1
cmpl $0x74, %ecx
je 0x7c6a5
cmpl $0x79, %ecx
jne 0x7f561
cmpb $0x70, 0x2(%r12)
jne 0x7f561
cmpb $0x31, 0x3(%r12)
je 0x7c709
jmp 0x7f561
cmpb $0x1, 0x1(%r12)
jne 0x7f561
cmpb $0x0, 0x2(%r12)
jne 0x7f561
cmpb $0x0, 0x3(%r12)
je 0x7c709
jmp 0x7f561
cmpb $0x54, 0x1(%r12)
jne 0x7f561
cmpb $0x54, 0x2(%r12)
jne 0x7f561
cmpb $0x4f, 0x3(%r12)
je 0x7c709
jmp 0x7f561
cmpb $0x63, 0x2(%r12)
jne 0x7f561
cmpb $0x66, 0x3(%r12)
jne 0x7f561
movl 0x4(%r12), %ecx
bswapl %ecx
cmpl $0x20000, %ecx          # imm = 0x20000
je 0x7c6d8
cmpl $0x10000, %ecx          # imm = 0x10000
jne 0x7f561
movl 0x8(%r12), %ecx
bswapl %ecx
cmpl %eax, %ecx
jle 0x7f561
movl 0xc(%r12,%rax,4), %r13d
bswapl %r13d
jmp 0x7c714
cmpb $0x75, 0x2(%r12)
jne 0x7f561
cmpb $0x65, 0x3(%r12)
jne 0x7f561
negl %eax
movl $0x0, %r13d
sbbl %r13d, %r13d
testl %r13d, %r13d
js 0x7f561
movq %r9, -0x48(%rbp)
movq %r12, 0x8(%rbx)
movl %r13d, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movq %r12, %rdi
movl %r13d, %esi
leaq 0x51783(%rip), %rdx     # 0xcdec0
callq 0x83390
movq %rax, -0x38(%rbp)
movq %r12, %rdi
movl %r13d, %esi
leaq 0x51772(%rip), %rdx     # 0xcdec5
callq 0x83390
movl %eax, -0xa8(%rbp)
movl %eax, 0x18(%rbx)
movq %r12, %rdi
movl %r13d, %esi
leaq 0x5175c(%rip), %rdx     # 0xcdeca
callq 0x83390
movl %eax, -0x30(%rbp)
movl %eax, 0x1c(%rbx)
movq %r12, %rdi
movl %r13d, %esi
leaq 0x51749(%rip), %rdx     # 0xcdecf
callq 0x83390
movl %eax, -0x50(%rbp)
movl %eax, 0x20(%rbx)
movq %r12, %rdi
movl %r13d, %esi
leaq 0x51736(%rip), %rdx     # 0xcded4
callq 0x83390
movl %eax, %r14d
movl %eax, 0x24(%rbx)
movq %r12, %rdi
movl %r13d, %esi
leaq 0x51723(%rip), %rdx     # 0xcded9
callq 0x83390
movl %eax, %r15d
movl %eax, 0x28(%rbx)
movq %r12, %rdi
movl %r13d, %esi
leaq 0x51710(%rip), %rdx     # 0xcdede
callq 0x83390
movl %eax, 0x2c(%rbx)
movq %r12, %rdi
movl %r13d, -0x90(%rbp)
movl %r13d, %esi
leaq 0x516f9(%rip), %rdx     # 0xcdee3
callq 0x83390
movq -0x38(%rbp), %rcx
movl %eax, 0x30(%rbx)
testl %ecx, %ecx
movq -0x78(%rbp), %r13
je 0x7cf2b
cmpl $0x0, -0x30(%rbp)
je 0x7cf2b
testl %r14d, %r14d
je 0x7cf2b
testl %r15d, %r15d
je 0x7cf2b
cmpl $0x0, -0x50(%rbp)
je 0x7c836
cmpl $0x0, -0xa8(%rbp)
jne 0x7caa7
jmp 0x7cf2b
movl $0x2, -0x160(%rbp)
xorl %eax, %eax
movl %eax, -0x98(%rbp)
movl %eax, -0xd8(%rbp)
movl %eax, -0x80(%rbp)
movq %r12, %rdi
movl -0x90(%rbp), %esi
leaq 0x51687(%rip), %rdx     # 0xcdee8
callq 0x83390
testl %eax, %eax
je 0x7cf2b
leaq 0x40(%rbx), %rcx
movl %eax, %eax
addq %r12, %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x90(%rbx)
movups %xmm0, 0x80(%rbx)
movq %rax, 0x40(%rbx)
movabsq $0x2000000000000000, %rax # imm = 0x2000000000000000
movq %rax, 0x48(%rbx)
movups (%rcx), %xmm0
movaps %xmm0, -0x480(%rbp)
movl -0x478(%rbp), %ecx
cmpl $-0x2, %ecx
jl 0x7f64a
movl -0x474(%rbp), %eax
addl $0x2, %ecx
cmpl %ecx, %eax
jl 0x7f64a
xorl %edx, %edx
cmpl %eax, %ecx
jge 0x7c8d7
movq -0x480(%rbp), %rdx
movl %ecx, %ecx
movzbl (%rdx,%rcx), %edx
cmpl %edx, %eax
jl 0x7f64a
movl %edx, -0x478(%rbp)
leaq -0x480(%rbp), %r14
movq %r14, %rdi
callq 0x83432
movq %r14, %rdi
callq 0x83432
movq %rax, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x8353f
movq %rax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movq %r14, %rdi
callq 0x83432
movq %r14, %rdi
callq 0x83432
movq %rax, 0x60(%rbx)
movq %rdx, 0x68(%rbx)
leaq -0x110(%rbp), %r14
movq %r14, %rdi
movl $0x11, %esi
movl $0x1, %edx
leaq -0x98(%rbp), %rcx
callq 0x8369e
movq %r14, %rdi
movl $0x106, %esi            # imm = 0x106
movl $0x1, %edx
leaq -0x160(%rbp), %rcx
callq 0x8369e
movq %r14, %rdi
movl $0x124, %esi            # imm = 0x124
movl $0x1, %edx
leaq -0xd8(%rbp), %rcx
callq 0x8369e
movq %r14, %rdi
movl $0x125, %esi            # imm = 0x125
movl $0x1, %edx
leaq -0x80(%rbp), %rcx
callq 0x8369e
movq -0x480(%rbp), %rdi
movq -0x478(%rbp), %r14
movq -0x110(%rbp), %rdx
movq -0x108(%rbp), %rcx
movq %r14, %rsi
callq 0x83850
movq %rax, 0x70(%rbx)
movq %rdx, 0x78(%rbx)
cmpl $0x2, -0x160(%rbp)
jne 0x7cf2b
movl -0x98(%rbp), %r15d
testl %r15d, %r15d
je 0x7cf2b
shrq $0x20, %r14
movl -0xd8(%rbp), %eax
testl %eax, %eax
je 0x7ca72
movl -0x80(%rbp), %r13d
testq %r13, %r13
je 0x7cf2b
testl %eax, %eax
js 0x7f64a
cmpl %r14d, %eax
jg 0x7f64a
movl %eax, -0x478(%rbp)
leaq -0x480(%rbp), %rdi
callq 0x83432
movq %rax, 0x80(%rbx)
movq %rdx, 0x88(%rbx)
movl -0x474(%rbp), %r14d
movl %r14d, %eax
subl %r13d, %eax
setl %cl
movl %eax, %edx
orl %r13d, %edx
sets %dl
orb %cl, %dl
addq -0x480(%rbp), %r13
shlq $0x20, %rax
testb %dl, %dl
movl $0x0, %ecx
cmovneq %rcx, %r13
cmovneq %rcx, %rax
movq %r13, 0x90(%rbx)
movq %rax, 0x98(%rbx)
testl %r15d, %r15d
movq -0x78(%rbp), %r13
js 0x7f64a
cmpl %r15d, %r14d
jl 0x7f64a
movl %r15d, -0x478(%rbp)
leaq -0x480(%rbp), %rdi
callq 0x83432
movq %rax, 0x50(%rbx)
movq %rdx, 0x58(%rbx)
movq -0x38(%rbp), %rcx
movq %rcx, %r14
movq %r12, %rdi
movl -0x90(%rbp), %esi
leaq 0x51433(%rip), %rdx     # 0xcdeed
callq 0x83390
testl %eax, %eax
je 0x7cad4
movl %eax, %eax
movzwl 0x4(%r12,%rax), %eax
rolw $0x8, %ax
movzwl %ax, %eax
jmp 0x7cad9
movl $0xffff, %eax           # imm = 0xFFFF
movq %r14, %rdi
movl %eax, 0x14(%rbx)
movl %edi, %eax
movzwl 0x2(%r12,%rax), %eax
rolw $0x8, %ax
movl $0x0, 0x34(%rbx)
testw %ax, %ax
je 0x7cf2b
movzwl %ax, %ecx
leal 0x4(%rdi), %eax
movl %ecx, %ecx
xorl %edx, %edx
movl %eax, %eax
movzwl (%r12,%rax), %esi
rolw $0x8, %si
testw %si, %si
je 0x7cb35
movzwl %si, %esi
cmpl $0x3, %esi
jne 0x7cb41
movzwl 0x2(%r12,%rax), %esi
rolw $0x8, %si
cmpw $0xa, %si
je 0x7cb35
movzwl %si, %esi
cmpl $0x1, %esi
jne 0x7cb41
movl 0x4(%r12,%rax), %edx
bswapl %edx
addl %edi, %edx
movl %edx, 0x34(%rbx)
addl $0x8, %eax
decq %rcx
jne 0x7cb05
testl %edx, %edx
je 0x7cf2b
movslq 0x1c(%rbx), %rax
movzwl 0x32(%r12,%rax), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x38(%rbx)
movslq 0xe0(%rbx), %rax
testq %rax, %rax
movq -0x70(%rbp), %r14
js 0x7f5be
cmpl %eax, %r14d
jle 0x7f5be
movq -0x48(%rbp), %rcx
movq 0x38(%rcx), %rcx
testq %rcx, %rcx
leaq 0x49fd4(%rip), %rdx     # 0xc6b68
cmoveq %rdx, %rcx
movq %rcx, 0xd8(%rbx)
cmpw $0x0, (%rcx)
movl $0x0, %r15d
movq -0x100(%rbp), %r8
je 0x7cbd9
addq $0x4, %rcx
movzwl -0x2(%rcx), %edx
testl %edx, %edx
je 0x7cbd9
movl 0xe4(%rbx), %esi
cmpl %edx, %esi
cmovgl %esi, %edx
movl %edx, 0xe4(%rbx)
cmpw $0x0, (%rcx)
leaq 0x4(%rcx), %rcx
jne 0x7cbb6
shlq $0x5, %rax
addq -0x40(%rbp), %rax
incl (%rax)
movl 0x4(%rax), %ecx
movl 0xe4(%rbx), %edx
cmpl %edx, %ecx
cmovgl %ecx, %edx
movl %edx, 0x4(%rax)
incq %r8
movslq 0x60(%r13), %rax
cmpq %rax, %r8
jl 0x7c549
cmpl $0x0, -0x68(%rbp)
jle 0x7cf48
xorl %ecx, %ecx
movq $0x0, -0x38(%rbp)
imulq $0x110, %rcx, %rbx      # imm = 0x110
movq -0x58(%rbp), %rax
movslq 0xe0(%rax,%rbx), %r13
testq %r13, %r13
js 0x7f5be
cmpl %r13d, %r14d
jle 0x7f5be
movq %rcx, -0x30(%rbp)
addq -0x58(%rbp), %rbx
leaq 0xf0(%rbx), %rdi
movl 0xe4(%rbx), %esi
incl %esi
movq %rdi, -0x90(%rbp)
callq 0x85f76
shlq $0x5, %r13
addq -0x40(%rbp), %r13
leaq 0x10(%r13), %r12
cmpl $0x0, 0x10(%r13)
jne 0x7cc81
movl 0x4(%r13), %esi
incl %esi
movq %r12, %rdi
callq 0x85f76
movq 0xd8(%rbx), %r15
movzwl (%r15), %eax
testw %ax, %ax
je 0x7cd17
movzwl 0x2(%r15), %ecx
testw %cx, %cx
je 0x7cd17
cmpw %cx, %ax
ja 0x7cd09
movzwl %ax, %r14d
movq %r12, %rdi
movl %r14d, %esi
callq 0x86010
testb %al, %al
jne 0x7ccf8
movq 0x8(%rbx), %rdi
movl 0x34(%rbx), %esi
movl %r14d, %edx
callq 0x7f837
testl %eax, %eax
je 0x7ccf8
incl 0xe8(%rbx)
incl 0x8(%r13)
movq -0x90(%rbp), %rdi
movl %r14d, %esi
callq 0x86052
movq %r12, %rdi
movl %r14d, %esi
callq 0x86052
movq -0x38(%rbp), %rax
incl %eax
movq %rax, -0x38(%rbp)
leal 0x1(%r14), %eax
movzwl 0x2(%r15), %ecx
cmpl %ecx, %r14d
movl %eax, %r14d
jb 0x7cca8
movzwl 0x4(%r15), %eax
addq $0x4, %r15
jmp 0x7cc8c
movq -0x30(%rbp), %rcx
incq %rcx
cmpq -0x68(%rbp), %rcx
movq -0x70(%rbp), %r14
jne 0x7cc18
cmpl $0x0, -0x68(%rbp)
jle 0x7cf40
xorl %r15d, %r15d
movq -0x78(%rbp), %r13
imulq $0x110, %r15, %rax      # imm = 0x110
movq -0x58(%rbp), %rcx
leaq (%rcx,%rax), %r12
movl 0xe8(%rcx,%rax), %r14d
cmpl %r14d, 0x104(%rcx,%rax)
jge 0x7cdab
movslq %r14d, %rdi
shlq $0x2, %rdi
callq 0x41c63
movq %rax, %rbx
movq 0x108(%r12), %rsi
testq %rsi, %rsi
je 0x7cd9b
movslq 0x100(%r12), %rdx
shlq $0x2, %rdx
movq %rbx, %rdi
callq 0xc080
movq 0x108(%r12), %rdi
callq 0x41d3c
movq %rbx, 0x108(%r12)
movl %r14d, 0x104(%r12)
movslq 0xf0(%r12), %rax
movq 0xf8(%r12), %rdi
testq %rax, %rax
jle 0x7cedc
movq %r15, -0x100(%rbp)
leaq (%rdi,%rax,4), %rax
movq %rax, -0x50(%rbp)
xorl %edx, %edx
movq %rdi, -0x30(%rbp)
movl (%rdi), %r13d
testl %r13d, %r13d
je 0x7ceb4
xorl %r15d, %r15d
movq %rdx, -0x90(%rbp)
btl %r15d, %r13d
jae 0x7cea7
movl 0x100(%r12), %r14d
cmpl 0x104(%r12), %r14d
jne 0x7ce20
testl %r14d, %r14d
je 0x7ce2a
movl %r14d, %eax
shrl $0x1f, %eax
addl %r14d, %eax
sarl %eax
addl %r14d, %eax
jmp 0x7ce2f
movq 0x108(%r12), %rbx
jmp 0x7ce95
movl $0x8, %eax
incl %r14d
cmpl %r14d, %eax
cmovgl %eax, %r14d
movslq %r14d, %rdi
shlq $0x2, %rdi
callq 0x41c63
movq %rax, %rbx
movq 0x108(%r12), %rsi
testq %rsi, %rsi
je 0x7ce76
movslq 0x100(%r12), %rdx
shlq $0x2, %rdx
movq %rbx, %rdi
callq 0xc080
movq 0x108(%r12), %rdi
callq 0x41d3c
movq %rbx, 0x108(%r12)
movl %r14d, 0x104(%r12)
movl 0x100(%r12), %r14d
movq -0x90(%rbp), %rdx
leal (%rdx,%r15), %eax
movslq %r14d, %rcx
movl %eax, (%rbx,%rcx,4)
incl 0x100(%r12)
incl %r15d
cmpl $0x20, %r15d
jne 0x7cdef
movq -0x30(%rbp), %rdi
addq $0x4, %rdi
addl $0x20, %edx
cmpq -0x50(%rbp), %rdi
jb 0x7cdd5
movq 0xf8(%r12), %rdi
movq -0x78(%rbp), %r13
movq -0x100(%rbp), %r15
testq %rdi, %rdi
je 0x7cefe
movq $0x0, 0xf0(%r12)
callq 0x41d3c
movq $0x0, 0xf8(%r12)
movl 0x100(%r12), %eax
cmpl 0xe8(%r12), %eax
jne 0x7f62b
incq %r15
cmpq -0x68(%rbp), %r15
jne 0x7cd3d
movq -0x38(%rbp), %r15
movq -0x70(%rbp), %r14
jmp 0x7cf48
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x7cf39
callq 0x41d3c
xorl %ebx, %ebx
jmp 0x7f3ef
movq -0x78(%rbp), %r13
movq -0x38(%rbp), %r15
testl %r14d, %r14d
jle 0x7cf86
xorl %ebx, %ebx
movq -0x1d0(%rbp), %r14
movq -0x40(%rbp), %r12
movq 0x18(%r12,%rbx), %rdi
testq %rdi, %rdi
je 0x7cf7b
movq $0x0, 0x10(%r12,%rbx)
callq 0x41d3c
movq $0x0, 0x18(%r12,%rbx)
addq $0x20, %rbx
cmpq %rbx, %r14
jne 0x7cf5a
jmp 0x7cf8d
cmpq $0x0, -0x40(%rbp)
je 0x7cf96
movq -0x40(%rbp), %rdi
callq 0x41d3c
xorps %xmm0, %xmm0
movaps %xmm0, -0x110(%rbp)
movaps %xmm0, -0x160(%rbp)
testl %r15d, %r15d
jle 0x7d010
cmpl $0x9, %r15d
movl $0x8, %ebx
movl $0x8, %r14d
cmovael %r15d, %r14d
movq %r14, %rdi
shlq $0x4, %rdi
callq 0x41c63
movq %rax, -0x108(%rbp)
movl %r14d, -0x10c(%rbp)
cmpl $0x9, %r15d
cmovael %r15d, %ebx
movl %r15d, -0x110(%rbp)
leaq (%rbx,%rbx,8), %rcx
leaq (%rcx,%rcx,2), %rdi
addq %rbx, %rdi
movq %rax, %r14
callq 0x41c63
movq %r14, %rdi
movq %rax, %r14
movq %rax, -0x158(%rbp)
movl %ebx, -0x15c(%rbp)
jmp 0x7d01c
movl %r15d, -0x110(%rbp)
xorl %edi, %edi
xorl %r14d, %r14d
movl %r15d, -0x160(%rbp)
movl %r15d, %eax
shll $0x4, %eax
movslq %eax, %rdx
xorl %r12d, %r12d
movq %rdi, -0x40(%rbp)
xorl %esi, %esi
callq 0xc260
leal (%r15,%r15,8), %eax
leal (%rax,%rax,2), %eax
movq %r15, -0x38(%rbp)
addl %r15d, %eax
movslq %eax, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0xc260
cmpl $0x0, -0x68(%rbp)
jle 0x7d30f
movq %r14, %r10
xorl %r15d, %r15d
xorl %r8d, %r8d
xorl %r9d, %r9d
movq -0x40(%rbp), %r11
movq %r14, -0x48(%rbp)
imulq $0x110, %r15, %r14      # imm = 0x110
movq -0x58(%rbp), %rax
movl 0xe8(%rax,%r14), %eax
testl %eax, %eax
je 0x7d2f8
testl %r8d, %r8d
js 0x7f611
cmpl %r8d, -0x38(%rbp)
jle 0x7f611
addq -0x58(%rbp), %r14
movl %r8d, %ecx
shlq $0x4, %rcx
addq %r11, %rcx
movq %rcx, 0xc8(%r14)
testl %r9d, %r9d
js 0x7f5f7
cmpl %r9d, -0x38(%rbp)
jle 0x7f5f7
movl %r9d, %esi
leaq (%rsi,%rsi,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %r10, %rsi
addq %rcx, %rsi
movq %rsi, 0xd0(%r14)
movslq 0x60(%r13), %rcx
cmpq %rcx, %r15
jge 0x7f528
movq 0x68(%r13), %rbx
movq %r15, %rcx
shlq $0x7, %rcx
leaq (%rcx,%r15,8), %rdx
movss 0x14(%rbx,%rdx), %xmm1
movss %xmm1, 0xa0(%r14)
movl $0x0, 0xa4(%r14)
movq 0x108(%r14), %rcx
movq %rcx, 0xa8(%r14)
movl 0x100(%r14), %ecx
movl %ecx, 0xb0(%r14)
movq %rsi, 0xb8(%r14)
movb 0x18(%rbx,%rdx), %sil
movb %sil, 0xc0(%r14)
movb 0x1c(%rbx,%rdx), %sil
movb %sil, 0xc1(%r14)
ucomiss 0x386eb(%rip), %xmm1    # 0xb5844
jbe 0x7d1b0
movq 0x8(%r14), %rsi
movslq 0x24(%r14), %rdi
movq %r10, %r11
movl %r8d, %r10d
movzbl 0x5(%rsi,%rdi), %r8d
movl %r9d, -0x50(%rbp)
movzbl 0x4(%rsi,%rdi), %r9d
shll $0x8, %r9d
movswl %r9w, %r9d
orl %r8d, %r9d
movzbl 0x7(%rsi,%rdi), %r8d
movzbl 0x6(%rsi,%rdi), %esi
shll $0x8, %esi
movswl %si, %esi
orl %r8d, %esi
movl %r10d, %r8d
movq %r11, %r10
movq -0x40(%rbp), %r11
subl %esi, %r9d
cvtsi2ss %r9d, %xmm0
movl -0x50(%rbp), %r9d
jmp 0x7d1d2
xorps 0x37e09(%rip), %xmm1    # 0xb4fc0
movq 0x8(%r14), %rsi
movslq 0x1c(%r14), %rdi
movzwl 0x12(%rsi,%rdi), %esi
rolw $0x8, %si
movzwl %si, %esi
xorps %xmm0, %xmm0
cvtsi2ss %esi, %xmm0
divss %xmm0, %xmm1
addl %eax, %r8d
addl %eax, %r9d
testl %ecx, %ecx
jle 0x7d2f8
movaps %xmm1, -0x90(%rbp)
movl %r9d, -0x50(%rbp)
movl %r8d, -0x100(%rbp)
movq %r15, -0x70(%rbp)
addq %rdx, %rbx
movl 0x14(%r13), %eax
movl %eax, -0x30(%rbp)
movl $0x6, %r15d
xorl %r13d, %r13d
movslq %ecx, %rax
cmpq %rax, %r13
jge 0x7f46e
movq 0x108(%r14), %rax
movl (%rax,%r13,4), %edx
movq 0x8(%r14), %rdi
movl 0x34(%r14), %esi
callq 0x7f837
testl %eax, %eax
je 0x7f4ea
xorps %xmm0, %xmm0
cvtsi2ssl 0x18(%rbx), %xmm0
movaps -0x90(%rbp), %xmm2
mulss %xmm2, %xmm0
xorps %xmm1, %xmm1
cvtsi2ssl 0x1c(%rbx), %xmm1
mulss %xmm2, %xmm1
movq %r14, %rdi
movl %eax, %esi
leaq -0x480(%rbp), %rdx
leaq -0x98(%rbp), %rcx
leaq -0xd8(%rbp), %r8
leaq -0x80(%rbp), %r9
callq 0x7fafb
movl 0x18(%rbx), %eax
movl -0xd8(%rbp), %ecx
movl -0x30(%rbp), %edi
addl %edi, %ecx
subl -0x480(%rbp), %ecx
addl %ecx, %eax
decl %eax
movq 0xc8(%r14), %rcx
movw %ax, -0x2(%rcx,%r15)
movl 0x1c(%rbx), %edx
movl -0x80(%rbp), %esi
addl %edi, %esi
subl -0x98(%rbp), %esi
addl %esi, %edx
decl %edx
movw %dx, (%rcx,%r15)
movl $0xffff, %ecx           # imm = 0xFFFF
andl %ecx, %eax
andl %ecx, %edx
imull %eax, %edx
addl %edx, %r12d
incq %r13
movslq 0x100(%r14), %rcx
addq $0x10, %r15
cmpq %rcx, %r13
jl 0x7d20d
movq -0x78(%rbp), %r13
movq -0x40(%rbp), %r11
movq -0x48(%rbp), %r10
movq -0x70(%rbp), %r15
movl -0x100(%rbp), %r8d
movl -0x50(%rbp), %r9d
incq %r15
cmpq -0x68(%rbp), %r15
jne 0x7d073
xorps %xmm0, %xmm0
cvtsi2ss %r12d, %xmm0
jmp 0x7d312
xorps %xmm0, %xmm0
movl $0x0, 0x2c(%r13)
movl 0x10(%r13), %r15d
testl %r15d, %r15d
jg 0x7d35c
sqrtss %xmm0, %xmm0
cvttss2si %xmm0, %eax
movl $0x1000, %r15d          # imm = 0x1000
cmpl $0xb32, %eax            # imm = 0xB32
jg 0x7d35c
movl $0x800, %r15d           # imm = 0x800
cmpl $0x598, %eax            # imm = 0x598
jg 0x7d35c
xorl %r15d, %r15d
cmpl $0x2cc, %eax            # imm = 0x2CC
setge %r15b
shll $0x9, %r15d
addl $0x200, %r15d           # imm = 0x200
movl %r15d, 0x28(%r13)
movl 0x14(%r13), %eax
movl %eax, -0x7c(%rbp)
movl $0x48, %edi
callq 0x41c63
movq %rax, %r14
movl %r15d, %ebx
subl -0x7c(%rbp), %ebx
movslq %ebx, %rdi
shlq $0x4, %rdi
callq 0x41c63
movq %rax, -0xc8(%rbp)
testq %r14, %r14
je 0x7d3e4
cmpq $0x0, -0xc8(%rbp)
je 0x7d3e4
cmpl $0xffff8001, -0x7c(%rbp) # imm = 0xFFFF8001
jl 0x7f6a2
cmpl $0xffff, %ebx           # imm = 0xFFFF
jg 0x7f6a2
movl $0x8000, %ecx           # imm = 0x8000
subl -0x7c(%rbp), %ecx
leal -0x1(%rbx), %eax
cmpl $0x2, %ebx
jl 0x7d41b
movl %eax, %edx
movq -0xc8(%rbp), %rsi
addq $0x10, %rsi
movq %rdx, %rdi
movq %rsi, -0x8(%rsi)
addq $0x10, %rsi
decq %rdi
jne 0x7d3d5
jmp 0x7d41d
testq %r14, %r14
je 0x7d3f1
movq %r14, %rdi
callq 0x41d3c
movq -0xc8(%rbp), %rdi
testq %rdi, %rdi
je 0x7d402
callq 0x41d3c
movq $0x0, -0xc8(%rbp)
movl $0x0, -0x7c(%rbp)
xorl %r15d, %r15d
xorl %esi, %esi
jmp 0x7d47e
xorl %edx, %edx
shlq $0x4, %rdx
xorl %r8d, %r8d
movq -0xc8(%rbp), %rdi
movq %r8, 0x8(%rdi,%rdx)
movq $0x1, 0xc(%r14)
movq %rdi, 0x20(%r14)
leaq 0x28(%r14), %rdx
movq %rdx, 0x18(%r14)
movl %ebx, (%r14)
movl %ecx, 0x4(%r14)
movl %ebx, 0x14(%r14)
addl %ebx, %eax
cltd
idivl %ebx
movl %eax, 0x8(%r14)
movl $0x0, 0x28(%r14)
movq %r14, %rax
addq $0x38, %rax
movq %rax, 0x30(%r14)
movw %bx, 0x38(%r14)
movq %r14, %rsi
movw $0xffff, 0x3a(%r14)     # imm = 0xFFFF
movq %r8, 0x40(%r14)
movq %r13, %rdi
movq %rsi, -0x1d8(%rbp)
callq 0x7fcbc
cmpl $0x0, -0x68(%rbp)
jle 0x7d512
xorl %ebx, %ebx
imulq $0x110, %rbx, %r14      # imm = 0x110
movq -0x58(%rbp), %rax
movl 0xe8(%rax,%r14), %edx
testl %edx, %edx
je 0x7d509
addq -0x58(%rbp), %r14
movq 0xc8(%r14), %rsi
movq -0x1d8(%rbp), %rdi
callq 0x7fecb
movslq 0xe8(%r14), %rax
testq %rax, %rax
jle 0x7d509
movq 0xc8(%r14), %rcx
shlq $0x4, %rax
xorl %edx, %edx
cmpl $0x0, 0xc(%rcx,%rdx)
je 0x7d500
movl 0x2c(%r13), %esi
movzwl 0xa(%rcx,%rdx), %edi
movzwl 0x6(%rcx,%rdx), %r8d
addl %edi, %r8d
cmpl %r8d, %esi
cmovgl %esi, %r8d
movl %r8d, 0x2c(%r13)
addq $0x10, %rdx
cmpq %rdx, %rax
jne 0x7d4dc
incq %rbx
cmpq -0x68(%rbp), %rbx
jne 0x7d495
testb $0x1, 0x4(%r13)
movl 0x2c(%r13), %eax
jne 0x7d541
decl %eax
movl %eax, %ecx
sarl %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
sarl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %edx
sarl $0x8, %edx
orl %ecx, %edx
movl %edx, %eax
sarl $0x10, %eax
orl %edx, %eax
incl %eax
movl %eax, 0x2c(%r13)
movl 0x28(%r13), %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
movss 0x37a8a(%rip), %xmm3    # 0xb4fe4
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
movaps %xmm3, %xmm2
divss %xmm0, %xmm2
movaps %xmm3, %xmm0
divss %xmm1, %xmm0
movss %xmm2, 0x30(%r13)
movss %xmm0, 0x34(%r13)
imull %ecx, %eax
movslq %eax, %rdi
callq 0x41c63
movq %rax, 0x18(%r13)
movslq 0x28(%r13), %rcx
movslq 0x2c(%r13), %rdx
imulq %rcx, %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0xc260
cmpl $0x0, -0x68(%rbp)
jle 0x7f079
movq 0x18(%r13), %rax
movq %rax, -0x168(%rbp)
movslq %r15d, %rax
movq %rax, -0x38(%rbp)
xorl %eax, %eax
movl %r15d, -0xac(%rbp)
movq %rax, -0x138(%rbp)
movslq 0x60(%r13), %rax
cmpq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rax
jge 0x7f528
imulq $0x110, %rax, %r15      # imm = 0x110
movq -0x58(%rbp), %rax
cmpl $0x0, 0xe8(%rax,%r15)
je 0x7f065
addq -0x58(%rbp), %r15
movss 0xa0(%r15), %xmm0
ucomiss 0x38232(%rip), %xmm0    # 0xb5844
jbe 0x7d64c
movq 0x8(%r15), %rax
movslq 0x24(%r15), %rcx
movzbl 0x5(%rax,%rcx), %edx
movzbl 0x4(%rax,%rcx), %esi
shll $0x8, %esi
movswl %si, %esi
orl %edx, %esi
movzbl 0x7(%rax,%rcx), %edx
movzbl 0x6(%rax,%rcx), %eax
shll $0x8, %eax
cwtl
orl %edx, %eax
subl %eax, %esi
movaps %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2ss %esi, %xmm0
jmp 0x7d671
xorps 0x3796d(%rip), %xmm0    # 0xb4fc0
movq 0x8(%r15), %rax
movslq 0x1c(%r15), %rcx
movzwl 0x12(%rax,%rcx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movaps %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
divss %xmm0, %xmm1
movaps %xmm1, -0x1f0(%rbp)
movzbl 0xc0(%r15), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
xorps %xmm0, %xmm0
movss %xmm0, -0x128(%rbp)
movss %xmm0, -0x124(%rbp)
movq %rax, -0x90(%rbp)
testl %eax, %eax
je 0x7d6ce
movl $0x1, %eax
subl -0x90(%rbp), %eax
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
movaps %xmm1, %xmm0
addss %xmm1, %xmm0
divss %xmm0, %xmm2
movss %xmm2, -0x124(%rbp)
movzbl 0xc1(%r15), %r12d
xorps %xmm3, %xmm3
cvtsi2ss %r12d, %xmm3
testl %r12d, %r12d
je 0x7d705
movl $0x1, %eax
subl %r12d, %eax
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
movaps %xmm3, %xmm0
addss %xmm3, %xmm0
divss %xmm0, %xmm2
movss %xmm2, -0x128(%rbp)
movq 0x68(%r13), %rax
movq %rax, -0x200(%rbp)
movl 0xb0(%r15), %eax
testl %eax, %eax
jle 0x7ef7a
movq 0xc8(%r15), %rdx
movss 0x378b6(%rip), %xmm0    # 0xb4fe4
movaps %xmm0, %xmm2
divss %xmm1, %xmm2
movss %xmm2, -0x19c(%rbp)
divss %xmm3, %xmm0
movss %xmm0, -0x198(%rbp)
movaps -0x1f0(%rbp), %xmm0
mulss %xmm0, %xmm1
mulss %xmm0, %xmm3
movaps %xmm3, %xmm0
movss %xmm1, -0xe0(%rbp)
minss %xmm1, %xmm0
movss 0x3d735(%rip), %xmm1    # 0xbaea4
divss %xmm0, %xmm1
mulss %xmm1, %xmm1
movss %xmm1, -0x130(%rbp)
movaps %xmm3, -0x260(%rbp)
xorps 0x37833(%rip), %xmm3    # 0xb4fc0
movaps %xmm3, -0x270(%rbp)
movl -0x90(%rbp), %ecx
movq %rcx, -0x240(%rbp)
movl %r12d, %ecx
movq %rcx, -0x238(%rbp)
xorl %esi, %esi
movq %r12, -0xc0(%rbp)
movq %r15, -0x148(%rbp)
movq %rdx, -0x220(%rbp)
movq %rsi, %rbx
shlq $0x4, %rbx
cmpl $0x0, 0xc(%rdx,%rbx)
je 0x7ef6b
addq %rdx, %rbx
cmpw $0x0, 0x4(%rbx)
je 0x7ef6b
cmpw $0x0, 0x6(%rbx)
je 0x7ef6b
movq 0xa8(%r15), %rax
testq %rax, %rax
je 0x7d7fe
movl (%rax,%rsi,4), %edx
jmp 0x7d807
movl 0xa4(%r15), %edx
addl %esi, %edx
leaq (%rsi,%rsi,8), %rax
leaq (%rax,%rax,2), %rax
movq %rsi, -0x230(%rbp)
addq %rsi, %rax
addq 0xb8(%r15), %rax
movq %rax, -0x228(%rbp)
movq 0x8(%r15), %rdi
movl 0x34(%r15), %esi
callq 0x7f837
movl -0x7c(%rbp), %ecx
addw %cx, 0x8(%rbx)
addw %cx, 0xa(%rbx)
movq %rbx, %r13
movl %eax, %r14d
subw %cx, 0x4(%rbx)
subw %cx, 0x6(%rbx)
movq 0x8(%r15), %rax
movslq 0x24(%r15), %rcx
movzwl 0x22(%rax,%rcx), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
movslq 0x28(%r15), %rdx
addq %rax, %rdx
leal (,%r14,4), %eax
cltq
leaq (%rdx,%rax), %rsi
cmpl %r14d, %ecx
leaq 0x1(%rax,%rdx), %rax
leaq -0x4(%rdx,%rcx,4), %rdi
leaq -0x3(%rdx,%rcx,4), %rcx
cmovgq %rax, %rcx
cmovgq %rsi, %rdi
movzbl (%rcx), %eax
movl %eax, -0x1a0(%rbp)
movzbl (%rdi), %eax
movl %eax, -0x1a4(%rbp)
movq %r15, %rdi
movl %r14d, %esi
movss -0xe0(%rbp), %xmm0
movaps -0x260(%rbp), %xmm1
leaq -0x1b4(%rbp), %rdx
leaq -0x1b0(%rbp), %rcx
leaq -0x248(%rbp), %r8
leaq -0x244(%rbp), %r9
callq 0x7fafb
movzwl 0x8(%rbx), %ebx
movzwl 0xa(%r13), %eax
movq %rax, -0x180(%rbp)
movzwl 0x4(%r13), %eax
movq %rax, -0xb8(%rbp)
movq %r13, -0x188(%rbp)
movzwl 0x6(%r13), %eax
movq %rax, -0x118(%rbp)
movq %r15, %rdi
movl %r14d, %esi
leaq -0xd8(%rbp), %rdx
callq 0x84c01
movl %eax, %r15d
movq -0x90(%rbp), %rax
negl %eax
movq -0xb8(%rbp), %rcx
leal (%rcx,%rax), %r13d
incl %r13d
movq -0x148(%rbp), %rdi
movl %r14d, %esi
movss -0xe0(%rbp), %xmm0
movaps -0x260(%rbp), %xmm1
leaq -0x80(%rbp), %rdx
leaq -0x1b8(%rbp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x7fafb
movl %r13d, -0xe8(%rbp)
testl %r13d, %r13d
je 0x7e8f3
movl %r12d, %eax
negl %eax
movq -0x118(%rbp), %rcx
addl %ecx, %eax
incl %eax
movl %eax, -0x40(%rbp)
testl %eax, %eax
je 0x7e8f3
testl %r15d, %r15d
jle 0x7e8f3
addq -0x168(%rbp), %rbx
movq -0x180(%rbp), %rax
imulq -0x38(%rbp), %rax
addq %rbx, %rax
movq %rax, -0x180(%rbp)
movq -0xb8(%rbp), %rax
subl -0x90(%rbp), %eax
movq %rax, -0xb8(%rbp)
movq -0x118(%rbp), %rax
subl %r12d, %eax
movq %rax, -0x118(%rbp)
movq -0xd8(%rbp), %r13
movl -0x80(%rbp), %eax
movl %eax, -0x70(%rbp)
movl -0x1b8(%rbp), %eax
movl %eax, -0xe4(%rbp)
movl %r15d, %r15d
leaq (%r15,%r15), %rax
shlq $0x4, %r15
subq %rax, %r15
xorl %ecx, %ecx
xorl %eax, %eax
xorl %edx, %edx
cmpb $0x1, 0xc(%r13,%rcx)
sete %dl
addl %edx, %eax
addq $0xe, %rcx
cmpq %rcx, %r15
jne 0x7da03
testl %eax, %eax
je 0x7e8f3
movl %eax, %r14d
leaq (,%r14,4), %rdi
callq 0x41c63
movq %rax, %rbx
testq %rax, %rax
je 0x7e8f3
movq %r14, -0x50(%rbp)
movb $0x1, %al
movl %eax, -0x30(%rbp)
xorl %eax, %eax
xorl %ecx, %ecx
xorl %r14d, %r14d
movq $0x0, -0xa8(%rbp)
movq %rbx, -0x120(%rbp)
testb $0x1, %cl
je 0x7da80
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x41c63
movq %rax, -0xa8(%rbp)
testq %rax, %rax
je 0x7e8e4
movl $0x0, -0x480(%rbp)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
xorps %xmm1, %xmm1
xorl %r12d, %r12d
xorps %xmm0, %xmm0
movzbl 0xc(%r13,%r12), %eax
decl %eax
cmpl $0x3, %eax
ja 0x7dc3d
leaq 0x48ee0(%rip), %rcx     # 0xc6990
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x480(%rbp), %eax
testl %ebx, %ebx
js 0x7dad4
movl %eax, %ecx
subl %r14d, %ecx
movl %ebx, %edx
movq -0x120(%rbp), %rsi
movl %ecx, (%rsi,%rdx,4)
movswl (%r13,%r12), %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
movswl 0x2(%r13,%r12), %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
incl %ebx
leal 0x1(%rax), %ecx
movl %ecx, -0x480(%rbp)
movq -0xa8(%rbp), %rdx
testq %rdx, %rdx
je 0x7db13
movslq %eax, %rcx
movss %xmm0, (%rdx,%rcx,8)
movss %xmm1, 0x4(%rdx,%rcx,8)
movl %eax, %r14d
jmp 0x7dc3d
movswl 0x4(%r13,%r12), %eax
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
movswl 0x6(%r13,%r12), %eax
xorps %xmm3, %xmm3
cvtsi2ss %eax, %xmm3
movswl (%r13,%r12), %eax
xorps %xmm4, %xmm4
cvtsi2ss %eax, %xmm4
movswl 0x2(%r13,%r12), %eax
xorps %xmm5, %xmm5
cvtsi2ss %eax, %xmm5
movq -0xa8(%rbp), %rdi
leaq -0x480(%rbp), %rsi
movss -0x130(%rbp), %xmm6
xorl %edx, %edx
callq 0x85671
jmp 0x7dbe0
movswl 0x4(%r13,%r12), %eax
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
movswl 0x6(%r13,%r12), %eax
xorps %xmm3, %xmm3
cvtsi2ss %eax, %xmm3
movswl 0x8(%r13,%r12), %eax
xorps %xmm4, %xmm4
cvtsi2ss %eax, %xmm4
movswl 0xa(%r13,%r12), %eax
xorps %xmm5, %xmm5
cvtsi2ss %eax, %xmm5
movswl (%r13,%r12), %eax
xorps %xmm6, %xmm6
cvtsi2ss %eax, %xmm6
movswl 0x2(%r13,%r12), %eax
xorps %xmm7, %xmm7
cvtsi2ss %eax, %xmm7
movss -0x130(%rbp), %xmm8
movss %xmm8, (%rsp)
movq -0xa8(%rbp), %rdi
leaq -0x480(%rbp), %rsi
xorl %edx, %edx
callq 0x857fb
movswl (%r13,%r12), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movswl 0x2(%r13,%r12), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
jmp 0x7dc3d
movswl (%r13,%r12), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movswl 0x2(%r13,%r12), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
movslq -0x480(%rbp), %rax
leal 0x1(%rax), %ecx
movl %ecx, -0x480(%rbp)
movq -0xa8(%rbp), %rcx
testq %rcx, %rcx
je 0x7dc3d
movss %xmm0, (%rcx,%rax,8)
movss %xmm1, 0x4(%rcx,%rax,8)
addq $0xe, %r12
cmpq %r12, %r15
jne 0x7da98
movl -0x480(%rbp), %eax
movslq %ebx, %rcx
movl %eax, %edx
subl %r14d, %edx
movq -0x120(%rbp), %rbx
movl %edx, (%rbx,%rcx,4)
movb $0x1, %cl
testb $0x1, -0x30(%rbp)
movl $0x0, -0x30(%rbp)
movq -0xc0(%rbp), %r12
jne 0x7da5f
movq -0xa8(%rbp), %r13
testq %r13, %r13
movq -0x50(%rbp), %rsi
je 0x7e8f3
xorl %eax, %eax
xorl %ecx, %ecx
movslq (%rbx,%rax,4), %rdx
movslq %ecx, %rcx
addq %rdx, %rcx
incq %rax
cmpq %rax, %rsi
jne 0x7dc94
leaq (%rcx,%rcx,4), %rax
leaq 0x14(,%rax,4), %rdi
callq 0x41c63
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0xa0(%rbp)
je 0x7e8d2
leaq 0x4(%r13), %rax
xorl %ecx, %ecx
xorl %r15d, %r15d
xorl %edx, %edx
movl (%rbx,%rcx,4), %esi
testl %esi, %esi
jle 0x7ddda
movslq %edx, %r8
leaq (,%r8,8), %rdi
addq %r13, %rdi
leal -0x1(%rsi), %r10d
leaq (%rax,%r8,8), %r8
movl %esi, %r11d
xorl %r9d, %r9d
movslq %r10d, %rbx
movss 0x4(%rdi,%rbx,8), %xmm0
movss (%r8,%r9,8), %xmm1
ucomiss %xmm1, %xmm0
jne 0x7dd1c
jp 0x7dd1c
movl %r9d, %r10d
jmp 0x7ddcb
xorl %ebx, %ebx
ucomiss %xmm1, %xmm0
seta %r14b
ja 0x7dd2c
movl %r9d, %r12d
jmp 0x7dd32
movl %r10d, %r12d
movl %r9d, %r10d
movslq %r15d, %r15
leaq (%r15,%r15,4), %r11
movb %r14b, %bl
movq -0xa0(%rbp), %r14
movl %ebx, 0x10(%r14,%r11,4)
movslq %r12d, %rbx
movss (%rdi,%rbx,8), %xmm0
movss -0xe0(%rbp), %xmm2
mulss %xmm2, %xmm0
xorps %xmm1, %xmm1
addss %xmm1, %xmm0
movss %xmm0, (%r14,%r11,4)
movss 0x4(%rdi,%rbx,8), %xmm0
movaps -0x270(%rbp), %xmm3
mulss %xmm3, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x4(%r14,%r11,4)
movslq %r10d, %r10
movss (%rdi,%r10,8), %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x8(%r14,%r11,4)
movss 0x4(%rdi,%r10,8), %xmm0
mulss %xmm3, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0xc(%r14,%r11,4)
incl %r15d
movq -0x120(%rbp), %r10
movl (%r10,%rcx,4), %r11d
movl %r9d, %r10d
movq -0xc0(%rbp), %r12
incq %r9
movslq %r11d, %rbx
cmpq %rbx, %r9
jl 0x7dcfe
addl %esi, %edx
incq %rcx
cmpq -0x50(%rbp), %rcx
movq -0x120(%rbp), %rbx
jne 0x7dcd7
movq -0xa0(%rbp), %rdi
movl %r15d, %esi
callq 0x85a35
cmpl $0x2, %r15d
movl -0xe4(%rbp), %r13d
jl 0x7deda
movl %r15d, %eax
movl $0x1, %ecx
movl $0x2, %edx
movq -0xa0(%rbp), %rsi
leaq (%rcx,%rcx,4), %rdi
movq -0xa0(%rbp), %r9
movss (%r9,%rdi,4), %xmm0
movss 0x4(%r9,%rdi,4), %xmm1
movl 0x10(%r9,%rdi,4), %r8d
movl %r8d, -0x478(%rbp)
movq 0x8(%r9,%rdi,4), %rdi
movq %rdi, -0x480(%rbp)
movq %rsi, %r8
movq %rdx, %rdi
movss 0x4(%r8), %xmm2
ucomiss %xmm1, %xmm2
jbe 0x7de8a
leaq 0x14(%r8), %r9
movl 0x10(%r8), %r10d
movl %r10d, 0x10(%r9)
movups (%r8), %xmm2
movups %xmm2, (%r9)
decq %rdi
addq $-0x14, %r8
cmpq $0x1, %rdi
jg 0x7de5a
xorl %edi, %edi
jmp 0x7de8c
decl %edi
movl %edi, %r8d
cmpq %r8, %rcx
je 0x7dec7
movslq %edi, %rdi
leaq (%rdi,%rdi,4), %rdi
movq -0xa0(%rbp), %r9
movss %xmm0, (%r9,%rdi,4)
movss %xmm1, 0x4(%r9,%rdi,4)
movq -0x480(%rbp), %r8
movq %r8, 0x8(%r9,%rdi,4)
movl -0x478(%rbp), %r8d
movl %r8d, 0x10(%r9,%rdi,4)
incq %rcx
incq %rdx
addq $0x14, %rsi
cmpq %rax, %rcx
jne 0x7de24
movq $0x0, -0x98(%rbp)
leaq -0x480(%rbp), %r14
cmpl $0x40, -0xb8(%rbp)
jl 0x7df12
movl -0xe8(%rbp), %eax
leaq 0x4(,%rax,8), %rdi
callq 0x41c63
movq %rax, %r14
movl -0xe4(%rbp), %r13d
movl -0x40(%rbp), %eax
addl %r13d, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
addss 0x370bd(%rip), %xmm0    # 0xb4fe4
movslq %r15d, %rax
leaq (%rax,%rax,4), %rax
movq -0xa0(%rbp), %rcx
movss %xmm0, 0x4(%rcx,%rax,4)
cmpl $0x7ffffffe, -0x118(%rbp) # imm = 0x7FFFFFFE
ja 0x7e8ab
movl -0xe8(%rbp), %ecx
movslq %ecx, %rax
xorps %xmm0, %xmm0
cvtsi2ssl -0x70(%rbp), %xmm0
movss %xmm0, -0x1a8(%rbp)
leaq (%r14,%rax,4), %rdx
movq %rdx, -0x190(%rbp)
addq $0x4, %rdx
movq %rdx, -0x1e0(%rbp)
movq %rax, -0x208(%rbp)
leaq (,%rax,4), %rax
movq %rax, -0x218(%rbp)
movslq -0xb8(%rbp), %rax
leaq 0x8(,%rax,4), %rax
movq %rax, -0x210(%rbp)
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
movss %xmm0, -0xdc(%rbp)
movq $0x0, -0x170(%rbp)
xorl %ebx, %ebx
movq -0xa0(%rbp), %rax
movq %rax, -0x140(%rbp)
movl %r13d, %r15d
movq $0x0, -0x178(%rbp)
movq $0x0, -0x150(%rbp)
movl $0x0, -0x12c(%rbp)
movq $0x0, -0xd0(%rbp)
xorps %xmm0, %xmm0
cvtsi2ss %r15d, %xmm0
movss %xmm0, -0x48(%rbp)
addss 0x36fd1(%rip), %xmm0    # 0xb4fe4
movss %xmm0, -0x60(%rbp)
movq %r14, %rdi
xorl %esi, %esi
movq -0x218(%rbp), %rdx
callq 0xc260
movq -0x190(%rbp), %rdi
xorl %esi, %esi
movq -0x210(%rbp), %rdx
callq 0xc260
testq %rbx, %rbx
je 0x7e096
leaq -0x98(%rbp), %rax
movss -0x48(%rbp), %xmm1
ucomiss 0x1c(%rbx), %xmm1
jae 0x7e05a
movq %rbx, %rax
jmp 0x7e08c
movq (%rbx), %rcx
movq %rcx, (%rax)
movss 0x14(%rbx), %xmm0
ucomiss 0x377d8(%rip), %xmm0    # 0xb5844
jne 0x7e074
jnp 0x7f48d
movl $0x0, 0x14(%rbx)
movq -0xd0(%rbp), %rcx
movq %rcx, (%rbx)
movq %rbx, -0xd0(%rbp)
movq (%rax), %rbx
testq %rbx, %rbx
jne 0x7e04f
jmp 0x7e09b
movss -0x48(%rbp), %xmm1
movl %r15d, -0x194(%rbp)
movq -0x140(%rbp), %rax
movss 0x4(%rax), %xmm0
movss -0x60(%rbp), %xmm2
ucomiss %xmm0, %xmm2
jae 0x7e0c4
movq -0x140(%rbp), %rcx
jmp 0x7e25d
testl %r13d, %r13d
setne %al
cmpl $0x0, -0x178(%rbp)
sete %bl
andb %al, %bl
movq -0xd0(%rbp), %rax
movq -0x140(%rbp), %rcx
movq %rcx, %r15
movss 0xc(%rcx), %xmm1
ucomiss %xmm1, %xmm0
jne 0x7e0f3
jnp 0x7e104
testq %rax, %rax
je 0x7e115
movq (%rax), %rcx
movq %rcx, -0xd0(%rbp)
jmp 0x7e180
movq %rax, -0xd0(%rbp)
movss -0x48(%rbp), %xmm1
jmp 0x7e242
movl -0x12c(%rbp), %eax
testl %eax, %eax
je 0x7e12a
decl %eax
movq -0x150(%rbp), %rcx
jmp 0x7e15b
movl $0x6408, %edi           # imm = 0x6408
callq 0x41c63
testq %rax, %rax
je 0x7f542
movq -0x150(%rbp), %rcx
movq %rcx, (%rax)
movss 0x4(%r15), %xmm0
movss 0xc(%r15), %xmm1
movq %rax, %rcx
movl $0x31f, %eax            # imm = 0x31F
movl %eax, -0x12c(%rbp)
cltq
shlq $0x5, %rax
movq %rcx, -0x150(%rbp)
addq %rcx, %rax
addq $0x8, %rax
movq $0x0, -0xd0(%rbp)
movss (%r15), %xmm2
movss 0x8(%r15), %xmm3
subss %xmm2, %xmm3
movaps %xmm1, %xmm4
subss %xmm0, %xmm4
divss %xmm4, %xmm3
movss %xmm3, 0xc(%rax)
movss 0x36e3d(%rip), %xmm4    # 0xb4fe4
divss %xmm3, %xmm4
movss -0x48(%rbp), %xmm6
movaps %xmm6, %xmm5
subss %xmm0, %xmm5
mulss %xmm3, %xmm5
cmpneqss 0x37680(%rip), %xmm3    # 0xb5844
andps %xmm4, %xmm3
movss %xmm3, 0x10(%rax)
addss %xmm2, %xmm5
subss -0x1a8(%rbp), %xmm5
movss %xmm5, 0x8(%rax)
xorl %ecx, %ecx
cmpl $0x0, 0x10(%r15)
sete %cl
leaq 0x37f36(%rip), %rdx     # 0xb6124
movss (%rdx,%rcx,4), %xmm2
movss %xmm2, 0x14(%rax)
movss %xmm0, 0x18(%rax)
movss %xmm1, 0x1c(%rax)
movq $0x0, (%rax)
ucomiss %xmm1, %xmm6
seta %cl
andb %bl, %cl
cmpb $0x1, %cl
jne 0x7e21e
movss %xmm6, 0x1c(%rax)
movaps %xmm6, %xmm1
ucomiss %xmm6, %xmm1
jb 0x7f4ac
movaps %xmm6, %xmm1
movq -0x98(%rbp), %rcx
movq %rcx, (%rax)
movq %rax, -0x98(%rbp)
movq -0xd0(%rbp), %rax
movq %r15, %rcx
movss 0x18(%r15), %xmm0
addq $0x14, %rcx
movss -0x60(%rbp), %xmm2
ucomiss %xmm0, %xmm2
jae 0x7e0e4
movq %rcx, -0x140(%rbp)
movq -0x98(%rbp), %r15
testq %r15, %r15
je 0x7e7ab
movss 0x1c(%r15), %xmm0
ucomiss %xmm1, %xmm0
jb 0x7f44f
movss 0x8(%r15), %xmm6
movss 0xc(%r15), %xmm4
ucomiss 0x375ae(%rip), %xmm4    # 0xb5844
jne 0x7e2d4
jp 0x7e2d4
movss -0xdc(%rbp), %xmm0
ucomiss %xmm6, %xmm0
jbe 0x7e798
ucomiss 0x37592(%rip), %xmm6    # 0xb5844
jae 0x7e5bd
movq -0x190(%rbp), %rdi
xorl %esi, %esi
movq %r15, %rdx
movaps %xmm6, %xmm0
movss -0x48(%rbp), %xmm1
movaps %xmm6, %xmm2
jmp 0x7e606
movss 0x18(%r15), %xmm1
movss -0x60(%rbp), %xmm2
ucomiss %xmm1, %xmm2
jb 0x7f509
movaps %xmm4, %xmm8
addss %xmm6, %xmm8
movaps %xmm1, %xmm2
movss -0x48(%rbp), %xmm5
subss %xmm5, %xmm2
mulss %xmm4, %xmm2
addss %xmm6, %xmm2
cmpltss %xmm1, %xmm5
andps %xmm5, %xmm2
andnps %xmm6, %xmm5
orps %xmm2, %xmm5
ucomiss 0x3752a(%rip), %xmm5    # 0xb5844
jb 0x7e3e6
movaps %xmm0, %xmm2
subss -0x48(%rbp), %xmm2
mulss %xmm4, %xmm2
addss %xmm6, %xmm2
movaps %xmm0, %xmm3
cmpltss -0x60(%rbp), %xmm3
andps %xmm3, %xmm2
andnps %xmm8, %xmm3
orps %xmm2, %xmm3
ucomiss 0x374fa(%rip), %xmm3    # 0xb5844
jb 0x7e3e6
movss -0xdc(%rbp), %xmm2
ucomiss %xmm5, %xmm2
jbe 0x7e3e6
movss -0xdc(%rbp), %xmm2
ucomiss %xmm3, %xmm2
jbe 0x7e3e6
maxss -0x48(%rbp), %xmm1
cvttss2si %xmm5, %edx
minss -0x60(%rbp), %xmm0
cvttss2si %xmm3, %ecx
cmpl %ecx, %edx
jne 0x7e615
testl %edx, %edx
js 0x7f580
cmpl %edx, -0xb8(%rbp)
jl 0x7f580
xorps %xmm2, %xmm2
cvtsi2ss %edx, %xmm2
subss %xmm1, %xmm0
subss %xmm2, %xmm5
subss %xmm2, %xmm3
addss %xmm5, %xmm3
mulss 0x37509(%rip), %xmm3    # 0xb58c4
addss 0x36c21(%rip), %xmm3    # 0xb4fe4
mulss 0x14(%r15), %xmm3
movl %edx, %eax
mulss %xmm0, %xmm3
addss (%r14,%rax,4), %xmm3
movss %xmm3, (%r14,%rax,4)
mulss 0x14(%r15), %xmm0
jmp 0x7e782
cmpl $0x7ffffffe, -0xb8(%rbp) # imm = 0x7FFFFFFE
movss -0x48(%rbp), %xmm1
ja 0x7e798
xorl %ebx, %ebx
movaps %xmm6, -0x1d0(%rbp)
movaps %xmm8, -0x100(%rbp)
movss %xmm4, -0x1ac(%rbp)
movl %ebx, %r13d
xorps %xmm5, %xmm5
cvtsi2ss %ebx, %xmm5
leal 0x1(%r13), %ebx
xorps %xmm2, %xmm2
cvtsi2ss %ebx, %xmm2
movaps %xmm5, %xmm7
subss %xmm6, %xmm7
divss %xmm4, %xmm7
addss %xmm1, %xmm7
movaps %xmm2, %xmm3
subss %xmm6, %xmm3
divss %xmm4, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm6, %xmm5
movss %xmm7, -0x30(%rbp)
movss %xmm5, -0x50(%rbp)
jbe 0x7e4b7
ucomiss %xmm2, %xmm8
jbe 0x7e4b7
movq %r14, %rdi
movl %r13d, %esi
movq %r15, %rdx
movaps %xmm6, %xmm0
movss %xmm2, -0x40(%rbp)
movaps %xmm5, %xmm2
movss %xmm3, -0x70(%rbp)
movaps %xmm7, %xmm3
callq 0x85bd4
movq %r14, %rdi
movl %r13d, %esi
movq %r15, %rdx
movss -0x50(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movss -0x40(%rbp), %xmm2
movss -0x70(%rbp), %xmm3
callq 0x85bd4
movq %r14, %rdi
movl %r13d, %esi
movq %r15, %rdx
movss -0x40(%rbp), %xmm0
movss -0x70(%rbp), %xmm1
jmp 0x7e53c
ucomiss %xmm8, %xmm5
jbe 0x7e4fc
ucomiss %xmm2, %xmm6
jbe 0x7e4fc
movq %r14, %rdi
movl %r13d, %esi
movq %r15, %rdx
movaps %xmm6, %xmm0
movss %xmm2, -0x40(%rbp)
movss %xmm3, -0x70(%rbp)
callq 0x85bd4
movq %r14, %rdi
movl %r13d, %esi
movq %r15, %rdx
movss -0x40(%rbp), %xmm0
movss -0x70(%rbp), %xmm1
movss -0x50(%rbp), %xmm2
movss -0x30(%rbp), %xmm3
jmp 0x7e524
ucomiss %xmm6, %xmm5
jbe 0x7e507
ucomiss %xmm5, %xmm8
ja 0x7e512
ucomiss %xmm8, %xmm5
jbe 0x7e57a
ucomiss %xmm5, %xmm6
jbe 0x7e57a
movq %r14, %rdi
movl %r13d, %esi
movq %r15, %rdx
movaps %xmm6, %xmm0
movaps %xmm5, %xmm2
movaps %xmm7, %xmm3
callq 0x85bd4
movq %r14, %rdi
movl %r13d, %esi
movq %r15, %rdx
movss -0x50(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movaps -0x100(%rbp), %xmm2
movss -0x60(%rbp), %xmm3
callq 0x85bd4
cmpl %ebx, -0xe8(%rbp)
movss -0x48(%rbp), %xmm1
movaps -0x1d0(%rbp), %xmm6
movaps -0x100(%rbp), %xmm8
movss -0x1ac(%rbp), %xmm4
jne 0x7e414
jmp 0x7e798
ucomiss %xmm6, %xmm2
jbe 0x7e585
ucomiss %xmm2, %xmm8
ja 0x7e590
ucomiss %xmm8, %xmm2
jbe 0x7e5ab
ucomiss %xmm2, %xmm6
jbe 0x7e5ab
movq %r14, %rdi
movl %r13d, %esi
movq %r15, %rdx
movaps %xmm6, %xmm0
movss %xmm2, -0x40(%rbp)
movss %xmm3, -0x70(%rbp)
jmp 0x7e49a
movq %r14, %rdi
movl %r13d, %esi
movq %r15, %rdx
movaps %xmm6, %xmm0
movaps %xmm8, %xmm2
jmp 0x7e543
cvttss2si %xmm6, %r13d
movq %r14, %rdi
movl %r13d, %esi
movq %r15, %rdx
movaps %xmm6, %xmm0
movss -0x48(%rbp), %xmm1
movaps %xmm6, %xmm2
movss -0x60(%rbp), %xmm3
movaps %xmm6, -0x1d0(%rbp)
callq 0x85bd4
incl %r13d
movq -0x190(%rbp), %rdi
movl %r13d, %esi
movq %r15, %rdx
movaps -0x1d0(%rbp), %xmm0
movss -0x48(%rbp), %xmm1
movaps %xmm0, %xmm2
movss -0x60(%rbp), %xmm3
callq 0x85bd4
jmp 0x7e793
movss 0x10(%r15), %xmm2
ucomiss %xmm3, %xmm5
jbe 0x7e651
movss -0x48(%rbp), %xmm6
movaps %xmm6, %xmm4
subss %xmm1, %xmm4
movss -0x60(%rbp), %xmm7
addss %xmm7, %xmm4
movaps %xmm6, %xmm1
subss %xmm0, %xmm1
addss %xmm7, %xmm1
xorps 0x36979(%rip), %xmm2    # 0xb4fc0
movl %edx, %eax
movaps %xmm4, %xmm0
movaps %xmm5, %xmm4
jmp 0x7e664
movl %ecx, %eax
movl %edx, %ecx
movaps %xmm3, %xmm4
movaps %xmm5, %xmm3
movaps %xmm6, %xmm8
movss -0x48(%rbp), %xmm6
leal 0x1(%rcx), %esi
xorps %xmm7, %xmm7
cvtsi2ss %esi, %xmm7
subss %xmm8, %xmm7
mulss %xmm2, %xmm7
addss %xmm6, %xmm7
movss 0x14(%r15), %xmm5
movaps %xmm7, %xmm6
subss %xmm1, %xmm6
mulss %xmm5, %xmm6
xorps %xmm8, %xmm8
cvtsi2ss %ecx, %xmm8
subss %xmm8, %xmm3
movss 0x36941(%rip), %xmm8    # 0xb4fe4
addss %xmm8, %xmm3
mulss 0x37214(%rip), %xmm3    # 0xb58c4
addss %xmm8, %xmm3
movslq %ecx, %rdx
mulss %xmm6, %xmm3
addss (%r14,%rdx,4), %xmm3
movss %xmm3, (%r14,%rdx,4)
movl %eax, %ecx
subl %esi, %ecx
jle 0x7e707
movaps %xmm2, %xmm3
mulss %xmm5, %xmm3
movaps %xmm3, %xmm8
mulss 0x36922(%rip), %xmm8    # 0xb5004
leal -0x1(%rax), %esi
movaps %xmm8, %xmm9
addss %xmm6, %xmm9
addss 0x4(%r14,%rdx,4), %xmm9
movss %xmm9, 0x4(%r14,%rdx,4)
addss %xmm3, %xmm6
incq %rdx
cmpl %edx, %esi
jne 0x7e6e5
movaps %xmm6, %xmm3
andps 0x370bf(%rip), %xmm3    # 0xb57d0
movss 0x4824a(%rip), %xmm8    # 0xc6964
ucomiss %xmm3, %xmm8
jb 0x7f59f
xorps %xmm3, %xmm3
cvtsi2ss %ecx, %xmm3
xorps %xmm8, %xmm8
cvtsi2ss %eax, %xmm8
mulss %xmm3, %xmm2
addss %xmm7, %xmm2
subss %xmm8, %xmm4
addss 0x370fb(%rip), %xmm4    # 0xb5844
mulss 0x37173(%rip), %xmm4    # 0xb58c4
addss 0x3688b(%rip), %xmm4    # 0xb4fe4
mulss %xmm5, %xmm4
movaps %xmm0, %xmm3
subss %xmm2, %xmm3
mulss %xmm4, %xmm3
addss %xmm6, %xmm3
cltq
addss (%r14,%rax,4), %xmm3
movss %xmm3, (%r14,%rax,4)
subss %xmm1, %xmm0
mulss %xmm5, %xmm0
movq -0x1e0(%rbp), %rcx
addss (%rcx,%rax,4), %xmm0
movss %xmm0, (%rcx,%rax,4)
movss -0x48(%rbp), %xmm1
movq (%r15), %r15
testq %r15, %r15
movl -0xe4(%rbp), %r13d
jne 0x7e274
cmpl $0x7ffffffe, -0xb8(%rbp) # imm = 0x7FFFFFFE
movaps 0x37014(%rip), %xmm2    # 0xb57d0
movss 0x37084(%rip), %xmm3    # 0xb5848
movss 0x36838(%rip), %xmm4    # 0xb5004
movl $0xff, %edi
movq -0x180(%rbp), %r8
movq -0x208(%rbp), %r9
ja 0x7e825
xorps %xmm0, %xmm0
movq %r14, %rax
movq -0x170(%rbp), %rcx
movq %r9, %rdx
addss (%rax,%r9,4), %xmm0
movss (%rax), %xmm1
addss %xmm0, %xmm1
andps %xmm2, %xmm1
mulss %xmm3, %xmm1
addss %xmm4, %xmm1
cvttss2si %xmm1, %esi
cmpl %edi, %esi
cmovgel %edi, %esi
movslq %ecx, %rcx
movb %sil, (%r8,%rcx)
incl %ecx
addq $0x4, %rax
decq %rdx
jne 0x7e7f1
movq -0x98(%rbp), %rbx
movq %rbx, %rax
testq %rbx, %rbx
movl -0xac(%rbp), %ecx
je 0x7e851
movss 0xc(%rax), %xmm0
addss 0x8(%rax), %xmm0
movss %xmm0, 0x8(%rax)
movq (%rax), %rax
testq %rax, %rax
jne 0x7e83a
movl -0x194(%rbp), %r15d
incl %r15d
movq -0x178(%rbp), %rsi
leal 0x1(%rsi), %eax
movq -0x170(%rbp), %rdx
addl %ecx, %edx
movq %rdx, -0x170(%rbp)
cmpl -0x118(%rbp), %esi
movq %rax, -0x178(%rbp)
jne 0x7dffe
movq -0x150(%rbp), %r15
testq %r15, %r15
movq -0x120(%rbp), %rbx
je 0x7e8ab
movq %r15, %rdi
movq (%r15), %r15
callq 0x41d3c
testq %r15, %r15
jne 0x7e89b
leaq -0x480(%rbp), %rax
cmpq %rax, %r14
movq -0xa8(%rbp), %r13
je 0x7e8c6
movq %r14, %rdi
callq 0x41d3c
movq -0xa0(%rbp), %rdi
callq 0x41d3c
movq %rbx, %rdi
callq 0x41d3c
movq %r13, %rdi
callq 0x41d3c
jmp 0x7e8f3
xorl %edi, %edi
callq 0x41d3c
movq %rbx, %rdi
callq 0x41d3c
movq -0xd8(%rbp), %rdi
callq 0x41d3c
movq -0x188(%rbp), %rax
movzwl 0x8(%rax), %esi
movzwl 0xa(%rax), %edx
movzwl 0x4(%rax), %ecx
movzwl 0x6(%rax), %eax
movq -0x90(%rbp), %r8
cmpb $0x2, %r8b
jb 0x7ebb1
movq $0x0, -0x480(%rbp)
xorl %ebx, %ebx
testw %ax, %ax
movl -0xac(%rbp), %edi
je 0x7ebdc
movzwl %si, %esi
movzwl %dx, %edx
movzwl %cx, %r14d
movzwl %ax, %eax
movl %eax, -0x50(%rbp)
addq -0x168(%rbp), %rsi
imull %edi, %edx
movslq %edx, %r13
addq %rsi, %r13
movl %r14d, %eax
subl %r8d, %eax
movq %rax, -0x30(%rbp)
leal 0x1(%rax), %r15d
leaq -0x480(%rbp), %rdi
xorl %esi, %esi
movq -0x90(%rbp), %r12
movq %r12, %rdx
callq 0xc260
leal -0x2(%r12), %eax
cmpl $0x3, %eax
ja 0x7eafb
leaq 0x48002(%rip), %rcx     # 0xc69a0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x0, -0x30(%rbp)
movq -0xc0(%rbp), %r12
js 0x7eaf5
xorl %eax, %eax
xorl %ecx, %ecx
movzbl (%r13,%rax), %edx
movl %eax, %esi
andl $0x7, %esi
movzbl -0x480(%rbp,%rsi), %esi
leal 0x2(%rax), %edi
andl $0x7, %edi
movb %dl, -0x480(%rbp,%rdi)
subl %esi, %edx
addl %edx, %ecx
movl %ecx, %edx
shrl %edx
movb %dl, (%r13,%rax)
incq %rax
cmpq %rax, %r15
jne 0x7e9bc
jmp 0x7eb57
cmpl $0x0, -0x30(%rbp)
movq -0xc0(%rbp), %r12
js 0x7eaf5
xorl %eax, %eax
xorl %ecx, %ecx
movzbl (%r13,%rax), %edx
movl %eax, %esi
andl $0x7, %esi
movzbl -0x480(%rbp,%rsi), %edi
xorq $0x4, %rsi
movb %dl, -0x480(%rbp,%rsi)
subl %edi, %edx
addl %edx, %ecx
movl %ecx, %edx
shrl $0x2, %edx
movb %dl, (%r13,%rax)
incq %rax
cmpq %rax, %r15
jne 0x7ea0b
jmp 0x7eb57
cmpl $0x0, -0x30(%rbp)
movq -0xc0(%rbp), %r12
js 0x7eaf5
xorl %eax, %eax
xorl %ecx, %ecx
movl $0xcccccccd, %r8d       # imm = 0xCCCCCCCD
movzbl (%r13,%rax), %edx
movl %eax, %esi
andl $0x7, %esi
movzbl -0x480(%rbp,%rsi), %esi
leal 0x5(%rax), %edi
andl $0x7, %edi
movb %dl, -0x480(%rbp,%rdi)
subl %esi, %edx
addl %edx, %ecx
movq %rcx, %rdx
imulq %r8, %rdx
shrq $0x22, %rdx
movb %dl, (%r13,%rax)
incq %rax
cmpq %rax, %r15
jne 0x7ea5f
jmp 0x7eb57
cmpl $0x0, -0x30(%rbp)
movq -0xc0(%rbp), %r12
js 0x7eaf5
xorl %eax, %eax
xorl %ecx, %ecx
movl $0xaaaaaaab, %r8d       # imm = 0xAAAAAAAB
movzbl (%r13,%rax), %edx
movl %eax, %esi
andl $0x7, %esi
movzbl -0x480(%rbp,%rsi), %esi
leal 0x3(%rax), %edi
andl $0x7, %edi
movb %dl, -0x480(%rbp,%rdi)
subl %esi, %edx
addl %edx, %ecx
movq %rcx, %rdx
imulq %r8, %rdx
shrq $0x21, %rdx
movb %dl, (%r13,%rax)
incq %rax
cmpq %rax, %r15
jne 0x7eab7
jmp 0x7eb57
xorl %eax, %eax
xorl %ecx, %ecx
jmp 0x7eb5a
cmpl $0x0, -0x30(%rbp)
movq -0x240(%rbp), %r9
js 0x7eba4
xorl %esi, %esi
xorl %ecx, %ecx
movq -0x90(%rbp), %r8
movq -0xc0(%rbp), %r12
movzbl (%r13,%rsi), %eax
leal (%r9,%rsi), %edx
movl %esi, %edi
andl $0x7, %edi
movzbl -0x480(%rbp,%rdi), %edi
andl $0x7, %edx
movb %al, -0x480(%rbp,%rdx)
subl %edi, %eax
addl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r8d
movb %al, (%r13,%rsi)
incq %rsi
cmpq %rsi, %r15
jne 0x7eb1e
movl %r15d, %eax
cmpl %r14d, %eax
jge 0x7eb93
movl %eax, %esi
cmpb $0x0, (%r13,%rsi)
jne 0x7f411
movl %esi, %eax
andl $0x7, %eax
movzbl -0x480(%rbp,%rax), %eax
subl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl -0x90(%rbp)
movb %al, (%r13,%rsi)
incq %rsi
cmpl %r14d, %esi
jl 0x7eb61
addq -0x38(%rbp), %r13
incl %ebx
cmpl -0x50(%rbp), %ebx
jne 0x7e971
jmp 0x7ebbd
xorl %eax, %eax
xorl %ecx, %ecx
movq -0xc0(%rbp), %r12
jmp 0x7eb5a
movq -0x78(%rbp), %r13
movl -0xac(%rbp), %edi
jmp 0x7ebe2
movq -0x188(%rbp), %rax
movzwl 0x8(%rax), %esi
movzwl 0xa(%rax), %edx
movzwl 0x4(%rax), %ecx
movzwl 0x6(%rax), %eax
movl -0xac(%rbp), %edi
jmp 0x7ebde
xorl %eax, %eax
movq -0x78(%rbp), %r13
movq -0x148(%rbp), %r15
cmpb $0x2, %r12b
jb 0x7ee8b
movq $0x0, -0x480(%rbp)
xorl %ebx, %ebx
testw %cx, %cx
je 0x7ee89
movzwl %cx, %ecx
movl %ecx, -0x50(%rbp)
movzwl %ax, %r15d
movzwl %si, %eax
addq -0x168(%rbp), %rax
movzwl %dx, %ecx
imull %edi, %ecx
movslq %ecx, %r13
addq %rax, %r13
movl %r15d, %eax
subl %r12d, %eax
movq %rax, -0x30(%rbp)
leal 0x1(%rax), %r14d
leaq -0x480(%rbp), %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0xc260
leal -0x2(%r12), %eax
cmpl $0x3, %eax
ja 0x7edbc
leaq 0x47d53(%rip), %rcx     # 0xc69b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x0, -0x30(%rbp)
js 0x7ee13
xorl %eax, %eax
movq %r13, %rdx
xorl %ecx, %ecx
movq -0x38(%rbp), %r9
movzbl (%rdx), %esi
movl %eax, %edi
andl $0x7, %edi
movzbl -0x480(%rbp,%rdi), %edi
leal 0x2(%rax), %r8d
andl $0x7, %r8d
movb %sil, -0x480(%rbp,%r8)
subl %edi, %esi
addl %esi, %ecx
movl %ecx, %esi
shrl %esi
movb %sil, (%rdx)
incq %rax
addq %r9, %rdx
cmpq %rax, %r14
jne 0x7ec7b
jmp 0x7ee0e
cmpl $0x0, -0x30(%rbp)
js 0x7ee13
xorl %eax, %eax
movq %r13, %rdx
xorl %ecx, %ecx
movq -0x38(%rbp), %r9
movzbl (%rdx), %esi
movl %eax, %edi
andl $0x7, %edi
movzbl -0x480(%rbp,%rdi), %r8d
xorq $0x4, %rdi
movb %sil, -0x480(%rbp,%rdi)
subl %r8d, %esi
addl %esi, %ecx
movl %ecx, %esi
shrl $0x2, %esi
movb %sil, (%rdx)
incq %rax
addq %r9, %rdx
cmpq %rax, %r14
jne 0x7eccb
jmp 0x7ee0e
cmpl $0x0, -0x30(%rbp)
js 0x7ee13
xorl %eax, %eax
movq %r13, %rdx
xorl %ecx, %ecx
movl $0xcccccccd, %r9d       # imm = 0xCCCCCCCD
movq -0x38(%rbp), %r10
movzbl (%rdx), %esi
movl %eax, %edi
andl $0x7, %edi
movzbl -0x480(%rbp,%rdi), %edi
leal 0x5(%rax), %r8d
andl $0x7, %r8d
movb %sil, -0x480(%rbp,%r8)
subl %edi, %esi
addl %esi, %ecx
movq %rcx, %rsi
imulq %r9, %rsi
shrq $0x22, %rsi
movb %sil, (%rdx)
incq %rax
addq %r10, %rdx
cmpq %rax, %r14
jne 0x7ed20
jmp 0x7ee0e
cmpl $0x0, -0x30(%rbp)
js 0x7ee13
xorl %eax, %eax
movq %r13, %rdx
xorl %ecx, %ecx
movl $0xaaaaaaab, %r9d       # imm = 0xAAAAAAAB
movq -0x38(%rbp), %r10
movzbl (%rdx), %esi
movl %eax, %edi
andl $0x7, %edi
movzbl -0x480(%rbp,%rdi), %edi
leal 0x3(%rax), %r8d
andl $0x7, %r8d
movb %sil, -0x480(%rbp,%r8)
subl %edi, %esi
addl %esi, %ecx
movq %rcx, %rsi
imulq %r9, %rsi
shrq $0x21, %rsi
movb %sil, (%rdx)
incq %rax
addq %r10, %rdx
cmpq %rax, %r14
jne 0x7ed7d
jmp 0x7ee0e
cmpl $0x0, -0x30(%rbp)
movq -0x238(%rbp), %r10
js 0x7ee13
xorl %esi, %esi
movq %r13, %rdi
xorl %ecx, %ecx
movq -0x38(%rbp), %r9
movzbl (%rdi), %eax
leal (%r10,%rsi), %edx
movl %esi, %r8d
andl $0x7, %r8d
movzbl -0x480(%rbp,%r8), %r8d
andl $0x7, %edx
movb %al, -0x480(%rbp,%rdx)
subl %r8d, %eax
addl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r12d
movb %al, (%rdi)
incq %rsi
addq %r9, %rdi
cmpq %rsi, %r14
jne 0x7edd4
movl %r14d, %eax
jmp 0x7ee17
xorl %eax, %eax
xorl %ecx, %ecx
cmpl %r15d, %eax
jge 0x7ee57
movslq %eax, %rsi
movq -0x38(%rbp), %rdi
imulq %rsi, %rdi
addq %r13, %rdi
cmpb $0x0, (%rdi)
jne 0x7f430
movl %esi, %eax
andl $0x7, %eax
movzbl -0x480(%rbp,%rax), %eax
subl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r12d
movb %al, (%rdi)
incq %rsi
addq -0x38(%rbp), %rdi
cmpl %esi, %r15d
jne 0x7ee2a
incq %r13
incl %ebx
cmpl -0x50(%rbp), %ebx
jne 0x7ec37
movq -0x188(%rbp), %rax
movzwl 0x8(%rax), %esi
movzwl 0xa(%rax), %edx
movzwl 0x4(%rax), %ecx
movzwl 0x6(%rax), %eax
movq -0x78(%rbp), %r13
movq -0x148(%rbp), %r15
jmp 0x7ee8b
xorl %ecx, %ecx
movl -0x1a4(%rbp), %r8d
shll $0x8, %r8d
addl -0x1a0(%rbp), %r8d
movq -0x228(%rbp), %rdi
movw %si, (%rdi)
movw %dx, 0x2(%rdi)
addl %ecx, %esi
movw %si, 0x4(%rdi)
movswl %r8w, %esi
xorps %xmm0, %xmm0
cvtsi2ss %esi, %xmm0
leal (%rax,%rdx), %edx
movw %dx, 0x6(%rdi)
mulss -0x1f0(%rbp), %xmm0
movss %xmm0, 0x10(%rdi)
movl -0x1b4(%rbp), %edx
xorps %xmm0, %xmm0
cvtsi2ss %edx, %xmm0
movss -0x19c(%rbp), %xmm3
mulss %xmm3, %xmm0
movss -0x124(%rbp), %xmm2
addss %xmm2, %xmm0
movss %xmm0, 0x8(%rdi)
movl -0x1b0(%rbp), %esi
xorps %xmm0, %xmm0
cvtsi2ss %esi, %xmm0
movss -0x198(%rbp), %xmm4
mulss %xmm4, %xmm0
movss -0x128(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0xc(%rdi)
movzwl %cx, %ecx
addl %edx, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
mulss %xmm3, %xmm0
addss %xmm2, %xmm0
movss %xmm0, 0x14(%rdi)
movzwl %ax, %eax
addl %esi, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm4, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x18(%rdi)
movl 0xb0(%r15), %eax
movq -0x220(%rbp), %rdx
movq -0x230(%rbp), %rsi
incq %rsi
movslq %eax, %rcx
cmpq %rcx, %rsi
jl 0x7d7c2
movq -0x138(%rbp), %rcx
movq %rcx, %rax
shlq $0x7, %rax
leaq (%rax,%rcx,8), %rax
movq -0x200(%rbp), %rcx
movss 0x50(%rcx,%rax), %xmm0
ucomiss 0x36044(%rip), %xmm0    # 0xb4fe4
jne 0x7efa8
jnp 0x7f05a
xorl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
mulss %xmm0, %xmm1
cvttss2si %xmm1, %rcx
movl $0xff, %edx
cmpl %edx, %ecx
jb 0x7efc8
movl $0xff, %ecx
movb %cl, -0x480(%rbp,%rax)
incq %rax
cmpq $0x100, %rax            # imm = 0x100
jne 0x7efaa
movl 0xe8(%r15), %esi
testl %esi, %esi
jle 0x7f05a
movq 0xc8(%r15), %rax
xorl %ecx, %ecx
cmpl $0x0, 0xc(%rax)
je 0x7f050
movzwl 0x6(%rax), %edx
testl %edx, %edx
je 0x7f050
movslq 0x28(%r13), %rsi
movzwl 0x4(%rax), %edi
movzwl 0xa(%rax), %r8d
movzwl 0x8(%rax), %r9d
addq 0x18(%r13), %r9
imulq %rsi, %r8
addq %r9, %r8
testq %rdi, %rdi
je 0x7f03a
xorl %r9d, %r9d
movzbl (%r8,%r9), %r10d
movb -0x480(%rbp,%r10), %r10b
movb %r10b, (%r8,%r9)
incq %r9
cmpq %r9, %rdi
jne 0x7f021
leal -0x1(%rdx), %r9d
addq %rsi, %r8
cmpl $0x1, %edx
movl %r9d, %edx
jg 0x7f019
movl 0xe8(%r15), %esi
incl %ecx
addq $0x10, %rax
cmpl %esi, %ecx
jl 0x7efee
movq $0x0, 0xc8(%r15)
movq -0x138(%rbp), %rax
incq %rax
cmpq -0x68(%rbp), %rax
jne 0x7d5c5
movq -0xc8(%rbp), %rdi
callq 0x41d3c
movq -0x1d8(%rbp), %rdi
callq 0x41d3c
movq -0x108(%rbp), %rdi
testq %rdi, %rdi
je 0x7f0b8
movq $0x0, -0x110(%rbp)
callq 0x41d3c
movq $0x0, -0x108(%rbp)
cmpl $0x0, -0x68(%rbp)
jle 0x7f3d4
xorl %eax, %eax
movq %rax, -0x30(%rbp)
imulq $0x110, %rax, %r12      # imm = 0x110
movq -0x58(%rbp), %rax
movl 0xe8(%rax,%r12), %eax
testl %eax, %eax
je 0x7f37b
movq -0x78(%rbp), %rcx
movslq 0x60(%rcx), %rcx
movq -0x30(%rbp), %r8
cmpq %rcx, %r8
jge 0x7f528
addq -0x58(%rbp), %r12
movq 0x8(%r12), %rcx
movslq 0x24(%r12), %rdx
movzbl 0x5(%rcx,%rdx), %esi
movzbl 0x4(%rcx,%rdx), %edi
shll $0x8, %edi
movswl %di, %r15d
orl %esi, %r15d
movss 0x35eae(%rip), %xmm0    # 0xb4fd0
testw %r15w, %r15w
jle 0x7f130
movss 0x35eb4(%rip), %xmm0    # 0xb4fe4
movss %xmm0, -0x90(%rbp)
movzbl 0x7(%rcx,%rdx), %esi
movzbl 0x6(%rcx,%rdx), %ecx
shll $0x8, %ecx
movswl %cx, %r13d
orl %esi, %r13d
movss 0x35e7c(%rip), %xmm0    # 0xb4fd0
movss %xmm0, -0x38(%rbp)
testw %r13w, %r13w
jle 0x7f16c
movss 0x35e7d(%rip), %xmm0    # 0xb4fe4
movss %xmm0, -0x38(%rbp)
movq -0x78(%rbp), %rcx
movq 0x68(%rcx), %rcx
movq %r8, %rdx
shlq $0x7, %rdx
leaq (%rdx,%r8,8), %rdx
leaq (%rcx,%rdx), %rbx
movq 0x80(%rcx,%rdx), %r14
cmpb $0x1, 0x48(%rcx,%rdx)
jne 0x7f1a3
movl 0x50(%r14), %ecx
incl %ecx
movss 0x5c(%r14), %xmm0
jmp 0x7f229
movss 0x14(%rcx,%rdx), %xmm0
movss %xmm0, -0x50(%rbp)
movq %r14, %rdi
callq 0x80b54
xorps %xmm0, %xmm0
cvtsi2ss %r15d, %xmm0
subl %r13d, %r15d
cvtsi2ss %r15d, %xmm1
movss -0x50(%rbp), %xmm2
divss %xmm1, %xmm2
mulss %xmm2, %xmm0
addss -0x90(%rbp), %xmm0
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
xorps %xmm1, %xmm1
cvtsi2ss %r13d, %xmm1
mulss %xmm2, %xmm1
addss -0x38(%rbp), %xmm1
cvttps2dq %xmm1, %xmm1
cvtdq2ps %xmm1, %xmm1
movss 0x14(%rbx), %xmm2
movss %xmm2, 0x14(%r14)
movq %rbx, 0x48(%r14)
movq -0x78(%rbp), %rax
movq %rax, 0x40(%r14)
movss %xmm0, 0x5c(%r14)
movss %xmm1, 0x60(%r14)
movl 0xe8(%r12), %eax
movw $0x1, %cx
movw %cx, 0x50(%r14)
addss 0x35dce(%rip), %xmm0    # 0xb5004
testl %eax, %eax
jle 0x7f37b
movss 0x2c(%rbx), %xmm1
movss %xmm1, -0x38(%rbp)
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
addss 0x30(%rbx), %xmm0
movaps %xmm0, -0x90(%rbp)
xorl %r13d, %r13d
xorl %r15d, %r15d
movslq 0x100(%r12), %rax
cmpq %rax, %r15
jge 0x7f46e
movq 0xd0(%r12), %rax
movq 0x108(%r12), %rcx
movzwl (%rcx,%r15,4), %edx
movss 0x8(%rax,%r13), %xmm0
xorps %xmm9, %xmm9
addss %xmm9, %xmm0
movss 0xc(%rax,%r13), %xmm1
addss %xmm9, %xmm1
movss 0x14(%rax,%r13), %xmm2
addss %xmm9, %xmm2
movss 0x18(%rax,%r13), %xmm3
movq -0x78(%rbp), %rcx
xorps %xmm4, %xmm4
cvtsi2ssl 0x2c(%rcx), %xmm4
movss 0x35d1a(%rip), %xmm7    # 0xb4fe4
movaps %xmm7, %xmm8
divss %xmm4, %xmm8
xorps %xmm5, %xmm5
cvtsi2ssl 0x28(%rcx), %xmm5
movzwl (%rax,%r13), %ecx
xorps %xmm4, %xmm4
cvtsi2ss %ecx, %xmm4
divss %xmm5, %xmm7
mulss %xmm7, %xmm4
movzwl 0x2(%rax,%r13), %ecx
xorps %xmm5, %xmm5
cvtsi2ss %ecx, %xmm5
movzwl 0x4(%rax,%r13), %ecx
xorps %xmm6, %xmm6
cvtsi2ss %ecx, %xmm6
mulss %xmm7, %xmm6
movzwl 0x6(%rax,%r13), %ecx
xorps %xmm7, %xmm7
cvtsi2ss %ecx, %xmm7
addss %xmm9, %xmm3
mulss %xmm8, %xmm5
mulss %xmm8, %xmm7
movss -0x38(%rbp), %xmm8
addss %xmm8, %xmm0
movaps -0x90(%rbp), %xmm9
addss %xmm9, %xmm1
addss %xmm8, %xmm2
addss %xmm9, %xmm3
movss 0x10(%rax,%r13), %xmm8
movss %xmm8, (%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8038e
incq %r15
movslq 0xe8(%r12), %rax
addq $0x1c, %r13
cmpq %rax, %r15
jl 0x7f261
movq -0x30(%rbp), %rax
incq %rax
cmpq -0x68(%rbp), %rax
jne 0x7f0c4
cmpl $0x0, -0x68(%rbp)
movq -0x78(%rbp), %r13
jle 0x7f3d4
xorl %ebx, %ebx
movq -0x58(%rbp), %rax
movq 0x108(%rax,%rbx), %rdi
testq %rdi, %rdi
je 0x7f3ae
callq 0x41d3c
movq -0x58(%rbp), %rax
movq 0xf8(%rax,%rbx), %rdi
testq %rdi, %rdi
je 0x7f3c4
callq 0x41d3c
addq $0x110, %rbx            # imm = 0x110
cmpq %rbx, -0x1f8(%rbp)
jne 0x7f398
movq %r13, %rdi
callq 0x805ff
movq -0x158(%rbp), %rdi
testq %rdi, %rdi
je 0x7f3ed
callq 0x41d3c
movb $0x1, %bl
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x7f3fd
callq 0x41d3c
movl %ebx, %eax
addq $0x468, %rsp            # imm = 0x468
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4f194(%rip), %rdi     # 0xce5ac
leaq 0x4ead3(%rip), %rsi     # 0xcdef2
leaq 0x4f195(%rip), %rcx     # 0xce5bb
movl $0xf41, %edx            # imm = 0xF41
callq 0xc140
leaq 0x4f1ca(%rip), %rdi     # 0xce601
leaq 0x4eab4(%rip), %rsi     # 0xcdef2
leaq 0x4f1db(%rip), %rcx     # 0xce620
movl $0xf7f, %edx            # imm = 0xF7F
callq 0xc140
leaq 0x4f062(%rip), %rdi     # 0xce4b8
leaq 0x4ea95(%rip), %rsi     # 0xcdef2
leaq 0x4efe9(%rip), %rcx     # 0xce44d
movl $0xba5, %edx            # imm = 0xBA5
callq 0xc140
leaq 0x3a203(%rip), %rdi     # 0xb9678
leaq 0x3a20f(%rip), %rsi     # 0xb968b
leaq 0x41081(%rip), %rcx     # 0xc0504
movl $0x65c, %edx            # imm = 0x65C
callq 0xc140
leaq 0x4eed4(%rip), %rdi     # 0xce368
leaq 0x4ea57(%rip), %rsi     # 0xcdef2
leaq 0x4eed3(%rip), %rcx     # 0xce375
movl $0xc63, %edx            # imm = 0xC63
callq 0xc140
leaq 0x4ef21(%rip), %rdi     # 0xce3d4
leaq 0x4ea38(%rip), %rsi     # 0xcdef2
leaq 0x4eeb4(%rip), %rcx     # 0xce375
movl $0xc76, %edx            # imm = 0xC76
callq 0xc140
leaq 0x4e567(%rip), %rdi     # 0xcda39
leaq 0x4dccd(%rip), %rsi     # 0xcd1a6
leaq 0x4e4d3(%rip), %rcx     # 0xcd9b3
movl $0x880, %edx            # imm = 0x880
callq 0xc140
leaq 0x4e5d6(%rip), %rdi     # 0xcdac7
leaq 0x4dcae(%rip), %rsi     # 0xcd1a6
leaq 0x4e4b4(%rip), %rcx     # 0xcd9b3
movl $0x8e3, %edx            # imm = 0x8E3
callq 0xc140
leaq 0x4ef93(%rip), %rdi     # 0xce4a3
leaq 0x4e9db(%rip), %rsi     # 0xcdef2
leaq 0x4ef2f(%rip), %rcx     # 0xce44d
movl $0xbb8, %edx            # imm = 0xBB8
callq 0xc140
leaq 0x3a149(%rip), %rdi     # 0xb9678
leaq 0x3a155(%rip), %rsi     # 0xb968b
leaq 0x4f690(%rip), %rcx     # 0xcebcd
jmp 0x7f483
leaq 0x4ee9f(%rip), %rdi     # 0xce3e8
leaq 0x4e9a2(%rip), %rsi     # 0xcdef2
leaq 0x4ee9d(%rip), %rcx     # 0xce3f4
movl $0xad1, %edx            # imm = 0xAD1
callq 0xc140
leaq 0x4e4e8(%rip), %rdi     # 0xcda50
leaq 0x4dc37(%rip), %rsi     # 0xcd1a6
leaq 0x4e43d(%rip), %rcx     # 0xcd9b3
movl $0x885, %edx            # imm = 0x885
callq 0xc140
leaq 0x4ef40(%rip), %rdi     # 0xce4c7
leaq 0x4e964(%rip), %rsi     # 0xcdef2
leaq 0x4eeb8(%rip), %rcx     # 0xce44d
movl $0xbd4, %edx            # imm = 0xBD4
callq 0xc140
leaq 0x4ef33(%rip), %rdi     # 0xce4d9
leaq 0x4e945(%rip), %rsi     # 0xcdef2
leaq 0x4ee99(%rip), %rcx     # 0xce44d
movl $0xbfb, %edx            # imm = 0xBFB
callq 0xc140
leaq 0x3a0b3(%rip), %rdi     # 0xb9678
leaq 0x3a0bf(%rip), %rsi     # 0xb968b
leaq 0x4f6e4(%rip), %rcx     # 0xcecb7
jmp 0x7f483
leaq 0x4e408(%rip), %rdi     # 0xcd9e7
leaq 0x4dbc0(%rip), %rsi     # 0xcd1a6
leaq 0x4e3c6(%rip), %rcx     # 0xcd9b3
movl $0x877, %edx            # imm = 0x877
callq 0xc140
leaq 0x3a07a(%rip), %rdi     # 0xb9678
leaq 0x3a086(%rip), %rsi     # 0xb968b
leaq 0x4f72f(%rip), %rcx     # 0xced3b
jmp 0x7f483
leaq 0x3a060(%rip), %rdi     # 0xb9678
leaq 0x3a06c(%rip), %rsi     # 0xb968b
leaq 0x4f6db(%rip), %rcx     # 0xced01
jmp 0x7f483
leaq 0x4e466(%rip), %rdi     # 0xcda98
leaq 0x4db6d(%rip), %rsi     # 0xcd1a6
leaq 0x4e373(%rip), %rcx     # 0xcd9b3
movl $0x8b4, %edx            # imm = 0x8B4
callq 0xc140
leaq 0x4e8c0(%rip), %rdi     # 0xcdf11
leaq 0x4e89a(%rip), %rsi     # 0xcdef2
leaq 0x4e8ca(%rip), %rcx     # 0xcdf29
movl $0x46c, %edx            # imm = 0x46C
callq 0xc140
leaq 0x3a008(%rip), %rdi     # 0xb9678
leaq 0x3a014(%rip), %rsi     # 0xb968b
leaq 0x4f5ef(%rip), %rcx     # 0xcec6d
jmp 0x7f483
leaq 0x4e30e(%rip), %rdi     # 0xcd998
leaq 0x4db15(%rip), %rsi     # 0xcd1a6
leaq 0x4e31b(%rip), %rcx     # 0xcd9b3
movl $0x85f, %edx            # imm = 0x85F
callq 0xc140
leaq 0x4ea71(%rip), %rdi     # 0xce11a
leaq 0x4ea8e(%rip), %rsi     # 0xce13e
leaq 0x4eaa6(%rip), %rcx     # 0xce15d
movl $0x10a, %edx            # imm = 0x10A
callq 0xc140
jmp 0x7f73d
jmp 0x7f73d
movq %rax, %r14
movq -0x40(%rbp), %r12
jmp 0x7f71d
jmp 0x7f6f2
jmp 0x7f73d
movq %rax, %r14
jmp 0x7f725
jmp 0x7f6f2
jmp 0x7f73d
jmp 0x7f73d
jmp 0x7f6f2
jmp 0x7f6f2
movq %rax, %r14
jmp 0x7f71d
jmp 0x7f711
jmp 0x7f6f2
jmp 0x7f711
jmp 0x7f6f2
jmp 0x7f6f2
jmp 0x7f6f2
movq %rax, %r14
leaq -0x160(%rbp), %rdi
callq 0x86096
leaq -0x110(%rbp), %rdi
callq 0x860b2
jmp 0x7f725
jmp 0x7f711
movq %rax, %r14
movq -0x40(%rbp), %r12
testq %r12, %r12
je 0x7f725
movq %r12, %rdi
callq 0x41d3c
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x7f733
callq 0x41d3c
movq %r14, %rdi
callq 0xc560
jmp 0x7f73d
movq %rax, %rdi
callq 0x39dbe