// File: /workspace/github_cpp_makefile_star2_O1/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 $0x68, %rsp
movq 0x34664(%rip), %rbx     # 0x55490
movq 0x1758(%rbx), %r14
movb $0x1, 0x72(%r14)
cmpb $0x0, 0x74(%r14)
je 0x20e47
xorl %r15d, %r15d
jmp 0x2105d
movl %ecx, %r12d
movq %rsi, %r13
movq %rdi, %r15
movl %edx, -0x30(%rbp)
movss 0xa8(%r14), %xmm0
movaps %xmm0, -0x50(%rbp)
movss 0xac(%r14), %xmm0
movaps %xmm0, -0x80(%rbp)
movss 0x1c517(%rip), %xmm0    # 0x3d38c
xorl %esi, %esi
movl $0x1, %edx
callq 0xe720
movaps %xmm0, %xmm3
testq %r13, %r13
movq %r13, -0x68(%rbp)
je 0x20ef2
movq %r13, %rsi
movq 0x345f9(%rip), %rax     # 0x55490
movq 0x1710(%rax), %r13
movss 0x1718(%rax), %xmm0
movss 0x1c512(%rip), %xmm1    # 0x3d3c0
movss 0x1c4d6(%rip), %xmm2    # 0x3d38c
movq %r13, %rdi
movss %xmm0, -0x60(%rbp)
xorl %edx, %edx
xorl %ecx, %ecx
movaps %xmm3, -0x40(%rbp)
callq 0x35d02
movaps -0x40(%rbp), %xmm3
movaps %xmm0, %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm1
jbe 0x20ef5
movss -0x60(%rbp), %xmm2
divss (%r13), %xmm2
movaps %xmm1, %xmm0
subss %xmm2, %xmm0
movss %xmm0, %xmm1            # xmm1 = xmm0[0],xmm1[1,2,3]
jmp 0x20ef5
xorps %xmm1, %xmm1
leaq 0x208(%r14), %rdi
movss 0x1718(%rbx), %xmm0
mulss 0x1c524(%rip), %xmm0    # 0x3d430
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm2
movaps %xmm3, %xmm0
movaps %xmm1, -0x60(%rbp)
callq 0xa4fe
movss %xmm0, -0x2c(%rbp)
movq 0x34565(%rip), %rax     # 0x55490
movq 0x1758(%rax), %r13
callq 0xb0a3
movss 0xa8(%r13), %xmm1
subss 0x18(%r13), %xmm1
subss %xmm1, %xmm0
movss -0x2c(%rbp), %xmm2
subss %xmm2, %xmm0
xorps %xmm3, %xmm3
movaps %xmm0, %xmm1
cmpless %xmm3, %xmm1
andnps %xmm0, %xmm1
movaps %xmm1, -0x40(%rbp)
xorb $0x1, %r12b
movzbl %r12b, %edx
shll $0x4, %edx
orl $0x28, %edx
leaq -0x90(%rbp), %rcx
movss %xmm2, (%rcx)
movl $0x0, 0x4(%rcx)
movq %r15, %rdi
xorl %esi, %esi
callq 0x20486
movl %eax, %r15d
movaps -0x60(%rbp), %xmm0
ucomiss 0x1c403(%rip), %xmm0    # 0x3d3a0
jbe 0x20fe2
leaq 0x1470(%rbx), %rsi
xorl %edi, %edi
callq 0x1367a
movss 0x21c(%r14), %xmm0
addss -0x40(%rbp), %xmm0
addss -0x50(%rbp), %xmm0
xorps %xmm1, %xmm1
addss -0x80(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movq -0x68(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xe0f3
movl $0x1, %edi
callq 0x13916
cmpb $0x0, -0x30(%rbp)
je 0x2105d
movaps -0x40(%rbp), %xmm1
addss 0x220(%r14), %xmm1
movss 0x1718(%rbx), %xmm0
mulss 0x1c3f7(%rip), %xmm0    # 0x3d3fc
addss %xmm1, %xmm0
movaps -0x50(%rbp), %xmm2
addss %xmm0, %xmm2
xorps %xmm0, %xmm0
movaps -0x80(%rbp), %xmm1
addss %xmm0, %xmm1
unpcklps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
movaps %xmm2, -0x50(%rbp)
movq 0x34466(%rip), %rax     # 0x55490
movups 0x1460(%rax), %xmm0
leaq -0x90(%rbp), %rdi
movaps %xmm0, (%rdi)
movss 0x13e8(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x8cce
movaps -0x50(%rbp), %xmm0
movl %eax, %edi
callq 0xeb1a
movl %r15d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq