// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::SeparatorEx(int)
void ImGui::SeparatorEx(ImGuiSeparatorFlags flags)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return;

    ImGuiContext& g = *GImGui;
    IM_ASSERT(ImIsPowerOfTwo(flags & (ImGuiSeparatorFlags_Horizontal | ImGuiSeparatorFlags_Vertical)));   // Check that only 1 option is selected

    float thickness_draw = 1.0f;
    float thickness_layout = 0.0f;
    if (flags & ImGuiSeparatorFlags_Vertical)
    {
        // Vertical separator, for menu bars (use current line height). Not exposed because it is misleading and it doesn't have an effect on regular layout.
        float y1 = window->DC.CursorPos.y;
        float y2 = window->DC.CursorPos.y + window->DC.CurrLineSize.y;
        const ImRect bb(ImVec2(window->DC.CursorPos.x, y1), ImVec2(window->DC.CursorPos.x + thickness_draw, y2));
        ItemSize(ImVec2(thickness_layout, 0.0f));
        if (!ItemAdd(bb, 0))
            return;

        // Draw
        window->DrawList->AddLine(ImVec2(bb.Min.x, bb.Min.y), ImVec2(bb.Min.x, bb.Max.y), GetColorU32(ImGuiCol_Separator));
        if (g.LogEnabled)
            LogText(" |");
    }
    else if (flags & ImGuiSeparatorFlags_Horizontal)
    {
        // Horizontal Separator
        float x1 = window->Pos.x;
        float x2 = window->Pos.x + window->Size.x;

        // FIXME-WORKRECT: old hack (#205) until we decide of consistent behavior with WorkRect/Indent and Separator
        if (g.GroupStack.Size > 0 && g.GroupStack.back().WindowID == window->ID)
            x1 += window->DC.Indent.x;

        ImGuiOldColumns* columns = (flags & ImGuiSeparatorFlags_SpanAllColumns) ? window->DC.CurrentColumns : NULL;
        if (columns)
            PushColumnsBackground();

        // We don't provide our width to the layout so that it doesn't get feed back into AutoFit
        const ImRect bb(ImVec2(x1, window->DC.CursorPos.y), ImVec2(x2, window->DC.CursorPos.y + thickness_draw));
        ItemSize(ImVec2(0.0f, thickness_layout));
        const bool item_visible = ItemAdd(bb, 0);
        if (item_visible)
        {
            // Draw
            window->DrawList->AddLine(bb.Min, ImVec2(bb.Max.x, bb.Min.y), GetColorU32(ImGuiCol_Separator));
            if (g.LogEnabled)
                LogRenderedText(&bb.Min, "--------------------------------");
        }
        if (columns)
        {
            PopColumnsBackground();
            columns->LineMinY = window->DC.CursorPos.y;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x686fb(%rip), %rax     # 0xfbcd0
movq (%rax), %r12
movq 0x1ae0(%r12), %r13
movb $0x1, 0x90(%r13)
cmpb $0x0, 0x93(%r13)
je 0x93601
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %edi, %eax
andl $0x3, %eax
leal -0x1(%rax), %ecx
xorl %ecx, %eax
cmpl %ecx, %eax
jbe 0x93871
testb $0x2, %dil
jne 0x936a7
testb $0x1, %dil
je 0x935f2
movss 0x10(%r13), %xmm2
movslq 0x1c60(%r12), %rax
movaps %xmm2, %xmm3
testq %rax, %rax
jle 0x93663
movq 0x1c68(%r12), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movl -0x30(%rcx,%rax), %eax
movaps %xmm2, %xmm3
cmpl 0x8(%r13), %eax
jne 0x93663
movss 0x118(%r13), %xmm3
addss %xmm2, %xmm3
addss 0x18(%r13), %xmm2
movb $0x1, %r14b
testb $0x4, %dil
je 0x93795
movq 0x1b0(%r13), %r15
testq %r15, %r15
je 0x93795
movss %xmm2, -0x38(%rbp)
movss %xmm3, -0x34(%rbp)
callq 0x8e950
movss -0x34(%rbp), %xmm3
movss -0x38(%rbp), %xmm2
xorl %r14d, %r14d
jmp 0x93798
movss 0xdc(%r13), %xmm0
movss 0x104(%r13), %xmm1
addss %xmm0, %xmm1
movss 0xd8(%r13), %xmm2
movss 0x21916(%rip), %xmm3    # 0xb4fe4
addss %xmm2, %xmm3
leaq -0x48(%rbp), %rbx
movss %xmm2, (%rbx)
movss %xmm0, 0x4(%rbx)
movss %xmm3, 0x8(%rbx)
movss %xmm1, 0xc(%rbx)
leaq -0x30(%rbp), %rdi
movq $0x0, (%rdi)
movss 0x218d4(%rip), %xmm0    # 0xb4fd0
callq 0x52315
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x524a8
testb %al, %al
je 0x935f2
movq 0x2b8(%r13), %rbx
movss -0x48(%rbp), %xmm0
movss -0x44(%rbp), %xmm1
leaq -0x30(%rbp), %r14
movss %xmm0, (%r14)
movss %xmm1, 0x4(%r14)
movss -0x3c(%rbp), %xmm1
leaq -0x50(%rbp), %r15
movss %xmm0, (%r15)
movss %xmm1, 0x4(%r15)
movss 0x21893(%rip), %xmm0    # 0xb4fe4
movl $0x1b, %edi
callq 0x43bca
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %eax, %ecx
movss 0x21876(%rip), %xmm0    # 0xb4fe4
callq 0x78368
cmpb $0x1, 0x3138(%r12)
jne 0x935f2
leaq 0x3db94(%rip), %rdi     # 0xd131d
xorl %eax, %eax
callq 0x58cc1
jmp 0x935f2
xorl %r15d, %r15d
movss 0xdc(%r13), %xmm0
movss 0x2183b(%rip), %xmm1    # 0xb4fe4
addss %xmm0, %xmm1
leaq -0x48(%rbp), %rbx
movss %xmm3, (%rbx)
movss %xmm0, 0x4(%rbx)
movss %xmm2, 0x8(%rbx)
movss %xmm1, 0xc(%rbx)
leaq -0x30(%rbp), %rdi
movq $0x0, (%rdi)
movss 0x217f9(%rip), %xmm0    # 0xb4fd0
callq 0x52315
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x524a8
testb %al, %al
je 0x9384f
movq 0x2b8(%r13), %rbx
leaq -0x48(%rbp), %rax
movq 0x4(%rax), %rax
rolq $0x20, %rax
leaq -0x30(%rbp), %rcx
movq %rax, (%rcx)
movss 0x217d6(%rip), %xmm0    # 0xb4fe4
movl $0x1b, %edi
callq 0x43bca
movq %rbx, %rdi
leaq -0x48(%rbp), %rsi
leaq -0x30(%rbp), %rdx
movl %eax, %ecx
movss 0x217b7(%rip), %xmm0    # 0xb4fe4
callq 0x78368
cmpb $0x1, 0x3138(%r12)
jne 0x9384f
leaq 0x3dadc(%rip), %rsi     # 0xd1320
leaq -0x48(%rbp), %rdi
xorl %edx, %edx
callq 0x4458c
testb %r14b, %r14b
jne 0x935f2
callq 0x8e9c7
movss 0xdc(%r13), %xmm0
movss %xmm0, 0x1c(%r15)
jmp 0x935f2
leaq 0x3da20(%rip), %rdi     # 0xd1298
leaq 0x3d799(%rip), %rsi     # 0xd1018
leaq 0x3da6a(%rip), %rcx     # 0xd12f0
movl $0x542, %edx            # imm = 0x542
callq 0xc140