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

    const ImGuiStyle& style = ImGui::GetStyle();
    const ImGuiID id = ImGui::GetID(label);
    const ImVec2 label_size = ImGui::CalcTextSize(label, NULL, true);

    // Size default to hold ~7 items. Fractional number of items helps seeing that we can scroll down/up without looking at scrollbar.
    ImVec2 size = CalcItemSize(size_arg, CalcItemWidth() + style.FramePadding.x * 2.0f, ImGui::GetTextLineHeightWithSpacing() * 7.4f + style.ItemSpacing.y);
    ImVec2 frame_size = ImVec2(size.x, ImMax(size.y, label_size.y));
    ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size);
    ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f));
    window->DC.LastItemRect = bb;

    ImGui::BeginGroup();
    if (label_size.x > 0)
        RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label);

    ImGui::BeginChildFrame(id, frame_bb.GetSize());
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq 0x354ba(%rip), %r13     # 0x50480
movq 0x1758(%r13), %r14
movb $0x1, 0x72(%r14)
movb 0x74(%r14), %bl
testb %bl, %bl
jne 0x1b154
movq %rsi, %r12
movq %rdi, %r15
callq 0x13dc1
movl %eax, -0x34(%rbp)
pushq $0x1
popq %rdx
movss 0x1b3a5(%rip), %xmm0    # 0x3639c
movq %r15, %rdi
xorl %esi, %esi
callq 0xc6e3
movaps %xmm0, -0x60(%rbp)
movsd (%r12), %xmm0
movaps %xmm0, -0x50(%rbp)
callq 0x1137a
movss 0x1408(%r13), %xmm1
addss %xmm1, %xmm1
addss %xmm0, %xmm1
movq 0x35454(%rip), %rax     # 0x50480
movss 0x1718(%rax), %xmm2
addss 0x1418(%rax), %xmm2
mulss 0x1b418(%rip), %xmm2    # 0x3645c
addss 0x1418(%r13), %xmm2
movaps -0x50(%rbp), %xmm0
callq 0x9ecf
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movaps -0x60(%rbp), %xmm5
movaps %xmm5, %xmm1
shufps $0x55, %xmm5, %xmm1     # xmm1 = xmm1[1,1],xmm5[1,1]
movaps %xmm1, %xmm4
cmpless %xmm3, %xmm4
movaps %xmm4, %xmm2
andnps %xmm1, %xmm2
andps %xmm3, %xmm4
orps %xmm2, %xmm4
movss 0xa8(%r14), %xmm2
movss 0xac(%r14), %xmm1
addss %xmm2, %xmm0
addss %xmm1, %xmm4
movss %xmm2, -0x30(%rbp)
movd %xmm2, %eax
movss %xmm1, -0x2c(%rbp)
movd %xmm1, %ecx
movss 0x141c(%r13), %xmm2
movaps %xmm5, %xmm3
addss %xmm5, %xmm2
xorps %xmm5, %xmm5
xorps %xmm1, %xmm1
cmpltss %xmm3, %xmm1
andps %xmm2, %xmm1
movaps %xmm0, -0x50(%rbp)
addss %xmm0, %xmm1
movaps %xmm4, -0x70(%rbp)
movaps %xmm4, %xmm0
addss %xmm5, %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
shlq $0x20, %rcx
orq %rcx, %rax
movq %rax, 0xe4(%r14)
movlps %xmm1, 0xec(%r14)
callq 0x16ed0
movaps -0x60(%rbp), %xmm0
ucomiss 0x1b2ae(%rip), %xmm0    # 0x363b0
jbe 0x1b130
movss 0x141c(%r13), %xmm0
addss -0x50(%rbp), %xmm0
movss 0x140c(%r13), %xmm1
addss -0x2c(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
pushq $0x1
popq %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0xc16e
movaps -0x50(%rbp), %xmm0
subss -0x30(%rbp), %xmm0
movaps -0x70(%rbp), %xmm1
subss -0x2c(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
leaq -0x78(%rbp), %rsi
movlps %xmm0, (%rsi)
movl -0x34(%rbp), %edi
callq 0xffab
xorb $0x1, %bl
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq