// File: /workspace/github_cpp_makefile_star2_O2/donfreiday[P]gb/./imgui/imgui_draw.cpp
// Function: ImFontAtlas::Build()
bool    ImFontAtlas::Build()
{
    IM_ASSERT(ConfigData.Size > 0);

    TexID = NULL;
    TexWidth = TexHeight = 0;
    TexUvWhitePixel = ImVec2(0, 0);
    ClearTexData();

    struct ImFontTempBuildData
    {
        stbtt_fontinfo      FontInfo;
        stbrp_rect*         Rects;
        stbtt_pack_range*   Ranges;
        int                 RangesCount;
    };
    ImFontTempBuildData* tmp_array = (ImFontTempBuildData*)ImGui::MemAlloc((size_t)ConfigData.Size * sizeof(ImFontTempBuildData));

    // Initialize font information early (so we can error without any cleanup) + count glyphs
    int total_glyph_count = 0;
    int total_glyph_range_count = 0;
    for (int input_i = 0; input_i < ConfigData.Size; input_i++)
    {
        ImFontConfig& cfg = ConfigData[input_i];
        ImFontTempBuildData& tmp = tmp_array[input_i];

        IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == this));
        const int font_offset = stbtt_GetFontOffsetForIndex((unsigned char*)cfg.FontData, cfg.FontNo);
        IM_ASSERT(font_offset >= 0);
        if (!stbtt_InitFont(&tmp.FontInfo, (unsigned char*)cfg.FontData, font_offset))
            return false;

        // Count glyphs
        if (!cfg.GlyphRanges)
            cfg.GlyphRanges = GetGlyphRangesDefault();
        for (const ImWchar* in_range = cfg.GlyphRanges; in_range[0] && in_range[1]; in_range += 2)
        {
            total_glyph_count += (in_range[1] - in_range[0]) + 1;
            total_glyph_range_count++;
        }
    }

    // Start packing
    TexWidth = (TexDesiredWidth > 0) ? TexDesiredWidth : (total_glyph_count > 2000) ? 2048 : (total_glyph_count > 1000) ? 1024 : 512;  // Width doesn't actually matters much but some API/GPU have texture size limitations, and increasing width can decrease height.
    TexHeight = 0;
    const int max_tex_height = 1024*32;
    stbtt_pack_context spc;
    stbtt_PackBegin(&spc, NULL, TexWidth, max_tex_height, 0, 1, NULL);

    // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values).
    ImVector<stbrp_rect> extra_rects;
    RenderCustomTexData(0, &extra_rects);
    stbtt_PackSetOversampling(&spc, 1, 1);
    stbrp_pack_rects((stbrp_context*)spc.pack_info, &extra_rects[0], extra_rects.Size);
    for (int i = 0; i < extra_rects.Size; i++)
        if (extra_rects[i].was_packed)
            TexHeight = ImMax(TexHeight, extra_rects[i].y + extra_rects[i].h);

    // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0)
    int buf_packedchars_n = 0, buf_rects_n = 0, buf_ranges_n = 0;
    stbtt_packedchar* buf_packedchars = (stbtt_packedchar*)ImGui::MemAlloc(total_glyph_count * sizeof(stbtt_packedchar));
    stbrp_rect* buf_rects = (stbrp_rect*)ImGui::MemAlloc(total_glyph_count * sizeof(stbrp_rect));
    stbtt_pack_range* buf_ranges = (stbtt_pack_range*)ImGui::MemAlloc(total_glyph_range_count * sizeof(stbtt_pack_range));
    memset(buf_packedchars, 0, total_glyph_count * sizeof(stbtt_packedchar));
    memset(buf_rects, 0, total_glyph_count * sizeof(stbrp_rect));              // Unnecessary but let's clear this for the sake of sanity.
    memset(buf_ranges, 0, total_glyph_range_count * sizeof(stbtt_pack_range));

    // First font pass: pack all glyphs (no rendering at this point, we are working with rectangles in an infinitely tall texture at this point)
    for (int input_i = 0; input_i < ConfigData.Size; input_i++)
    {
        ImFontConfig& cfg = ConfigData[input_i];
        ImFontTempBuildData& tmp = tmp_array[input_i];

        // Setup ranges
        int glyph_count = 0;
        int glyph_ranges_count = 0;
        for (const ImWchar* in_range = cfg.GlyphRanges; in_range[0] && in_range[1]; in_range += 2)
        {
            glyph_count += (in_range[1] - in_range[0]) + 1;
            glyph_ranges_count++;
        }
        tmp.Ranges = buf_ranges + buf_ranges_n;
        tmp.RangesCount = glyph_ranges_count;
        buf_ranges_n += glyph_ranges_count;
        for (int i = 0; i < glyph_ranges_count; i++)
        {
            const ImWchar* in_range = &cfg.GlyphRanges[i * 2];
            stbtt_pack_range& range = tmp.Ranges[i];
            range.font_size = cfg.SizePixels;
            range.first_unicode_codepoint_in_range = in_range[0];
            range.num_chars = (in_range[1] - in_range[0]) + 1;
            range.chardata_for_range = buf_packedchars + buf_packedchars_n;
            buf_packedchars_n += range.num_chars;
        }

        // Pack
        tmp.Rects = buf_rects + buf_rects_n;
        buf_rects_n += glyph_count;
        stbtt_PackSetOversampling(&spc, cfg.OversampleH, cfg.OversampleV);
        int n = stbtt_PackFontRangesGatherRects(&spc, &tmp.FontInfo, tmp.Ranges, tmp.RangesCount, tmp.Rects);
        stbrp_pack_rects((stbrp_context*)spc.pack_info, tmp.Rects, n);

        // Extend texture height
        for (int i = 0; i < n; i++)
            if (tmp.Rects[i].was_packed)
                TexHeight = ImMax(TexHeight, tmp.Rects[i].y + tmp.Rects[i].h);
    }
    IM_ASSERT(buf_rects_n == total_glyph_count);
    IM_ASSERT(buf_packedchars_n == total_glyph_count);
    IM_ASSERT(buf_ranges_n == total_glyph_range_count);

    // Create texture
    TexHeight = ImUpperPowerOfTwo(TexHeight);
    TexPixelsAlpha8 = (unsigned char*)ImGui::MemAlloc(TexWidth * TexHeight);
    memset(TexPixelsAlpha8, 0, TexWidth * TexHeight);
    spc.pixels = TexPixelsAlpha8;
    spc.height = TexHeight;

    // Second pass: render characters
    for (int input_i = 0; input_i < ConfigData.Size; input_i++)
    {
        ImFontConfig& cfg = ConfigData[input_i];
        ImFontTempBuildData& tmp = tmp_array[input_i];
        stbtt_PackSetOversampling(&spc, cfg.OversampleH, cfg.OversampleV);
        stbtt_PackFontRangesRenderIntoRects(&spc, &tmp.FontInfo, tmp.Ranges, tmp.RangesCount, tmp.Rects);
        tmp.Rects = NULL;
    }

    // End packing
    stbtt_PackEnd(&spc);
    ImGui::MemFree(buf_rects);
    buf_rects = NULL;

    // Third pass: setup ImFont and glyphs for runtime
    for (int input_i = 0; input_i < ConfigData.Size; input_i++)
    {
        ImFontConfig& cfg = ConfigData[input_i];
        ImFontTempBuildData& tmp = tmp_array[input_i];
        ImFont* dst_font = cfg.DstFont;

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

        float ascent = unscaled_ascent * font_scale;
        float descent = unscaled_descent * font_scale;
        if (!cfg.MergeMode)
        {
            dst_font->ContainerAtlas = this;
            dst_font->ConfigData = &cfg;
            dst_font->ConfigDataCount = 0;
            dst_font->FontSize = cfg.SizePixels;
            dst_font->Ascent = ascent;
            dst_font->Descent = descent;
            dst_font->Glyphs.resize(0);
        }
        dst_font->ConfigDataCount++;
        float off_y = (cfg.MergeMode && cfg.MergeGlyphCenterV) ? (ascent - dst_font->Ascent) * 0.5f : 0.0f;

        dst_font->FallbackGlyph = NULL; // Always clear fallback so FindGlyph can return NULL. It will be set again in BuildLookupTable()
        for (int i = 0; i < tmp.RangesCount; i++)
        {
            stbtt_pack_range& range = tmp.Ranges[i];
            for (int char_idx = 0; char_idx < range.num_chars; char_idx += 1)
            {
                const stbtt_packedchar& pc = range.chardata_for_range[char_idx];
                if (!pc.x0 && !pc.x1 && !pc.y0 && !pc.y1)
                    continue;

                const int codepoint = range.first_unicode_codepoint_in_range + char_idx;
                if (cfg.MergeMode && dst_font->FindGlyph((unsigned short)codepoint))
                    continue;

                stbtt_aligned_quad q;
                float dummy_x = 0.0f, dummy_y = 0.0f;
                stbtt_GetPackedQuad(range.chardata_for_range, TexWidth, TexHeight, char_idx, &dummy_x, &dummy_y, &q, 0);

                dst_font->Glyphs.resize(dst_font->Glyphs.Size + 1);
                ImFont::Glyph& glyph = dst_font->Glyphs.back();
                glyph.Codepoint = (ImWchar)codepoint;
                glyph.X0 = q.x0; glyph.Y0 = q.y0; glyph.X1 = q.x1; glyph.Y1 = q.y1;
                glyph.U0 = q.s0; glyph.V0 = q.t0; glyph.U1 = q.s1; glyph.V1 = q.t1;
                glyph.Y0 += (float)(int)(dst_font->Ascent + off_y + 0.5f);
                glyph.Y1 += (float)(int)(dst_font->Ascent + off_y + 0.5f);
                glyph.XAdvance = (pc.xadvance + cfg.GlyphExtraSpacing.x);  // Bake spacing into XAdvance
                if (cfg.PixelSnapH)
                    glyph.XAdvance = (float)(int)(glyph.XAdvance + 0.5f);
            }
        }
        cfg.DstFont->BuildLookupTable();
    }

    // Cleanup temporaries
    ImGui::MemFree(buf_packedchars);
    ImGui::MemFree(buf_ranges);
    ImGui::MemFree(tmp_array);

    // Render into our custom data block
    RenderCustomTexData(1, &extra_rects);

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp            # imm = 0x448
cmpl $0x0, 0x40(%rdi)
jle 0x2d289
andq $0x0, (%rdi)
andq $0x0, 0x18(%rdi)
leaq 0x40(%rdi), %r14
andq $0x0, 0x24(%rdi)
movq %rdi, %rbx
callq 0x2a90c
movq %rbx, -0x68(%rbp)
movslq 0x40(%rbx), %rax
imulq $0x50, %rax, %rdi
callq 0x82c4
movq %r14, %rdi
movq %rax, -0x100(%rbp)
xorl %r15d, %r15d
xorl %esi, %esi
xorl %r13d, %r13d
movq %r14, -0xd8(%rbp)
movl %esi, -0x60(%rbp)
movslq (%rdi), %r14
cmpq %r14, %r15
movq %r15, -0x1d8(%rbp)
movq %r14, -0x220(%rbp)
movq %r13, -0xe0(%rbp)
jge 0x2ae84
movl %r15d, %esi
callq 0x30362
movq 0x60(%rax), %rcx
testq %rcx, %rcx
je 0x2d26a
movq 0x30(%rcx), %rdx
testq %rdx, %rdx
sete %cl
cmpq -0x68(%rbp), %rdx
sete %dl
orb %cl, %dl
je 0x2d26a
movq (%rax), %r12
movslq 0x10(%rax), %rbx
movzbl (%r12), %ecx
testl %ecx, %ecx
movq %rax, -0xc0(%rbp)
je 0x2abb8
cmpl $0x74, %ecx
je 0x2abdd
cmpl $0x4f, %ecx
je 0x2ab93
cmpl $0x31, %ecx
jne 0x2d24b
cmpb $0x0, 0x1(%r12)
je 0x2abc4
jmp 0x2d24b
cmpb $0x54, 0x1(%r12)
jne 0x2d24b
cmpb $0x54, 0x2(%r12)
jne 0x2d24b
cmpb $0x4f, 0x3(%r12)
je 0x2ac0d
jmp 0x2d24b
cmpb $0x1, 0x1(%r12)
jne 0x2d24b
cmpb $0x0, 0x2(%r12)
jne 0x2d24b
cmpb $0x0, 0x3(%r12)
je 0x2ac0d
jmp 0x2d24b
movzbl 0x1(%r12), %eax
cmpl $0x74, %eax
je 0x2ae2c
cmpl $0x79, %eax
jne 0x2d24b
cmpb $0x70, 0x2(%r12)
jne 0x2d24b
cmpb $0x31, 0x3(%r12)
jne 0x2d24b
negl %ebx
movl $0x0, %r14d
sbbl %r14d, %r14d
testl %r14d, %r14d
js 0x2d24b
imulq $0x50, %r15, %r15
addq -0x100(%rbp), %r15
movq %r12, 0x8(%r15)
movl %r14d, 0x10(%r15)
movq %r12, %rdi
movl %r14d, %esi
leaq 0x151f9(%rip), %rdx     # 0x3fe3a
callq 0x2e9b1
movl %eax, %r13d
movq %r12, %rdi
movl %r14d, %esi
leaq 0x151e9(%rip), %rdx     # 0x3fe3f
callq 0x2e9b1
movl %eax, -0x90(%rbp)
movl %eax, 0x18(%r15)
movq %r12, %rdi
movl %r14d, %esi
leaq 0x151d2(%rip), %rdx     # 0x3fe44
callq 0x2e9b1
movl %eax, -0x30(%rbp)
movl %eax, 0x1c(%r15)
movq %r12, %rdi
movl %r14d, %esi
leaq 0x151be(%rip), %rdx     # 0x3fe49
callq 0x2e9b1
movl %eax, -0x48(%rbp)
movl %eax, 0x20(%r15)
movq %r12, %rdi
movl %r14d, %esi
leaq 0x151aa(%rip), %rdx     # 0x3fe4e
callq 0x2e9b1
movl %eax, -0x40(%rbp)
movl %eax, 0x24(%r15)
movq %r12, %rdi
movl %r14d, %esi
leaq 0x15196(%rip), %rdx     # 0x3fe53
callq 0x2e9b1
movl %eax, %ebx
movl %eax, 0x28(%r15)
movq %r12, %rdi
movl %r14d, %esi
leaq 0x15183(%rip), %rdx     # 0x3fe58
callq 0x2e9b1
movl %eax, 0x2c(%r15)
testl %r13d, %r13d
je 0x2d16e
cmpl $0x0, -0x90(%rbp)
je 0x2d16e
cmpl $0x0, -0x30(%rbp)
je 0x2d16e
cmpl $0x0, -0x48(%rbp)
je 0x2d16e
cmpl $0x0, -0x40(%rbp)
je 0x2d16e
testl %ebx, %ebx
je 0x2d16e
movq %r12, %rdi
movl %r14d, %esi
leaq 0x15136(%rip), %rdx     # 0x3fe5d
callq 0x2e9b1
testl %eax, %eax
je 0x2ad41
movl %eax, %eax
movzwl 0x4(%r12,%rax), %eax
rolw $0x8, %ax
movzwl %ax, %eax
jmp 0x2ad46
movl $0xffff, %eax           # imm = 0xFFFF
movl %eax, 0x14(%r15)
movl %r13d, %eax
movzwl 0x2(%r12,%rax), %eax
rolw $0x8, %ax
andl $0x0, 0x30(%r15)
movzwl %ax, %ebx
leal 0x4(%r13), %r14d
xorl %eax, %eax
subq $0x1, %rbx
jb 0x2adb4
movl %r14d, %ecx
leaq (%r12,%rcx), %rdi
movzwl (%r12,%rcx), %ecx
rolw $0x8, %cx
testw %cx, %cx
je 0x2ad9e
movzwl %cx, %ecx
cmpl $0x3, %ecx
jne 0x2adae
movzwl 0x2(%rdi), %ecx
rolw $0x8, %cx
cmpw $0xa, %cx
je 0x2ad9e
movzwl %cx, %ecx
cmpl $0x1, %ecx
jne 0x2adae
addq $0x4, %rdi
callq 0x2e9a7
addl %r13d, %eax
movl %eax, 0x30(%r15)
addl $0x8, %r14d
jmp 0x2ad65
testl %eax, %eax
je 0x2d16e
movslq -0x30(%rbp), %rax
movzwl 0x32(%r12,%rax), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x34(%r15)
movq -0xc0(%rbp), %rcx
movq 0x30(%rcx), %rax
testq %rax, %rax
jne 0x2adec
leaq 0x10d04(%rip), %rax     # 0x3baec
movq %rax, 0x30(%rcx)
movq -0x1d8(%rbp), %r15
movq -0xd8(%rbp), %rdi
movl -0x60(%rbp), %esi
movq -0xe0(%rbp), %r13
movzwl (%rax), %ecx
testl %ecx, %ecx
je 0x2ae24
movzwl 0x2(%rax), %edx
testl %edx, %edx
je 0x2ae24
subl %ecx, %r13d
addl %edx, %r13d
incl %r13d
incl %esi
addq $0x4, %rax
jmp 0x2ae04
incq %r15
jmp 0x2ab0a
cmpb $0x63, 0x2(%r12)
jne 0x2d24b
cmpb $0x66, 0x3(%r12)
jne 0x2d24b
leaq 0x4(%r12), %rdi
callq 0x2e9a7
cmpl $0x20000, %eax          # imm = 0x20000
je 0x2ae60
cmpl $0x10000, %eax          # imm = 0x10000
jne 0x2d24b
movl 0x8(%r12), %eax
bswapl %eax
cmpl %ebx, %eax
jle 0x2d24b
leaq (%r12,%rbx,4), %rdi
addq $0xc, %rdi
callq 0x2e9a7
movl %eax, %r14d
jmp 0x2ac18
movq -0x68(%rbp), %rax
movl 0x20(%rax), %r14d
testl %r14d, %r14d
jg 0x2aeb9
movl $0x800, %r14d           # imm = 0x800
cmpl $0x7d0, %r13d           # imm = 0x7D0
jg 0x2aeb9
xorl %r14d, %r14d
cmpl $0x3e9, %r13d           # imm = 0x3E9
setge %r14b
shll $0x9, %r14d
addl $0x200, %r14d           # imm = 0x200
movl %r14d, 0x18(%rax)
andl $0x0, 0x1c(%rax)
pushq $0x48
popq %rdi
callq 0x82c4
movq %rax, %rbx
leal -0x1(%r14), %r13d
movq %r13, %rdi
shlq $0x4, %rdi
callq 0x82c4
movq %rax, %r15
movabsq $0x100000001, %r12      # imm = 0x100000001
testq %rbx, %rbx
je 0x2af72
testq %r15, %r15
je 0x2af72
andq $0x0, -0x160(%rbp)
movl %r14d, -0x150(%rbp)
movl $0x8000, -0x14c(%rbp)   # imm = 0x8000
andq $0x0, -0x138(%rbp)
movq %rbx, -0x158(%rbp)
movq %r15, -0x130(%rbp)
movl $0x1, -0x144(%rbp)
movl %r14d, -0x148(%rbp)
movq %r12, -0x140(%rbp)
cmpl $0x10000, %r14d         # imm = 0x10000
ja 0x2d305
addl $-0x2, %r14d
xorl %eax, %eax
testl %r14d, %r14d
cmovgl %r14d, %eax
movq %r15, %rcx
addq $0x10, %rcx
movq %rax, %rdx
subq $0x1, %rdx
jb 0x2af92
movq %rcx, -0x8(%rcx)
addq $0x10, %rcx
jmp 0x2af62
testq %rbx, %rbx
je 0x2af7f
movq %rbx, %rdi
callq 0x8d0c
testq %r15, %r15
movl -0x60(%rbp), %r13d
je 0x2afed
movq %r15, %rdi
callq 0x8d0c
jmp 0x2afed
shlq $0x4, %rax
andq $0x0, 0x8(%r15,%rax)
movq $0x1, 0xc(%rbx)
movq %r15, 0x20(%rbx)
leaq 0x28(%rbx), %rax
movq %rax, 0x18(%rbx)
movl %r13d, (%rbx)
movl $0x7fff, 0x4(%rbx)      # imm = 0x7FFF
movl %r13d, 0x14(%rbx)
addl %r13d, %r14d
movl %r14d, %eax
cltd
idivl %r13d
movl %eax, 0x8(%rbx)
andl $0x0, 0x28(%rbx)
movq %rbx, %rax
addq $0x38, %rax
movq %rax, 0x30(%rbx)
movw %r13w, 0x38(%rbx)
orw $-0x1, 0x3a(%rbx)
andq $0x0, 0x40(%rbx)
movl -0x60(%rbp), %r13d
xorps %xmm0, %xmm0
leaq -0x1d0(%rbp), %rdx
movaps %xmm0, (%rdx)
movq -0x68(%rbp), %rdi
xorl %esi, %esi
callq 0x2db64
movq %r12, -0x140(%rbp)
leaq -0x1d0(%rbp), %r15
xorl %r14d, %r14d
movq %r15, %rdi
xorl %esi, %esi
callq 0x30454
movl (%r15), %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2de32
leaq -0x1d0(%rbp), %rbx
cmpl -0x1d0(%rbp), %r14d
jge 0x2b08c
movq %rbx, %rdi
movl %r14d, %esi
callq 0x30454
cmpl $0x0, 0xc(%rax)
movq -0x68(%rbp), %rax
je 0x2b087
movl 0x1c(%rax), %r15d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x30454
movzwl 0xa(%rax), %r12d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x30454
movzwl 0x6(%rax), %eax
addl %r12d, %eax
cmpl %eax, %r15d
cmovgl %r15d, %eax
movq -0x68(%rbp), %rcx
movl %eax, 0x1c(%rcx)
incl %r14d
jmp 0x2b035
movslq -0xe0(%rbp), %rbx
imulq $0x1c, %rbx, %r14
movq %r14, %rdi
callq 0x82c4
movq %rax, -0x188(%rbp)
shlq $0x4, %rbx
movq %rbx, %rdi
callq 0x82c4
movq %rax, -0x180(%rbp)
movslq %r13d, %rax
imulq $0x28, %rax, %r15
movq %r15, %rdi
callq 0x82c4
movq %rax, -0x178(%rbp)
movq -0x188(%rbp), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x7210
movq -0x180(%rbp), %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x7210
movq -0x178(%rbp), %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x7210
xorl %r14d, %r14d
xorl %ebx, %ebx
movl $0x0, -0xd0(%rbp)
xorl %r8d, %r8d
movq -0xd8(%rbp), %rdi
movslq (%rdi), %rax
cmpq %rax, %r14
jge 0x2b460
movl %r14d, %esi
movl %r8d, %r15d
callq 0x30362
movl %r15d, %r9d
imulq $0x50, %r14, %r13
addq -0x100(%rbp), %r13
movq 0x30(%rax), %rcx
xorl %r11d, %r11d
xorl %r10d, %r10d
movzwl (%rcx,%r11,4), %edx
testl %edx, %edx
je 0x2b16b
movzwl 0x2(%rcx,%r11,4), %esi
testl %esi, %esi
je 0x2b16b
subl %edx, %r10d
addl %esi, %r10d
incl %r10d
incq %r11
jmp 0x2b14a
movl %ebx, %ebx
imulq $0x28, %rbx, %rdx
addq -0x178(%rbp), %rdx
movq %rdx, 0x40(%r13)
movl %r11d, 0x48(%r13)
movss 0x14(%rax), %xmm0
xorl %esi, %esi
cmpq %rsi, %r11
je 0x2b1c9
movss %xmm0, (%rdx)
movzwl (%rcx,%rsi,4), %edi
movl %edi, 0x4(%rdx)
movzwl 0x2(%rcx,%rsi,4), %r8d
subl %edi, %r8d
leal 0x1(%r8), %edi
movl %edi, 0x10(%rdx)
movslq %r9d, %rdi
imulq $0x1c, %rdi, %r9
addq -0x188(%rbp), %r9
movq %r9, 0x18(%rdx)
leal (%r8,%rdi), %r9d
incl %r9d
incq %rsi
addq $0x28, %rdx
jmp 0x2b187
movq %r11, -0xa8(%rbp)
movq %r10, -0x98(%rbp)
movl %r9d, -0xa0(%rbp)
movq %r14, -0xb0(%rbp)
movq %rbx, -0xc8(%rbp)
movslq -0xd0(%rbp), %rcx
shlq $0x4, %rcx
addq -0x180(%rbp), %rcx
movq %rcx, 0x38(%r13)
movl 0x18(%rax), %esi
movl 0x1c(%rax), %edx
leaq -0x160(%rbp), %rdi
callq 0x2ddde
movq 0x38(%r13), %rax
movq 0x40(%r13), %rbx
movl 0x48(%r13), %ecx
xorl %edx, %edx
testl %ecx, %ecx
cmovlel %edx, %ecx
movq %rcx, -0x50(%rbp)
movl -0x140(%rbp), %ecx
movq %rcx, -0x30(%rbp)
cvtsi2ss %rcx, %xmm0
movss %xmm0, -0x54(%rbp)
movl -0x13c(%rbp), %ecx
cvtsi2ss %rcx, %xmm0
movss %xmm0, -0x70(%rbp)
movl -0x144(%rbp), %esi
movq %rcx, -0x78(%rbp)
movq %rsi, -0x40(%rbp)
leal (%rcx,%rsi), %r14d
addq $0x6, %rax
movq %rax, -0x170(%rbp)
xorl %r12d, %r12d
movq %rbx, -0x108(%rbp)
cmpq -0x50(%rbp), %rdx
je 0x2b3c2
movq %rdx, -0x38(%rbp)
imulq $0x28, %rdx, %r15
movss (%rbx,%r15), %xmm0
ucomiss 0xb11b(%rip), %xmm0     # 0x363b0
jbe 0x2b2a1
movq %r13, %rdi
callq 0x2e1cf
jmp 0x2b2c4
xorps 0xb088(%rip), %xmm0     # 0x36330
movq 0x8(%r13), %rax
movslq 0x1c(%r13), %rcx
movzwl 0x12(%rax,%rcx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
cvtsi2ss %eax, %xmm1
divss %xmm1, %xmm0
addq %rbx, %r15
movq -0x30(%rbp), %rax
movb %al, 0x20(%r15)
movq -0x78(%rbp), %rax
movb %al, 0x21(%r15)
movq %r12, -0xc0(%rbp)
movslq %r12d, %rbx
movaps %xmm0, %xmm1
mulss -0x54(%rbp), %xmm1
movss %xmm1, -0x48(%rbp)
mulss -0x70(%rbp), %xmm0
movaps %xmm0, -0x90(%rbp)
shlq $0x4, %rbx
addq -0x170(%rbp), %rbx
xorl %r12d, %r12d
movslq 0x10(%r15), %rax
cmpq %rax, %r12
jge 0x2b3a2
movl 0x4(%r15), %esi
testq %rsi, %rsi
je 0x2b323
addl %r12d, %esi
jmp 0x2b32b
movq 0x8(%r15), %rax
movl (%rax,%r12,4), %esi
movq %r13, %rdi
callq 0x2eb54
movq %r13, %rdi
movl %eax, %esi
movss -0x48(%rbp), %xmm0
movaps -0x90(%rbp), %xmm1
leaq -0x470(%rbp), %rdx
leaq -0xe8(%rbp), %rcx
leaq -0x128(%rbp), %r8
leaq -0xf0(%rbp), %r9
callq 0x2ee46
movl -0x128(%rbp), %eax
addl -0x30(%rbp), %eax
subl -0x470(%rbp), %eax
movq -0x40(%rbp), %rcx
addl %ecx, %eax
decl %eax
movw %ax, -0x2(%rbx)
movl -0xe8(%rbp), %eax
movl -0xf0(%rbp), %ecx
addl %r14d, %ecx
notl %eax
addl %ecx, %eax
movw %ax, (%rbx)
incq %r12
addq $0x10, %rbx
jmp 0x2b308
movq -0xc0(%rbp), %rax
addl %r12d, %eax
movq %rax, %r12
movq -0x38(%rbp), %rdx
incq %rdx
movq -0x108(%rbp), %rbx
jmp 0x2b276
movq -0x158(%rbp), %rdi
movq 0x38(%r13), %rsi
movl %r12d, %edx
callq 0x2de32
movq -0xc8(%rbp), %rbx
addq -0xa8(%rbp), %rbx
movq -0x98(%rbp), %r9
addl -0xd0(%rbp), %r9d
movq -0x68(%rbp), %rax
movl 0x1c(%rax), %eax
testl %r12d, %r12d
movl $0x0, %ecx
cmovlel %ecx, %r12d
shlq $0x4, %r12
xorl %ecx, %ecx
movq -0xd8(%rbp), %rdi
movq -0xb0(%rbp), %r14
movl -0xa0(%rbp), %r8d
cmpq %rcx, %r12
je 0x2b44d
movq 0x38(%r13), %rdx
cmpl $0x0, 0xc(%rdx,%rcx)
je 0x2b447
movzwl 0xa(%rdx,%rcx), %esi
movzwl 0x6(%rdx,%rcx), %edx
addl %esi, %edx
cmpl %edx, %eax
cmovlel %edx, %eax
movq -0x68(%rbp), %rdx
movl %eax, 0x1c(%rdx)
addq $0x10, %rcx
jmp 0x2b41f
incq %r14
movl %r9d, -0xd0(%rbp)
movl -0x60(%rbp), %r13d
jmp 0x2b11b
movq -0xe0(%rbp), %rax
cmpl %eax, -0xd0(%rbp)
jne 0x2d2a8
cmpl %eax, %r8d
movq -0x68(%rbp), %rax
jne 0x2d2c7
cmpl %r13d, %ebx
jne 0x2d2e6
movq %rax, %rdx
movl 0x1c(%rax), %eax
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, %eax
sarl $0x8, %eax
orl %ecx, %eax
movl %eax, %ecx
sarl $0x10, %ecx
orl %eax, %ecx
movslq %ecx, %rax
incq %rax
movl %eax, 0x1c(%rdx)
movslq 0x18(%rdx), %rdi
imulq %rax, %rdi
callq 0x82c4
movq -0x68(%rbp), %rbx
movq %rax, 0x8(%rbx)
movslq 0x18(%rbx), %rcx
movslq 0x1c(%rbx), %rdx
imulq %rcx, %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x7210
movq 0x8(%rbx), %rax
leaq -0x160(%rbp), %rcx
movq %rax, 0x28(%rcx)
movl 0x1c(%rbx), %eax
movl %eax, 0x14(%rcx)
xorl %ebx, %ebx
movq -0xd8(%rbp), %rdi
movslq (%rdi), %rax
cmpq %rax, %rbx
jge 0x2cd0a
movl %ebx, %esi
callq 0x30362
movq %rbx, -0x218(%rbp)
imulq $0x50, %rbx, %rbx
movq -0x100(%rbp), %r14
leaq (%r14,%rbx), %rcx
movq %rcx, -0xf8(%rbp)
movl 0x18(%rax), %esi
movl 0x1c(%rax), %edx
leaq -0x160(%rbp), %rdi
callq 0x2ddde
movq 0x38(%r14,%rbx), %r15
movq 0x40(%r14,%rbx), %rax
movq %rax, -0x1e0(%rbp)
movl 0x48(%r14,%rbx), %ecx
movl -0x140(%rbp), %eax
movl %eax, -0x1a0(%rbp)
movl -0x13c(%rbp), %eax
movl %eax, -0x19c(%rbp)
testl %ecx, %ecx
movl $0x0, %eax
cmovlel %eax, %ecx
movq %rcx, -0x228(%rbp)
xorl %eax, %eax
xorl %r12d, %r12d
movq %r15, -0x1e8(%rbp)
cmpq -0x228(%rbp), %rax
je 0x2cc99
movq %rax, -0x230(%rbp)
imulq $0x28, %rax, %r13
movq -0x1e0(%rbp), %rax
movss (%rax,%r13), %xmm0
ucomiss 0xadf2(%rip), %xmm0     # 0x363b0
jbe 0x2b5ce
movq -0xf8(%rbp), %rdi
callq 0x2e1cf
jmp 0x2b5f8
xorps 0xad5b(%rip), %xmm0     # 0x36330
movq -0xf8(%rbp), %rcx
movq 0x8(%rcx), %rax
movslq 0x1c(%rcx), %rcx
movzwl 0x12(%rax,%rcx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
cvtsi2ss %eax, %xmm1
divss %xmm1, %xmm0
addq -0x1e0(%rbp), %r13
movzbl 0x20(%r13), %ebx
movl %ebx, -0x140(%rbp)
cvtsi2ss %ebx, %xmm3
movzbl 0x21(%r13), %r14d
xorps %xmm1, %xmm1
movss %xmm1, -0x110(%rbp)
movss %xmm1, -0x10c(%rbp)
testl %ebx, %ebx
je 0x2b646
pushq $0x1
popq %rax
subl %ebx, %eax
cvtsi2ss %eax, %xmm2
movaps %xmm3, %xmm1
addss %xmm3, %xmm1
divss %xmm1, %xmm2
movss %xmm2, -0x10c(%rbp)
movl %r14d, -0x13c(%rbp)
cvtsi2ss %r14d, %xmm1
testl %r14d, %r14d
je 0x2b674
pushq $0x1
popq %rax
subl %r14d, %eax
cvtsi2ss %eax, %xmm4
movaps %xmm1, %xmm2
addss %xmm1, %xmm2
divss %xmm2, %xmm4
movss %xmm4, -0x110(%rbp)
movss 0xad14(%rip), %xmm2     # 0x36390
movaps %xmm2, %xmm4
divss %xmm3, %xmm4
movss %xmm4, -0x1a8(%rbp)
divss %xmm1, %xmm2
movss %xmm2, -0x1a4(%rbp)
movslq %r12d, %r12
xorl %ecx, %ecx
movaps %xmm0, -0x210(%rbp)
movq %r13, -0x1f0(%rbp)
movslq 0x10(%r13), %rax
cmpq %rax, %rcx
jge 0x2cc8a
movq %r12, %rdx
shlq $0x4, %rdx
cmpl $0x0, 0xc(%r15,%rdx)
je 0x2cc7f
movl 0x4(%r13), %esi
testl %esi, %esi
movq %r12, -0x1f8(%rbp)
je 0x2b6dd
addl %ecx, %esi
jmp 0x2b6e4
movq 0x8(%r13), %rax
movl (%rax,%rcx,4), %esi
addq %r15, %rdx
movq %rcx, -0x258(%rbp)
imulq $0x1c, %rcx, %rax
addq 0x18(%r13), %rax
movq %rax, -0x250(%rbp)
movq %rdx, %r12
movq -0xf8(%rbp), %rdi
callq 0x2eb54
movl %eax, %r15d
movl -0x144(%rbp), %eax
movzwl 0x8(%r12), %ecx
addw %ax, %cx
movw %cx, -0x30(%rbp)
movw %cx, 0x8(%r12)
movzwl 0xa(%r12), %r13d
addw %ax, %r13w
movw %r13w, 0xa(%r12)
movl 0x4(%r12), %ecx
subl %eax, %ecx
movq %rcx, -0xc0(%rbp)
movw %cx, 0x4(%r12)
movzwl 0x6(%r12), %ecx
subl %eax, %ecx
movq %r12, -0x190(%rbp)
movq %rcx, -0xa8(%rbp)
movw %cx, 0x6(%r12)
movq -0xf8(%rbp), %r12
movq 0x8(%r12), %rax
movslq 0x24(%r12), %rcx
movzwl 0x22(%rax,%rcx), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
movslq 0x28(%r12), %rdx
addq %rax, %rdx
leal (,%r15,4), %eax
cltq
leaq (%rdx,%rax), %rsi
cmpl %r15d, %ecx
leaq 0x1(%rax,%rdx), %rax
leaq -0x4(%rdx,%rcx,4), %rdi
leaq -0x3(%rdx,%rcx,4), %rcx
cmovgq %rax, %rcx
cmovgq %rsi, %rdi
movl %ebx, %eax
cvtsi2ss %rax, %xmm0
movl %r14d, %eax
cvtsi2ss %rax, %xmm1
movzbl (%rdi), %eax
movl %eax, -0x1b0(%rbp)
movzbl (%rcx), %eax
movl %eax, -0x1ac(%rbp)
movaps -0x210(%rbp), %xmm2
mulss %xmm2, %xmm0
mulss %xmm2, %xmm1
movq %r12, %rdi
movl %r15d, %esi
movss %xmm0, -0x48(%rbp)
movaps %xmm1, -0x90(%rbp)
leaq -0x1bc(%rbp), %rdx
leaq -0x1b8(%rbp), %rcx
leaq -0x268(%rbp), %r8
leaq -0x264(%rbp), %r9
callq 0x2ee46
movzwl -0x30(%rbp), %eax
addq -0x138(%rbp), %rax
movq %rax, -0x200(%rbp)
movl -0x148(%rbp), %eax
movl %eax, -0x114(%rbp)
movq %r12, %rdi
movl %r15d, %esi
leaq -0x128(%rbp), %rdx
callq 0x2f02c
movl %eax, %r12d
movl $0xffff, %eax           # imm = 0xFFFF
movq -0xc0(%rbp), %rcx
andl %eax, %ecx
subl %ebx, %ecx
movq %rcx, -0xc0(%rbp)
leal 0x1(%rcx), %ebx
movq -0xf8(%rbp), %rdi
movl %r15d, %esi
movss -0x48(%rbp), %xmm0
movaps -0x90(%rbp), %xmm1
leaq -0xf0(%rbp), %rdx
leaq -0x1c0(%rbp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x2ee46
movl %ebx, -0xec(%rbp)
testl %ebx, %ebx
je 0x2c6c3
movl $0xffff, %eax           # imm = 0xFFFF
movq -0xa8(%rbp), %rcx
andl %eax, %ecx
subl %r14d, %ecx
incl %ecx
movq %rcx, -0xa8(%rbp)
je 0x2c6c3
movzwl %r13w, %eax
imull -0x114(%rbp), %eax
cltq
addq %rax, -0x200(%rbp)
movq -0x128(%rbp), %r15
movl -0xf0(%rbp), %eax
movl %eax, -0x50(%rbp)
movl -0x1c0(%rbp), %eax
movq %rax, -0x120(%rbp)
xorl %eax, %eax
testl %r12d, %r12d
cmovlel %eax, %r12d
imulq $0xa, %r12, %r12
xorl %ecx, %ecx
cmpq %rax, %r12
je 0x2b91a
xorl %edx, %edx
cmpb $0x1, 0x8(%r15,%rax)
sete %dl
addl %edx, %ecx
addq $0xa, %rax
jmp 0x2b902
testl %ecx, %ecx
je 0x2c6c3
movl %ecx, %ebx
leaq (,%rbx,4), %rdi
callq 0x82c4
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x70(%rbp)
je 0x2c6c3
movq %rbx, -0x38(%rbp)
movaps -0x90(%rbp), %xmm0
minss -0x48(%rbp), %xmm0
movss 0x10088(%rip), %xmm1    # 0x3b9e0
divss %xmm0, %xmm1
mulss %xmm1, %xmm1
movss %xmm1, -0x30(%rbp)
xorl %eax, %eax
movq $0x0, -0x78(%rbp)
xorl %ebx, %ebx
xorl %r14d, %r14d
cmpl $0x1, %r14d
je 0x2b985
cmpl $0x2, %r14d
jne 0x2b99e
jmp 0x2baeb
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x82c4
movq %rax, -0x78(%rbp)
testq %rax, %rax
je 0x2bb0f
movl %r14d, -0x40(%rbp)
andl $0x0, -0x470(%rbp)
xorps %xmm0, %xmm0
xorl %r13d, %r13d
pushq $-0x1
popq %r14
xorps %xmm1, %xmm1
cmpq %r13, %r12
je 0x2bacb
movzbl 0x8(%r15,%r13), %eax
cmpl $0x3, %eax
je 0x2ba6d
cmpl $0x2, %eax
je 0x2ba34
cmpl $0x1, %eax
jne 0x2babe
movl -0x470(%rbp), %eax
testl %r14d, %r14d
js 0x2b9f5
movl %eax, %ecx
subl %ebx, %ecx
movl %r14d, %edx
movq -0x70(%rbp), %rsi
movl %ecx, (%rsi,%rdx,4)
movswl (%r15,%r13), %ecx
cvtsi2ss %ecx, %xmm0
movswl 0x2(%r15,%r13), %ecx
cvtsi2ss %ecx, %xmm1
incl %r14d
leal 0x1(%rax), %ecx
movl %ecx, -0x470(%rbp)
movq -0x78(%rbp), %rdx
testq %rdx, %rdx
je 0x2bac0
movslq %eax, %rcx
movss %xmm0, (%rdx,%rcx,8)
movss %xmm1, 0x4(%rdx,%rcx,8)
jmp 0x2bac0
movswl (%r15,%r13), %eax
cvtsi2ss %eax, %xmm0
movswl 0x2(%r15,%r13), %eax
cvtsi2ss %eax, %xmm1
movslq -0x470(%rbp), %rax
leal 0x1(%rax), %ecx
movl %ecx, -0x470(%rbp)
movq -0x78(%rbp), %rcx
testq %rcx, %rcx
je 0x2babe
movss %xmm0, (%rcx,%rax,8)
movss %xmm1, 0x4(%rcx,%rax,8)
jmp 0x2babe
movswl 0x4(%r15,%r13), %eax
cvtsi2ss %eax, %xmm2
movswl 0x6(%r15,%r13), %eax
cvtsi2ss %eax, %xmm3
movswl (%r15,%r13), %eax
cvtsi2ss %eax, %xmm4
movswl 0x2(%r15,%r13), %eax
cvtsi2ss %eax, %xmm5
movq -0x78(%rbp), %rdi
leaq -0x470(%rbp), %rsi
movss -0x30(%rbp), %xmm6
xorl %edx, %edx
callq 0x2f8ab
movswl (%r15,%r13), %eax
cvtsi2ss %eax, %xmm0
movswl 0x2(%r15,%r13), %eax
cvtsi2ss %eax, %xmm1
movl %ebx, %eax
addq $0xa, %r13
movl %eax, %ebx
jmp 0x2b9b6
movl -0x470(%rbp), %eax
movl %eax, %ecx
subl %ebx, %ecx
movslq %r14d, %rdx
movq -0x70(%rbp), %rsi
movl %ecx, (%rsi,%rdx,4)
movl -0x40(%rbp), %r14d
incl %r14d
jmp 0x2b974
cmpq $0x0, -0x78(%rbp)
movq -0x38(%rbp), %rbx
je 0x2c6c3
xorl %ecx, %ecx
xorl %eax, %eax
cmpq %rcx, %rbx
je 0x2bb24
movq -0x70(%rbp), %rdx
addl (%rdx,%rcx,4), %eax
incq %rcx
jmp 0x2bafe
xorl %edi, %edi
callq 0x8d0c
movq -0x70(%rbp), %rdi
callq 0x8d0c
jmp 0x2c6c3
incl %eax
cltq
imulq $0x14, %rax, %rdi
callq 0x82c4
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0xa0(%rbp)
je 0x2c6b1
movaps -0x90(%rbp), %xmm0
xorps 0xa7dc(%rip), %xmm0     # 0x36330
movaps %xmm0, -0x90(%rbp)
movq -0x78(%rbp), %rsi
leaq 0x4(%rsi), %rax
xorl %ecx, %ecx
xorl %edx, %edx
xorl %r15d, %r15d
cmpq %rbx, %rcx
je 0x2bc73
movslq %edx, %r8
leaq (%rsi,%r8,8), %rdi
movq -0x70(%rbp), %rsi
movl (%rsi,%rcx,4), %esi
leal -0x1(%rsi), %r10d
leaq (%rax,%r8,8), %r8
movl %esi, %r11d
xorl %r9d, %r9d
movslq %r11d, %rbx
cmpq %rbx, %r9
jge 0x2bc5f
movslq %r10d, %rbx
movss 0x4(%rdi,%rbx,8), %xmm0
movss (%r8,%r9,8), %xmm1
ucomiss %xmm1, %xmm0
jne 0x2bbb5
jnp 0x2bc54
xorl %ebx, %ebx
ucomiss %xmm1, %xmm0
seta %r14b
ja 0x2bbc5
movl %r9d, %r12d
jmp 0x2bbcb
movl %r10d, %r12d
movl %r9d, %r10d
movslq %r15d, %r15
imulq $0x14, %r15, %r11
movb %r14b, %bl
movq -0xa0(%rbp), %r14
movl %ebx, 0x10(%r14,%r11)
movslq %r12d, %rbx
movss (%rdi,%rbx,8), %xmm0
movss -0x48(%rbp), %xmm2
mulss %xmm2, %xmm0
xorps %xmm1, %xmm1
addss %xmm1, %xmm0
movss %xmm0, (%r14,%r11)
movss 0x4(%rdi,%rbx,8), %xmm0
movaps -0x90(%rbp), %xmm3
mulss %xmm3, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x4(%r14,%r11)
movslq %r10d, %r10
movss (%rdi,%r10,8), %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x8(%r14,%r11)
movss 0x4(%rdi,%r10,8), %xmm0
mulss %xmm3, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0xc(%r14,%r11)
incl %r15d
movq -0x70(%rbp), %r10
movl (%r10,%rcx,4), %r11d
movl %r9d, %r10d
incq %r9
jmp 0x2bb8f
addl %edx, %esi
incq %rcx
movl %esi, %edx
movq -0x78(%rbp), %rsi
movq -0x38(%rbp), %rbx
jmp 0x2bb6a
movq -0xa0(%rbp), %r14
movq %r14, %rdi
movl %r15d, %esi
callq 0x2fa0b
movslq %r15d, %rbx
pushq $0x1
popq %rcx
movq -0x120(%rbp), %r10
cmpq %rbx, %rcx
jge 0x2bd3b
imulq $0x14, %rcx, %rdx
movq -0xa0(%rbp), %rdi
movss (%rdi,%rdx), %xmm0
movss 0x4(%rdi,%rdx), %xmm1
movl 0x10(%rdi,%rdx), %esi
movl %esi, -0x468(%rbp)
movq 0x8(%rdi,%rdx), %rdx
movq %rdx, -0x470(%rbp)
movq %r14, %rsi
movq %rcx, %rdx
testq %rdx, %rdx
jle 0x2bcf7
movss 0x4(%rsi), %xmm2
ucomiss %xmm1, %xmm2
jbe 0x2bcf9
leaq 0x14(%rsi), %rdi
movl 0x10(%rsi), %r8d
movl %r8d, 0x10(%rdi)
movups (%rsi), %xmm2
movups %xmm2, (%rdi)
decq %rdx
addq $-0x14, %rsi
jmp 0x2bccd
xorl %edx, %edx
movl %edx, %esi
cmpq %rsi, %rcx
je 0x2bd2f
movslq %edx, %rdx
imulq $0x14, %rdx, %rdx
movq -0xa0(%rbp), %rdi
movss %xmm0, (%rdi,%rdx)
movss %xmm1, 0x4(%rdi,%rdx)
movq -0x470(%rbp), %rsi
movq %rsi, 0x8(%rdi,%rdx)
movl -0x468(%rbp), %esi
movl %esi, 0x10(%rdi,%rdx)
incq %rcx
addq $0x14, %r14
jmp 0x2bc92
andq $0x0, -0xe8(%rbp)
leaq -0x470(%rbp), %r15
movl -0xec(%rbp), %edx
cmpl $0x41, %edx
jl 0x2bd74
movl %edx, %eax
leaq 0x4(,%rax,8), %rdi
callq 0x82c4
movq %rax, %r15
movl -0xec(%rbp), %edx
movq -0x120(%rbp), %r10
movq -0xa8(%rbp), %rcx
leal (%r10,%rcx), %eax
cvtsi2ss %eax, %xmm0
movslq %edx, %rsi
leaq (%r15,%rsi,4), %rax
movq %rax, -0x98(%rbp)
addss 0xa5f7(%rip), %xmm0     # 0x36390
imulq $0x14, %rbx, %rax
movq -0xa0(%rbp), %r12
movss %xmm0, 0x4(%r12,%rax)
cvtsi2ssl -0x50(%rbp), %xmm0
movss %xmm0, -0x60(%rbp)
leaq (,%rsi,4), %rax
movq %rax, -0x248(%rbp)
movq -0xc0(%rbp), %rax
addl $0x2, %eax
cltq
shlq $0x2, %rax
movq %rax, -0x240(%rbp)
cvtsi2ss %edx, %xmm0
movss %xmm0, -0xc8(%rbp)
xorl %edi, %edi
testl %edx, %edx
movl $0x0, %eax
cmovgl %edx, %eax
movl %eax, -0x108(%rbp)
testq %rsi, %rsi
movl $0x0, %eax
movq %rsi, -0xd0(%rbp)
cmovgq %rsi, %rax
movq %rax, -0x238(%rbp)
testl %ecx, %ecx
movl $0x0, %eax
movq %rax, -0x198(%rbp)
cmovlel %edi, %ecx
movq %rcx, -0xa8(%rbp)
xorl %r9d, %r9d
xorl %r13d, %r13d
movq $0x0, -0xb0(%rbp)
xorl %ecx, %ecx
leaq 0xfc5b(%rip), %r14      # 0x3baa0
cmpl -0xa8(%rbp), %ecx
je 0x2c678
movl %ecx, -0x1b4(%rbp)
cvtsi2ss %r10d, %xmm0
movss %xmm0, -0x38(%rbp)
addss 0xa527(%rip), %xmm0     # 0x36390
movss %xmm0, -0x50(%rbp)
movq %r15, %rdi
xorl %esi, %esi
movq -0x248(%rbp), %rdx
movq %r10, -0x120(%rbp)
movq %r9, %rbx
callq 0x7210
movq -0x98(%rbp), %rdi
xorl %esi, %esi
movq -0x240(%rbp), %rdx
callq 0x7210
movq %rbx, %r9
leaq -0xe8(%rbp), %rax
movq %rax, %rcx
movss -0x38(%rbp), %xmm0
movq %rcx, %rax
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x2c037
ucomiss 0x1c(%rcx), %xmm0
jb 0x2beb0
movq (%rcx), %rdx
movq %rdx, (%rax)
movss 0x14(%rcx), %xmm0
ucomiss 0xa4d9(%rip), %xmm0     # 0x363b0
jne 0x2bedf
jnp 0x2d1ee
andl $0x0, 0x14(%rcx)
movq %r9, (%rcx)
movq %rcx, %r9
jmp 0x2bea8
testq %r9, %r9
je 0x2bfa6
movq (%r9), %rcx
movq %r9, %rax
movss (%r12), %xmm1
movss 0x8(%r12), %xmm2
subss %xmm1, %xmm2
movss 0xc(%r12), %xmm3
movaps %xmm3, %xmm4
subss %xmm0, %xmm4
divss %xmm4, %xmm2
movss %xmm2, 0xc(%r9)
movss 0xa465(%rip), %xmm4     # 0x36390
divss %xmm2, %xmm4
movss %xmm4, 0x10(%r9)
movss -0x38(%rbp), %xmm5
movaps %xmm5, %xmm4
subss %xmm0, %xmm4
mulss %xmm2, %xmm4
addss %xmm1, %xmm4
subss -0x60(%rbp), %xmm4
movss %xmm4, 0x8(%r9)
xorl %edx, %edx
cmpl $0x0, 0x10(%r12)
sete %dl
movss (%r14,%rdx,4), %xmm1
movss %xmm1, 0x14(%r9)
movss %xmm0, 0x18(%r9)
movss %xmm3, 0x1c(%r9)
andq $0x0, (%r9)
movq %rcx, %r9
movss 0x1c(%rax), %xmm0
ucomiss %xmm5, %xmm0
jb 0x2d191
movq -0xe8(%rbp), %rcx
movq %rcx, (%rax)
movq %rax, -0xe8(%rbp)
addq $0x14, %r12
jmp 0x2c037
testl %r13d, %r13d
je 0x2bfd4
leal -0x1(%r13), %eax
movq -0xb0(%rbp), %rdx
testq %rdx, %rdx
je 0x2c012
movslq %r13d, %rcx
shlq $0x5, %rcx
leaq (%rcx,%rdx), %r9
addq $-0x20, %r9
xorl %ecx, %ecx
movl %eax, %r13d
jmp 0x2bef7
movl $0x6408, %edi           # imm = 0x6408
callq 0x82c4
testq %rax, %rax
je 0x2c025
movq -0xb0(%rbp), %rcx
movq %rcx, (%rax)
movq %rax, %r9
addq $0x63e0, %r9            # imm = 0x63E0
movss 0x4(%r12), %xmm0
movl $0x31f, %r13d           # imm = 0x31F
xorl %ecx, %ecx
movq %rax, -0xb0(%rbp)
jmp 0x2bef7
xorl %r9d, %r9d
movl %eax, %r13d
movq $0x0, -0xb0(%rbp)
jmp 0x2c02b
xorl %r9d, %r9d
xorl %r13d, %r13d
xorl %eax, %eax
movss -0x38(%rbp), %xmm5
jmp 0x2bf7e
movss 0x4(%r12), %xmm0
movss -0x50(%rbp), %xmm1
ucomiss %xmm0, %xmm1
jae 0x2beeb
movq %r12, -0x260(%rbp)
movq -0xe8(%rbp), %r12
testq %r12, %r12
je 0x2c5b6
movq %r13, -0xe0(%rbp)
movq %r9, %rbx
testq %r12, %r12
je 0x2c5b6
movss 0x1c(%r12), %xmm0
ucomiss -0x38(%rbp), %xmm0
jb 0x2d1b0
movss 0x8(%r12), %xmm6
movss 0xc(%r12), %xmm4
ucomiss 0xa314(%rip), %xmm4     # 0x363b0
jne 0x2c0da
jp 0x2c0da
movss -0xc8(%rbp), %xmm0
ucomiss %xmm6, %xmm0
jbe 0x2c5a6
ucomiss 0xa2f8(%rip), %xmm6     # 0x363b0
jae 0x2c3d5
movq -0x98(%rbp), %rdi
xorl %esi, %esi
movq %r12, %rdx
movaps %xmm6, %xmm0
movss -0x38(%rbp), %xmm1
movaps %xmm6, %xmm2
jmp 0x2c41e
movss 0x18(%r12), %xmm1
movss -0x50(%rbp), %xmm2
ucomiss %xmm1, %xmm2
jb 0x2d1cf
movaps %xmm4, %xmm8
addss %xmm6, %xmm8
movaps %xmm1, %xmm2
movss -0x38(%rbp), %xmm5
subss %xmm5, %xmm2
mulss %xmm4, %xmm2
addss %xmm6, %xmm2
cmpltss %xmm1, %xmm5
andps %xmm5, %xmm2
andnps %xmm6, %xmm5
orps %xmm2, %xmm5
ucomiss 0xa28f(%rip), %xmm5     # 0x363b0
jb 0x2c1ec
movaps %xmm0, %xmm3
subss -0x38(%rbp), %xmm3
mulss %xmm4, %xmm3
addss %xmm6, %xmm3
movaps %xmm0, %xmm2
cmpltss -0x50(%rbp), %xmm2
andps %xmm2, %xmm3
andnps %xmm8, %xmm2
orps %xmm3, %xmm2
ucomiss 0xa25f(%rip), %xmm2     # 0x363b0
jb 0x2c1ec
movss -0xc8(%rbp), %xmm3
ucomiss %xmm5, %xmm3
jbe 0x2c1ec
movss -0xc8(%rbp), %xmm3
ucomiss %xmm2, %xmm3
jbe 0x2c1ec
maxss -0x38(%rbp), %xmm1
cvttss2si %xmm5, %ecx
minss -0x50(%rbp), %xmm0
cvttss2si %xmm2, %eax
cmpl %eax, %ecx
jne 0x2c430
testl %ecx, %ecx
js 0x2d22c
cmpl %ecx, -0xec(%rbp)
jle 0x2d22c
cvtsi2ss %ecx, %xmm3
subss %xmm1, %xmm0
subss %xmm3, %xmm5
subss %xmm3, %xmm2
addss %xmm5, %xmm2
mulss 0xa221(%rip), %xmm2     # 0x363e0
addss 0xa1c9(%rip), %xmm2     # 0x36390
mulss 0x14(%r12), %xmm2
movl %ecx, %eax
mulss %xmm0, %xmm2
addss (%r15,%rax,4), %xmm2
movss %xmm2, (%r15,%rax,4)
mulss 0x14(%r12), %xmm0
jmp 0x2c593
xorl %r14d, %r14d
movss -0x38(%rbp), %xmm1
movaps %xmm6, -0x170(%rbp)
movaps %xmm8, -0xc0(%rbp)
movss %xmm4, -0x54(%rbp)
cmpl %r14d, -0x108(%rbp)
je 0x2c5a6
movl %r14d, %r13d
cvtsi2ss %r14d, %xmm5
leal 0x1(%r13), %r14d
cvtsi2ss %r14d, %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, -0x90(%rbp)
jbe 0x2c2ba
ucomiss %xmm2, %xmm8
jbe 0x2c2ba
movq %r15, %rdi
movl %r13d, %esi
movq %r12, %rdx
movaps %xmm6, %xmm0
movss %xmm2, -0x48(%rbp)
movaps %xmm5, %xmm2
movss %xmm3, -0x40(%rbp)
movaps %xmm7, %xmm3
callq 0x2fba8
movq %r15, %rdi
movl %r13d, %esi
movq %r12, %rdx
movss -0x90(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movss -0x48(%rbp), %xmm2
movss -0x40(%rbp), %xmm3
callq 0x2fba8
movq %r15, %rdi
movl %r13d, %esi
movq %r12, %rdx
movss -0x48(%rbp), %xmm0
movss -0x40(%rbp), %xmm1
jmp 0x2c345
ucomiss %xmm8, %xmm5
jbe 0x2c302
ucomiss %xmm2, %xmm6
jbe 0x2c302
movq %r15, %rdi
movl %r13d, %esi
movq %r12, %rdx
movaps %xmm6, %xmm0
movss %xmm2, -0x48(%rbp)
movss %xmm3, -0x40(%rbp)
callq 0x2fba8
movq %r15, %rdi
movl %r13d, %esi
movq %r12, %rdx
movss -0x48(%rbp), %xmm0
movss -0x40(%rbp), %xmm1
movss -0x90(%rbp), %xmm2
movss -0x30(%rbp), %xmm3
jmp 0x2c32a
ucomiss %xmm6, %xmm5
jbe 0x2c30d
ucomiss %xmm5, %xmm8
ja 0x2c318
ucomiss %xmm8, %xmm5
jbe 0x2c377
ucomiss %xmm5, %xmm6
jbe 0x2c377
movq %r15, %rdi
movl %r13d, %esi
movq %r12, %rdx
movaps %xmm6, %xmm0
movaps %xmm5, %xmm2
movaps %xmm7, %xmm3
callq 0x2fba8
movq %r15, %rdi
movl %r13d, %esi
movq %r12, %rdx
movss -0x90(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movaps -0xc0(%rbp), %xmm2
movss -0x50(%rbp), %xmm3
callq 0x2fba8
movq %rbx, %r9
movss -0x38(%rbp), %xmm1
movaps -0x170(%rbp), %xmm6
movaps -0xc0(%rbp), %xmm8
movss -0x54(%rbp), %xmm4
jmp 0x2c208
ucomiss %xmm6, %xmm2
jbe 0x2c390
ucomiss %xmm2, %xmm8
jbe 0x2c390
movq %r15, %rdi
movl %r13d, %esi
movq %r12, %rdx
movaps %xmm6, %xmm0
jmp 0x2c3ac
ucomiss %xmm8, %xmm2
jbe 0x2c3bb
ucomiss %xmm2, %xmm6
jbe 0x2c3bb
movq %r15, %rdi
movl %r13d, %esi
movq %r12, %rdx
movaps %xmm6, %xmm0
movss -0x38(%rbp), %xmm1
movss %xmm2, -0x48(%rbp)
movss %xmm3, -0x40(%rbp)
jmp 0x2c29d
movq %r15, %rdi
movl %r13d, %esi
movq %r12, %rdx
movaps %xmm6, %xmm0
movss -0x38(%rbp), %xmm1
movaps %xmm8, %xmm2
jmp 0x2c34c
cvttss2si %xmm6, %r13d
movq %r15, %rdi
movl %r13d, %esi
movq %r12, %rdx
movaps %xmm6, %xmm0
movss -0x38(%rbp), %xmm1
movaps %xmm6, %xmm2
movss -0x50(%rbp), %xmm3
movaps %xmm6, -0x170(%rbp)
callq 0x2fba8
incl %r13d
movq -0x98(%rbp), %rdi
movl %r13d, %esi
movq %r12, %rdx
movaps -0x170(%rbp), %xmm0
movss -0x38(%rbp), %xmm1
movaps %xmm0, %xmm2
movss -0x50(%rbp), %xmm3
callq 0x2fba8
movq %rbx, %r9
jmp 0x2c5a6
movss 0x10(%r12), %xmm3
ucomiss %xmm2, %xmm5
jbe 0x2c46d
movss -0x38(%rbp), %xmm6
movaps %xmm6, %xmm4
subss %xmm1, %xmm4
movss -0x50(%rbp), %xmm7
addss %xmm7, %xmm4
movaps %xmm6, %xmm1
subss %xmm0, %xmm1
addss %xmm7, %xmm1
xorps 0x9ecd(%rip), %xmm3     # 0x36330
movl %ecx, %edx
movaps %xmm4, %xmm0
movaps %xmm5, %xmm4
jmp 0x2c480
movl %eax, %edx
movl %ecx, %eax
movaps %xmm2, %xmm4
movaps %xmm5, %xmm2
movaps %xmm6, %xmm8
movss -0x38(%rbp), %xmm6
leal 0x1(%rax), %ecx
cvtsi2ss %ecx, %xmm7
subss %xmm8, %xmm7
mulss %xmm3, %xmm7
addss %xmm6, %xmm7
movss 0x14(%r12), %xmm5
movaps %xmm7, %xmm6
subss %xmm1, %xmm6
mulss %xmm5, %xmm6
cvtsi2ss %eax, %xmm8
subss %xmm8, %xmm2
movss 0x9ed7(%rip), %xmm8     # 0x36390
addss %xmm8, %xmm2
movss 0x9f09(%rip), %xmm9     # 0x363d0
mulss %xmm9, %xmm2
subss %xmm2, %xmm8
cltq
mulss %xmm6, %xmm8
addss (%r15,%rax,4), %xmm8
movss %xmm8, (%r15,%rax,4)
movaps %xmm3, %xmm2
mulss %xmm5, %xmm2
movaps %xmm2, %xmm8
mulss %xmm9, %xmm8
movslq %ecx, %rsi
movslq %edx, %rax
cmpq %rax, %rsi
jge 0x2c51d
movaps %xmm8, %xmm9
addss %xmm6, %xmm9
addss (%r15,%rsi,4), %xmm9
movss %xmm9, (%r15,%rsi,4)
addss %xmm2, %xmm6
incq %rsi
jmp 0x2c4fa
movaps %xmm6, %xmm2
andps 0x9db9(%rip), %xmm2     # 0x362e0
movss 0xf4b4(%rip), %xmm8     # 0x3b9e4
ucomiss %xmm2, %xmm8
jb 0x2d20d
cvtsi2ss %eax, %xmm2
movl %eax, %edx
subl %ecx, %edx
cvtsi2ss %edx, %xmm8
mulss %xmm8, %xmm3
addss %xmm7, %xmm3
subss %xmm2, %xmm4
addss 0x9e54(%rip), %xmm4     # 0x363b0
mulss 0x9e7c(%rip), %xmm4     # 0x363e0
addss 0x9e24(%rip), %xmm4     # 0x36390
mulss %xmm5, %xmm4
movaps %xmm0, %xmm2
subss %xmm3, %xmm2
mulss %xmm4, %xmm2
addss %xmm6, %xmm2
addss (%r15,%rax,4), %xmm2
movss %xmm2, (%r15,%rax,4)
subss %xmm1, %xmm0
mulss %xmm5, %xmm0
movq -0x98(%rbp), %rcx
addss 0x4(%rcx,%rax,4), %xmm0
movss %xmm0, 0x4(%rcx,%rax,4)
movq (%r12), %r12
movq -0xe0(%rbp), %r13
jmp 0x2c06d
xorps %xmm0, %xmm0
movq -0x238(%rbp), %rax
movq %r15, %rcx
movq -0x198(%rbp), %rdx
movl $0xff, %edi
leaq 0xf4ca(%rip), %r14      # 0x3baa0
movq -0x200(%rbp), %r8
movq -0x120(%rbp), %r10
subq $0x1, %rax
jb 0x2c62d
movq -0xd0(%rbp), %rsi
addss (%rcx,%rsi,4), %xmm0
movss (%rcx), %xmm1
addss %xmm0, %xmm1
andps 0x9cdb(%rip), %xmm1     # 0x362e0
mulss 0x9d8b(%rip), %xmm1     # 0x36398
addss 0x9dbb(%rip), %xmm1     # 0x363d0
cvttss2si %xmm1, %esi
cmpl %edi, %esi
cmovgel %edi, %esi
movslq %edx, %rdx
movb %sil, (%r8,%rdx)
incl %edx
addq $0x4, %rcx
jmp 0x2c5e4
leaq -0xe8(%rbp), %rax
movl -0x1b4(%rbp), %ecx
movq -0x260(%rbp), %r12
movq (%rax), %rax
testq %rax, %rax
je 0x2c65a
movss 0xc(%rax), %xmm0
addss 0x8(%rax), %xmm0
movss %xmm0, 0x8(%rax)
jmp 0x2c641
incl %r10d
incl %ecx
movq -0x198(%rbp), %rax
addl -0x114(%rbp), %eax
movq %rax, -0x198(%rbp)
jmp 0x2be45
movq -0xb0(%rbp), %rdi
testq %rdi, %rdi
je 0x2c691
movq (%rdi), %rbx
callq 0x8d0c
movq %rbx, %rdi
jmp 0x2c67f
leaq -0x470(%rbp), %rax
cmpq %rax, %r15
je 0x2c6a5
movq %r15, %rdi
callq 0x8d0c
movq -0xa0(%rbp), %rdi
callq 0x8d0c
movq -0x70(%rbp), %rdi
callq 0x8d0c
movq -0x78(%rbp), %rdi
callq 0x8d0c
movq -0x128(%rbp), %rdi
callq 0x8d0c
movl -0x140(%rbp), %ebx
movq -0x190(%rbp), %rax
movzwl 0x8(%rax), %esi
movzwl 0xa(%rax), %edx
movzwl 0x4(%rax), %ecx
movzwl 0x6(%rax), %eax
cmpq $0x2, %rbx
jb 0x2c917
movzwl %si, %esi
movzwl %dx, %edx
movzwl %cx, %r14d
movzwl %ax, %eax
movl %eax, -0x90(%rbp)
movq -0x138(%rbp), %rax
leaq (%rax,%rsi), %r12
movslq -0x148(%rbp), %rcx
movq %rcx, -0x48(%rbp)
imull %ecx, %edx
movslq %edx, %rcx
addq %rcx, %r12
movl %r14d, %edx
subl %ebx, %edx
pushq $-0x1
popq %rdi
cmovsl %edi, %edx
movslq %edx, %rdx
leaq 0x1(%rdx), %r15
addq %rsi, %rcx
addq %rdx, %rcx
leaq (%rax,%rcx), %r13
incq %r13
xorl %ecx, %ecx
cmpl -0x90(%rbp), %ecx
je 0x2c900
movl %ecx, -0x30(%rbp)
leaq -0x470(%rbp), %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x7210
leal -0x2(%rbx), %eax
cmpl $0x3, %eax
ja 0x2c87e
leaq 0xf334(%rip), %rcx      # 0x3bab0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
xorl %ecx, %ecx
cmpq %rax, %r15
je 0x2c8b9
movzbl (%r12,%rax), %edx
movl %eax, %esi
andl $0x7, %esi
movzbl -0x470(%rbp,%rsi), %esi
leal 0x2(%rax), %edi
andl $0x7, %edi
movb %dl, -0x470(%rbp,%rdi)
subl %esi, %edx
addl %edx, %ecx
movl %ecx, %edx
shrl %edx
movb %dl, (%r12,%rax)
incq %rax
jmp 0x2c789
xorl %eax, %eax
xorl %ecx, %ecx
cmpq %rax, %r15
je 0x2c8b9
movzbl (%r12,%rax), %edx
movl %eax, %esi
andl $0x7, %esi
movzbl -0x470(%rbp,%rsi), %edi
xorq $0x4, %rsi
movb %dl, -0x470(%rbp,%rsi)
subl %edi, %edx
addl %edx, %ecx
movl %ecx, %edx
shrl $0x2, %edx
movb %dl, (%r12,%rax)
incq %rax
jmp 0x2c7c6
xorl %esi, %esi
xorl %ecx, %ecx
cmpq %rsi, %r15
je 0x2c8b9
movzbl (%r12,%rsi), %eax
movl %esi, %edx
andl $0x7, %edx
movzbl -0x470(%rbp,%rdx), %edx
leal 0x5(%rsi), %edi
andl $0x7, %edi
movb %al, -0x470(%rbp,%rdi)
subl %edx, %eax
addl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
pushq $0x5
popq %rdi
divl %edi
movb %al, (%r12,%rsi)
incq %rsi
jmp 0x2c802
xorl %esi, %esi
xorl %ecx, %ecx
cmpq %rsi, %r15
je 0x2c8b9
movzbl (%r12,%rsi), %eax
movl %esi, %edx
andl $0x7, %edx
movzbl -0x470(%rbp,%rdx), %edx
leal 0x3(%rsi), %edi
andl $0x7, %edi
movb %al, -0x470(%rbp,%rdi)
subl %edx, %eax
addl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
pushq $0x3
popq %rdi
divl %edi
movb %al, (%r12,%rsi)
incq %rsi
jmp 0x2c844
xorl %esi, %esi
xorl %ecx, %ecx
cmpq %rsi, %r15
je 0x2c8b9
movzbl (%r12,%rsi), %eax
leal (%rbx,%rsi), %edx
movl %esi, %edi
andl $0x7, %edi
movzbl -0x470(%rbp,%rdi), %edi
andl $0x7, %edx
movb %al, -0x470(%rbp,%rdx)
subl %edi, %eax
addl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %ebx
movb %al, (%r12,%rsi)
incq %rsi
jmp 0x2c882
movq %r13, %rsi
movq %r15, %rdi
cmpq %r14, %rdi
jae 0x2c8ec
cmpb $0x0, (%rsi)
jne 0x2cccc
movl %edi, %eax
andl $0x7, %eax
movzbl -0x470(%rbp,%rax), %eax
subl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %ebx
movb %al, (%rsi)
incq %rdi
incq %rsi
jmp 0x2c8bf
movq -0x48(%rbp), %rax
addq %rax, %r12
movl -0x30(%rbp), %ecx
incl %ecx
addq %rax, %r13
jmp 0x2c749
movq -0x190(%rbp), %rax
movzwl 0x8(%rax), %esi
movzwl 0xa(%rax), %edx
movzwl 0x4(%rax), %ecx
movzwl 0x6(%rax), %eax
movl -0x13c(%rbp), %r14d
cmpq $0x2, %r14
jb 0x2cba4
movq -0x138(%rbp), %rdi
movzwl %si, %esi
leaq (%rdi,%rsi), %r9
movzwl %dx, %edx
movslq -0x148(%rbp), %r12
imull %r12d, %edx
movslq %edx, %r10
addq %r10, %r9
movzwl %cx, %ecx
movl %ecx, -0x48(%rbp)
movzwl %ax, %r15d
movl %r15d, %eax
subl %r14d, %eax
pushq $-0x1
popq %rcx
cmovsl %ecx, %eax
movslq %eax, %r13
incq %r13
movq %r13, %rax
imulq %r12, %rax
addq %rsi, %r10
addq %rdi, %r10
addq %rax, %r10
xorl %eax, %eax
movq %rbx, -0x40(%rbp)
cmpl -0x48(%rbp), %eax
je 0x2cb8d
movl %eax, -0x90(%rbp)
movq %r10, -0x30(%rbp)
movq %r9, %rbx
leaq -0x470(%rbp), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x7210
leal -0x2(%r14), %eax
cmpl $0x3, %eax
ja 0x2cafa
leaq 0xf109(%rip), %rcx      # 0x3bac0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movq %rbx, %r9
jmpq *%rax
xorl %eax, %eax
movq %r9, %rdx
xorl %ecx, %ecx
movq -0x40(%rbp), %rbx
movq -0x30(%rbp), %r10
cmpq %rax, %r13
je 0x2cb46
movzbl (%rdx), %esi
movl %eax, %edi
andl $0x7, %edi
movzbl -0x470(%rbp,%rdi), %edi
leal 0x2(%rax), %r8d
andl $0x7, %r8d
movb %sil, -0x470(%rbp,%r8)
subl %edi, %esi
addl %esi, %ecx
movl %ecx, %esi
shrl %esi
movb %sil, (%rdx)
incq %rax
addq %r12, %rdx
jmp 0x2c9d2
xorl %eax, %eax
movq %r9, %rdx
xorl %ecx, %ecx
movq -0x40(%rbp), %rbx
movq -0x30(%rbp), %r10
cmpq %rax, %r13
je 0x2cb46
movzbl (%rdx), %esi
movl %eax, %edi
andl $0x7, %edi
movzbl -0x470(%rbp,%rdi), %r8d
xorq $0x4, %rdi
movb %sil, -0x470(%rbp,%rdi)
subl %r8d, %esi
addl %esi, %ecx
movl %ecx, %esi
shrl $0x2, %esi
movb %sil, (%rdx)
incq %rax
addq %r12, %rdx
jmp 0x2ca1d
xorl %esi, %esi
movq %r9, %rdi
xorl %ecx, %ecx
movq -0x40(%rbp), %rbx
movq -0x30(%rbp), %r10
cmpq %rsi, %r13
je 0x2cb46
movzbl (%rdi), %eax
movl %esi, %edx
andl $0x7, %edx
movzbl -0x470(%rbp,%rdx), %edx
leal 0x5(%rsi), %r8d
andl $0x7, %r8d
movb %al, -0x470(%rbp,%r8)
subl %edx, %eax
addl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
pushq $0x5
popq %r8
divl %r8d
movb %al, (%rdi)
incq %rsi
addq %r12, %rdi
jmp 0x2ca67
xorl %esi, %esi
movq %r9, %rdi
xorl %ecx, %ecx
movq -0x40(%rbp), %rbx
movq -0x30(%rbp), %r10
cmpq %rsi, %r13
je 0x2cb46
movzbl (%rdi), %eax
movl %esi, %edx
andl $0x7, %edx
movzbl -0x470(%rbp,%rdx), %edx
leal 0x3(%rsi), %r8d
andl $0x7, %r8d
movb %al, -0x470(%rbp,%r8)
subl %edx, %eax
addl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
pushq $0x3
popq %r8
divl %r8d
movb %al, (%rdi)
incq %rsi
addq %r12, %rdi
jmp 0x2cab8
xorl %esi, %esi
movq %rbx, %r9
movq %rbx, %rdi
xorl %ecx, %ecx
movq -0x40(%rbp), %rbx
movq -0x30(%rbp), %r10
cmpq %rsi, %r13
je 0x2cb46
movzbl (%rdi), %eax
movl %esi, %edx
andl $0x7, %edx
movzbl -0x470(%rbp,%rdx), %edx
leal (%r14,%rsi), %r8d
andl $0x7, %r8d
movb %al, -0x470(%rbp,%r8)
subl %edx, %eax
addl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r14d
movb %al, (%rdi)
incq %rsi
addq %r12, %rdi
jmp 0x2cb0c
movq %r10, %rsi
movq %r13, %rdi
cmpq %r15, %rdi
jae 0x2cb7a
cmpb $0x0, (%rsi)
jne 0x2cceb
movl %edi, %eax
andl $0x7, %eax
movzbl -0x470(%rbp,%rax), %eax
subl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r14d
movb %al, (%rsi)
incq %rdi
addq %r12, %rsi
jmp 0x2cb4c
incq %r9
movl -0x90(%rbp), %eax
incl %eax
incq %r10
jmp 0x2c97c
movq -0x190(%rbp), %rax
movzwl 0x8(%rax), %esi
movzwl 0xa(%rax), %edx
movzwl 0x4(%rax), %ecx
movzwl 0x6(%rax), %eax
movq -0x1e8(%rbp), %r15
movq -0x1f8(%rbp), %r12
movq -0x1f0(%rbp), %r13
movaps -0x210(%rbp), %xmm1
movl -0x1b0(%rbp), %r8d
shll $0x8, %r8d
addl -0x1ac(%rbp), %r8d
movq -0x250(%rbp), %rdi
movw %si, (%rdi)
movw %dx, 0x2(%rdi)
addl %ecx, %esi
movw %si, 0x4(%rdi)
movswl %r8w, %esi
cvtsi2ss %esi, %xmm0
leal (%rax,%rdx), %edx
movw %dx, 0x6(%rdi)
mulss %xmm1, %xmm0
movss %xmm0, 0x10(%rdi)
movl -0x1bc(%rbp), %edx
cvtsi2ss %edx, %xmm0
movss -0x1a8(%rbp), %xmm4
mulss %xmm4, %xmm0
movss -0x10c(%rbp), %xmm3
addss %xmm3, %xmm0
movss %xmm0, 0x8(%rdi)
movl -0x1b8(%rbp), %esi
cvtsi2ss %esi, %xmm0
movss -0x1a4(%rbp), %xmm5
mulss %xmm5, %xmm0
movss -0x110(%rbp), %xmm2
addss %xmm2, %xmm0
movzwl %cx, %ecx
addl %edx, %ecx
cvtsi2ss %ecx, %xmm1
movss %xmm0, 0xc(%rdi)
mulss %xmm4, %xmm1
addss %xmm3, %xmm1
movzwl %ax, %eax
addl %esi, %eax
cvtsi2ss %eax, %xmm0
movss %xmm1, 0x14(%rdi)
mulss %xmm5, %xmm0
addss %xmm2, %xmm0
movss %xmm0, 0x18(%rdi)
movq -0x258(%rbp), %rcx
incq %r12
incq %rcx
jmp 0x2b6aa
movq -0x230(%rbp), %rax
incq %rax
jmp 0x2b592
movl -0x1a0(%rbp), %eax
movl %eax, -0x140(%rbp)
movl -0x19c(%rbp), %eax
movl %eax, -0x13c(%rbp)
movq -0xf8(%rbp), %rax
andq $0x0, 0x38(%rax)
movq -0x218(%rbp), %rbx
incq %rbx
jmp 0x2b4fe
leaq 0x13630(%rip), %rdi     # 0x40303
leaq 0x1321b(%rip), %rsi     # 0x3fef5
leaq 0x13631(%rip), %rcx     # 0x40312
movl $0xab7, %edx            # imm = 0xAB7
callq 0x7140
leaq 0x13666(%rip), %rdi     # 0x40358
leaq 0x131fc(%rip), %rsi     # 0x3fef5
leaq 0x13677(%rip), %rcx     # 0x40377
movl $0xaf4, %edx            # imm = 0xAF4
callq 0x7140
movq -0x130(%rbp), %rdi
callq 0x8d0c
movq -0x158(%rbp), %rdi
callq 0x8d0c
movq -0x180(%rbp), %rdi
callq 0x8d0c
xorl %ebx, %ebx
movq -0xd8(%rbp), %rdi
movslq (%rdi), %rax
cmpq %rax, %rbx
jge 0x2d12b
movl %ebx, %esi
callq 0x30362
movq %rax, %r15
movq %rbx, -0xa8(%rbp)
imulq $0x50, %rbx, %rbx
movq -0x100(%rbp), %r14
leaq (%r14,%rbx), %rdi
movq 0x60(%rax), %rax
movq %rax, -0x60(%rbp)
movss 0x14(%r15), %xmm0
movq %rdi, -0x98(%rbp)
movss %xmm0, -0x30(%rbp)
callq 0x2e1cf
movq 0x8(%r14,%rbx), %rax
movslq 0x24(%r14,%rbx), %rcx
movzwl 0x4(%rax,%rcx), %edx
rolw $0x8, %dx
movswl %dx, %edx
cvtsi2ss %edx, %xmm2
mulss %xmm0, %xmm2
movb 0x38(%r15), %dl
testb %dl, %dl
jne 0x2cdfa
movzwl 0x6(%rax,%rcx), %eax
rolw $0x8, %ax
cwtl
cvtsi2ss %eax, %xmm1
mulss %xmm1, %xmm0
movq -0x68(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rax, 0x30(%rcx)
movq %r15, 0x18(%rcx)
andl $0x0, 0x20(%rcx)
movss -0x30(%rbp), %xmm1
movss %xmm1, (%rcx)
movss %xmm2, -0x30(%rbp)
movss %xmm2, 0x24(%rcx)
movss %xmm0, 0x28(%rcx)
leaq 0x38(%rcx), %rdi
xorl %esi, %esi
callq 0x30488
movb 0x38(%r15), %dl
movss -0x30(%rbp), %xmm2
movq -0x60(%rbp), %rax
incl 0x20(%rax)
xorps %xmm0, %xmm0
movss %xmm0, -0xc8(%rbp)
testb $0x1, %dl
je 0x2ce3a
cmpb $0x1, 0x39(%r15)
movq -0x98(%rbp), %rax
jne 0x2ce41
movq -0x60(%rbp), %rcx
subss 0x24(%rcx), %xmm2
mulss 0x95a0(%rip), %xmm2     # 0x363d0
movss %xmm2, -0xc8(%rbp)
jmp 0x2ce41
movq -0x98(%rbp), %rax
movq -0x60(%rbp), %rcx
andq $0x0, 0x48(%rcx)
addq $0x38, %rcx
movq %rcx, -0x38(%rbp)
xorl %edx, %edx
movq %r15, -0xb0(%rbp)
movq %rax, %rcx
movslq 0x48(%rax), %rax
cmpq %rax, %rdx
jge 0x2d113
movq %rdx, -0xa0(%rbp)
imulq $0x28, %rdx, %r14
addq 0x40(%rcx), %r14
xorl %r13d, %r13d
xorl %ebx, %ebx
movq %r14, -0xe0(%rbp)
movslq 0x10(%r14), %rax
cmpq %rax, %rbx
jge 0x2d0fd
movq 0x18(%r14), %rax
movzwl (%rax,%r13), %esi
testw %si, %si
jne 0x2cec0
cmpw $0x0, 0x4(%rax,%r13)
jne 0x2cec0
cmpw $0x0, 0x2(%rax,%r13)
jne 0x2cec0
cmpw $0x0, 0x6(%rax,%r13)
je 0x2d0f1
movl 0x4(%r14), %r12d
cmpb $0x1, 0x38(%r15)
movq %rax, -0xc0(%rbp)
jne 0x2cef4
leal (%rbx,%r12), %eax
movzwl %ax, %esi
movq -0x60(%rbp), %rdi
callq 0x2e20c
testq %rax, %rax
jne 0x2d0f1
movq 0x18(%r14), %rax
movzwl (%rax,%r13), %esi
movw %si, -0x54(%rbp)
movq %r12, -0x170(%rbp)
movq %rbx, -0x50(%rbp)
movq -0x68(%rbp), %rcx
movl 0x18(%rcx), %r14d
movl 0x1c(%rcx), %r15d
movss 0x8(%rax,%r13), %xmm0
movss %xmm0, -0x48(%rbp)
movss 0xc(%rax,%r13), %xmm0
movss %xmm0, -0x90(%rbp)
movss 0x14(%rax,%r13), %xmm0
movss %xmm0, -0x40(%rbp)
movss 0x18(%rax,%r13), %xmm0
movss %xmm0, -0x30(%rbp)
movzwl 0x2(%rax,%r13), %r12d
movq %r13, %rcx
movzwl 0x4(%rax,%r13), %r13d
movq -0x38(%rbp), %rdi
movq %rcx, -0x108(%rbp)
movzwl 0x6(%rax,%rcx), %ebx
movl (%rdi), %esi
incl %esi
callq 0x30488
cvtsi2ss %r15d, %xmm0
movzwl %bx, %eax
cvtsi2ss %eax, %xmm4
cvtsi2ss %r14d, %xmm1
movss 0x940d(%rip), %xmm3     # 0x36390
movaps %xmm3, %xmm2
divss %xmm0, %xmm2
movaps %xmm3, %xmm0
divss %xmm1, %xmm0
movzwl %r13w, %eax
cvtsi2ss %eax, %xmm1
movzwl %r12w, %eax
cvtsi2ss %eax, %xmm3
mulss %xmm2, %xmm4
movss %xmm4, -0x78(%rbp)
mulss %xmm0, %xmm1
movss %xmm1, -0x70(%rbp)
mulss %xmm2, %xmm3
movss %xmm3, -0xd0(%rbp)
movzwl -0x54(%rbp), %eax
cvtsi2ss %eax, %xmm1
mulss %xmm0, %xmm1
movss %xmm1, -0x54(%rbp)
xorps %xmm0, %xmm0
movss -0x30(%rbp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, -0x30(%rbp)
movss -0x40(%rbp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, -0x40(%rbp)
movss -0x90(%rbp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, -0x90(%rbp)
movss -0x48(%rbp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, -0x48(%rbp)
movq -0x38(%rbp), %rdi
callq 0x304c6
movq -0x50(%rbp), %rbx
movq -0x170(%rbp), %rdx
addl %ebx, %edx
movw %dx, (%rax)
movss -0x48(%rbp), %xmm0
movss %xmm0, 0x8(%rax)
movss -0x40(%rbp), %xmm0
movss %xmm0, 0x10(%rax)
movss -0x54(%rbp), %xmm0
movss %xmm0, 0x18(%rax)
movss -0xd0(%rbp), %xmm0
movss %xmm0, 0x1c(%rax)
movss -0x70(%rbp), %xmm0
movss %xmm0, 0x20(%rax)
movss -0x78(%rbp), %xmm0
movss %xmm0, 0x24(%rax)
movq -0x60(%rbp), %rdx
movss 0x24(%rdx), %xmm0
addss -0xc8(%rbp), %xmm0
addss 0x934e(%rip), %xmm0     # 0x363d0
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
movss -0x90(%rbp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0xc(%rax)
movss -0x30(%rbp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0x14(%rax)
movq -0xc0(%rbp), %rdx
movq -0x108(%rbp), %r13
movss 0x10(%rdx,%r13), %xmm0
movq -0xb0(%rbp), %r15
addss 0x24(%r15), %xmm0
movss %xmm0, 0x4(%rax)
cmpb $0x1, 0x20(%r15)
movq -0xe0(%rbp), %r14
jne 0x2d0f1
addss 0x92eb(%rip), %xmm0     # 0x363d0
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
movss %xmm0, 0x4(%rax)
incq %rbx
addq $0x1c, %r13
jmp 0x2ce86
movq -0xa0(%rbp), %rdx
incq %rdx
movq -0x98(%rbp), %rax
jmp 0x2ce5b
movq 0x60(%r15), %rdi
callq 0x2e248
movq -0xa8(%rbp), %rbx
incq %rbx
jmp 0x2cd30
movq -0x188(%rbp), %rdi
callq 0x8d0c
movq -0x178(%rbp), %rdi
callq 0x8d0c
movq -0x100(%rbp), %rdi
callq 0x8d0c
pushq $0x1
popq %rsi
leaq -0x1d0(%rbp), %rdx
movq -0x68(%rbp), %rdi
callq 0x2db64
leaq -0x1d0(%rbp), %rdi
callq 0x30502
movq -0x220(%rbp), %rax
cmpq %rax, -0x1d8(%rbp)
setge %al
addq $0x448, %rsp            # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x12ff9(%rip), %rdi     # 0x40191
leaq 0x12d56(%rip), %rsi     # 0x3fef5
leaq 0x12f8c(%rip), %rcx     # 0x40132
movl $0x82c, %edx            # imm = 0x82C
callq 0x7140
leaq 0x13059(%rip), %rdi     # 0x40210
leaq 0x12d37(%rip), %rsi     # 0x3fef5
leaq 0x12fe0(%rip), %rcx     # 0x401a5
movl $0x765, %edx            # imm = 0x765
callq 0x7140
leaq 0x13025(%rip), %rdi     # 0x401fb
leaq 0x12d18(%rip), %rsi     # 0x3fef5
leaq 0x12fc1(%rip), %rcx     # 0x401a5
movl $0x778, %edx            # imm = 0x778
callq 0x7140
leaq 0x12f30(%rip), %rdi     # 0x40125
leaq 0x12cf9(%rip), %rsi     # 0x3fef5
leaq 0x12f2f(%rip), %rcx     # 0x40132
movl $0x821, %edx            # imm = 0x821
callq 0x7140
leaq 0x1301d(%rip), %rdi     # 0x40231
leaq 0x12cda(%rip), %rsi     # 0x3fef5
leaq 0x12f83(%rip), %rcx     # 0x401a5
movl $0x7b9, %edx            # imm = 0x7B9
callq 0x7140
leaq 0x12fec(%rip), %rdi     # 0x4021f
leaq 0x12cbb(%rip), %rsi     # 0x3fef5
leaq 0x12f64(%rip), %rcx     # 0x401a5
movl $0x794, %edx            # imm = 0x794
callq 0x7140
leaq 0x12b67(%rip), %rdi     # 0x3fdb9
leaq 0x1274d(%rip), %rsi     # 0x3f9a6
leaq 0x12aee(%rip), %rcx     # 0x3fd4e
movl $0x49f, %edx            # imm = 0x49F
callq 0x7140
leaq 0x12af7(%rip), %rdi     # 0x3fd68
leaq 0x1272e(%rip), %rsi     # 0x3f9a6
leaq 0x12acf(%rip), %rcx     # 0x3fd4e
movl $0x49d, %edx            # imm = 0x49D
callq 0x7140
leaq 0x12aaa(%rip), %rdi     # 0x3fd3a
leaq 0x1270f(%rip), %rsi     # 0x3f9a6
leaq 0x12ab0(%rip), %rcx     # 0x3fd4e
movl $0x485, %edx            # imm = 0x485
callq 0x7140
leaq 0x12b1b(%rip), %rdi     # 0x3fdca
leaq 0x126f0(%rip), %rsi     # 0x3f9a6
leaq 0x12a91(%rip), %rcx     # 0x3fd4e
movl $0x4ee, %edx            # imm = 0x4EE
callq 0x7140
leaq 0x12b1d(%rip), %rdi     # 0x3fdeb
leaq 0x126d1(%rip), %rsi     # 0x3f9a6
leaq 0x12a72(%rip), %rcx     # 0x3fd4e
movl $0x4ef, %edx            # imm = 0x4EF
callq 0x7140
leaq 0x12b25(%rip), %rdi     # 0x3fe12
leaq 0x126b2(%rip), %rsi     # 0x3f9a6
leaq 0x12a53(%rip), %rcx     # 0x3fd4e
movl $0x4f0, %edx            # imm = 0x4F0
callq 0x7140
leaq 0x12b56(%rip), %rdi     # 0x3fe62
leaq 0x12b73(%rip), %rsi     # 0x3fe86
leaq 0x12b84(%rip), %rcx     # 0x3fe9e
movl $0xdc, %edx
callq 0x7140
jmp 0x2d33a
jmp 0x2d33a
jmp 0x2d33a
jmp 0x2d33a
jmp 0x2d33a
jmp 0x2d33a
jmp 0x2d33a
jmp 0x2d33a
jmp 0x2d33a
jmp 0x2d33a
jmp 0x2d33a
movq %rax, %rbx
leaq -0x1d0(%rbp), %rdi
callq 0x30502
movq %rbx, %rdi
callq 0x74b0
nop