// File: /workspace/github_cpp_makefile_star2_O3/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 0x5b2e8(%rip), %rax     # 0xfbcd0
movq (%rax), %r12
movq 0x1ae0(%r12), %rbx
movb $0x1, 0x90(%rbx)
cmpb $0x0, 0x93(%rbx)
je 0xa0a1b
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
testl $0x402, %esi            # imm = 0x402
je 0xa0a38
movss 0x159c(%r12), %xmm0
jmp 0xa0a4a
movss 0x110(%rbx), %xmm0
minss 0x159c(%r12), %xmm0
movaps %xmm0, -0x70(%rbp)
movss 0x1598(%r12), %xmm0
movaps %xmm0, -0xb0(%rbp)
testq %rcx, %rcx
jne 0xa0a71
movq %r13, %rdi
xorl %esi, %esi
callq 0x4443d
movq %rax, %rcx
movss 0x14557(%rip), %xmm0    # 0xb4fd0
movq %r13, %rdi
movq %rcx, -0x78(%rbp)
movq %rcx, %rsi
xorl %edx, %edx
callq 0x44a23
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 0xa0b46
movss %xmm7, -0x54(%rbp)
movss 0x14d24(%rip), %xmm8    # 0xb5868
jmp 0xa0b8d
movss 0x40(%rbx), %xmm5
mulss 0x144b1(%rip), %xmm5    # 0xb5004
movss 0x14475(%rip), %xmm6    # 0xb4fd0
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 0x14463(%rip), %xmm8    # 0xb4ff0
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 0x52315
movups -0x50(%rbp), %xmm0
movaps %xmm0, (%r15)
testl $0x1802, %r14d          # imm = 0x1802
jne 0xa0c66
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 0xa13cc
movl %eax, %r13d
testb %al, %al
je 0xa0ca9
movl %r14d, %eax
andl $0x2008, %eax           # imm = 0x2008
cmpl $0x2000, %eax           # imm = 0x2000
jne 0xa0ca9
cmpb $0x0, 0x1ce4(%r12)
jne 0xa0ca9
movb 0x18c(%rbx), %cl
movl $0x1, %eax
shll %cl, %eax
orl %eax, 0x190(%rbx)
leaq -0xc0(%rbp), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x524a8
orb $0x2, 0x128(%rbx)
movups -0x50(%rbp), %xmm0
movups %xmm0, 0x13c(%rbx)
testb %al, %al
je 0xa0d23
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 0xa0d49
orl $0x10000, %eax          # imm = 0x10000
movl %eax, %r15d
jmp 0xa0d86
andl $0x8, %r14d
shrl $0x3, %r14d
movl %r13d, %eax
xorb $0x1, %al
orb %r14b, %al
jne 0xa0a06
movl %r15d, %edi
callq 0xa14ab
movb $0x1, %r13b
jmp 0xa0a06
movss -0x84(%rbp), %xmm2
addss 0x1980(%r12), %xmm2
addss %xmm2, %xmm3
addss %xmm3, %xmm0
leal 0x10000(%rax), %r15d
ucomiss %xmm1, %xmm0
jbe 0xa0d86
cmpq 0x1ae8(%r12), %rbx
cmovel %eax, %r15d
orl $0x10, %r15d
movb $0x1, %al
movl %eax, -0x3c(%rbp)
jmp 0xa0da0
testb $0x40, %r14b
jne 0xa0d92
orl $0x20, %r15d
jmp 0xa0d99
orl $0x120, %r15d           # imm = 0x120
movl $0x0, -0x3c(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
leaq -0x29(%rbp), %rcx
movl -0x30(%rbp), %esi
movl %r15d, %r8d
callq 0x90b6f
btl $0x8, %r14d
jb 0xa0de8
testb %al, %al
je 0xa0df1
movl -0x30(%rbp), %eax
cmpl %eax, 0x2080(%r12)
jne 0xa0e5b
btl $0x9, %r15d
jae 0xa1251
movl %r13d, %eax
xorb $0x1, %al
jmp 0xa0df3
movl -0x30(%rbp), %r15d
jmp 0xa0e9d
xorl %eax, %eax
movl -0x30(%rbp), %r15d
movl 0x1c98(%r12), %ecx
cmpl %r15d, %ecx
jne 0xa0e34
cmpb $0x1, 0x1d00(%r12)
jne 0xa0e39
cmpl $0x0, 0x1d10(%r12)
setne %cl
movl %r13d, %edx
xorb $0x1, %dl
orb %cl, %dl
jne 0xa0e39
callq 0x57daa
movl 0x1c98(%r12), %ecx
movb $0x1, %al
cmpl %r15d, %ecx
jne 0xa0e55
cmpb $0x1, 0x1d00(%r12)
jne 0xa0e55
cmpl $0x1, 0x1d10(%r12)
setne %cl
orb %r13b, %cl
je 0xa0e7a
testb %al, %al
jne 0xa0e7f
jmp 0xa0e9d
testb $-0x40, %r14b
movl -0x30(%rbp), %r15d
je 0xa0e73
cmpl %r15d, 0x1ca0(%r12)
jne 0xa120e
movb $0x1, %al
jmp 0xa1210
callq 0x57daa
xorb $0x1, %r13b
movq 0x1a8(%rbx), %rdi
movzbl %r13b, %edx
movl %r15d, %esi
callq 0x42b48
orb $0x10, 0x128(%rbx)
cmpl $0x0, -0x70(%rbp)
je 0xa0ea8
callq 0x51c22
movss 0x14134(%rip), %xmm0    # 0xb4fe4
xorl %edi, %edi
callq 0x43bca
movl %eax, %esi
testb $0x2, %r14b
jne 0xa0f98
testb $0x1, %r14b
sete %cl
movb -0x2a(%rbp), %al
movl %eax, %edx
xorb $0x1, %dl
testb %dl, %cl
jne 0xa0f29
movzbl %al, %ecx
orl $0x18, %ecx
testb %al, -0x29(%rbp)
movl $0x1a, %edi
cmovel %ecx, %edi
movss 0x140f5(%rip), %xmm0    # 0xb4fe4
movl %esi, -0x70(%rbp)
callq 0x43bca
leaq -0x50(%rbp), %r15
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
xorps %xmm2, %xmm2
movl %eax, %edi
xorl %esi, %esi
callq 0x44f69
movq %r15, %rdi
movl -0x30(%rbp), %r15d
movl %r15d, %esi
movl $0x2, %edx
callq 0x4521b
movl -0x70(%rbp), %esi
btl $0x9, %r14d
movaps -0xa0(%rbp), %xmm3
jb 0xa1061
btl $0x8, %r14d
jb 0xa1094
movq 0x2b8(%rbx), %rdi
movss -0x38(%rbp), %xmm2
subss %xmm3, %xmm2
movss 0x1980(%r12), %xmm1
mulss 0x14968(%rip), %xmm1    # 0xb58d0
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 0x14946(%rip), %xmm1    # 0xb58d4
callq 0x81dcb
jmp 0xa1094
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
movl $0x1a, %edi
cmovel %edx, %edi
testb %al, %al
cmovel %edx, %edi
movss 0x1401e(%rip), %xmm0    # 0xb4fe4
callq 0x43bca
leaq -0x50(%rbp), %r15
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movss 0x15a0(%r12), %xmm2
movl %eax, %edi
movl $0x1, %esi
callq 0x44f69
movq %r15, %rdi
movl -0x30(%rbp), %r15d
movl %r15d, %esi
movl $0x2, %edx
callq 0x4521b
btl $0x9, %r14d
jb 0xa10ca
btl $0x8, %r14d
movaps -0xa0(%rbp), %xmm2
movl -0x70(%rbp), %esi
jb 0xa1109
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 0x13f8d(%rip), %xmm1    # 0xb4fe4
callq 0x81dcb
jmp 0xa1117
movq 0x2b8(%rbx), %rdi
movss -0x38(%rbp), %xmm0
movss 0x13f8f(%rip), %xmm1    # 0xb5004
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 0x81f30
cmpb $0x1, 0x3138(%r12)
jne 0xa10b1
leaq 0x3217f(%rip), %rsi     # 0xd3225
leaq -0x38(%rbp), %rdi
xorl %edx, %edx
callq 0x4458c
movsd -0x38(%rbp), %xmm0
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
xorl %edx, %edx
callq 0x44476
jmp 0xa11eb
movaps -0xa0(%rbp), %xmm0
mulss 0x2fce3(%rip), %xmm0    # 0xd0dbc
addss -0x38(%rbp), %xmm0
movss 0x1980(%r12), %xmm1
mulss 0x13f14(%rip), %xmm1    # 0xb5004
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 0x81f30
jmp 0xa1117
movss -0x38(%rbp), %xmm0
subss %xmm2, %xmm0
movss %xmm0, -0x38(%rbp)
btl $0x14, %r14d
jae 0xa1140
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 0xa11c0
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 0x4458c
xorl %eax, %eax
leaq -0xc8(%rbp), %r9
movq %rax, (%r9)
movq %rax, (%rsp)
leaq -0x90(%rbp), %r8
movq %r15, %rdi
movq %rbx, %rsi
movq -0x80(%rbp), %rdx
movq -0x78(%rbp), %rcx
callq 0x44ac2
leaq -0x58(%rbp), %rsi
movq %r15, %rdi
movl -0x30(%rbp), %r15d
movq %r12, %rdx
callq 0x4458c
jmp 0xa11eb
xorl %eax, %eax
leaq -0xc8(%rbp), %r9
movq %rax, (%r9)
movq %rax, (%rsp)
leaq -0x38(%rbp), %rdi
leaq -0x90(%rbp), %r8
movq %rbx, %rsi
movq -0x80(%rbp), %rdx
movq -0x78(%rbp), %rcx
callq 0x44ac2
andl $0x8, %r14d
shrl $0x3, %r14d
movl %r13d, %eax
xorb $0x1, %al
orb %r14b, %al
jne 0xa0a06
movl %r15d, %edi
callq 0xa14ab
jmp 0xa0a06
xorl %eax, %eax
testb %r14b, %r14b
jns 0xa122e
xorl %ecx, %ecx
cmpb $0x0, -0x3c(%rbp)
je 0xa1229
movzbl 0x1ce7(%r12), %ecx
xorl $0x1, %ecx
movzbl %al, %eax
orl %ecx, %eax
testb $0x40, %r14b
je 0xa0df7
cmpb $0x0, 0x425(%r12)
movzbl %al, %ecx
movl $0x1, %eax
cmovel %ecx, %eax
jmp 0xa0df7
leaq 0x3151d(%rip), %rdi     # 0xd2775
leaq 0x2fdb9(%rip), %rsi     # 0xd1018
leaq 0x31545(%rip), %rcx     # 0xd27ab
movl $0x1678, %edx           # imm = 0x1678
callq 0xc140