// File: /workspace/github_cpp_makefile_star2_O3/donfreiday[P]gb/./imgui/imgui.cpp
// Function: ImGui::RenderCollapseTriangle(ImVec2, bool, float, bool)
void ImGui::RenderCollapseTriangle(ImVec2 p_min, bool opened, float scale, bool shadow)
{
    ImGuiState& g = *GImGui;
    ImGuiWindow* window = GetCurrentWindow();

    const float h = g.FontSize * 1.00f;
    const float r = h * 0.40f * scale;
    ImVec2 center = p_min + ImVec2(h*0.50f, h*0.50f*scale);

    ImVec2 a, b, c;
    if (opened)
    {
        center.y -= r*0.25f;
        a = center + ImVec2(0,1)*r;
        b = center + ImVec2(-0.866f,-0.5f)*r;
        c = center + ImVec2(0.866f,-0.5f)*r;
    }
    else
    {
        a = center + ImVec2(1,0)*r;
        b = center + ImVec2(-0.500f,0.866f)*r;
        c = center + ImVec2(-0.500f,-0.866f)*r;
    }

    if (shadow && (window->Flags & ImGuiWindowFlags_ShowBorders) != 0)
        window->DrawList->AddTriangleFilled(a+ImVec2(2,2), b+ImVec2(2,2), c+ImVec2(2,2), window->Color(ImGuiCol_BorderShadow));
    window->DrawList->AddTriangleFilled(a, b, c, window->Color(ImGuiCol_Text));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq 0x46d7d(%rip), %rax     # 0x55480
movq 0x1758(%rax), %r13
movb $0x1, 0x72(%r13)
movss 0x1718(%rax), %xmm3
movss 0x2ecbd(%rip), %xmm2    # 0x3d3dc
mulss %xmm3, %xmm2
mulss %xmm1, %xmm2
mulss 0x2ec9d(%rip), %xmm3    # 0x3d3cc
mulss %xmm3, %xmm1
addss %xmm0, %xmm3
movaps %xmm0, %xmm5
shufps $0x55, %xmm0, %xmm5     # xmm5 = xmm5[1,1],xmm0[1,1]
addss %xmm1, %xmm5
testl %edi, %edi
je 0xe796
movss 0x2ec9a(%rip), %xmm0    # 0x3d3e8
mulss %xmm2, %xmm0
addss %xmm0, %xmm5
xorps %xmm1, %xmm1
mulss %xmm2, %xmm1
addss %xmm3, %xmm1
movaps %xmm2, %xmm0
addss %xmm5, %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movss 0x2ec71(%rip), %xmm0    # 0x3d3e4
mulss %xmm2, %xmm0
mulss 0x2ec61(%rip), %xmm2    # 0x3d3e0
movaps %xmm3, %xmm4
subss %xmm0, %xmm4
addss %xmm5, %xmm2
unpcklps %xmm2, %xmm4            # xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
addss %xmm3, %xmm0
unpcklps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
jmp 0xe7d7
xorps %xmm4, %xmm4
mulss %xmm2, %xmm4
movaps %xmm3, %xmm1
addss %xmm2, %xmm1
addss %xmm5, %xmm4
movss 0x2ec30(%rip), %xmm0    # 0x3d3e0
mulss %xmm2, %xmm0
mulss 0x2ec28(%rip), %xmm2    # 0x3d3e4
unpcklps %xmm4, %xmm1            # xmm1 = xmm1[0],xmm4[0],xmm1[1],xmm4[1]
addss %xmm3, %xmm0
movaps %xmm5, %xmm3
addss %xmm2, %xmm3
movaps %xmm0, %xmm4
unpcklps %xmm3, %xmm4            # xmm4 = xmm4[0],xmm3[0],xmm4[1],xmm3[1]
subss %xmm2, %xmm5
unpcklps %xmm5, %xmm0            # xmm0 = xmm0[0],xmm5[0],xmm0[1],xmm5[1]
movlps %xmm1, -0x40(%rbp)
movlps %xmm4, -0x38(%rbp)
movlps %xmm0, -0x30(%rbp)
testb %sil, %sil
je 0xe895
testb $-0x80, 0xc(%r13)
je 0xe895
movaps %xmm1, %xmm2
shufps $0x55, %xmm1, %xmm2     # xmm2 = xmm2[1,1],xmm1[1,1]
movaps %xmm4, %xmm3
shufps $0x55, %xmm4, %xmm3     # xmm3 = xmm3[1,1],xmm4[1,1]
movaps %xmm0, %xmm5
shufps $0x55, %xmm0, %xmm5     # xmm5 = xmm5[1,1],xmm0[1,1]
movq 0x270(%r13), %rbx
movss 0x2ebb9(%rip), %xmm6    # 0x3d3d4
addss %xmm6, %xmm1
addss %xmm6, %xmm2
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
leaq -0x68(%rbp), %r14
movlps %xmm1, (%r14)
addss %xmm6, %xmm4
addss %xmm6, %xmm3
unpcklps %xmm3, %xmm4            # xmm4 = xmm4[0],xmm3[0],xmm4[1],xmm3[1]
leaq -0x60(%rbp), %r15
movlps %xmm4, (%r15)
addss %xmm6, %xmm0
addss %xmm6, %xmm5
unpcklps %xmm5, %xmm0            # xmm0 = xmm0[0],xmm5[0],xmm0[1],xmm5[1]
leaq -0x58(%rbp), %r12
movlps %xmm0, (%r12)
movups 0x14b0(%rax), %xmm0
leaq -0x50(%rbp), %rdi
movaps %xmm0, (%rdi)
movss 0x13e8(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x8c82
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
movl %eax, %r8d
callq 0x2fb78
movq 0x46beb(%rip), %rax     # 0x55480
movq 0x270(%r13), %rbx
movups 0x1460(%rax), %xmm0
leaq -0x50(%rbp), %rdi
movaps %xmm0, (%rdi)
movss 0x13e8(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x8c82
leaq -0x40(%rbp), %rsi
leaq -0x38(%rbp), %rdx
leaq -0x30(%rbp), %rcx
movq %rbx, %rdi
movl %eax, %r8d
callq 0x2fb78
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq