// File: /workspace/github_cpp_makefile_star2_O1/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::PlotEx(ImGuiPlotType, char const*, float (*)(void*, int), void*, int, int, char const*, float, float, ImVec2)
int ImGui::PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 frame_size)
{
    ImGuiContext& g = *GImGui;
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return -1;

    const ImGuiStyle& style = g.Style;
    const ImGuiID id = window->GetID(label);

    const ImVec2 label_size = CalcTextSize(label, NULL, true);
    if (frame_size.x == 0.0f)
        frame_size.x = CalcItemWidth();
    if (frame_size.y == 0.0f)
        frame_size.y = label_size.y + (style.FramePadding.y * 2);

    const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size);
    const ImRect inner_bb(frame_bb.Min + style.FramePadding, frame_bb.Max - style.FramePadding);
    const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0));
    ItemSize(total_bb, style.FramePadding.y);
    if (!ItemAdd(total_bb, 0, &frame_bb))
        return -1;
    const bool hovered = ItemHoverable(frame_bb, id);

    // Determine scale from values if not specified
    if (scale_min == FLT_MAX || scale_max == FLT_MAX)
    {
        float v_min = FLT_MAX;
        float v_max = -FLT_MAX;
        for (int i = 0; i < values_count; i++)
        {
            const float v = values_getter(data, i);
            if (v != v) // Ignore NaN values
                continue;
            v_min = ImMin(v_min, v);
            v_max = ImMax(v_max, v);
        }
        if (scale_min == FLT_MAX)
            scale_min = v_min;
        if (scale_max == FLT_MAX)
            scale_max = v_max;
    }

    RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding);

    const int values_count_min = (plot_type == ImGuiPlotType_Lines) ? 2 : 1;
    int idx_hovered = -1;
    if (values_count >= values_count_min)
    {
        int res_w = ImMin((int)frame_size.x, values_count) + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0);
        int item_count = values_count + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0);

        // Tooltip on hover
        if (hovered && inner_bb.Contains(g.IO.MousePos))
        {
            const float t = ImClamp((g.IO.MousePos.x - inner_bb.Min.x) / (inner_bb.Max.x - inner_bb.Min.x), 0.0f, 0.9999f);
            const int v_idx = (int)(t * item_count);
            IM_ASSERT(v_idx >= 0 && v_idx < values_count);

            const float v0 = values_getter(data, (v_idx + values_offset) % values_count);
            const float v1 = values_getter(data, (v_idx + 1 + values_offset) % values_count);
            if (plot_type == ImGuiPlotType_Lines)
                SetTooltip("%d: %8.4g\n%d: %8.4g", v_idx, v0, v_idx + 1, v1);
            else if (plot_type == ImGuiPlotType_Histogram)
                SetTooltip("%d: %8.4g", v_idx, v0);
            idx_hovered = v_idx;
        }

        const float t_step = 1.0f / (float)res_w;
        const float inv_scale = (scale_min == scale_max) ? 0.0f : (1.0f / (scale_max - scale_min));

        float v0 = values_getter(data, (0 + values_offset) % values_count);
        float t0 = 0.0f;
        ImVec2 tp0 = ImVec2( t0, 1.0f - ImSaturate((v0 - scale_min) * inv_scale) );                       // Point in the normalized space of our target rectangle
        float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (-scale_min * inv_scale) : (scale_min < 0.0f ? 0.0f : 1.0f);   // Where does the zero line stands

        const ImU32 col_base = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLines : ImGuiCol_PlotHistogram);
        const ImU32 col_hovered = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLinesHovered : ImGuiCol_PlotHistogramHovered);

        for (int n = 0; n < res_w; n++)
        {
            const float t1 = t0 + t_step;
            const int v1_idx = (int)(t0 * item_count + 0.5f);
            IM_ASSERT(v1_idx >= 0 && v1_idx < values_count);
            const float v1 = values_getter(data, (v1_idx + values_offset + 1) % values_count);
            const ImVec2 tp1 = ImVec2( t1, 1.0f - ImSaturate((v1 - scale_min) * inv_scale) );

            // NB: Draw calls are merged together by the DrawList system. Still, we should render our batch are lower level to save a bit of CPU.
            ImVec2 pos0 = ImLerp(inner_bb.Min, inner_bb.Max, tp0);
            ImVec2 pos1 = ImLerp(inner_bb.Min, inner_bb.Max, (plot_type == ImGuiPlotType_Lines) ? tp1 : ImVec2(tp1.x, histogram_zero_line_t));
            if (plot_type == ImGuiPlotType_Lines)
            {
                window->DrawList->AddLine(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base);
            }
            else if (plot_type == ImGuiPlotType_Histogram)
            {
                if (pos1.x >= pos0.x + 2.0f)
                    pos1.x -= 1.0f;
                window->DrawList->AddRectFilled(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base);
            }

            t0 = t1;
            tp0 = tp1;
        }
    }

    // Text overlay
    if (overlay_text)
        RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, overlay_text, NULL, NULL, ImVec2(0.5f, 0.0f));

    if (label_size.x > 0.0f)
        RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, inner_bb.Min.y), label);

    // Return hovered index or -1 if none are hovered.
    // This is currently not exposed in the public API because we need a larger redesign of the whole thing, but in the short-term we are making it available in PlotEx().
    return idx_hovered;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %r9, -0x58(%rbp)
movq %rcx, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
leaq 0x5a56d(%rip), %rax     # 0xfdcd0
movq (%rax), %r12
movq 0x1ae0(%r12), %r14
movb $0x1, 0x90(%r14)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpb $0x0, 0x93(%r14)
jne 0xa4022
movl %r8d, %r15d
movq %rsi, %r13
movaps %xmm1, -0xd0(%rbp)
movaps %xmm0, -0xe0(%rbp)
movl %edi, -0x30(%rbp)
movq %r14, %rdi
xorl %edx, %edx
movaps %xmm2, -0xa0(%rbp)
callq 0x46258
movl %eax, -0x70(%rbp)
movss 0x13814(%rip), %xmm0    # 0xb6fd0
movq %r13, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x4548d
movaps -0xa0(%rbp), %xmm3
movaps %xmm0, %xmm1
xorps %xmm2, %xmm2
ucomiss %xmm2, %xmm3
movaps %xmm0, -0x100(%rbp)
jne 0xa3800
jp 0xa3800
callq 0x57252
xorps %xmm2, %xmm2
movaps -0xa0(%rbp), %xmm3
movaps -0x100(%rbp), %xmm1
movss %xmm0, %xmm3            # xmm3 = xmm0[0],xmm3[1,2,3]
movaps %xmm3, %xmm0
shufps $0x55, %xmm3, %xmm0     # xmm0 = xmm0[1,1],xmm3[1,1]
ucomiss %xmm2, %xmm0
jne 0xa3836
jp 0xa3836
movaps %xmm1, %xmm0
shufps $0x55, %xmm1, %xmm0     # xmm0 = xmm0[1,1],xmm1[1,1]
movaps %xmm1, %xmm2
movss 0x159c(%r12), %xmm1
addss %xmm1, %xmm1
addss %xmm0, %xmm1
movlhps %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0]
shufps $0xe2, %xmm3, %xmm1     # xmm1 = xmm1[2,0],xmm3[2,3]
movaps %xmm1, %xmm3
jmp 0xa3839
movaps %xmm1, %xmm2
movss 0xd8(%r14), %xmm0
addss %xmm3, %xmm0
movaps %xmm3, -0xa0(%rbp)
movaps %xmm3, %xmm1
shufps $0x55, %xmm3, %xmm1     # xmm1 = xmm1[1,1],xmm3[1,1]
addss 0xdc(%r14), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movq 0xd8(%r14), %rax
movq %rax, -0xb8(%rbp)
movlps %xmm0, -0xb0(%rbp)
movss 0x1598(%r12), %xmm5
movss 0x159c(%r12), %xmm4
movss -0xb0(%rbp), %xmm0
movss %xmm0, -0x2c(%rbp)
movss -0xac(%rbp), %xmm3
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm2
xorps %xmm1, %xmm1
jbe 0xa38bb
movss 0x15b0(%r12), %xmm1
addss -0x100(%rbp), %xmm1
leaq -0xb8(%rbp), %rbx
movss (%rbx), %xmm2
movss %xmm5, -0x140(%rbp)
addss %xmm5, %xmm2
movss %xmm2, -0x38(%rbp)
movss 0x4(%rbx), %xmm2
movss %xmm4, -0x120(%rbp)
addss %xmm4, %xmm2
movaps %xmm2, -0xf0(%rbp)
addss -0x2c(%rbp), %xmm1
movss %xmm3, -0x34(%rbp)
addss %xmm3, %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movq (%rbx), %rax
movq %r12, %rcx
leaq -0x150(%rbp), %r12
movq %rax, (%r12)
movlps %xmm1, 0x8(%r12)
movq %rcx, -0x78(%rbp)
movss 0x159c(%rcx), %xmm0
movq %r12, %rdi
callq 0x56a82
movq %r12, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x5346f
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testb %al, %al
je 0xa4022
leaq -0xb8(%rbp), %rdi
movl -0x70(%rbp), %esi
callq 0x46e45
movaps -0xe0(%rbp), %xmm0
ucomiss 0x13ede(%rip), %xmm0    # 0xb7840
movaps -0xd0(%rbp), %xmm0
movb %al, -0x110(%rbp)
jne 0xa3973
jnp 0xa3987
ucomiss 0x13ec6(%rip), %xmm0    # 0xb7840
jne 0xa397e
jnp 0xa3987
movq -0x78(%rbp), %r12
jmp 0xa3a41
movss 0x13eb1(%rip), %xmm0    # 0xb7840
testl %r15d, %r15d
movq -0x78(%rbp), %r12
jle 0xa39f3
xorl %ebx, %ebx
movss 0x13f06(%rip), %xmm3    # 0xb78a8
movss 0x13e96(%rip), %xmm4    # 0xb7840
movaps %xmm4, -0x50(%rbp)
movaps %xmm3, -0x70(%rbp)
movq -0x88(%rbp), %rdi
movl %ebx, %esi
callq *-0x80(%rbp)
ucomiss %xmm0, %xmm0
jp 0xa39e9
movaps -0x50(%rbp), %xmm4
minss %xmm0, %xmm4
movaps %xmm0, %xmm1
movaps -0x70(%rbp), %xmm3
cmpless %xmm3, %xmm1
andps %xmm1, %xmm3
andnps %xmm0, %xmm1
orps %xmm1, %xmm3
incl %ebx
cmpl %ebx, %r15d
jne 0xa39aa
jmp 0xa39fe
movaps -0x70(%rbp), %xmm3
movaps -0x50(%rbp), %xmm4
jmp 0xa39e0
movss 0x13ead(%rip), %xmm3    # 0xb78a8
movaps %xmm0, %xmm4
movaps -0xe0(%rbp), %xmm1
movaps %xmm1, %xmm0
movss 0x13e30(%rip), %xmm2    # 0xb7840
cmpeqss %xmm2, %xmm0
andps %xmm0, %xmm4
andnps %xmm1, %xmm0
orps %xmm4, %xmm0
movaps -0xd0(%rbp), %xmm1
cmpeqss %xmm1, %xmm2
andps %xmm2, %xmm3
andnps %xmm1, %xmm2
orps %xmm3, %xmm2
movaps %xmm2, -0xd0(%rbp)
movaps %xmm0, -0xe0(%rbp)
movsd -0xb8(%rbp), %xmm0
movaps %xmm0, -0x70(%rbp)
movsd -0xb0(%rbp), %xmm0
movaps %xmm0, -0x50(%rbp)
movss 0x13583(%rip), %xmm0    # 0xb6fe4
movl $0x7, %edi
callq 0x445bd
movss 0x15a0(%r12), %xmm2
movaps -0x70(%rbp), %xmm0
movaps -0x50(%rbp), %xmm1
movl %eax, %edi
movl $0x1, %esi
callq 0x459e5
xorl %eax, %eax
movl -0x30(%rbp), %ecx
cmpl $0x1, %ecx
adcl $0x1, %eax
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl %r15d, %eax
movaps -0x100(%rbp), %xmm1
movaps -0xf0(%rbp), %xmm2
jg 0xa3f97
movss -0x2c(%rbp), %xmm0
subss -0x140(%rbp), %xmm0
movss %xmm0, -0x2c(%rbp)
movss -0x34(%rbp), %xmm3
subss -0x120(%rbp), %xmm3
xorl %edx, %edx
testl %ecx, %ecx
cvttss2si -0xa0(%rbp), %r12d
sete %dl
cmpl %r15d, %r12d
cmovgel %r15d, %r12d
movl %r15d, %eax
subl %edx, %eax
movl %eax, -0x70(%rbp)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpb $0x0, -0x110(%rbp)
movss %xmm3, -0x34(%rbp)
je 0xa3c1f
movq -0x78(%rbp), %rax
movss 0x128(%rax), %xmm0
ucomiss -0x38(%rbp), %xmm0
jb 0xa3c1f
movss 0x12c(%rax), %xmm1
ucomiss %xmm2, %xmm1
jb 0xa3c1f
movss -0x2c(%rbp), %xmm2
ucomiss %xmm0, %xmm2
jbe 0xa3c1f
ucomiss %xmm1, %xmm3
jbe 0xa3c1f
movl %edx, -0x50(%rbp)
movss -0x38(%rbp), %xmm2
subss %xmm2, %xmm0
movss -0x2c(%rbp), %xmm1
subss %xmm2, %xmm1
divss %xmm1, %xmm0
movss 0x2f38c(%rip), %xmm1    # 0xd2ef0
minss %xmm0, %xmm1
xorps %xmm2, %xmm2
cmpltss %xmm2, %xmm0
andnps %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2ssl -0x70(%rbp), %xmm1
mulss %xmm0, %xmm1
cvttss2si %xmm1, %ebx
testl %ebx, %ebx
js 0xa4055
cmpl %r15d, %ebx
jge 0xa4055
movq -0x58(%rbp), %rax
addl %ebx, %eax
cltd
idivl %r15d
movq -0x88(%rbp), %rdi
movl %edx, %esi
callq *-0x80(%rbp)
movss %xmm0, -0xa0(%rbp)
movq -0x58(%rbp), %rax
addl %ebx, %eax
incl %eax
cltd
idivl %r15d
movq -0x88(%rbp), %rdi
movl %edx, %esi
callq *-0x80(%rbp)
movl -0x30(%rbp), %eax
testl %eax, %eax
je 0xa3bf4
movss -0xa0(%rbp), %xmm0
cmpl $0x1, %eax
jne 0xa3c1c
cvtss2sd %xmm0, %xmm0
leaq 0x30ee5(%rip), %rdi     # 0xd4ace
movl %ebx, %esi
movb $0x1, %al
callq 0x51d41
jmp 0xa3c1c
leal 0x1(%rbx), %edx
xorps %xmm2, %xmm2
cvtss2sd -0xa0(%rbp), %xmm2
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
leaq 0x30eb4(%rip), %rdi     # 0xd4ac4
movl %ebx, %esi
movaps %xmm2, %xmm0
movb $0x2, %al
callq 0x51d41
movl -0x50(%rbp), %edx
subl %edx, %r12d
movaps -0xd0(%rbp), %xmm2
movaps %xmm2, %xmm0
movaps -0xe0(%rbp), %xmm3
subss %xmm3, %xmm0
movss 0x133a5(%rip), %xmm1    # 0xb6fe4
divss %xmm0, %xmm1
cmpeqss %xmm2, %xmm3
andnps %xmm1, %xmm3
movaps %xmm3, -0x120(%rbp)
movq -0x58(%rbp), %rax
cltd
idivl %r15d
movq -0x88(%rbp), %rdi
movl %edx, %esi
callq *-0x80(%rbp)
movaps -0x120(%rbp), %xmm4
movaps -0xe0(%rbp), %xmm3
xorps %xmm2, %xmm2
movaps -0xd0(%rbp), %xmm1
mulss %xmm3, %xmm1
ucomiss %xmm1, %xmm2
movq %r13, -0x128(%rbp)
movss %xmm0, -0x50(%rbp)
jbe 0xa3ca3
movaps 0x13326(%rip), %xmm1    # 0xb6fc0
xorps %xmm3, %xmm1
mulss %xmm4, %xmm1
jmp 0xa3cb6
movaps %xmm3, %xmm1
cmpltss %xmm2, %xmm1
movss 0x13331(%rip), %xmm0    # 0xb6fe4
andnps %xmm0, %xmm1
movaps %xmm1, -0x110(%rbp)
movl -0x30(%rbp), %eax
xorl %r13d, %r13d
testl %eax, %eax
setne %r13b
leal 0x26(,%r13,2), %edi
movss 0x1330b(%rip), %xmm0    # 0xb6fe4
callq 0x445bd
movl %eax, -0x90(%rbp)
leal 0x27(,%r13,2), %edi
movss 0x132f0(%rip), %xmm0    # 0xb6fe4
callq 0x445bd
movl %eax, -0x8c(%rbp)
testl %r12d, %r12d
jle 0xa3f7e
movss -0x50(%rbp), %xmm0
subss -0xe0(%rbp), %xmm0
movaps -0x120(%rbp), %xmm6
mulss %xmm0, %xmm6
movss 0x132bc(%rip), %xmm2    # 0xb6fe4
movaps %xmm2, %xmm0
minss %xmm6, %xmm0
movaps %xmm2, %xmm1
subss %xmm0, %xmm1
cmpltss 0x13b05(%rip), %xmm6    # 0xb7844
movaps %xmm6, %xmm0
andnps %xmm1, %xmm0
andps %xmm2, %xmm6
xorps %xmm1, %xmm1
cvtsi2ss %r12d, %xmm1
orps %xmm0, %xmm6
xorps %xmm0, %xmm0
cvtsi2ssl -0x70(%rbp), %xmm0
movss %xmm0, -0xd0(%rbp)
divss %xmm1, %xmm2
movaps %xmm2, -0x140(%rbp)
movq -0x58(%rbp), %rax
incl %eax
movq %rax, -0x58(%rbp)
movss -0x2c(%rbp), %xmm0
subss -0x38(%rbp), %xmm0
movss %xmm0, -0x2c(%rbp)
movaps -0xf0(%rbp), %xmm0
movss -0x34(%rbp), %xmm1
subss %xmm0, %xmm1
movaps -0x110(%rbp), %xmm2
mulss %xmm1, %xmm2
addss %xmm0, %xmm2
movaps %xmm2, -0x110(%rbp)
xorps %xmm0, %xmm0
movss %xmm1, -0x34(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm0, %xmm1
mulss -0xd0(%rbp), %xmm0
addss 0x13238(%rip), %xmm0    # 0xb7004
cvttss2si %xmm0, %r13d
testl %r13d, %r13d
js 0xa4036
cmpl %r15d, %r13d
jge 0xa4036
movaps -0x140(%rbp), %xmm0
addss %xmm1, %xmm0
movaps %xmm0, -0x70(%rbp)
movq -0x58(%rbp), %rax
addl %r13d, %eax
cltd
idivl %r15d
movq -0x88(%rbp), %rdi
movl %edx, %esi
movaps %xmm1, -0xa0(%rbp)
callq *-0x80(%rbp)
movaps %xmm0, %xmm6
subss -0xe0(%rbp), %xmm6
mulss -0x120(%rbp), %xmm6
movss 0x131b9(%rip), %xmm4    # 0xb6fe4
movaps %xmm4, %xmm0
minss %xmm6, %xmm0
movaps %xmm4, %xmm1
subss %xmm0, %xmm1
cmpltss 0x13a02(%rip), %xmm6    # 0xb7844
movaps %xmm6, %xmm0
andnps %xmm1, %xmm0
andps %xmm4, %xmm6
orps %xmm0, %xmm6
movss -0x2c(%rbp), %xmm0
movaps -0xa0(%rbp), %xmm7
mulss %xmm0, %xmm7
movss -0x38(%rbp), %xmm3
addss %xmm3, %xmm7
movss -0x34(%rbp), %xmm1
movaps -0x50(%rbp), %xmm5
mulss %xmm1, %xmm5
movaps -0xf0(%rbp), %xmm2
addss %xmm2, %xmm5
unpcklps %xmm5, %xmm7            # xmm7 = xmm7[0],xmm5[0],xmm7[1],xmm5[1]
movlps %xmm7, -0xa8(%rbp)
mulss -0x70(%rbp), %xmm0
addss %xmm3, %xmm0
movl -0x30(%rbp), %eax
testl %eax, %eax
je 0xa3f15
unpcklps -0x110(%rbp), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
movlps %xmm0, -0x60(%rbp)
cmpl $0x1, %eax
jne 0xa3f5d
movaps %xmm6, -0x50(%rbp)
movss -0x60(%rbp), %xmm0
movss -0xa8(%rbp), %xmm1
addss 0x139a2(%rip), %xmm1    # 0xb7868
ucomiss %xmm1, %xmm0
jb 0xa3ed8
addss 0x130fd(%rip), %xmm0    # 0xb6fd0
movss %xmm0, -0x60(%rbp)
movq 0x2b8(%r14), %rdi
cmpl %r13d, %ebx
movl -0x90(%rbp), %ecx
cmovel -0x8c(%rbp), %ecx
xorps %xmm0, %xmm0
leaq -0xa8(%rbp), %rsi
leaq -0x60(%rbp), %rdx
movl $0xf, %r8d
callq 0x79d4a
movaps -0xf0(%rbp), %xmm2
movaps -0x50(%rbp), %xmm6
jmp 0xa3f5d
mulss %xmm6, %xmm1
addss %xmm2, %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movlps %xmm0, -0x60(%rbp)
movq 0x2b8(%r14), %rdi
cmpl %r13d, %ebx
movl -0x90(%rbp), %ecx
cmovel -0x8c(%rbp), %ecx
leaq -0xa8(%rbp), %rsi
leaq -0x60(%rbp), %rdx
movaps %xmm4, %xmm0
movaps %xmm6, -0x50(%rbp)
callq 0x79abc
movaps -0x50(%rbp), %xmm6
movaps -0xf0(%rbp), %xmm2
decl %r12d
movaps -0x70(%rbp), %xmm0
jne 0xa3db5
movq -0x128(%rbp), %r13
movq -0x78(%rbp), %r12
movaps -0x100(%rbp), %xmm1
jmp 0xa3f97
movq -0x128(%rbp), %r13
movq -0x78(%rbp), %r12
movaps -0x100(%rbp), %xmm1
movaps -0xf0(%rbp), %xmm2
movq 0x10(%rbp), %rdx
testq %rdx, %rdx
je 0xa3ff6
leaq -0xb0(%rbp), %rsi
movss -0x8(%rsi), %xmm0
movss -0x4(%rsi), %xmm1
addss 0x159c(%r12), %xmm1
leaq -0xa8(%rbp), %rdi
movss %xmm0, (%rdi)
movss %xmm1, 0x4(%rdi)
leaq -0x60(%rbp), %r9
movq $0x3f000000, (%r9)      # imm = 0x3F000000
movq $0x0, (%rsp)
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45527
movaps -0xf0(%rbp), %xmm2
movaps -0x100(%rbp), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm1
jbe 0xa4022
movss -0xb0(%rbp), %xmm0
addss 0x15b0(%r12), %xmm0
unpcklps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movq %r13, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x44ec4
movl %ebx, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x30a9b(%rip), %rdi     # 0xd4ad8
leaq 0x2f104(%rip), %rsi     # 0xd3148
leaq 0x309fc(%rip), %rcx     # 0xd4a47
movl $0x18c1, %edx           # imm = 0x18C1
callq 0xc140
leaq 0x309c8(%rip), %rdi     # 0xd4a24
leaq 0x2f0e5(%rip), %rsi     # 0xd3148
leaq 0x309dd(%rip), %rcx     # 0xd4a47
movl $0x18a7, %edx           # imm = 0x18A7
callq 0xc140