// File: /workspace/github_cpp_makefile_star2_O1/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 0x68a52(%rip), %rax     # 0xfdcd0
movq (%rax), %r12
movq 0x1ae0(%r12), %r13
movb $0x1, 0x90(%r13)
cmpb $0x0, 0x93(%r13)
je 0x952aa
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 0x9550b
testb $0x2, %dil
jne 0x9531a
testb $0x1, %dil
je 0x9529b
movss 0x10(%r13), %xmm2
movslq 0x1c60(%r12), %rax
movaps %xmm2, %xmm3
testq %rax, %rax
jle 0x95308
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 0x95308
movss 0x118(%r13), %xmm3
addss %xmm2, %xmm3
testb $0x4, %dil
jne 0x95408
xorl %r14d, %r14d
jmp 0x9540f
movss 0xdc(%r13), %xmm0
movss 0x104(%r13), %xmm1
addss %xmm0, %xmm1
movss 0xd8(%r13), %xmm2
movss 0x21ca3(%rip), %xmm3    # 0xb6fe4
addss %xmm2, %xmm3
leaq -0x48(%rbp), %rbx
movss %xmm2, (%rbx)
movss %xmm0, 0x4(%rbx)
movss %xmm3, 0x8(%rbx)
movss %xmm1, 0xc(%rbx)
leaq -0x38(%rbp), %rdi
movq $0x0, (%rdi)
movss 0x21c61(%rip), %xmm0    # 0xb6fd0
callq 0x532de
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5346f
testb %al, %al
je 0x9529b
movq 0x2b8(%r13), %rbx
movss -0x48(%rbp), %xmm0
movss -0x44(%rbp), %xmm1
leaq -0x38(%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 0x21c20(%rip), %xmm0    # 0xb6fe4
movl $0x1b, %edi
callq 0x445bd
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %eax, %ecx
movss 0x21c03(%rip), %xmm0    # 0xb6fe4
callq 0x79abc
cmpb $0x1, 0x3138(%r12)
jne 0x9529b
leaq 0x3e051(%rip), %rdi     # 0xd344d
xorl %eax, %eax
callq 0x59e5b
jmp 0x9529b
movq 0x1b0(%r13), %r14
addss 0x18(%r13), %xmm2
testq %r14, %r14
je 0x95433
movss %xmm2, -0x30(%rbp)
movss %xmm3, -0x2c(%rbp)
callq 0x9064e
movss -0x2c(%rbp), %xmm3
movss -0x30(%rbp), %xmm2
movss 0xdc(%r13), %xmm0
movss 0x21ba0(%rip), %xmm1    # 0xb6fe4
addss %xmm0, %xmm1
leaq -0x48(%rbp), %rbx
movss %xmm3, (%rbx)
movss %xmm0, 0x4(%rbx)
movss %xmm2, 0x8(%rbx)
movss %xmm1, 0xc(%rbx)
leaq -0x38(%rbp), %rdi
movq $0x0, (%rdi)
movss 0x21b5e(%rip), %xmm0    # 0xb6fd0
callq 0x532de
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5346f
testb %al, %al
je 0x954e9
movq 0x2b8(%r13), %rbx
leaq -0x48(%rbp), %rax
movq 0x4(%rax), %rax
rolq $0x20, %rax
leaq -0x38(%rbp), %r15
movq %rax, (%r15)
movss 0x21b3b(%rip), %xmm0    # 0xb6fe4
movl $0x1b, %edi
callq 0x445bd
movq %rbx, %rdi
leaq -0x48(%rbp), %rsi
movq %r15, %rdx
movl %eax, %ecx
movss 0x21b1d(%rip), %xmm0    # 0xb6fe4
callq 0x79abc
cmpb $0x1, 0x3138(%r12)
jne 0x954e9
leaq 0x3df72(%rip), %rsi     # 0xd3450
leaq -0x48(%rbp), %rdi
xorl %edx, %edx
callq 0x44fd9
testq %r14, %r14
je 0x9529b
callq 0x906ca
movss 0xdc(%r13), %xmm0
movss %xmm0, 0x1c(%r14)
jmp 0x9529b
leaq 0x3deb6(%rip), %rdi     # 0xd33c8
leaq 0x3dc2f(%rip), %rsi     # 0xd3148
leaq 0x3df00(%rip), %rcx     # 0xd3420
movl $0x542, %edx            # imm = 0x542
callq 0xc140