// File: 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
subq $0x1a0, %rsp            # imm = 0x1A0
movb %sil, %al
movb %dil, %cl
movlpd %xmm0, -0x8(%rbp)
andb $0x1, %cl
movb %cl, -0x9(%rbp)
movss %xmm1, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq 0x68913(%rip), %rax     # 0x794c0
movq %rax, -0x20(%rbp)
callq 0x2e220
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movss 0x1718(%rax), %xmm0
movss %xmm0, -0x2c(%rbp)
movss -0x2c(%rbp), %xmm0
movss 0x4a464(%rip), %xmm1    # 0x5b03c
mulss %xmm1, %xmm0
movss -0x10(%rbp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, -0x30(%rbp)
movss -0x2c(%rbp), %xmm0
movss 0x4a42d(%rip), %xmm1    # 0x5b024
mulss %xmm1, %xmm0
movss -0x10(%rbp), %xmm2
movaps %xmm0, %xmm1
mulss %xmm2, %xmm1
leaq -0x40(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x2d280
movq -0x120(%rbp), %rsi
leaq -0x8(%rbp), %rdi
callq 0xc7e0
movlpd %xmm0, -0x38(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x2d230
leaq -0x50(%rbp), %rdi
callq 0x2d230
leaq -0x58(%rbp), %rdi
callq 0x2d230
testb $0x1, -0x9(%rbp)
je 0x10d87
movss -0x30(%rbp), %xmm1
movss -0x34(%rbp), %xmm0
movss 0x4a465(%rip), %xmm2    # 0x5b0c8
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x34(%rbp)
leaq -0x70(%rbp), %rdi
movq %rdi, -0x148(%rbp)
xorps %xmm0, %xmm0
movss 0x4a392(%rip), %xmm1    # 0x5b018
callq 0x2d280
movq -0x148(%rbp), %rdi
movss -0x30(%rbp), %xmm0
callq 0xe4b0
movlpd %xmm0, -0x68(%rbp)
leaq -0x38(%rbp), %rdi
movq %rdi, -0x128(%rbp)
leaq -0x68(%rbp), %rsi
callq 0xc7e0
movlpd %xmm0, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x88(%rbp), %rdi
movq %rdi, -0x140(%rbp)
movss 0x4a3ec(%rip), %xmm0    # 0x5b0c4
movss 0x4a3dc(%rip), %xmm1    # 0x5b0bc
movss %xmm1, -0x134(%rbp)
callq 0x2d280
movq -0x140(%rbp), %rdi
movss -0x30(%rbp), %xmm0
callq 0xe4b0
movq -0x128(%rbp), %rdi
movlpd %xmm0, -0x80(%rbp)
leaq -0x80(%rbp), %rsi
callq 0xc7e0
movss -0x134(%rbp), %xmm1
movlpd %xmm0, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x130(%rbp)
movss 0x4a382(%rip), %xmm0    # 0x5b0c0
callq 0x2d280
movq -0x130(%rbp), %rdi
movss -0x30(%rbp), %xmm0
callq 0xe4b0
movq -0x128(%rbp), %rdi
movlpd %xmm0, -0x98(%rbp)
leaq -0x98(%rbp), %rsi
callq 0xc7e0
movlpd %xmm0, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0x10eb7
leaq -0xb8(%rbp), %rdi
movq %rdi, -0x170(%rbp)
movss 0x4a27b(%rip), %xmm0    # 0x5b018
xorps %xmm1, %xmm1
callq 0x2d280
movq -0x170(%rbp), %rdi
movss -0x30(%rbp), %xmm0
callq 0xe4b0
movlpd %xmm0, -0xb0(%rbp)
leaq -0x38(%rbp), %rdi
movq %rdi, -0x150(%rbp)
leaq -0xb0(%rbp), %rsi
callq 0xc7e0
movlpd %xmm0, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0xd0(%rbp), %rdi
movq %rdi, -0x168(%rbp)
movss 0x4a2be(%rip), %xmm0    # 0x5b0bc
movss %xmm0, -0x15c(%rbp)
movss 0x4a2b2(%rip), %xmm1    # 0x5b0c0
callq 0x2d280
movq -0x168(%rbp), %rdi
movss -0x30(%rbp), %xmm0
callq 0xe4b0
movq -0x150(%rbp), %rdi
movlpd %xmm0, -0xc8(%rbp)
leaq -0xc8(%rbp), %rsi
callq 0xc7e0
movaps %xmm0, %xmm1
movss -0x15c(%rbp), %xmm0
movlpd %xmm1, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0xe8(%rbp), %rdi
movq %rdi, -0x158(%rbp)
movss 0x4a251(%rip), %xmm1    # 0x5b0c4
callq 0x2d280
movq -0x158(%rbp), %rdi
movss -0x30(%rbp), %xmm0
callq 0xe4b0
movq -0x150(%rbp), %rdi
movlpd %xmm0, -0xe0(%rbp)
leaq -0xe0(%rbp), %rsi
callq 0xc7e0
movlpd %xmm0, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x58(%rbp)
testb $0x1, -0x11(%rbp)
je 0x10fcc
movq -0x28(%rbp), %rax
movl 0xc(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x10fcc
movq -0x28(%rbp), %rax
movq 0x270(%rax), %rax
movq %rax, -0x178(%rbp)
leaq -0xf8(%rbp), %rdi
movq %rdi, -0x198(%rbp)
movss 0x4a1ba(%rip), %xmm1    # 0x5b0b8
movss %xmm1, -0x184(%rbp)
movaps %xmm1, %xmm0
callq 0x2d280
movq -0x198(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0xc7e0
movss -0x184(%rbp), %xmm1
movlpd %xmm0, -0xf0(%rbp)
leaq -0x108(%rbp), %rdi
movq %rdi, -0x190(%rbp)
movaps %xmm1, %xmm0
callq 0x2d280
movq -0x190(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0xc7e0
movss -0x184(%rbp), %xmm1
movlpd %xmm0, -0x100(%rbp)
leaq -0x118(%rbp), %rdi
movq %rdi, -0x180(%rbp)
movaps %xmm1, %xmm0
callq 0x2d280
movq -0x180(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0xc7e0
movlpd %xmm0, -0x110(%rbp)
movq -0x28(%rbp), %rdi
movl $0x5, %esi
movss 0x4a075(%rip), %xmm0    # 0x5b018
callq 0x2ea40
movq -0x178(%rbp), %rdi
movl %eax, %r8d
leaq -0xf0(%rbp), %rsi
leaq -0x100(%rbp), %rdx
leaq -0x110(%rbp), %rcx
callq 0x40870
movq -0x28(%rbp), %rax
movq 0x270(%rax), %rax
movq %rax, -0x1a0(%rbp)
movq -0x28(%rbp), %rdi
xorl %esi, %esi
movss 0x4a02c(%rip), %xmm0    # 0x5b018
callq 0x2ea40
movq -0x1a0(%rbp), %rdi
movl %eax, %r8d
leaq -0x48(%rbp), %rsi
leaq -0x50(%rbp), %rdx
leaq -0x58(%rbp), %rcx
callq 0x40870
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
nopw %cs:(%rax,%rax)