// File: /workspace/github_cpp_makefile_star2_O1/donfreiday[P]gb/./imgui/imgui.cpp
// Function: ImGui::Image(void*, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec4 const&, ImVec4 const&)
void ImGui::Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImVec4& border_col)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return;

    ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
    if (border_col.w > 0.0f)
        bb.Max += ImVec2(2,2);
    ItemSize(bb);
    if (!ItemAdd(bb, NULL))
        return;

    if (border_col.w > 0.0f)
    {
        window->DrawList->AddRect(bb.Min, bb.Max, window->Color(border_col), 0.0f);
        window->DrawList->AddImage(user_texture_id, bb.Min+ImVec2(1,1), bb.Max-ImVec2(1,1), uv0, uv1, window->Color(tint_col));
    }
    else
    {
        window->DrawList->AddImage(user_texture_id, bb.Min, bb.Max, uv0, uv1, window->Color(tint_col));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq 0x3ea56(%rip), %rax     # 0x55490
movq 0x1758(%rax), %r14
movb $0x1, 0x72(%r14)
cmpb $0x0, 0x74(%r14)
jne 0x16c2f
movq %r9, %r13
movq %r8, %r12
movq %rdi, %r15
movq %rdx, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movss 0xa8(%r14), %xmm0
movss 0xac(%r14), %xmm1
addss (%rsi), %xmm0
addss 0x4(%rsi), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movq 0xa8(%r14), %rax
movq %rax, -0x38(%rbp)
movlps %xmm0, -0x30(%rbp)
movss 0xc(%r9), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x16abd
movss 0x2691f(%rip), %xmm0    # 0x3d3c4
movss -0x30(%rbp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, -0x30(%rbp)
addss -0x2c(%rbp), %xmm0
movss %xmm0, -0x2c(%rbp)
leaq -0x38(%rbp), %rbx
movss 0x8(%rbx), %xmm0
movss 0xc(%rbx), %xmm1
subss (%rbx), %xmm0
subss 0x4(%rbx), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
leaq -0x60(%rbp), %rdi
movlps %xmm0, (%rdi)
xorps %xmm0, %xmm0
callq 0xaab7
movq %rbx, %rdi
xorl %esi, %esi
callq 0xac09
testb %al, %al
je 0x16c2f
movss 0xc(%r13), %xmm0
ucomiss 0x2689b(%rip), %xmm0    # 0x3d3a0
movq 0x270(%r14), %rbx
jbe 0x16be7
movups (%r13), %xmm0
leaq -0x60(%rbp), %rdi
movaps %xmm0, (%rdi)
movq 0x3e96b(%rip), %rax     # 0x55490
movss 0x13e8(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x8cce
leaq -0x38(%rbp), %r13
xorps %xmm0, %xmm0
movq %rbx, %rdi
movq %r13, %rsi
leaq -0x30(%rbp), %rdx
movl %eax, %ecx
movl $0xf, %r8d
callq 0x2ffde
movq 0x270(%r14), %rbx
movss 0x26817(%rip), %xmm0    # 0x3d380
movss (%r13), %xmm1
addss %xmm0, %xmm1
addss 0x4(%r13), %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
leaq -0x70(%rbp), %r14
movlps %xmm1, (%r14)
movss 0x26800(%rip), %xmm0    # 0x3d38c
movss 0x8(%r13), %xmm1
addss %xmm0, %xmm1
addss 0xc(%r13), %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
leaq -0x68(%rbp), %r13
movlps %xmm1, (%r13)
movups (%r12), %xmm0
leaq -0x60(%rbp), %rcx
movaps %xmm0, (%rcx)
movq 0x3e8d5(%rip), %rax     # 0x55490
movss 0x13e8(%rax), %xmm0
mulss 0xc(%rcx), %xmm0
movss %xmm0, 0xc(%rcx)
leaq -0x60(%rbp), %rdi
callq 0x8cce
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r13, %rcx
jmp 0x16c22
movups (%r12), %xmm0
leaq -0x60(%rbp), %rdi
movaps %xmm0, (%rdi)
movq 0x3e896(%rip), %rax     # 0x55490
movss 0x13e8(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x8cce
movl %eax, (%rsp)
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
leaq -0x30(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x48(%rbp), %r9
callq 0x311b2
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq