// File: /workspace/github_cpp_makefile_star2_O2/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, %r12d
movq %rsi, %r13
movl %edi, %ebx
movq 0x3f5ad(%rip), %rax     # 0x50480
movq %rax, -0x40(%rbp)
movq 0x1758(%rax), %r14
movb $0x1, 0x72(%r14)
cmpl $0x1, 0x1a0(%r14)
je 0x10f81
cmpl $0x0, 0x19c(%r14)
je 0x10f0b
leaq -0x70(%rbp), %rdi
andq $0x0, (%rdi)
xorps %xmm0, %xmm0
callq 0x99d9
callq 0x9272
callq 0x112a5
movq 0x270(%r14), %rdi
callq 0x2803a
movss 0x1b0(%r14), %xmm0
movss 0xac(%r14), %xmm1
movaps %xmm1, %xmm2
cmpless %xmm0, %xmm2
andps %xmm2, %xmm0
andnps %xmm1, %xmm2
orps %xmm0, %xmm2
movss %xmm2, 0x1b0(%r14)
movss %xmm2, 0xac(%r14)
movl 0x1a0(%r14), %eax
cmpl %ebx, %eax
sete %cl
cmpl $0x1, %eax
sete %dl
orb %cl, %dl
jne 0x10f81
cmpb $0x1, 0x1b4(%r14)
jne 0x10f81
cmpb $0x0, 0x74(%r14)
je 0x110f0
movl $0x11223344, %edi       # imm = 0x11223344
callq 0x13d85
testq %r13, %r13
leaq 0x29694(%rip), %rsi     # 0x3a629
cmovneq %r13, %rsi
xorl %r15d, %r15d
movq %r14, %rdi
xorl %edx, %edx
callq 0x9858
movl %eax, 0x1b8(%r14)
callq 0x12ea2
movl %ebx, 0x1a0(%r14)
movb %r12b, 0x1b4(%r14)
movq 0xa8(%r14), %rax
movq %rax, 0x1a4(%r14)
shrq $0x20, %rax
movl %eax, 0x1b0(%r14)
movl %eax, 0x1ac(%r14)
andq $0x0, 0x198(%r14)
movss 0x18(%r14), %xmm0
addss 0x194(%r14), %xmm0
xorps %xmm1, %xmm1
addss %xmm0, %xmm1
cvttps2dq %xmm1, %xmm0
cvtdq2ps %xmm0, %xmm0
movss %xmm0, 0xa8(%r14)
leaq 0x1c0(%r14), %r12
cmpl $0x1, %ebx
jne 0x11048
pushq $0x2
popq %rsi
movq %r12, %rdi
callq 0x1eefe
movq %r12, %rdi
xorl %esi, %esi
callq 0x1f61c
andl $0x0, (%rax)
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x1f61c
movl $0x3f800000, (%rax)     # imm = 0x3F800000
jmp 0x110e1
leal 0x1(%rbx), %esi
movq %r12, %rdi
callq 0x1eefe
cmpl %ebx, %r15d
jg 0x110b4
movl 0x1b8(%r14), %esi
addl %r15d, %esi
movq 0x3f417(%rip), %rax     # 0x50480
cmpl 0x1790(%rax), %esi
jne 0x11078
movb $0x1, 0x1798(%rax)
cvtsi2ss %r15d, %xmm0
cvtsi2ssl 0x1a0(%r14), %xmm1
divss %xmm1, %xmm0
movq 0x110(%r14), %rdi
callq 0x8da2
movss %xmm0, -0x60(%rbp)
movq %r12, %rdi
movl %r15d, %esi
callq 0x1f61c
movss -0x60(%rbp), %xmm0
movss %xmm0, (%rax)
incl %r15d
jmp 0x11053
movq 0x270(%r14), %rdi
movl 0x1a0(%r14), %esi
callq 0x27eca
callq 0x1aef4
pushq $-0x1
popq %rdi
callq 0x1c8eb
mulss 0x2532c(%rip), %xmm0    # 0x36408
callq 0x91e1
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movss 0xac(%r14), %xmm0
movss %xmm0, -0x30(%rbp)
movss 0x1a8(%r14), %xmm0
movss 0x25281(%rip), %xmm1    # 0x36390
movss %xmm0, -0x48(%rbp)
addss %xmm0, %xmm1
movss %xmm1, -0x44(%rbp)
pushq $0x1
popq %r15
movq %r13, -0x88(%rbp)
cmpl %eax, %r15d
jge 0x10f81
movss 0x18(%r14), %xmm0
movss %xmm0, -0x60(%rbp)
movl %r15d, %edi
callq 0x11b7f
movaps %xmm0, %xmm1
addss -0x60(%rbp), %xmm1
movl 0x1b8(%r14), %eax
addl %r15d, %eax
movl %eax, -0x34(%rbp)
movaps %xmm1, %xmm0
addss 0x252b4(%rip), %xmm0    # 0x36418
movaps %xmm1, -0x60(%rbp)
addss 0x25244(%rip), %xmm1    # 0x363b4
movss %xmm0, -0x70(%rbp)
movss -0x48(%rbp), %xmm0
movss %xmm0, -0x6c(%rbp)
movss %xmm1, -0x68(%rbp)
movss -0x30(%rbp), %xmm0
movss %xmm0, -0x64(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x34(%rbp), %rsi
xorl %edx, %edx
callq 0x9c0b
testb %al, %al
jne 0x11296
movl %r12d, %r13d
movl -0x34(%rbp), %esi
xorl %r12d, %r12d
leaq -0x70(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
leaq -0x29(%rbp), %rcx
pushq $0x1
popq %r8
xorl %r9d, %r9d
callq 0x1077a
movb -0x2a(%rbp), %al
movb -0x29(%rbp), %cl
movl %eax, %edx
orb %cl, %dl
testb $0x1, %dl
je 0x111ed
movl %eax, %r12d
xorb $0x1, %r12b
orb %cl, %r12b
movq -0x40(%rbp), %rcx
movl $0x4, 0x1940(%rcx)
movzbl %al, %esi
addl $0x1b, %esi
testb $0x1, %r12b
pushq $0x1d
popq %rax
cmovnel %eax, %esi
movq %r14, %rdi
movss 0x25188(%rip), %xmm0    # 0x36390
callq 0x1eae4
cvttps2dq -0x60(%rbp), %xmm0
cvtdq2ps %xmm0, %xmm0
movq 0x270(%r14), %rdi
movss %xmm0, -0x80(%rbp)
movss -0x44(%rbp), %xmm1
movss %xmm1, -0x7c(%rbp)
movss %xmm0, -0x78(%rbp)
movss -0x30(%rbp), %xmm0
movss %xmm0, -0x74(%rbp)
leaq -0x80(%rbp), %rsi
leaq -0x78(%rbp), %rdx
movl %eax, %ecx
movss 0x25144(%rip), %xmm0    # 0x36390
callq 0x29920
cmpb $0x1, -0x29(%rbp)
movl %r13d, %r12d
movq -0x88(%rbp), %r13
jne 0x11296
movq -0x40(%rbp), %rax
cmpb $0x1, 0x1799(%rax)
jne 0x11286
movq -0x40(%rbp), %rax
movaps -0x60(%rbp), %xmm0
subss 0xf0(%rax), %xmm0
movss %xmm0, 0x27b8(%rax)
movl %r15d, %edi
callq 0x1c966
movl %r15d, %edi
callq 0x1ca4b
incl %r15d
movl 0x1a0(%r14), %eax
jmp 0x11128