// File: /workspace/github_cpp_makefile_star2_O1/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 0x46b72(%rip), %rax     # 0x55490
movq 0x1758(%rax), %r13
movb $0x1, 0x72(%r13)
movss 0x1718(%rax), %xmm3
movss 0x2ea8e(%rip), %xmm2    # 0x3d3c8
mulss %xmm3, %xmm2
mulss %xmm1, %xmm2
mulss 0x2ea72(%rip), %xmm3    # 0x3d3bc
mulss %xmm3, %xmm1
addss %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
addss %xmm1, %xmm0
xorl %ecx, %ecx
movq %rcx, -0x38(%rbp)
movq %rcx, -0x30(%rbp)
movq %rcx, -0x40(%rbp)
testl %edi, %edi
je 0xe9c4
movss 0x2ea60(%rip), %xmm1    # 0x3d3d4
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
xorps %xmm4, %xmm4
mulss %xmm2, %xmm4
addss %xmm3, %xmm4
movaps %xmm2, %xmm1
addss %xmm0, %xmm1
unpcklps %xmm1, %xmm4            # xmm4 = xmm4[0],xmm1[0],xmm4[1],xmm1[1]
movss 0x2ea37(%rip), %xmm1    # 0x3d3d0
mulss %xmm2, %xmm1
mulss 0x2ea27(%rip), %xmm2    # 0x3d3cc
movlps %xmm4, -0x38(%rbp)
movaps %xmm3, %xmm4
subss %xmm1, %xmm4
addss %xmm0, %xmm2
unpcklps %xmm2, %xmm4            # xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
movlps %xmm4, -0x30(%rbp)
addss %xmm3, %xmm1
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
jmp 0xea0d
xorps %xmm1, %xmm1
mulss %xmm2, %xmm1
movaps %xmm3, %xmm4
addss %xmm2, %xmm4
addss %xmm0, %xmm1
unpcklps %xmm1, %xmm4            # xmm4 = xmm4[0],xmm1[0],xmm4[1],xmm1[1]
movlps %xmm4, -0x38(%rbp)
movss 0x2e9e7(%rip), %xmm1    # 0x3d3cc
mulss %xmm2, %xmm1
mulss 0x2e9df(%rip), %xmm2    # 0x3d3d0
addss %xmm3, %xmm1
movaps %xmm0, %xmm3
addss %xmm2, %xmm3
movaps %xmm1, %xmm4
unpcklps %xmm3, %xmm4            # xmm4 = xmm4[0],xmm3[0],xmm4[1],xmm3[1]
movlps %xmm4, -0x30(%rbp)
subss %xmm2, %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movlps %xmm1, -0x40(%rbp)
testb %sil, %sil
je 0xeac1
testb $-0x80, 0xc(%r13)
je 0xeac1
movq 0x270(%r13), %rbx
movss 0x2e990(%rip), %xmm0    # 0x3d3c4
movss -0x38(%rbp), %xmm1
addss %xmm0, %xmm1
movss -0x34(%rbp), %xmm2
addss %xmm0, %xmm2
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
leaq -0x68(%rbp), %r14
movlps %xmm1, (%r14)
movss -0x30(%rbp), %xmm1
addss %xmm0, %xmm1
movss -0x2c(%rbp), %xmm2
addss %xmm0, %xmm2
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
leaq -0x60(%rbp), %r15
movlps %xmm1, (%r15)
movss -0x40(%rbp), %xmm1
addss %xmm0, %xmm1
addss -0x3c(%rbp), %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
leaq -0x58(%rbp), %r12
movlps %xmm1, (%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 0x8cce
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
movl %eax, %r8d
callq 0x30304
movq 0x270(%r13), %rbx
movq 0x469c1(%rip), %rax     # 0x55490
movups 0x1460(%rax), %xmm0
leaq -0x50(%rbp), %rdi
movaps %xmm0, (%rdi)
movss 0x13e8(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x8cce
leaq -0x38(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %rcx
movq %rbx, %rdi
movl %eax, %r8d
callq 0x30304
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq