// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_draw.cpp
// Function: ImGui::RenderMouseCursor(ImDrawList*, ImVec2, float, int, unsigned int, unsigned int, unsigned int)
void ImGui::RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow)
{
    if (mouse_cursor == ImGuiMouseCursor_None)
        return;
    IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT);

    ImFontAtlas* font_atlas = draw_list->_Data->Font->ContainerAtlas;
    ImVec2 offset, size, uv[4];
    if (font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &size, &uv[0], &uv[2]))
    {
        pos -= offset;
        const ImTextureID tex_id = font_atlas->TexID;
        draw_list->PushTextureID(tex_id);
        draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + size) * scale,    uv[2], uv[3], col_shadow);
        draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + size) * scale,    uv[2], uv[3], col_shadow);
        draw_list->AddImage(tex_id, pos,                        pos + size * scale,                     uv[2], uv[3], col_border);
        draw_list->AddImage(tex_id, pos,                        pos + size * scale,                     uv[0], uv[1], col_fill);
        draw_list->PopTextureID();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
cmpl $-0x1, %esi
je 0x8246a
movss %xmm1, -0x2c(%rbp)
movaps %xmm0, -0x50(%rbp)
movl %ecx, -0x40(%rbp)
cmpl $0x9, %esi
jae 0x8247c
movl %r8d, %r13d
movl %edx, %r15d
movq %rdi, %rbx
movq 0x38(%rdi), %rax
movq 0x8(%rax), %rax
movq 0x40(%rax), %r14
xorl %eax, %eax
leaq -0x60(%rbp), %rdx
movq %rax, (%rdx)
leaq -0x58(%rbp), %rcx
movq %rax, (%rcx)
xorps %xmm0, %xmm0
leaq -0x90(%rbp), %r12
movaps %xmm0, (%r12)
movaps %xmm0, -0x10(%r12)
leaq -0xa0(%rbp), %r8
movq %r14, %rdi
movq %r12, %r9
callq 0x7c30a
testb %al, %al
je 0x8246a
movaps -0x50(%rbp), %xmm2
movaps %xmm2, %xmm1
shufps $0x55, %xmm2, %xmm1     # xmm1 = xmm1[1,1],xmm2[1,1]
movss -0x60(%rbp), %xmm0
subss %xmm0, %xmm2
movaps %xmm2, -0x50(%rbp)
leaq -0x80(%rbp), %rax
movss %xmm2, (%rax)
subss -0x5c(%rbp), %xmm1
movaps %xmm1, -0xb0(%rbp)
movss %xmm1, 0x4(%rax)
movq 0x8(%r14), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x75d6a
xorps %xmm0, %xmm0
movss -0x2c(%rbp), %xmm1
movaps %xmm1, %xmm2
mulss %xmm0, %xmm2
movaps -0x50(%rbp), %xmm4
movaps %xmm4, %xmm0
addss %xmm1, %xmm0
movaps %xmm1, %xmm5
movaps -0xb0(%rbp), %xmm1
addss %xmm1, %xmm2
movaps %xmm2, -0xd0(%rbp)
unpcklps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
leaq -0x38(%rbp), %rax
movlps %xmm0, (%rax)
movq %rax, %rdx
movss -0x58(%rbp), %xmm3
movaps %xmm3, -0x70(%rbp)
movss -0x54(%rbp), %xmm2
movaps %xmm2, -0xe0(%rbp)
movss 0x32cb8(%rip), %xmm0    # 0xb4fe4
addss %xmm3, %xmm0
xorps %xmm3, %xmm3
addss %xmm2, %xmm3
mulss %xmm5, %xmm0
mulss %xmm5, %xmm3
addss %xmm4, %xmm0
addss %xmm1, %xmm3
movaps %xmm3, -0xc0(%rbp)
unpcklps %xmm3, %xmm0            # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movl %r15d, -0x3c(%rbp)
leaq -0x78(%rbp), %r15
movlps %xmm0, (%r15)
leaq -0x88(%rbp), %r9
movl %r13d, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
movq %r12, %r8
callq 0x79e9e
movss -0x2c(%rbp), %xmm2
movaps %xmm2, %xmm0
addss %xmm2, %xmm0
movaps -0x50(%rbp), %xmm1
addss %xmm1, %xmm0
unpcklps -0xd0(%rbp), %xmm0      # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
leaq -0x38(%rbp), %rax
movlps %xmm0, (%rax)
movss 0x334c5(%rip), %xmm0    # 0xb5868
addss -0x70(%rbp), %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
unpcklps -0xc0(%rbp), %xmm0      # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
movlps %xmm0, (%r15)
movl %r13d, (%rsp)
leaq -0x38(%rbp), %r15
leaq -0x78(%rbp), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %r8
leaq -0x88(%rbp), %r9
callq 0x79e9e
movaps -0x70(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
mulss %xmm1, %xmm0
movaps -0xe0(%rbp), %xmm2
mulss %xmm1, %xmm2
addss -0x50(%rbp), %xmm0
addss -0xb0(%rbp), %xmm2
unpcklps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movaps %xmm0, -0x70(%rbp)
movlps %xmm0, (%r15)
movl -0x40(%rbp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
leaq -0x80(%rbp), %r13
movq %r13, %rdx
movq %r15, %rcx
movq %r12, %r8
leaq -0x88(%rbp), %r9
callq 0x79e9e
movaps -0x70(%rbp), %xmm0
movlps %xmm0, (%r15)
leaq -0x98(%rbp), %r9
movl -0x3c(%rbp), %eax
movl %eax, (%rsp)
leaq -0x38(%rbp), %rcx
leaq -0xa0(%rbp), %r8
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x79e9e
movq %rbx, %rdi
callq 0x75e06
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4b944(%rip), %rdi     # 0xcddc7
leaq 0x4ad1c(%rip), %rsi     # 0xcd1a6
leaq 0x4b984(%rip), %rcx     # 0xcde15
movl $0xdc3, %edx            # imm = 0xDC3
callq 0xc140