// File: 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
subq $0x1b0, %rsp            # imm = 0x1B0
movlpd %xmm0, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movss %xmm1, -0x14(%rbp)
movl %esi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
cmpl $-0x1, -0x18(%rbp)
jne 0x11d001
jmp 0x11d455
xorl %eax, %eax
cmpl $-0x1, -0x18(%rbp)
movb %al, -0xf9(%rbp)
jle 0x11d01c
cmpl $0x9, -0x18(%rbp)
setl %al
movb %al, -0xf9(%rbp)
movb -0xf9(%rbp), %al
testb $0x1, %al
jne 0x11d028
jmp 0x11d02a
jmp 0x11d049
leaq 0x6de6d(%rip), %rdi     # 0x18ae9e
leaq 0x6d13e(%rip), %rsi     # 0x18a176
movl $0xdc3, %edx            # imm = 0xDC3
leaq 0x6dea8(%rip), %rcx     # 0x18aeec
callq 0xd180
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x40(%rax), %rax
movq %rax, -0x30(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xe7de0
leaq -0x40(%rbp), %rdi
callq 0xe7de0
leaq -0x60(%rbp), %rax
movq %rax, %rcx
addq $0x20, %rcx
movq %rcx, -0x110(%rbp)
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0xe7de0
movq -0x118(%rbp), %rax
movq -0x110(%rbp), %rcx
addq $0x8, %rax
cmpq %rcx, %rax
movq %rax, -0x108(%rbp)
jne 0x11d088
movq -0x30(%rbp), %rdi
movl -0x18(%rbp), %esi
leaq -0x60(%rbp), %r8
leaq -0x60(%rbp), %r9
addq $0x10, %r9
leaq -0x38(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0x1173b0
testb $0x1, %al
jne 0x11d0e2
jmp 0x11d455
leaq -0x8(%rbp), %rdi
movq %rdi, -0x130(%rbp)
leaq -0x38(%rbp), %rsi
callq 0x11d460
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x10f740
movq -0x10(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x188(%rbp)
leaq -0x80(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
movss 0x53b04(%rip), %xmm0    # 0x170c3c
movss %xmm0, -0x19c(%rbp)
xorps %xmm1, %xmm1
movss %xmm1, -0x178(%rbp)
callq 0xbf4c0
movq -0x1a8(%rbp), %rdi
movss -0x14(%rbp), %xmm0
callq 0x1116c0
movq -0x130(%rbp), %rdi
movlpd %xmm0, -0x78(%rbp)
leaq -0x78(%rbp), %rsi
callq 0x111670
movss -0x178(%rbp), %xmm1
movaps %xmm0, %xmm2
movss -0x19c(%rbp), %xmm0
movlpd %xmm2, -0x70(%rbp)
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0xbf4c0
movq -0x198(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movq %rsi, -0x138(%rbp)
callq 0x111670
movlpd %xmm0, -0x98(%rbp)
movss -0x14(%rbp), %xmm0
leaq -0x98(%rbp), %rdi
callq 0x1116c0
movq -0x130(%rbp), %rdi
movlpd %xmm0, -0x90(%rbp)
leaq -0x90(%rbp), %rsi
callq 0x111670
movq -0x190(%rbp), %rdi
movq -0x188(%rbp), %rsi
movlpd %xmm0, -0x88(%rbp)
leaq -0x50(%rbp), %r8
movq %r8, -0x148(%rbp)
leaq -0x48(%rbp), %r9
movq %r9, -0x140(%rbp)
movl -0x24(%rbp), %ecx
movq %rsp, %rax
movl %ecx, (%rax)
leaq -0x70(%rbp), %rdx
leaq -0x88(%rbp), %rcx
callq 0x1146d0
movss -0x178(%rbp), %xmm1
movq -0x10(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x160(%rbp)
leaq -0xb8(%rbp), %rdi
movq %rdi, -0x180(%rbp)
movss 0x54d68(%rip), %xmm0    # 0x171fcc
movss %xmm0, -0x174(%rbp)
callq 0xbf4c0
movq -0x180(%rbp), %rdi
movss -0x14(%rbp), %xmm0
callq 0x1116c0
movq -0x130(%rbp), %rdi
movlpd %xmm0, -0xb0(%rbp)
leaq -0xb0(%rbp), %rsi
callq 0x111670
movss -0x178(%rbp), %xmm1
movaps %xmm0, %xmm2
movss -0x174(%rbp), %xmm0
movlpd %xmm2, -0xa8(%rbp)
leaq -0xd8(%rbp), %rdi
movq %rdi, -0x170(%rbp)
callq 0xbf4c0
movq -0x170(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0x111670
movlpd %xmm0, -0xd0(%rbp)
movss -0x14(%rbp), %xmm0
leaq -0xd0(%rbp), %rdi
callq 0x1116c0
movq -0x130(%rbp), %rdi
movlpd %xmm0, -0xc8(%rbp)
leaq -0xc8(%rbp), %rsi
callq 0x111670
movq -0x168(%rbp), %rdi
movq -0x160(%rbp), %rsi
movq -0x148(%rbp), %r8
movq -0x140(%rbp), %r9
movlpd %xmm0, -0xc0(%rbp)
movl -0x24(%rbp), %ecx
movq %rsp, %rax
movl %ecx, (%rax)
leaq -0xa8(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
callq 0x1146d0
movq -0x138(%rbp), %rdi
movq -0x10(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x150(%rbp)
movss -0x14(%rbp), %xmm0
callq 0x1116c0
movq -0x130(%rbp), %rdi
movlpd %xmm0, -0xe8(%rbp)
leaq -0xe8(%rbp), %rsi
callq 0x111670
movq -0x158(%rbp), %rdi
movq -0x150(%rbp), %rsi
movq -0x148(%rbp), %r8
movq -0x140(%rbp), %r9
movq -0x130(%rbp), %rdx
movlpd %xmm0, -0xe0(%rbp)
movl -0x20(%rbp), %ecx
movq %rsp, %rax
movl %ecx, (%rax)
leaq -0xe0(%rbp), %rcx
callq 0x1146d0
movq -0x138(%rbp), %rdi
movq -0x10(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x120(%rbp)
movss -0x14(%rbp), %xmm0
callq 0x1116c0
movq -0x130(%rbp), %rdi
movlpd %xmm0, -0xf8(%rbp)
leaq -0xf8(%rbp), %rsi
callq 0x111670
movq -0x128(%rbp), %rdi
movq -0x120(%rbp), %rsi
movlpd %xmm0, -0xf0(%rbp)
leaq -0x60(%rbp), %r8
leaq -0x60(%rbp), %r9
addq $0x8, %r9
movl -0x1c(%rbp), %eax
leaq -0x8(%rbp), %rdx
leaq -0xf0(%rbp), %rcx
movl %eax, (%rsp)
callq 0x1146d0
movq -0x10(%rbp), %rdi
callq 0x10f780
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbp
retq
nop