// File: /workspace/github_cpp_makefile_star2_O2/donfreiday[P]gb/./imgui/imgui.cpp
// Function: ImGui::MenuItem(char const*, char const*, bool, bool)
bool ImGui::MenuItem(const char* label, const char* shortcut, bool selected, bool enabled)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return false;

    ImGuiState& g = *GImGui;
    ImVec2 pos = window->DC.CursorPos;
    ImVec2 label_size = CalcTextSize(label, NULL, true);
    ImVec2 shortcut_size = shortcut ? CalcTextSize(shortcut, NULL) : ImVec2(0.0f, 0.0f);
    float w = window->MenuColumns.DeclColumns(label_size.x, shortcut_size.x, (float)(int)(g.FontSize * 1.20f)); // Feedback for next frame
    float extra_w = ImMax(0.0f, ImGui::GetContentRegionAvail().x - w);

    bool pressed = ImGui::Selectable(label, false, ImGuiSelectableFlags_MenuItem | ImGuiSelectableFlags_DrawFillAvailWidth | (!enabled ? ImGuiSelectableFlags_Disabled : 0), ImVec2(w, 0.0f));
    if (shortcut_size.x > 0.0f)
    {
        ImGui::PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]);
        RenderText(pos + ImVec2(window->MenuColumns.Pos[1] + extra_w, 0.0f), shortcut, NULL, false);
        ImGui::PopStyleColor();
    }

    if (selected)
        RenderCheckMark(pos + ImVec2(window->MenuColumns.Pos[2] + extra_w + g.FontSize * 0.20f, 0.0f), window->Color(ImGuiCol_Text));

    return pressed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq 0x35113(%rip), %r14     # 0x50480
movq 0x1758(%r14), %rbx
movb $0x1, 0x72(%rbx)
cmpb $0x0, 0x74(%rbx)
je 0x1b386
xorl %r12d, %r12d
jmp 0x1b509
movl %ecx, %r13d
movq %rsi, %r15
movq %rdi, %r12
movl %edx, -0x30(%rbp)
movss 0xa8(%rbx), %xmm0
movaps %xmm0, -0x50(%rbp)
movss 0xac(%rbx), %xmm0
movaps %xmm0, -0x60(%rbp)
pushq $0x1
popq %rdx
movss 0x1afe7(%rip), %xmm0    # 0x3639c
xorl %esi, %esi
callq 0xc6e3
movaps %xmm0, %xmm3
testq %r15, %r15
je 0x1b3e5
movss 0x1afd0(%rip), %xmm0    # 0x3639c
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
movaps %xmm3, -0x40(%rbp)
callq 0xc6e3
movaps -0x40(%rbp), %xmm3
movaps %xmm0, %xmm1
jmp 0x1b3e8
xorps %xmm1, %xmm1
leaq 0x208(%rbx), %rdi
movss 0x1718(%r14), %xmm0
mulss 0x1b03c(%rip), %xmm0    # 0x3643c
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm2
movaps %xmm3, %xmm0
movaps %xmm1, -0x70(%rbp)
callq 0x95a2
movss %xmm0, -0x2c(%rbp)
callq 0xfdd2
movss -0x2c(%rbp), %xmm3
subss %xmm3, %xmm0
xorps %xmm2, %xmm2
movaps %xmm0, %xmm1
cmpless %xmm2, %xmm1
andnps %xmm0, %xmm1
movaps %xmm1, -0x40(%rbp)
xorb $0x1, %r13b
movzbl %r13b, %edx
shll $0x4, %edx
orl $0x28, %edx
leaq -0x78(%rbp), %rcx
movss %xmm3, (%rcx)
andl $0x0, 0x4(%rcx)
movq %r12, %rdi
xorl %esi, %esi
callq 0x1ab4d
movl %eax, %r12d
movaps -0x70(%rbp), %xmm0
ucomiss 0x1af46(%rip), %xmm0    # 0x363b0
jbe 0x1b4ab
leaq 0x1470(%r14), %rsi
xorl %edi, %edi
callq 0x10000
movss 0x21c(%rbx), %xmm0
addss -0x40(%rbp), %xmm0
addss -0x50(%rbp), %xmm0
xorps %xmm1, %xmm1
addss -0x60(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xc16e
pushq $0x1
popq %rdi
callq 0x100e8
cmpb $0x0, -0x30(%rbp)
je 0x1b509
movaps -0x40(%rbp), %xmm1
addss 0x220(%rbx), %xmm1
movss 0x1718(%r14), %xmm0
mulss 0x1af42(%rip), %xmm0    # 0x36410
addss %xmm1, %xmm0
movaps -0x50(%rbp), %xmm2
addss %xmm0, %xmm2
xorps %xmm0, %xmm0
movaps -0x60(%rbp), %xmm1
addss %xmm0, %xmm1
unpcklps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
movaps %xmm2, -0x50(%rbp)
movss 0x1ae9c(%rip), %xmm0    # 0x36390
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1eae4
movaps -0x50(%rbp), %xmm0
movl %eax, %edi
callq 0xca54
movl %r12d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq