// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_demo.cpp
// Function: EditTableSizingFlags(int*)
static void EditTableSizingFlags(ImGuiTableFlags* p_flags)
{
    struct EnumDesc { ImGuiTableFlags Value; const char* Name; const char* Tooltip; };
    static const EnumDesc policies[] =
    {
        { ImGuiTableFlags_None,               "Default",                            "Use default sizing policy:\n- ImGuiTableFlags_SizingFixedFit if ScrollX is on or if host window has ImGuiWindowFlags_AlwaysAutoResize.\n- ImGuiTableFlags_SizingStretchSame otherwise." },
        { ImGuiTableFlags_SizingFixedFit,     "ImGuiTableFlags_SizingFixedFit",     "Columns default to _WidthFixed (if resizable) or _WidthAuto (if not resizable), matching contents width." },
        { ImGuiTableFlags_SizingFixedSame,    "ImGuiTableFlags_SizingFixedSame",    "Columns are all the same width, matching the maximum contents width.\nImplicitly disable ImGuiTableFlags_Resizable and enable ImGuiTableFlags_NoKeepColumnsVisible." },
        { ImGuiTableFlags_SizingStretchProp,  "ImGuiTableFlags_SizingStretchProp",  "Columns default to _WidthStretch with weights proportional to their widths." },
        { ImGuiTableFlags_SizingStretchSame,  "ImGuiTableFlags_SizingStretchSame",  "Columns default to _WidthStretch with same weights." }
    };
    int idx;
    for (idx = 0; idx < IM_ARRAYSIZE(policies); idx++)
        if (policies[idx].Value == (*p_flags & ImGuiTableFlags_SizingMask_))
            break;
    const char* preview_text = (idx < IM_ARRAYSIZE(policies)) ? policies[idx].Name + (idx > 0 ? strlen("ImGuiTableFlags") : 0) : "";
    if (ImGui::BeginCombo("Sizing Policy", preview_text))
    {
        for (int n = 0; n < IM_ARRAYSIZE(policies); n++)
            if (ImGui::Selectable(policies[n].Name, idx == n))
                *p_flags = (*p_flags & ~ImGuiTableFlags_SizingMask_) | policies[n].Value;
        ImGui::EndCombo();
    }
    ImGui::SameLine();
    ImGui::TextDisabled("(?)");
    if (ImGui::IsItemHovered())
    {
        ImGui::BeginTooltip();
        ImGui::PushTextWrapPos(ImGui::GetFontSize() * 50.0f);
        for (int m = 0; m < IM_ARRAYSIZE(policies); m++)
        {
            ImGui::Separator();
            ImGui::Text("%s:", policies[m].Name);
            ImGui::Separator();
            ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetStyle().IndentSpacing * 0.5f);
            ImGui::TextUnformatted(policies[m].Tooltip);
        }
        ImGui::PopTextWrapPos();
        ImGui::EndTooltip();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0xe000, %ecx           # imm = 0xE000
andl (%rdi), %ecx
leaq 0x7f92d(%rip), %rax     # 0xde8c8
xorl %r14d, %r14d
leaq 0x3cf7c(%rip), %rsi     # 0x9bf21
pushq $0x5
popq %rdx
cmpq $0x5, %r14
je 0x5efbc
cmpl %ecx, -0x8(%rax)
je 0x5efc1
incq %r14
addq $0x18, %rax
jmp 0x5efa8
movq %rdx, %r14
jmp 0x5efce
testq %r14, %r14
pushq $0xf
popq %rsi
cmoveq %r14, %rsi
addq (%rax), %rsi
leaq 0x4c611(%rip), %rdi     # 0xab5e6
xorl %edx, %edx
callq 0x7cfa7
leaq 0x7f8dd(%rip), %r15     # 0xde8c0
testb %al, %al
je 0x5f034
imulq $0x18, %r14, %r12
xorl %r13d, %r13d
leaq -0x34(%rbp), %r14
cmpq $0x78, %r13
je 0x5f02f
movq 0x8(%r13,%r15), %rdi
xorl %esi, %esi
cmpq %r13, %r12
sete %sil
andq $0x0, -0x34(%rbp)
xorl %edx, %edx
movq %r14, %rcx
callq 0x7d81c
testb %al, %al
je 0x5f029
movl (%rbx), %eax
movl $0xffff1fff, %ecx       # imm = 0xFFFF1FFF
andl %ecx, %eax
orl (%r13,%r15), %eax
movl %eax, (%rbx)
addq $0x18, %r13
jmp 0x5eff2
callq 0x7d6af
movss 0x3cfb4(%rip), %xmm1    # 0x9bff0
xorps %xmm0, %xmm0
callq 0x437ec
leaq 0x42600(%rip), %rdi     # 0xa164b
xorl %eax, %eax
callq 0x79774
xorl %edi, %edi
callq 0x374fd
testb %al, %al
je 0x5f0e6
callq 0x44503
callq 0x42b2e
mulss 0x43189(%rip), %xmm0    # 0xa21fc
callq 0x4250d
leaq 0x4c575(%rip), %rbx     # 0xab5f4
xorl %r12d, %r12d
cmpq $0x78, %r12
je 0x5f0dc
callq 0x7cad7
movq 0x8(%r12,%r15), %rsi
movq 0x10(%r12,%r15), %r14
movq %rbx, %rdi
xorl %eax, %eax
callq 0x795ac
callq 0x7cad7
callq 0x4395a
movss %xmm0, -0x2c(%rbp)
callq 0x35cfd
movss 0x68(%rax), %xmm0
mulss 0x3cf56(%rip), %xmm0    # 0x9c018
addss -0x2c(%rbp), %xmm0
callq 0x43a09
movq %r14, %rdi
xorl %esi, %esi
callq 0x7959d
addq $0x18, %r12
jmp 0x5f082
callq 0x4254c
callq 0x4463b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop