// File: /workspace/github_cpp_makefile_star2_O1/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::TreeNodeBehavior(unsigned int, int, char const*, char const*)
bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return false;

    ImGuiContext& g = *GImGui;
    const ImGuiStyle& style = g.Style;
    const bool display_frame = (flags & ImGuiTreeNodeFlags_Framed) != 0;
    const ImVec2 padding = (display_frame || (flags & ImGuiTreeNodeFlags_FramePadding)) ? style.FramePadding : ImVec2(style.FramePadding.x, ImMin(window->DC.CurrLineTextBaseOffset, style.FramePadding.y));

    if (!label_end)
        label_end = FindRenderedTextEnd(label);
    const ImVec2 label_size = CalcTextSize(label, label_end, false);

    // We vertically grow up to current line height up the typical widget height.
    const float frame_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), label_size.y + padding.y * 2);
    ImRect frame_bb;
    frame_bb.Min.x = (flags & ImGuiTreeNodeFlags_SpanFullWidth) ? window->WorkRect.Min.x : window->DC.CursorPos.x;
    frame_bb.Min.y = window->DC.CursorPos.y;
    frame_bb.Max.x = window->WorkRect.Max.x;
    frame_bb.Max.y = window->DC.CursorPos.y + frame_height;
    if (display_frame)
    {
        // Framed header expand a little outside the default padding, to the edge of InnerClipRect
        // (FIXME: May remove this at some point and make InnerClipRect align with WindowPadding.x instead of WindowPadding.x*0.5f)
        frame_bb.Min.x -= IM_FLOOR(window->WindowPadding.x * 0.5f - 1.0f);
        frame_bb.Max.x += IM_FLOOR(window->WindowPadding.x * 0.5f);
    }

    const float text_offset_x = g.FontSize + (display_frame ? padding.x * 3 : padding.x * 2);           // Collapser arrow width + Spacing
    const float text_offset_y = ImMax(padding.y, window->DC.CurrLineTextBaseOffset);                    // Latch before ItemSize changes it
    const float text_width = g.FontSize + (label_size.x > 0.0f ? label_size.x + padding.x * 2 : 0.0f);  // Include collapser
    ImVec2 text_pos(window->DC.CursorPos.x + text_offset_x, window->DC.CursorPos.y + text_offset_y);
    ItemSize(ImVec2(text_width, frame_height), padding.y);

    // For regular tree nodes, we arbitrary allow to click past 2 worth of ItemSpacing
    ImRect interact_bb = frame_bb;
    if (!display_frame && (flags & (ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_SpanFullWidth)) == 0)
        interact_bb.Max.x = frame_bb.Min.x + text_width + style.ItemSpacing.x * 2.0f;

    // Store a flag for the current depth to tell if we will allow closing this node when navigating one of its child.
    // For this purpose we essentially compare if g.NavIdIsAlive went from 0 to 1 between TreeNode() and TreePop().
    // This is currently only support 32 level deep and we are fine with (1 << Depth) overflowing into a zero.
    const bool is_leaf = (flags & ImGuiTreeNodeFlags_Leaf) != 0;
    bool is_open = TreeNodeBehaviorIsOpen(id, flags);
    if (is_open && !g.NavIdIsAlive && (flags & ImGuiTreeNodeFlags_NavLeftJumpsBackHere) && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen))
        window->DC.TreeJumpToParentOnPopMask |= (1 << window->DC.TreeDepth);

    bool item_add = ItemAdd(interact_bb, id);
    window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_HasDisplayRect;
    window->DC.LastItemDisplayRect = frame_bb;

    if (!item_add)
    {
        if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen))
            TreePushOverrideID(id);
        IMGUI_TEST_ENGINE_ITEM_INFO(window->DC.LastItemId, label, window->DC.ItemFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0));
        return is_open;
    }

    ImGuiButtonFlags button_flags = ImGuiTreeNodeFlags_None;
    if (flags & ImGuiTreeNodeFlags_AllowItemOverlap)
        button_flags |= ImGuiButtonFlags_AllowItemOverlap;
    if (!is_leaf)
        button_flags |= ImGuiButtonFlags_PressedOnDragDropHold;

    // We allow clicking on the arrow section with keyboard modifiers held, in order to easily
    // allow browsing a tree while preserving selection with code implementing multi-selection patterns.
    // When clicking on the rest of the tree node we always disallow keyboard modifiers.
    const float arrow_hit_x1 = (text_pos.x - text_offset_x) - style.TouchExtraPadding.x;
    const float arrow_hit_x2 = (text_pos.x - text_offset_x) + (g.FontSize + padding.x * 2.0f) + style.TouchExtraPadding.x;
    const bool is_mouse_x_over_arrow = (g.IO.MousePos.x >= arrow_hit_x1 && g.IO.MousePos.x < arrow_hit_x2);
    if (window != g.HoveredWindow || !is_mouse_x_over_arrow)
        button_flags |= ImGuiButtonFlags_NoKeyModifiers;

    // Open behaviors can be altered with the _OpenOnArrow and _OnOnDoubleClick flags.
    // Some alteration have subtle effects (e.g. toggle on MouseUp vs MouseDown events) due to requirements for multi-selection and drag and drop support.
    // - Single-click on label = Toggle on MouseUp (default, when _OpenOnArrow=0)
    // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=0)
    // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=1)
    // - Double-click on label = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1)
    // - Double-click on arrow = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1 and _OpenOnArrow=0)
    // It is rather standard that arrow click react on Down rather than Up.
    // We set ImGuiButtonFlags_PressedOnClickRelease on OpenOnDoubleClick because we want the item to be active on the initial MouseDown in order for drag and drop to work.
    if (is_mouse_x_over_arrow)
        button_flags |= ImGuiButtonFlags_PressedOnClick;
    else if (flags & ImGuiTreeNodeFlags_OpenOnDoubleClick)
        button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick;
    else
        button_flags |= ImGuiButtonFlags_PressedOnClickRelease;

    bool selected = (flags & ImGuiTreeNodeFlags_Selected) != 0;
    const bool was_selected = selected;

    bool hovered, held;
    bool pressed = ButtonBehavior(interact_bb, id, &hovered, &held, button_flags);
    bool toggled = false;
    if (!is_leaf)
    {
        if (pressed && g.DragDropHoldJustPressedId != id)
        {
            if ((flags & (ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick)) == 0 || (g.NavActivateId == id))
                toggled = true;
            if (flags & ImGuiTreeNodeFlags_OpenOnArrow)
                toggled |= is_mouse_x_over_arrow && !g.NavDisableMouseHover; // Lightweight equivalent of IsMouseHoveringRect() since ButtonBehavior() already did the job
            if ((flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) && g.IO.MouseDoubleClicked[0])
                toggled = true;
        }
        else if (pressed && g.DragDropHoldJustPressedId == id)
        {
            IM_ASSERT(button_flags & ImGuiButtonFlags_PressedOnDragDropHold);
            if (!is_open) // When using Drag and Drop "hold to open" we keep the node highlighted after opening, but never close it again.
                toggled = true;
        }

        if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Left && is_open)
        {
            toggled = true;
            NavMoveRequestCancel();
        }
        if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Right && !is_open) // If there's something upcoming on the line we may want to give it the priority?
        {
            toggled = true;
            NavMoveRequestCancel();
        }

        if (toggled)
        {
            is_open = !is_open;
            window->DC.StateStorage->SetInt(id, is_open);
            window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledOpen;
        }
    }
    if (flags & ImGuiTreeNodeFlags_AllowItemOverlap)
        SetItemAllowOverlap();

    // In this branch, TreeNodeBehavior() cannot toggle the selection so this will never trigger.
    if (selected != was_selected) //-V547
        window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledSelection;

    // Render
    const ImU32 text_col = GetColorU32(ImGuiCol_Text);
    ImGuiNavHighlightFlags nav_highlight_flags = ImGuiNavHighlightFlags_TypeThin;
    if (display_frame)
    {
        // Framed type
        const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
        RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, true, style.FrameRounding);
        RenderNavHighlight(frame_bb, id, nav_highlight_flags);
        if (flags & ImGuiTreeNodeFlags_Bullet)
            RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.60f, text_pos.y + g.FontSize * 0.5f), text_col);
        else if (!is_leaf)
            RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y), text_col, is_open ? ImGuiDir_Down : ImGuiDir_Right, 1.0f);
        else // Leaf without bullet, left-adjusted text
            text_pos.x -= text_offset_x;
        if (flags & ImGuiTreeNodeFlags_ClipLabelForTrailingButton)
            frame_bb.Max.x -= g.FontSize + style.FramePadding.x;
        if (g.LogEnabled)
        {
            // NB: '##' is normally used to hide text (as a library-wide feature), so we need to specify the text range to make sure the ## aren't stripped out here.
            const char log_prefix[] = "\n##";
            const char log_suffix[] = "##";
            LogRenderedText(&text_pos, log_prefix, log_prefix + 3);
            RenderTextClipped(text_pos, frame_bb.Max, label, label_end, &label_size);
            LogRenderedText(&text_pos, log_suffix, log_suffix + 2);
        }
        else
        {
            RenderTextClipped(text_pos, frame_bb.Max, label, label_end, &label_size);
        }
    }
    else
    {
        // Unframed typed for tree nodes
        if (hovered || selected)
        {
            const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
            RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, false);
            RenderNavHighlight(frame_bb, id, nav_highlight_flags);
        }
        if (flags & ImGuiTreeNodeFlags_Bullet)
            RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.5f, text_pos.y + g.FontSize * 0.5f), text_col);
        else if (!is_leaf)
            RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y + g.FontSize * 0.15f), text_col, is_open ? ImGuiDir_Down : ImGuiDir_Right, 0.70f);
        if (g.LogEnabled)
            LogRenderedText(&text_pos, ">");
        RenderText(text_pos, label, label_end, false);
    }

    if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen))
        TreePushOverrideID(id);
    IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0));
    return is_open;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
leaq 0x5b98d(%rip), %rax     # 0xfdcd0
movq (%rax), %r12
movq 0x1ae0(%r12), %rbx
movb $0x1, 0x90(%rbx)
cmpb $0x0, 0x93(%rbx)
je 0xa2366
xorl %r13d, %r13d
jmp 0xa2b39
movq %rdx, %r13
movl %esi, %r14d
movl %edi, %r15d
testl $0x402, %esi            # imm = 0x402
je 0xa2383
movss 0x159c(%r12), %xmm0
jmp 0xa2395
movss 0x110(%rbx), %xmm0
minss 0x159c(%r12), %xmm0
movaps %xmm0, -0x60(%rbp)
movss 0x1598(%r12), %xmm0
movaps %xmm0, -0xc0(%rbp)
testq %rcx, %rcx
jne 0xa23bc
movq %r13, %rdi
xorl %esi, %esi
callq 0x44e8b
movq %rax, %rcx
movss 0x14c0c(%rip), %xmm0    # 0xb6fd0
movq %r13, %rdi
movq %rcx, -0x88(%rbp)
movq %rcx, %rsi
xorl %edx, %edx
callq 0x4548d
leaq 0x238(%rbx), %rax
leaq 0xd8(%rbx), %rcx
btl $0xc, %r14d
cmovaeq %rcx, %rax
movlps %xmm0, -0x80(%rbp)
movss 0x104(%rbx), %xmm1
movss 0x159c(%r12), %xmm0
addss %xmm0, %xmm0
addss 0x1980(%r12), %xmm0
minss %xmm0, %xmm1
movaps -0x60(%rbp), %xmm0
movaps %xmm0, %xmm2
addss %xmm0, %xmm2
addss -0x7c(%rbp), %xmm2
movaps %xmm2, %xmm8
cmpless %xmm1, %xmm8
andps %xmm8, %xmm1
andnps %xmm2, %xmm8
orps %xmm1, %xmm8
xorps %xmm1, %xmm1
movaps %xmm1, -0x50(%rbp)
movss (%rax), %xmm3
movss %xmm3, -0x50(%rbp)
movss 0xdc(%rbx), %xmm1
movss %xmm1, -0x4c(%rbp)
movss 0x240(%rbx), %xmm2
movss %xmm2, -0x48(%rbp)
movaps %xmm8, %xmm4
addss %xmm1, %xmm4
movss %xmm4, -0x44(%rbp)
testb $0x2, %r14b
movq %r13, -0x40(%rbp)
jne 0xa2488
movss 0x153e2(%rip), %xmm7    # 0xb7868
jmp 0xa24c9
movss 0x40(%rbx), %xmm4
mulss 0x14b6f(%rip), %xmm4    # 0xb7004
movss 0x14b33(%rip), %xmm5    # 0xb6fd0
addss %xmm4, %xmm5
cvttps2dq %xmm5, %xmm5
cvtdq2ps %xmm5, %xmm5
subss %xmm5, %xmm3
movss %xmm3, -0x50(%rbp)
cvttps2dq %xmm4, %xmm3
cvtdq2ps %xmm3, %xmm3
addss %xmm3, %xmm2
movss %xmm2, -0x48(%rbp)
movss 0x14b27(%rip), %xmm7    # 0xb6ff0
movss 0x1980(%r12), %xmm2
movaps -0xc0(%rbp), %xmm6
mulss %xmm6, %xmm7
addss %xmm2, %xmm7
movss 0x110(%rbx), %xmm3
movaps %xmm3, %xmm4
cmpless %xmm0, %xmm4
movaps %xmm4, %xmm5
andps %xmm0, %xmm5
andnps %xmm3, %xmm4
orps %xmm5, %xmm4
movss -0x80(%rbp), %xmm3
movaps %xmm6, %xmm5
addss %xmm6, %xmm5
movss %xmm5, -0x90(%rbp)
addss %xmm3, %xmm5
xorps %xmm6, %xmm6
cmpltss %xmm3, %xmm6
andps %xmm5, %xmm6
addss %xmm2, %xmm6
movss 0xd8(%rbx), %xmm2
movaps %xmm7, -0xb0(%rbp)
addss %xmm7, %xmm2
addss %xmm4, %xmm1
movss %xmm2, -0x38(%rbp)
movss %xmm1, -0x34(%rbp)
leaq -0xd0(%rbp), %r13
movaps %xmm6, -0x70(%rbp)
movss %xmm6, (%r13)
movss %xmm8, 0x4(%r13)
movq %r13, %rdi
callq 0x532de
movaps -0x50(%rbp), %xmm0
movaps %xmm0, (%r13)
testl $0x1802, %r14d          # imm = 0x1802
jne 0xa259a
movaps -0x70(%rbp), %xmm1
addss -0x50(%rbp), %xmm1
movss 0x15a8(%r12), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0xc8(%rbp)
movl %r15d, %edi
movl %r14d, %esi
callq 0xa2d0f
movl %eax, %r13d
testb %al, %al
je 0xa25d9
movl %r14d, %eax
andl $0x2008, %eax           # imm = 0x2008
cmpl $0x2000, %eax           # imm = 0x2000
jne 0xa25d9
cmpb $0x0, 0x1ce4(%r12)
jne 0xa25d9
movb 0x18c(%rbx), %cl
movl $0x1, %eax
shll %cl, %eax
orl %eax, 0x190(%rbx)
leaq -0xd0(%rbp), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x5346f
orb $0x2, 0x128(%rbx)
movaps -0x50(%rbp), %xmm0
movups %xmm0, 0x13c(%rbx)
testb %al, %al
je 0xa2659
movl %r13d, -0x70(%rbp)
movl %r15d, -0x60(%rbp)
movl %r14d, %eax
andl $0x4, %eax
movl %eax, -0x8c(%rbp)
shll $0xa, %eax
leal 0x200(%rax), %r15d
btl $0x8, %r14d
cmovbl %eax, %r15d
movss -0x38(%rbp), %xmm0
subss -0xb0(%rbp), %xmm0
movss 0x15c0(%r12), %xmm1
movaps %xmm0, %xmm3
subss %xmm1, %xmm3
movss 0x128(%r12), %xmm2
ucomiss %xmm3, %xmm2
jae 0xa2666
xorl %r13d, %r13d
jmp 0xa2687
andl $0x8, %r14d
shrl $0x3, %r14d
jmp 0xa2b27
movss -0x90(%rbp), %xmm3
addss 0x1980(%r12), %xmm3
addss %xmm3, %xmm0
addss %xmm0, %xmm1
ucomiss %xmm2, %xmm1
seta %r13b
leal 0x10000(%r15), %eax
cmpq 0x1ae8(%r12), %rbx
cmovnel %eax, %r15d
movl %r14d, %ecx
andl $0x40, %ecx
testb %r13b, %r13b
cmovel %eax, %r15d
leal 0x20(,%rcx,4), %eax
movl $0x10, %r8d
cmovel %eax, %r8d
orl %r15d, %r8d
leaq -0xd0(%rbp), %rdi
leaq -0x29(%rbp), %rdx
leaq -0x2a(%rbp), %rcx
movl -0x60(%rbp), %esi
callq 0x92870
btl $0x8, %r14d
jb 0xa270c
testb %al, %al
je 0xa2719
movl -0x60(%rbp), %ecx
cmpl %ecx, 0x2080(%r12)
jne 0xa2a18
testb %al, %al
je 0xa2719
btl $0x9, %r15d
movq -0x40(%rbp), %r13
jae 0xa2b94
movl -0x70(%rbp), %eax
xorb $0x1, %al
movl -0x60(%rbp), %r15d
jmp 0xa2723
movl -0x60(%rbp), %r15d
movq -0x40(%rbp), %r13
jmp 0xa27a7
xorl %eax, %eax
movl -0x60(%rbp), %r15d
movq -0x40(%rbp), %r13
cmpl %r15d, 0x1c98(%r12)
jne 0xa2755
cmpb $0x1, 0x1d00(%r12)
jne 0xa2755
cmpl $0x0, 0x1d10(%r12)
setne %cl
movl -0x70(%rbp), %edx
xorb $0x1, %dl
orb %cl, %dl
jne 0xa2755
callq 0x58f1d
movb $0x1, %al
cmpl %r15d, 0x1c98(%r12)
jne 0xa2782
cmpb $0x1, 0x1d00(%r12)
jne 0xa2782
cmpl $0x1, 0x1d10(%r12)
setne %cl
orb -0x70(%rbp), %cl
jne 0xa2782
callq 0x58f1d
movb $0x1, %al
testb %al, %al
je 0xa27a7
movl -0x70(%rbp), %eax
xorb $0x1, %al
movq 0x1a8(%rbx), %rdi
movl %eax, -0x70(%rbp)
movzbl %al, %edx
movl %r15d, %esi
callq 0x433c8
orb $0x10, 0x128(%rbx)
cmpl $0x0, -0x8c(%rbp)
je 0xa27b5
callq 0x52c1e
movss 0x14827(%rip), %xmm0    # 0xb6fe4
xorl %edi, %edi
callq 0x445bd
movl %eax, %esi
testb $0x2, %r14b
jne 0xa28a9
testb $0x1, %r14b
sete %cl
movb -0x29(%rbp), %al
movl %eax, %edx
xorb $0x1, %dl
testb %dl, %cl
jne 0xa283a
movzbl %al, %ecx
orl $0x18, %ecx
testb %al, -0x2a(%rbp)
movl $0x1a, %edi
cmovel %ecx, %edi
movss 0x147e8(%rip), %xmm0    # 0xb6fe4
movl %esi, %r13d
callq 0x445bd
leaq -0x50(%rbp), %r15
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
xorps %xmm2, %xmm2
movl %eax, %edi
xorl %esi, %esi
callq 0x459e5
movq %r15, %rdi
movl -0x60(%rbp), %r15d
movl %r15d, %esi
movl $0x2, %edx
callq 0x45ca4
movl %r13d, %esi
movq -0x40(%rbp), %r13
btl $0x9, %r14d
jb 0xa2967
btl $0x8, %r14d
movaps -0xb0(%rbp), %xmm0
jb 0xa29a1
movq 0x2b8(%rbx), %rdi
movss -0x38(%rbp), %xmm2
subss %xmm0, %xmm2
movss 0x1980(%r12), %xmm1
mulss 0x15057(%rip), %xmm1    # 0xb78d0
addss -0x34(%rbp), %xmm1
movaps -0xc0(%rbp), %xmm0
addss %xmm2, %xmm0
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movzbl -0x70(%rbp), %eax
leal 0x1(,%rax,2), %edx
movss 0x15035(%rip), %xmm1    # 0xb78d4
callq 0x8391b
jmp 0xa29a1
movl %esi, %r13d
cmpb $0x1, -0x2a(%rbp)
jne 0xa28bd
movl $0x1a, %edi
cmpb $0x0, -0x29(%rbp)
jne 0xa28c4
movzbl -0x29(%rbp), %edi
orl $0x18, %edi
movss 0x14718(%rip), %xmm0    # 0xb6fe4
callq 0x445bd
leaq -0x50(%rbp), %r15
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movss 0x15a0(%r12), %xmm2
movl %eax, %edi
movl $0x1, %esi
callq 0x459e5
movq %r15, %rdi
movl -0x60(%rbp), %r15d
movl %r15d, %esi
movl $0x2, %edx
callq 0x45ca4
btl $0x9, %r14d
jb 0xa29d9
btl $0x8, %r14d
movaps -0xb0(%rbp), %xmm2
jb 0xa2a37
movq 0x2b8(%rbx), %rdi
movss -0x38(%rbp), %xmm1
subss %xmm2, %xmm1
movaps -0xc0(%rbp), %xmm0
addss %xmm1, %xmm0
movzbl -0x70(%rbp), %eax
leal 0x1(%rax,%rax), %edx
movss -0x34(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movss 0x1468a(%rip), %xmm1    # 0xb6fe4
movl %r13d, %esi
callq 0x8391b
jmp 0xa2a45
movq 0x2b8(%rbx), %rdi
movss -0x38(%rbp), %xmm0
movss 0x14689(%rip), %xmm1    # 0xb7004
movaps -0xb0(%rbp), %xmm2
mulss %xmm1, %xmm2
mulss 0x1980(%r12), %xmm1
subss %xmm2, %xmm0
addss -0x34(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
callq 0x83a80
cmpb $0x1, 0x3138(%r12)
jne 0xa29be
leaq 0x329c5(%rip), %rsi     # 0xd5378
leaq -0x38(%rbp), %rdi
xorl %edx, %edx
callq 0x44fd9
movsd -0x38(%rbp), %xmm0
movq %r13, %rdi
movq -0x88(%rbp), %rsi
xorl %edx, %edx
callq 0x44ec4
jmp 0xa2b1b
movaps -0xb0(%rbp), %xmm0
mulss 0x30500(%rip), %xmm0    # 0xd2ee8
addss -0x38(%rbp), %xmm0
movss 0x1980(%r12), %xmm1
mulss 0x14605(%rip), %xmm1    # 0xb7004
movq 0x2b8(%rbx), %rdi
addss -0x34(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movl %r13d, %esi
callq 0x83a80
jmp 0xa2a45
testb $-0x40, %r14b
movl -0x60(%rbp), %r15d
je 0xa2a30
cmpl %r15d, 0x1ca0(%r12)
jne 0xa2b4e
movb $0x1, %al
jmp 0xa2b50
movss -0x38(%rbp), %xmm0
subss %xmm2, %xmm0
movss %xmm0, -0x38(%rbp)
movq -0x40(%rbp), %rbx
btl $0x14, %r14d
jae 0xa2a72
movss 0x1980(%r12), %xmm0
addss 0x1598(%r12), %xmm0
movss -0x48(%rbp), %xmm1
subss %xmm0, %xmm1
movss %xmm1, -0x48(%rbp)
leaq -0x48(%rbp), %r13
cmpb $0x1, 0x3138(%r12)
jne 0xa2af1
leaq -0x91(%rbp), %rdx
movl $0x23230a, -0x3(%rdx)   # imm = 0x23230A
leaq -0x72(%rbp), %r12
movb $0x0, (%r12)
movw $0x2323, -0x2(%r12)     # imm = 0x2323
leaq -0x38(%rbp), %r15
leaq -0x94(%rbp), %rsi
movq %r15, %rdi
callq 0x44fd9
xorl %eax, %eax
leaq -0xd8(%rbp), %r9
movq %rax, (%r9)
movq %rax, (%rsp)
leaq -0x80(%rbp), %r8
movq %r15, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq -0x88(%rbp), %rcx
callq 0x45527
leaq -0x74(%rbp), %rsi
movq %r15, %rdi
movl -0x60(%rbp), %r15d
movq %r12, %rdx
callq 0x44fd9
jmp 0xa2b1b
xorl %eax, %eax
leaq -0xd8(%rbp), %r9
movq %rax, (%r9)
movq %rax, (%rsp)
leaq -0x38(%rbp), %rdi
leaq -0x80(%rbp), %r8
movq %r13, %rsi
movq %rbx, %rdx
movq -0x88(%rbp), %rcx
callq 0x45527
andl $0x8, %r14d
shrl $0x3, %r14d
movl -0x70(%rbp), %r13d
movl %r13d, %eax
xorb $0x1, %al
orb %r14b, %al
jne 0xa2b39
movl %r15d, %edi
callq 0xa2dee
movl %r13d, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
testb %r14b, %r14b
jns 0xa2b6d
xorl %ecx, %ecx
testb %r13b, %r13b
je 0xa2b68
movzbl 0x1ce7(%r12), %ecx
xorl $0x1, %ecx
movzbl %al, %eax
orl %ecx, %eax
movq -0x40(%rbp), %r13
testb $0x40, %r14b
je 0xa2723
cmpb $0x0, 0x425(%r12)
movzbl %al, %ecx
movl $0x1, %eax
cmovel %ecx, %eax
jmp 0xa2723
leaq 0x31d2d(%rip), %rdi     # 0xd48c8
leaq 0x305a6(%rip), %rsi     # 0xd3148
leaq 0x31d55(%rip), %rcx     # 0xd48fe
movl $0x1678, %edx           # imm = 0x1678
callq 0xc140