// File: /workspace/github_cpp_makefile_star2_O2/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 $0xc8, %rsp
leaq 0x5b231(%rip), %rax     # 0xe3ce0
movq (%rax), %r12
movq 0x1ae0(%r12), %rbx
movb $0x1, 0x90(%rbx)
cmpb $0x0, 0x93(%rbx)
je 0x88ae2
xorl %r13d, %r13d
movl %r13d, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r13
movl %esi, %r14d
movl %edi, %r15d
testw $0x402, %r14w           # imm = 0x402
je 0x88aff
movss 0x159c(%r12), %xmm0
jmp 0x88b11
movss 0x110(%rbx), %xmm0
minss 0x159c(%r12), %xmm0
movaps %xmm0, -0x70(%rbp)
movss 0x1598(%r12), %xmm0
movaps %xmm0, -0xb0(%rbp)
testq %rcx, %rcx
jne 0x88b38
movq %r13, %rdi
xorl %esi, %esi
callq 0x36123
movq %rax, %rcx
movss 0x134b0(%rip), %xmm0    # 0x9bff0
movq %r13, %rdi
movq %rcx, -0x78(%rbp)
movq %rcx, %rsi
xorl %edx, %edx
callq 0x365e8
leaq 0x238(%rbx), %rax
leaq 0xd8(%rbx), %rcx
btl $0xc, %r14d
cmovaeq %rcx, %rax
movlps %xmm0, -0x90(%rbp)
movss 0x104(%rbx), %xmm3
movss 0x1980(%r12), %xmm1
movss 0x159c(%r12), %xmm2
addss %xmm2, %xmm2
addss %xmm1, %xmm2
minss %xmm2, %xmm3
movaps %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm2     # xmm2 = xmm2[1,1],xmm0[1,1]
movaps -0x70(%rbp), %xmm9
movaps %xmm9, %xmm4
addss %xmm9, %xmm4
addss %xmm2, %xmm4
movaps %xmm4, %xmm2
cmpless %xmm3, %xmm2
movaps %xmm2, %xmm5
andnps %xmm4, %xmm5
andps %xmm3, %xmm2
orps %xmm5, %xmm2
movss (%rax), %xmm7
movss %xmm7, -0x50(%rbp)
movss 0xdc(%rbx), %xmm3
movss %xmm3, -0x4c(%rbp)
movss 0x240(%rbx), %xmm4
movss %xmm4, -0x48(%rbp)
movaps %xmm2, %xmm5
addss %xmm3, %xmm5
movss %xmm5, -0x44(%rbp)
testb $0x2, %r14b
movl %r15d, -0x30(%rbp)
jne 0x88c0d
movss %xmm7, -0x54(%rbp)
movss 0x13c89(%rip), %xmm8    # 0x9c894
jmp 0x88c54
movss 0x40(%rbx), %xmm5
mulss 0x133fe(%rip), %xmm5    # 0x9c018
movss 0x133ce(%rip), %xmm6    # 0x9bff0
addss %xmm5, %xmm6
cvttps2dq %xmm6, %xmm6
cvtdq2ps %xmm6, %xmm6
subss %xmm6, %xmm7
movss %xmm7, -0x54(%rbp)
movss %xmm7, -0x50(%rbp)
cvttps2dq %xmm5, %xmm5
cvtdq2ps %xmm5, %xmm5
addss %xmm5, %xmm4
movss %xmm4, -0x48(%rbp)
movss 0x133b0(%rip), %xmm8    # 0x9c004
movq %r13, -0x80(%rbp)
movaps -0xb0(%rbp), %xmm7
mulss %xmm7, %xmm8
addss %xmm1, %xmm8
movss 0x110(%rbx), %xmm4
movaps %xmm4, %xmm5
cmpless %xmm9, %xmm5
movaps %xmm5, %xmm6
andps %xmm9, %xmm6
andnps %xmm4, %xmm5
orps %xmm6, %xmm5
movaps %xmm7, %xmm4
addss %xmm7, %xmm4
movss %xmm4, -0x84(%rbp)
addss %xmm0, %xmm4
xorps %xmm6, %xmm6
cmpltss %xmm0, %xmm6
andps %xmm4, %xmm6
addss %xmm1, %xmm6
movss 0xd8(%rbx), %xmm0
movaps %xmm8, -0xa0(%rbp)
addss %xmm8, %xmm0
addss %xmm5, %xmm3
movss %xmm0, -0x3c(%rbp)
movss %xmm0, -0x38(%rbp)
movss %xmm3, -0x34(%rbp)
leaq -0xc0(%rbp), %r15
movaps %xmm6, -0xe0(%rbp)
movss %xmm6, (%r15)
movss %xmm2, 0x4(%r15)
movq %r15, %rdi
movaps %xmm9, %xmm0
callq 0x40d3b
movups -0x50(%rbp), %xmm0
movaps %xmm0, (%r15)
testw $0x1802, %r14w          # imm = 0x1802
jne 0x88d2c
movaps -0xe0(%rbp), %xmm1
addss -0x54(%rbp), %xmm1
movss 0x15a8(%r12), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0xb8(%rbp)
movl -0x30(%rbp), %r15d
movl %r15d, %edi
movl %r14d, %esi
callq 0x8947e
movl %eax, %r13d
pushq $0x1
popq %rdx
testb %al, %al
je 0x88d6f
movl %r14d, %eax
andl $0x2008, %eax           # imm = 0x2008
cmpl $0x2000, %eax           # imm = 0x2000
jne 0x88d6f
cmpb $0x0, 0x1ce4(%r12)
jne 0x88d6f
movb 0x18c(%rbx), %cl
movl %edx, %eax
shll %cl, %eax
orl %eax, 0x190(%rbx)
leaq -0xc0(%rbp), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x40ea5
orb $0x2, 0x128(%rbx)
movups -0x50(%rbp), %xmm0
movups %xmm0, 0x13c(%rbx)
testb %al, %al
je 0x88de3
movl %r14d, %eax
andl $0x4, %eax
movl %eax, -0x70(%rbp)
movl %eax, %ecx
shll $0xa, %ecx
leal 0x200(%rcx), %eax
btl $0x8, %r14d
cmovbl %ecx, %eax
movss -0x3c(%rbp), %xmm3
subss -0xa0(%rbp), %xmm3
movss 0x15c0(%r12), %xmm0
movaps %xmm3, %xmm2
subss %xmm0, %xmm2
movss 0x128(%r12), %xmm1
ucomiss %xmm2, %xmm1
jae 0x88e09
xorl %ecx, %ecx
jmp 0x88e29
andl $0x8, %r14d
shrl $0x3, %r14d
movl %r13d, %eax
xorb $0x1, %al
orb %r14b, %al
jne 0x88acd
movl %r15d, %edi
callq 0x89559
movb $0x1, %r13b
jmp 0x88acd
movss -0x84(%rbp), %xmm2
addss 0x1980(%r12), %xmm2
addss %xmm2, %xmm3
addss %xmm3, %xmm0
ucomiss %xmm1, %xmm0
seta %cl
testb %cl, %cl
movl %ecx, -0x3c(%rbp)
je 0x88e49
cmpq 0x1ae8(%r12), %rbx
leal 0x10000(%rax), %r15d
cmovel %eax, %r15d
orl $0x10, %r15d
jmp 0x88e5e
testb $0x40, %r14b
jne 0x88e56
orl $0x10020, %eax          # imm = 0x10020
jmp 0x88e5b
orl $0x10120, %eax          # imm = 0x10120
movl %eax, %r15d
leaq -0xc0(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
leaq -0x29(%rbp), %rcx
movl -0x30(%rbp), %esi
movl %r15d, %r8d
callq 0x79dde
btl $0x8, %r14d
jb 0x88ea6
testb %al, %al
je 0x88eaf
movl -0x30(%rbp), %eax
cmpl %eax, 0x2080(%r12)
jne 0x88f19
btl $0x9, %r15d
jae 0x89303
movl %r13d, %eax
xorb $0x1, %al
jmp 0x88eb1
movl -0x30(%rbp), %r15d
jmp 0x88f5b
xorl %eax, %eax
movl -0x30(%rbp), %r15d
movl 0x1c98(%r12), %ecx
cmpl %r15d, %ecx
jne 0x88ef2
cmpb $0x1, 0x1d00(%r12)
jne 0x88ef7
cmpl $0x0, 0x1d10(%r12)
setne %cl
movl %r13d, %edx
xorb $0x1, %dl
orb %cl, %dl
jne 0x88ef7
callq 0x45606
movl 0x1c98(%r12), %ecx
movb $0x1, %al
cmpl %r15d, %ecx
jne 0x88f13
cmpb $0x1, 0x1d00(%r12)
jne 0x88f13
cmpl $0x1, 0x1d10(%r12)
setne %cl
orb %r13b, %cl
je 0x88f38
testb %al, %al
jne 0x88f3d
jmp 0x88f5b
testb $-0x40, %r14b
movl -0x30(%rbp), %r15d
je 0x88f31
cmpl %r15d, 0x1ca0(%r12)
jne 0x892c2
movb $0x1, %al
jmp 0x892c4
callq 0x45606
xorb $0x1, %r13b
movq 0x1a8(%rbx), %rdi
movzbl %r13b, %edx
movl %r15d, %esi
callq 0x351a0
orb $0x10, 0x128(%rbx)
cmpl $0x0, -0x70(%rbp)
je 0x88f66
callq 0x406fd
movss 0x1308a(%rip), %xmm0    # 0x9bff8
xorl %edi, %edi
callq 0x35d33
movl %eax, %esi
testb $0x2, %r14b
jne 0x89052
testb $0x1, %r14b
sete %cl
movb -0x2a(%rbp), %al
movl %eax, %edx
xorb $0x1, %dl
testb %dl, %cl
jne 0x88fe3
movzbl %al, %ecx
orl $0x18, %ecx
testb %al, -0x29(%rbp)
pushq $0x1a
popq %rdi
cmovel %ecx, %edi
movss 0x1304d(%rip), %xmm0    # 0x9bff8
movl %esi, -0x70(%rbp)
callq 0x35d33
leaq -0x50(%rbp), %r15
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
xorps %xmm2, %xmm2
movl %eax, %edi
xorl %esi, %esi
callq 0x36a6f
pushq $0x2
popq %rdx
movq %r15, %rdi
movl -0x30(%rbp), %r15d
movl %r15d, %esi
callq 0x36c91
movl -0x70(%rbp), %esi
btl $0x9, %r14d
movaps -0xa0(%rbp), %xmm3
jb 0x89115
btl $0x8, %r14d
jb 0x89148
movq 0x2b8(%rbx), %rdi
movss -0x38(%rbp), %xmm2
subss %xmm3, %xmm2
movss 0x1980(%r12), %xmm1
mulss 0x138de(%rip), %xmm1    # 0x9c900
addss -0x34(%rbp), %xmm1
movaps -0xb0(%rbp), %xmm0
addss %xmm2, %xmm0
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movzbl %r13b, %eax
leal 0x1(,%rax,2), %edx
movss 0x138bc(%rip), %xmm1    # 0x9c904
callq 0x6b8b0
jmp 0x89148
movl %esi, -0x70(%rbp)
movb -0x29(%rbp), %al
movb -0x2a(%rbp), %cl
movl %eax, %edx
xorb $0x1, %dl
andb %cl, %dl
movzbl %dl, %edx
orl $0x18, %edx
testb $0x1, %cl
pushq $0x1a
popq %rdi
cmovel %edx, %edi
testb %al, %al
cmovel %edx, %edi
movss 0x12f7a(%rip), %xmm0    # 0x9bff8
callq 0x35d33
leaq -0x50(%rbp), %r15
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movss 0x15a0(%r12), %xmm2
pushq $0x1
popq %rsi
movl %eax, %edi
callq 0x36a6f
pushq $0x2
popq %rdx
movq %r15, %rdi
movl -0x30(%rbp), %r15d
movl %r15d, %esi
callq 0x36c91
btl $0x9, %r14d
jb 0x8917e
btl $0x8, %r14d
movaps -0xa0(%rbp), %xmm2
movl -0x70(%rbp), %esi
jb 0x891bd
movq 0x2b8(%rbx), %rdi
movss -0x38(%rbp), %xmm1
subss %xmm2, %xmm1
movaps -0xb0(%rbp), %xmm0
addss %xmm1, %xmm0
movzbl %r13b, %eax
leal 0x1(%rax,%rax), %edx
movss -0x34(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movss 0x12eed(%rip), %xmm1    # 0x9bff8
callq 0x6b8b0
jmp 0x891cb
movq 0x2b8(%rbx), %rdi
movss -0x38(%rbp), %xmm0
movss 0x12eef(%rip), %xmm1    # 0x9c018
mulss %xmm1, %xmm3
mulss 0x1980(%r12), %xmm1
subss %xmm3, %xmm0
addss -0x34(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
callq 0x6ba15
cmpb $0x1, 0x3138(%r12)
jne 0x89165
leaq 0x31477(%rip), %rsi     # 0xba5d1
leaq -0x38(%rbp), %rdi
xorl %edx, %edx
callq 0x36222
movsd -0x38(%rbp), %xmm0
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
xorl %edx, %edx
callq 0x36156
jmp 0x8929f
movaps -0xa0(%rbp), %xmm0
mulss 0x2ef9b(%rip), %xmm0    # 0xb8128
addss -0x38(%rbp), %xmm0
movss 0x1980(%r12), %xmm1
mulss 0x12e74(%rip), %xmm1    # 0x9c018
movq 0x2b8(%rbx), %rdi
addss -0x34(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movl -0x70(%rbp), %esi
callq 0x6ba15
jmp 0x891cb
movss -0x38(%rbp), %xmm0
subss %xmm2, %xmm0
movss %xmm0, -0x38(%rbp)
btl $0x14, %r14d
jae 0x891f4
movss 0x1980(%r12), %xmm0
addss 0x1598(%r12), %xmm0
movss -0x48(%rbp), %xmm1
subss %xmm0, %xmm1
movss %xmm1, -0x48(%rbp)
leaq -0x48(%rbp), %rbx
cmpb $0x1, 0x3138(%r12)
jne 0x89274
leaq -0x85(%rbp), %rdx
movl $0x23230a, -0x3(%rdx)   # imm = 0x23230A
leaq -0x56(%rbp), %r12
movb $0x0, (%r12)
movw $0x2323, -0x2(%r12)     # imm = 0x2323
leaq -0x38(%rbp), %r15
leaq -0x88(%rbp), %rsi
movq %r15, %rdi
callq 0x36222
leaq -0xc8(%rbp), %r9
andq $0x0, (%r9)
andq $0x0, (%rsp)
leaq -0x90(%rbp), %r8
movq %r15, %rdi
movq %rbx, %rsi
movq -0x80(%rbp), %rdx
movq -0x78(%rbp), %rcx
callq 0x36673
leaq -0x58(%rbp), %rsi
movq %r15, %rdi
movl -0x30(%rbp), %r15d
movq %r12, %rdx
callq 0x36222
jmp 0x8929f
leaq -0xc8(%rbp), %r9
andq $0x0, (%r9)
andq $0x0, (%rsp)
leaq -0x38(%rbp), %rdi
leaq -0x90(%rbp), %r8
movq %rbx, %rsi
movq -0x80(%rbp), %rdx
movq -0x78(%rbp), %rcx
callq 0x36673
andl $0x8, %r14d
shrl $0x3, %r14d
movl %r13d, %eax
xorb $0x1, %al
orb %r14b, %al
jne 0x88acd
movl %r15d, %edi
callq 0x89559
jmp 0x88acd
xorl %eax, %eax
pushq $0x1
popq %rdx
testb %r14b, %r14b
jns 0x892e5
xorl %ecx, %ecx
cmpb $0x0, -0x3c(%rbp)
je 0x892e0
movzbl 0x1ce7(%r12), %ecx
xorl $0x1, %ecx
movzbl %al, %eax
orl %ecx, %eax
testb $0x40, %r14b
je 0x88eb5
movzbl %al, %eax
cmpb $0x0, 0x425(%r12)
cmovnel %edx, %eax
jmp 0x88eb5
leaq 0x307db(%rip), %rdi     # 0xb9ae5
leaq 0x2f077(%rip), %rsi     # 0xb8388
leaq 0x30803(%rip), %rcx     # 0xb9b1b
movl $0x1678, %edx           # imm = 0x1678
callq 0xc140