// File: /workspace/github_cpp_makefile_star2_O3/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 0x3eeed(%rip), %rax     # 0x55480
movq 0x1758(%rax), %r15
movb $0x1, 0x72(%r15)
cmpb $0x0, 0x74(%r15)
jne 0x16798
movq %r9, %r13
movq %r8, %r12
movq %rcx, %r14
movq %rdx, %rbx
movss 0xa8(%r15), %xmm0
addss (%rsi), %xmm0
movss 0xac(%r15), %xmm1
addss 0x4(%rsi), %xmm1
movaps %xmm0, %xmm2
unpcklps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
movq 0xa8(%r15), %rax
movq %rax, -0x38(%rbp)
movlps %xmm2, -0x30(%rbp)
movss 0xc(%r9), %xmm3
movd %eax, %xmm2
shrq $0x20, %rax
xorps %xmm4, %xmm4
ucomiss %xmm4, %xmm3
movd %eax, %xmm3
movq %rdi, -0x48(%rbp)
jbe 0x1661e
movss 0x26dc8(%rip), %xmm4    # 0x3d3d4
addss %xmm4, %xmm0
movss %xmm0, -0x30(%rbp)
addss %xmm4, %xmm1
movss %xmm1, -0x2c(%rbp)
subss %xmm2, %xmm0
subss %xmm3, %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
leaq -0x60(%rbp), %rdi
movlps %xmm0, (%rdi)
xorps %xmm0, %xmm0
callq 0xa99d
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0xaaef
testb %al, %al
je 0x16798
movq %rbx, -0x40(%rbp)
movss 0xc(%r13), %xmm0
ucomiss 0x26d7c(%rip), %xmm0    # 0x3d3d8
movq 0x270(%r15), %rbx
jbe 0x16750
movups (%r13), %xmm0
leaq -0x60(%rbp), %r13
movaps %xmm0, (%r13)
movq 0x3ee02(%rip), %rax     # 0x55480
movss 0x13e8(%rax), %xmm0
mulss 0xc(%r13), %xmm0
movss %xmm0, 0xc(%r13)
movq %r13, %rdi
callq 0x8c82
movq %r14, -0x68(%rbp)
leaq -0x38(%rbp), %r14
xorps %xmm0, %xmm0
movq %rbx, %rdi
movq %r14, %rsi
leaq -0x30(%rbp), %rdx
movl %eax, %ecx
movl $0xf, %r8d
callq 0x2f8b6
movq 0x270(%r15), %rbx
movss 0x26cc5(%rip), %xmm0    # 0x3d390
movss (%r14), %xmm1
addss %xmm0, %xmm1
addss 0x4(%r14), %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
leaq -0x78(%rbp), %r15
movlps %xmm1, (%r15)
movss 0x26caf(%rip), %xmm0    # 0x3d39c
movss 0x8(%r14), %xmm1
addss %xmm0, %xmm1
addss 0xc(%r14), %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
leaq -0x70(%rbp), %r14
movlps %xmm1, (%r14)
movups (%r12), %xmm0
movaps %xmm0, (%r13)
movq 0x3ed67(%rip), %rax     # 0x55480
movss 0x13e8(%rax), %xmm0
mulss 0xc(%r13), %xmm0
movss %xmm0, 0xc(%r13)
leaq -0x60(%rbp), %rdi
callq 0x8c82
movl %eax, (%rsp)
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
movq -0x40(%rbp), %r8
movq -0x68(%rbp), %r9
jmp 0x16793
movups (%r12), %xmm0
leaq -0x60(%rbp), %rdi
movaps %xmm0, (%rdi)
movq 0x3ed1d(%rip), %rax     # 0x55480
movss 0x13e8(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x8c82
movl %eax, (%rsp)
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
leaq -0x30(%rbp), %rcx
movq -0x40(%rbp), %r8
movq %r14, %r9
callq 0x3090a
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq