// File: /workspace/github_cpp_makefile_star2_O3/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 $0x78, %rsp
movl %edx, -0x48(%rbp)
movq %rsi, %r12
movl %edi, %r14d
movq 0x4128f(%rip), %rax     # 0x55480
movq %rax, -0x40(%rbp)
movq 0x1758(%rax), %rbx
movb $0x1, 0x72(%rbx)
cmpl $0x1, 0x1a0(%rbx)
movq %rbx, -0x38(%rbp)
je 0x14488
cmpl $0x0, 0x19c(%rbx)
je 0x1422d
leaq -0x80(%rbp), %rdi
movq $0x0, (%rdi)
xorps %xmm0, %xmm0
callq 0xa99d
callq 0x9db1
callq 0x14778
movq 0x270(%rbx), %rdi
callq 0x2d5a6
movss 0x1b0(%rbx), %xmm0
movss 0xac(%rbx), %xmm1
movaps %xmm1, %xmm2
cmpless %xmm0, %xmm2
andps %xmm2, %xmm0
andnps %xmm1, %xmm2
orps %xmm0, %xmm2
movss %xmm2, 0x1b0(%rbx)
movss %xmm2, 0xac(%rbx)
movl 0x1a0(%rbx), %eax
cmpl %r14d, %eax
sete %cl
cmpl $0x1, %eax
sete %dl
orb %cl, %dl
jne 0x14488
cmpb $0x1, 0x1b4(%rbx)
jne 0x14488
cmpb $0x0, 0x74(%rbx)
jne 0x14488
cmpl $0x2, %eax
jl 0x14488
movss 0xac(%rbx), %xmm0
movss %xmm0, -0x30(%rbp)
movss 0x1a8(%rbx), %xmm0
movss 0x290c5(%rip), %xmm1    # 0x3d390
movss %xmm0, -0x50(%rbp)
addss %xmm0, %xmm1
movss %xmm1, -0x4c(%rbp)
movl $0x1, %r13d
movss 0x18(%rbx), %xmm0
movss %xmm0, -0x70(%rbp)
movl %r13d, %edi
callq 0x15481
movaps %xmm0, %xmm1
addss -0x70(%rbp), %xmm1
movl 0x1b8(%rbx), %r15d
addl %r13d, %r15d
movl %r15d, -0x54(%rbp)
movaps %xmm1, %xmm0
addss 0x29106(%rip), %xmm0    # 0x3d418
movaps %xmm1, -0x70(%rbp)
addss 0x29092(%rip), %xmm1    # 0x3d3b0
movss %xmm0, -0x98(%rbp)
movss -0x50(%rbp), %xmm0
movss %xmm0, -0x94(%rbp)
movss %xmm1, -0x90(%rbp)
movss -0x30(%rbp), %xmm0
movss %xmm0, -0x8c(%rbp)
leaq -0x98(%rbp), %rdi
leaq -0x54(%rbp), %rsi
xorl %edx, %edx
callq 0xabfb
testb %al, %al
jne 0x14478
xorl %ebx, %ebx
leaq -0x98(%rbp), %rdi
movl %r15d, %esi
leaq -0x2a(%rbp), %rdx
leaq -0x29(%rbp), %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x13a49
movb -0x2a(%rbp), %al
movb -0x29(%rbp), %cl
movl %eax, %edx
orb %cl, %dl
testb $0x1, %dl
je 0x143a8
movl %eax, %ebx
xorb $0x1, %bl
orb %cl, %bl
movq -0x40(%rbp), %rcx
movl $0x4, 0x1940(%rcx)
movzbl %al, %eax
addl $0x1b, %eax
testb $0x1, %bl
movl $0x1d, %ecx
cmovnel %ecx, %eax
movq 0x410c0(%rip), %rcx     # 0x55480
shll $0x4, %eax
movups 0x1460(%rcx,%rax), %xmm0
movaps %xmm0, -0x80(%rbp)
movss 0x13e8(%rcx), %xmm0
mulss -0x74(%rbp), %xmm0
movss %xmm0, -0x74(%rbp)
leaq -0x80(%rbp), %r15
movq %r15, %rdi
callq 0x8c82
cvttps2dq -0x70(%rbp), %xmm0
cvtdq2ps %xmm0, %xmm0
movq -0x38(%rbp), %rbx
movq 0x270(%rbx), %rdi
movss %xmm0, -0x80(%rbp)
movss -0x4c(%rbp), %xmm1
movss %xmm1, -0x7c(%rbp)
movss %xmm0, -0x88(%rbp)
movss -0x30(%rbp), %xmm0
movss %xmm0, -0x84(%rbp)
movq %r15, %rsi
leaq -0x88(%rbp), %rdx
movl %eax, %ecx
movss 0x28f58(%rip), %xmm0    # 0x3d390
callq 0x2f6ea
cmpb $0x1, -0x29(%rbp)
jne 0x14478
movq -0x40(%rbp), %rax
cmpb $0x1, 0x1799(%rax)
jne 0x14468
movq -0x40(%rbp), %rax
movaps -0x70(%rbp), %xmm0
subss 0xf0(%rax), %xmm0
movss %xmm0, 0x27b8(%rax)
movl %r13d, %edi
callq 0x22661
movl %r13d, %edi
callq 0x22746
incl %r13d
cmpl 0x1a0(%rbx), %r13d
jl 0x142df
movl $0x11223344, %edi       # imm = 0x11223344
callq 0x17e36
testq %r12, %r12
leaq 0x2cf9d(%rip), %rsi     # 0x41439
cmovneq %r12, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xa766
movl %eax, 0x1b8(%rbx)
callq 0x16b19
movl %r14d, 0x1a0(%rbx)
movl -0x48(%rbp), %eax
movb %al, 0x1b4(%rbx)
movq 0xa8(%rbx), %rax
movq %rax, 0x1a4(%rbx)
shrq $0x20, %rax
movl %eax, 0x1b0(%rbx)
movl %eax, 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 0x14533
movl 0x1c4(%rbx), %ecx
cmpl $0x2, %ecx
jge 0x14567
testl %ecx, %ecx
je 0x14570
movl %ecx, %eax
shrl $0x1f, %eax
addl %ecx, %eax
sarl %eax
addl %ecx, %eax
jmp 0x14575
leal 0x1(%r14), %r12d
movl 0x1c4(%rbx), %eax
movl %r14d, -0x30(%rbp)
cmpl %r14d, %eax
jg 0x14685
testl %eax, %eax
je 0x1460b
movl %eax, %r13d
shrl $0x1f, %r13d
addl %eax, %r13d
sarl %r13d
addl %eax, %r13d
jmp 0x14611
movq 0x1c8(%rbx), %r14
jmp 0x145ef
movl $0x8, %eax
cmpl $0x3, %eax
movl $0x2, %ebx
cmovgel %eax, %ebx
leaq (,%rbx,4), %rdi
movq 0x40ef1(%rip), %rax     # 0x55480
incl 0x334(%rax)
callq *0xd0(%rax)
movq %rax, %r14
movq -0x38(%rbp), %r15
movq 0x1c8(%r15), %rsi
movslq 0x1c0(%r15), %rdx
shlq $0x2, %rdx
movq %rax, %rdi
callq 0x7080
movq 0x1c8(%r15), %rdi
movq 0x40eb6(%rip), %rax     # 0x55480
testq %rdi, %rdi
je 0x145d5
decl 0x334(%rax)
callq *0xd8(%rax)
movq -0x38(%rbp), %rax
movq %r14, 0x1c8(%rax)
movl %ebx, 0x1c4(%rax)
movq %rax, %rbx
movl $0x2, 0x1c0(%rbx)
movabsq $0x3f80000000000000, %rax # imm = 0x3F80000000000000
movq %rax, (%r14)
jmp 0x14769
movl $0x8, %r13d
cmpl %r12d, %r13d
cmovlel %r12d, %r13d
movslq %r13d, %rdi
shlq $0x2, %rdi
movq 0x40e5a(%rip), %rax     # 0x55480
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
movq 0x40e23(%rip), %rax     # 0x55480
testq %rdi, %rdi
je 0x14668
decl 0x334(%rax)
callq *0xd8(%rax)
movq %r15, 0x1c8(%rbx)
movl %r13d, 0x1c4(%rbx)
movl 0x1a0(%rbx), %eax
movl %eax, -0x30(%rbp)
movl %r12d, 0x1c0(%rbx)
testl %r14d, %r14d
js 0x14710
movq -0x38(%rbp), %rax
movl 0x1b8(%rax), %ecx
movq 0x40dde(%rip), %rdx     # 0x55480
movq %rdx, -0x40(%rbp)
movl 0x1790(%rdx), %r15d
movq 0x110(%rax), %rdx
movq %rdx, -0x48(%rbp)
xorps %xmm0, %xmm0
cvtsi2ssl -0x30(%rbp), %xmm0
movss %xmm0, -0x70(%rbp)
movq 0x1c8(%rax), %rbx
movl %r12d, %r12d
movq %rcx, %r14
subl %ecx, %r15d
xorl %r13d, %r13d
cmpl %r13d, %r15d
jne 0x146e8
movq -0x40(%rbp), %rax
movb $0x1, 0x1798(%rax)
leaq (%r14,%r13), %rsi
xorps %xmm0, %xmm0
cvtsi2ss %r13d, %xmm0
divss -0x70(%rbp), %xmm0
movq -0x48(%rbp), %rdi
callq 0x90c8
movss %xmm0, (%rbx,%r13,4)
incq %r13
cmpq %r13, %r12
jne 0x146d8
movq -0x38(%rbp), %rax
movq 0x270(%rax), %rdi
movl -0x30(%rbp), %esi
callq 0x2d1ea
callq 0x205df
movq 0x40d51(%rip), %rax     # 0x55480
movq 0x1758(%rax), %rax
movl 0x19c(%rax), %ebx
leal 0x1(%rbx), %edi
callq 0x15481
movss %xmm0, -0x48(%rbp)
movl %ebx, %edi
callq 0x15481
movss -0x48(%rbp), %xmm1
subss %xmm0, %xmm1
mulss 0x28ca7(%rip), %xmm1    # 0x3d408
movaps %xmm1, %xmm0
callq 0x9c64
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq