// File: /workspace/github_cpp_makefile_star2_O2/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 0x674c3(%rip), %rax     # 0xe3ce0
movq (%rax), %r12
movq 0x1ae0(%r12), %r13
movb $0x1, 0x90(%r13)
cmpb $0x0, 0x93(%r13)
je 0x7c849
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %edi, %ebx
movl %edi, %eax
andl $0x3, %eax
leal -0x1(%rax), %ecx
xorl %ecx, %eax
cmpl %ecx, %eax
jbe 0x7cab8
testb $0x2, %bl
jne 0x7c8c1
testb $0x1, %bl
je 0x7c83a
movss 0x10(%r13), %xmm3
movss 0x18(%r13), %xmm2
addss %xmm3, %xmm2
cmpl $0x0, 0x1c60(%r12)
movss %xmm2, -0x30(%rbp)
jle 0x7c9b4
movss %xmm3, -0x2c(%rbp)
leaq 0x1c60(%r12), %rdi
callq 0x4b8f2
movl (%rax), %eax
cmpl 0x8(%r13), %eax
jne 0x7c9aa
movss -0x2c(%rbp), %xmm3
addss 0x118(%r13), %xmm3
movss -0x30(%rbp), %xmm2
jmp 0x7c9b4
movss 0xdc(%r13), %xmm0
movss 0x104(%r13), %xmm1
addss %xmm0, %xmm1
movss 0xd8(%r13), %xmm2
movss 0x1f710(%rip), %xmm3    # 0x9bff8
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
andq $0x0, (%rdi)
movss 0x1f6dd(%rip), %xmm0    # 0x9bff0
callq 0x40d3b
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x40ea5
testb %al, %al
je 0x7c83a
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)
pushq $0x1b
popq %rdi
movss 0x1f68d(%rip), %xmm0    # 0x9bff8
callq 0x35d33
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %eax, %ecx
movss 0x1f675(%rip), %xmm0    # 0x9bff8
callq 0x63ec2
cmpb $0x1, 0x3138(%r12)
jne 0x7c83a
leaq 0x3bcef(%rip), %rdi     # 0xb868d
xorl %eax, %eax
callq 0x462f3
jmp 0x7c83a
movss -0x30(%rbp), %xmm2
movss -0x2c(%rbp), %xmm3
movb $0x1, %r14b
testb $0x4, %bl
je 0x7c9e1
movq 0x1b0(%r13), %r15
testq %r15, %r15
je 0x7c9e1
movss %xmm3, -0x2c(%rbp)
callq 0x7793b
movss -0x2c(%rbp), %xmm3
movss -0x30(%rbp), %xmm2
xorl %r14d, %r14d
jmp 0x7c9e4
xorl %r15d, %r15d
movss 0xdc(%r13), %xmm0
movss 0x1f603(%rip), %xmm1    # 0x9bff8
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
andq $0x0, (%rdi)
movss 0x1f5d0(%rip), %xmm0    # 0x9bff0
callq 0x40d3b
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x40ea5
testb %al, %al
je 0x7ca96
movq 0x2b8(%r13), %rbx
leaq -0x48(%rbp), %rax
movq 0x4(%rax), %rax
rolq $0x20, %rax
leaq -0x38(%rbp), %rcx
movq %rax, (%rcx)
pushq $0x1b
popq %rdi
movss 0x1f59e(%rip), %xmm0    # 0x9bff8
callq 0x35d33
movq %rbx, %rdi
leaq -0x48(%rbp), %rsi
leaq -0x38(%rbp), %rdx
movl %eax, %ecx
movss 0x1f584(%rip), %xmm0    # 0x9bff8
callq 0x63ec2
cmpb $0x1, 0x3138(%r12)
jne 0x7ca96
leaq 0x3bc05(%rip), %rsi     # 0xb8690
leaq -0x48(%rbp), %rdi
xorl %edx, %edx
callq 0x36222
testb %r14b, %r14b
jne 0x7c83a
callq 0x77997
movss 0xdc(%r13), %xmm0
movss %xmm0, 0x1c(%r15)
jmp 0x7c83a
leaq 0x3bb49(%rip), %rdi     # 0xb8608
leaq 0x3b8c2(%rip), %rsi     # 0xb8388
leaq 0x3bb93(%rip), %rcx     # 0xb8660
movl $0x542, %edx            # imm = 0x542
callq 0xc140