// File: /workspace/github_cpp_makefile_star2_O1/donfreiday[P]gb/./imgui/imgui.cpp
// Function: ImGui::Columns(int, char const*, bool)
void ImGui::Columns(int columns_count, const char* id, bool border)
{
    ImGuiState& g = *GImGui;
    ImGuiWindow* window = GetCurrentWindow();

    if (window->DC.ColumnsCount != 1)
    {
        if (window->DC.ColumnsCurrent != 0)
            ItemSize(ImVec2(0,0));   // Advance to column 0
        ImGui::PopItemWidth();
        PopClipRect();
        window->DrawList->ChannelsMerge();

        window->DC.ColumnsCellMaxY = ImMax(window->DC.ColumnsCellMaxY, window->DC.CursorPos.y);
        window->DC.CursorPos.y = window->DC.ColumnsCellMaxY;
    }

    // Draw columns borders and handle resize at the time of "closing" a columns set
    if (window->DC.ColumnsCount != columns_count && window->DC.ColumnsCount != 1 && window->DC.ColumnsShowBorders && !window->SkipItems)
    {
        const float y1 = window->DC.ColumnsStartPos.y;
        const float y2 = window->DC.CursorPos.y;
        for (int i = 1; i < window->DC.ColumnsCount; i++)
        {
            float x = window->Pos.x + GetColumnOffset(i);
            const ImGuiID column_id = window->DC.ColumnsSetID + ImGuiID(i);
            const ImRect column_rect(ImVec2(x-4,y1),ImVec2(x+4,y2));
            if (IsClippedEx(column_rect, &column_id, false))
                continue;

            bool hovered, held;
            ButtonBehavior(column_rect, column_id, &hovered, &held, true);
            if (hovered || held)
                g.MouseCursor = ImGuiMouseCursor_ResizeEW;

            // Draw before resize so our items positioning are in sync with the line being drawn
            const ImU32 col = window->Color(held ? ImGuiCol_ColumnActive : hovered ? ImGuiCol_ColumnHovered : ImGuiCol_Column);
            const float xi = (float)(int)x;
            window->DrawList->AddLine(ImVec2(xi, y1+1.0f), ImVec2(xi, y2), col);

            if (held)
            {
                if (g.ActiveIdIsJustActivated)
                    g.ActiveClickDeltaToCenter.x = x - g.IO.MousePos.x;

                x = GetDraggedColumnOffset(i);
                SetColumnOffset(i, x);
            }
        }
    }

    // Set state for first column
    ImGui::PushID(0x11223344); // Differentiate column ID with an arbitrary/random prefix for cases where users name their columns set the same as another non-scope widget
    window->DC.ColumnsSetID = window->GetID(id ? id : "");
    ImGui::PopID();
    window->DC.ColumnsCurrent = 0;
    window->DC.ColumnsCount = columns_count;
    window->DC.ColumnsShowBorders = border;
    window->DC.ColumnsStartPos = window->DC.CursorPos;
    window->DC.ColumnsCellMinY = window->DC.ColumnsCellMaxY = window->DC.CursorPos.y;
    window->DC.ColumnsOffsetX = 0.0f;
    window->DC.CursorPos.x = (float)(int)(window->Pos.x + window->DC.ColumnsStartX + window->DC.ColumnsOffsetX);

    if (window->DC.ColumnsCount != 1)
    {
        // Cache column offsets
        window->DC.ColumnsOffsetsT.resize(columns_count + 1);
        for (int column_index = 0; column_index < columns_count + 1; column_index++)
        {
            const ImGuiID column_id = window->DC.ColumnsSetID + ImGuiID(column_index);
            KeepAliveID(column_id);
            const float default_t = column_index / (float)window->DC.ColumnsCount;
            const float t = window->DC.StateStorage->GetFloat(column_id, default_t);      // Cheaply store our floating point value inside the integer (could store an union into the map?)
            window->DC.ColumnsOffsetsT[column_index] = t;
        }
        window->DrawList->ChannelsSplit(window->DC.ColumnsCount);
        PushColumnClipRect();
        ImGui::PushItemWidth(ImGui::GetColumnWidth() * 0.65f);
    }
    else
    {
        window->DC.ColumnsOffsetsT.resize(2);
        window->DC.ColumnsOffsetsT[0] = 0.0f;
        window->DC.ColumnsOffsetsT[1] = 1.0f;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %edx, -0x48(%rbp)
movq %rsi, -0x90(%rbp)
movl %edi, %r14d
movq 0x40f2e(%rip), %r12     # 0x55490
movq 0x1758(%r12), %rbx
movb $0x1, 0x72(%rbx)
cmpl $0x1, 0x1a0(%rbx)
je 0x145da
cmpl $0x0, 0x19c(%rbx)
je 0x14593
leaq -0x70(%rbp), %rdi
movq $0x0, (%rdi)
xorps %xmm0, %xmm0
callq 0xaab7
callq 0x9e68
callq 0x14adb
movq 0x270(%rbx), %rdi
callq 0x2db22
movss 0xac(%rbx), %xmm0
movss 0x1b0(%rbx), %xmm1
movaps %xmm0, %xmm2
cmpless %xmm1, %xmm2
andps %xmm2, %xmm1
andnps %xmm0, %xmm2
orps %xmm1, %xmm2
movss %xmm2, 0x1b0(%rbx)
movss %xmm2, 0xac(%rbx)
movl 0x1a0(%rbx), %eax
cmpl %r14d, %eax
sete %cl
cmpl $0x1, %eax
sete %al
orb %cl, %al
jne 0x147d1
cmpb $0x1, 0x1b4(%rbx)
jne 0x147d1
cmpb $0x0, 0x74(%rbx)
jne 0x147d1
cmpl $0x2, 0x1a0(%rbx)
jl 0x147d1
movss 0x1a8(%rbx), %xmm0
movss 0xac(%rbx), %xmm1
movss %xmm1, -0x30(%rbp)
movss 0x28d4b(%rip), %xmm1    # 0x3d380
movss %xmm0, -0x50(%rbp)
addss %xmm0, %xmm1
movss %xmm1, -0x54(%rbp)
movl $0x1, %r13d
movss 0x18(%rbx), %xmm0
movss %xmm0, -0x40(%rbp)
movl %r13d, %edi
callq 0x158dd
movaps %xmm0, %xmm1
addss -0x40(%rbp), %xmm1
movl 0x1b8(%rbx), %r15d
addl %r13d, %r15d
movl %r15d, -0x58(%rbp)
movaps %xmm1, %xmm0
addss 0x28d8c(%rip), %xmm0    # 0x3d408
movaps %xmm1, -0x40(%rbp)
addss 0x28d1c(%rip), %xmm1    # 0x3d3a4
movss %xmm0, -0x88(%rbp)
movss -0x50(%rbp), %xmm0
movss %xmm0, -0x84(%rbp)
movss %xmm1, -0x80(%rbp)
movss -0x30(%rbp), %xmm0
movss %xmm0, -0x7c(%rbp)
leaq -0x88(%rbp), %rdi
leaq -0x58(%rbp), %rsi
xorl %edx, %edx
callq 0xad15
testb %al, %al
jne 0x147c1
leaq -0x88(%rbp), %rdi
movl %r15d, %esi
leaq -0x2a(%rbp), %rdx
leaq -0x29(%rbp), %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x13d8d
movb -0x2a(%rbp), %al
testb %al, %al
jne 0x146f3
cmpb $0x1, -0x29(%rbp)
jne 0x146ff
movl $0x4, 0x1940(%r12)
movzbl %al, %eax
addl $0x1b, %eax
cmpb $0x0, -0x29(%rbp)
movl $0x1d, %ecx
cmovnel %ecx, %eax
movq 0x40d78(%rip), %rcx     # 0x55490
shll $0x4, %eax
movups 0x1460(%rcx,%rax), %xmm0
movaps %xmm0, -0x70(%rbp)
movss 0x13e8(%rcx), %xmm0
mulss -0x64(%rbp), %xmm0
movss %xmm0, -0x64(%rbp)
leaq -0x70(%rbp), %r15
movq %r15, %rdi
callq 0x8cce
cvttps2dq -0x40(%rbp), %xmm0
cvtdq2ps %xmm0, %xmm0
movq 0x270(%rbx), %rdi
movss %xmm0, -0x70(%rbp)
movss -0x54(%rbp), %xmm1
movss %xmm1, -0x6c(%rbp)
movss %xmm0, -0x78(%rbp)
movss -0x30(%rbp), %xmm0
movss %xmm0, -0x74(%rbp)
movq %r15, %rsi
leaq -0x78(%rbp), %rdx
movl %eax, %ecx
movss 0x28bfd(%rip), %xmm0    # 0x3d380
callq 0x2fdee
cmpb $0x1, -0x29(%rbp)
jne 0x147c1
cmpb $0x1, 0x1799(%r12)
jne 0x147b1
movaps -0x40(%rbp), %xmm0
subss 0xf0(%r12), %xmm0
movss %xmm0, 0x27b8(%r12)
movl %r13d, %edi
callq 0x22928
movl %r13d, %edi
callq 0x22a0d
incl %r13d
cmpl 0x1a0(%rbx), %r13d
jl 0x14649
movl $0x11223344, %edi       # imm = 0x11223344
callq 0x18358
movq -0x90(%rbp), %rax
testq %rax, %rax
leaq 0x2cccd(%rip), %rsi     # 0x414b9
cmovneq %rax, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xa872
movl %eax, 0x1b8(%rbx)
callq 0x16fc0
movl %r14d, 0x1a0(%rbx)
movl -0x48(%rbp), %eax
movb %al, 0x1b4(%rbx)
movq 0xa8(%rbx), %rax
movq %rax, 0x1a4(%rbx)
movss 0xac(%rbx), %xmm0
movss %xmm0, 0x1b0(%rbx)
movss %xmm0, 0x1ac(%rbx)
movq $0x0, 0x198(%rbx)
movss 0x18(%rbx), %xmm0
addss 0x194(%rbx), %xmm0
xorps %xmm1, %xmm1
addss %xmm0, %xmm1
cvttps2dq %xmm1, %xmm0
cvtdq2ps %xmm0, %xmm0
movss %xmm0, 0xa8(%rbx)
cmpl $0x1, %r14d
jne 0x1488f
movl 0x1c4(%rbx), %eax
cmpl $0x1, %eax
jg 0x14945
testl %eax, %eax
je 0x148c3
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x148c8
leal 0x1(%r14), %ecx
movl 0x1c4(%rbx), %eax
cmpl %r14d, %eax
movq %rcx, -0x40(%rbp)
jg 0x149e9
testl %eax, %eax
je 0x14968
movl %eax, %r13d
shrl $0x1f, %r13d
addl %eax, %r13d
sarl %r13d
addl %eax, %r13d
jmp 0x1496e
movl $0x8, %ecx
cmpl $0x3, %ecx
movl $0x2, %r15d
cmovgel %ecx, %r15d
cmpl %r15d, %eax
jge 0x14945
movl %r15d, %edi
shlq $0x2, %rdi
movq 0x40ba8(%rip), %rax     # 0x55490
incl 0x334(%rax)
callq *0xd0(%rax)
movq %rax, %r14
movq 0x1c8(%rbx), %rsi
movslq 0x1c0(%rbx), %rdx
shlq $0x2, %rdx
movq %rax, %rdi
callq 0x7080
movq 0x1c8(%rbx), %rdi
testq %rdi, %rdi
je 0x1492a
movq 0x40b6c(%rip), %rax     # 0x55490
decl 0x334(%rax)
movq 0x40b5f(%rip), %rax     # 0x55490
callq *0xd8(%rax)
movq %r14, 0x1c8(%rbx)
movl %r15d, 0x1c4(%rbx)
movl $0x2, 0x1c0(%rbx)
movq 0x1c8(%rbx), %rax
movabsq $0x3f80000000000000, %rcx # imm = 0x3F80000000000000
movq %rcx, (%rax)
jmp 0x14acc
movl $0x8, %r13d
cmpl %ecx, %r13d
cmovlel %ecx, %r13d
cmpl %r13d, %eax
jge 0x149e9
movslq %r13d, %rdi
shlq $0x2, %rdi
movq 0x40b08(%rip), %rax     # 0x55490
incl 0x334(%rax)
callq *0xd0(%rax)
movq %rax, %r15
movq 0x1c8(%rbx), %rsi
movslq 0x1c0(%rbx), %rdx
shlq $0x2, %rdx
movq %rax, %rdi
callq 0x7080
movq 0x1c8(%rbx), %rdi
testq %rdi, %rdi
je 0x149ca
movq 0x40acc(%rip), %rax     # 0x55490
decl 0x334(%rax)
movq 0x40abf(%rip), %rax     # 0x55490
callq *0xd8(%rax)
movq %r15, 0x1c8(%rbx)
movl %r13d, 0x1c4(%rbx)
movq -0x40(%rbp), %rcx
movq %rbx, -0x48(%rbp)
movl %ecx, 0x1c0(%rbx)
testl %r14d, %r14d
js 0x14a70
movq -0x48(%rbp), %rax
movl 0x1b8(%rax), %r15d
movq 0x40a86(%rip), %rcx     # 0x55490
movq %rcx, -0x50(%rbp)
movl 0x1790(%rcx), %ebx
xorps %xmm0, %xmm0
cvtsi2ssl 0x1a0(%rax), %xmm0
movss %xmm0, -0x30(%rbp)
movq 0x110(%rax), %r14
movq 0x1c8(%rax), %r12
subl %r15d, %ebx
xorl %r13d, %r13d
cmpl %r13d, %ebx
jne 0x14a48
movq -0x50(%rbp), %rax
movb $0x1, 0x1798(%rax)
leaq (%r15,%r13), %rsi
xorps %xmm0, %xmm0
cvtsi2ss %r13d, %xmm0
divss -0x30(%rbp), %xmm0
movq %r14, %rdi
callq 0x911c
movss %xmm0, (%r12,%r13,4)
incq %r13
cmpq %r13, -0x40(%rbp)
jne 0x14a38
movq -0x48(%rbp), %rax
movq 0x270(%rax), %rdi
movl 0x1a0(%rax), %esi
callq 0x2d6da
callq 0x208d7
movq 0x409fe(%rip), %rax     # 0x55490
movq 0x1758(%rax), %rax
movl 0x19c(%rax), %ebx
leal 0x1(%rbx), %edi
callq 0x158dd
movss %xmm0, -0x40(%rbp)
movl %ebx, %edi
callq 0x158dd
movss -0x40(%rbp), %xmm1
subss %xmm0, %xmm1
mulss 0x28930(%rip), %xmm1    # 0x3d3f4
movaps %xmm1, %xmm0
callq 0x9d0e
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq