// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_image
NK_API void
nk_draw_image(struct nk_command_buffer *b, struct nk_rect r,
    const struct nk_image *img, struct nk_color col)
{
    struct nk_command_image *cmd;
    NK_ASSERT(b);
    if (!b) return;
    if (b->use_clipping) {
        const struct nk_rect *c = &b->clip;
        if (c->w == 0 || c->h == 0 || !NK_INTERSECT(r.x, r.y, r.w, r.h, c->x, c->y, c->w, c->h))
            return;
    }

    cmd = (struct nk_command_image*)
        nk_command_buffer_push(b, NK_COMMAND_IMAGE, sizeof(*cmd));
    if (!cmd) return;
    cmd->x = (short)r.x;
    cmd->y = (short)r.y;
    cmd->w = (unsigned short)NK_MAX(0, r.w);
    cmd->h = (unsigned short)NK_MAX(0, r.h);
    cmd->img = *img;
    cmd->col = col;
}

// Assembly:
subq $0x48, %rsp
movlpd %xmm0, 0x38(%rsp)
movlpd %xmm1, 0x40(%rsp)
movl %edx, 0x34(%rsp)
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x33949
movq 0x916d3(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x7da79(%rip), %rsi     # 0xb13a0
leaq 0x7da90(%rip), %rdx     # 0xb13be
movl $0x2476, %ecx           # imm = 0x2476
movb $0x0, %al
callq 0x13ec0
movq 0x916af(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x3394b
cmpq $0x0, 0x28(%rsp)
jne 0x33958
jmp 0x33b12
movq 0x28(%rsp), %rax
cmpl $0x0, 0x18(%rax)
je 0x33a1d
movq 0x28(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movss 0x8(%rax), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x3398e
jp 0x3398e
jmp 0x33a16
movq 0x10(%rsp), %rax
movss 0xc(%rax), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x339a4
jp 0x339a4
jmp 0x33a16
movq 0x10(%rsp), %rax
movss (%rax), %xmm1
movss 0x38(%rsp), %xmm0
addss 0x40(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x33a16
movss 0x38(%rsp), %xmm1
movq 0x10(%rsp), %rax
movss (%rax), %xmm0
movq 0x10(%rsp), %rax
addss 0x8(%rax), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x33a16
movq 0x10(%rsp), %rax
movss 0x4(%rax), %xmm1
movss 0x3c(%rsp), %xmm0
addss 0x44(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x33a16
movss 0x3c(%rsp), %xmm1
movq 0x10(%rsp), %rax
movss 0x4(%rax), %xmm0
movq 0x10(%rsp), %rax
addss 0xc(%rax), %xmm0
ucomiss %xmm1, %xmm0
ja 0x33a1b
jmp 0x33b12
jmp 0x33a1d
movq 0x28(%rsp), %rdi
movl $0x11, %esi
movl $0x38, %edx
callq 0x31f50
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x33a43
jmp 0x33b12
cvttss2si 0x38(%rsp), %eax
movw %ax, %cx
movq 0x18(%rsp), %rax
movw %cx, 0x10(%rax)
movss 0x3c(%rsp), %xmm0
cvttss2si %xmm0, %eax
movw %ax, %cx
movq 0x18(%rsp), %rax
movw %cx, 0x12(%rax)
movss 0x40(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x33a87
movss 0x40(%rsp), %xmm0
movss %xmm0, 0xc(%rsp)
jmp 0x33a92
xorps %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
jmp 0x33a92
movss 0xc(%rsp), %xmm0
cvttss2si %xmm0, %eax
movw %ax, %cx
movq 0x18(%rsp), %rax
movw %cx, 0x14(%rax)
movss 0x44(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x33ac4
movss 0x44(%rsp), %xmm0
movss %xmm0, 0x8(%rsp)
jmp 0x33acf
xorps %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
jmp 0x33acf
movss 0x8(%rsp), %xmm0
cvttss2si %xmm0, %eax
movw %ax, %cx
movq 0x18(%rsp), %rax
movw %cx, 0x16(%rax)
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movq (%rcx), %rdx
movq %rdx, 0x18(%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x20(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x28(%rax)
movq 0x18(%rsp), %rax
movl 0x34(%rsp), %ecx
movl %ecx, 0x30(%rax)
addq $0x48, %rsp
retq
nopw (%rax,%rax)