// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_add_image
NK_API void
nk_draw_list_add_image(struct nk_draw_list *list, struct nk_image texture,
    struct nk_rect rect, struct nk_color color)
{
    NK_ASSERT(list);
    if (!list) return;
    /* push new command with given texture */
    nk_draw_list_push_image(list, texture.handle);
    if (nk_image_is_subimage(&texture)) {
        /* add region inside of the texture  */
        struct nk_vec2 uv[2];
        uv[0].x = (float)texture.region[0]/(float)texture.w;
        uv[0].y = (float)texture.region[1]/(float)texture.h;
        uv[1].x = (float)(texture.region[0] + texture.region[2])/(float)texture.w;
        uv[1].y = (float)(texture.region[1] + texture.region[3])/(float)texture.h;
        nk_draw_list_push_rect_uv(list, nk_vec2(rect.x, rect.y),
            nk_vec2(rect.x + rect.w, rect.y + rect.h),  uv[0], uv[1], color);
    } else nk_draw_list_push_rect_uv(list, nk_vec2(rect.x, rect.y),
            nk_vec2(rect.x + rect.w, rect.y + rect.h),
            nk_vec2(0.0f, 0.0f), nk_vec2(1.0f, 1.0f),color);
}

// Assembly:
subq $0x88, %rsp
leaq 0x90(%rsp), %rax
movq %rax, 0x18(%rsp)
movlpd %xmm0, 0x78(%rsp)
movlpd %xmm1, 0x80(%rsp)
movl %esi, 0x74(%rsp)
movq %rdi, 0x68(%rsp)
cmpq $0x0, 0x68(%rsp)
jne 0x3a4b7
movq 0x8ab65(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x76f0b(%rip), %rsi     # 0xb13a0
leaq 0x76f22(%rip), %rdx     # 0xb13be
movl $0x296d, %ecx           # imm = 0x296D
movb $0x0, %al
callq 0x13ec0
movq 0x8ab41(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x3a4b9
cmpq $0x0, 0x68(%rsp)
jne 0x3a4c6
jmp 0x3a680
movq 0x18(%rsp), %rax
movq 0x68(%rsp), %rdi
movq (%rax), %rsi
callq 0x388c0
movq 0x18(%rsp), %rdi
callq 0x14970
cmpl $0x0, %eax
je 0x3a5e1
movq 0x18(%rsp), %rax
movzwl 0xc(%rax), %ecx
cvtsi2ss %ecx, %xmm0
movzwl 0x8(%rax), %ecx
cvtsi2ss %ecx, %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x50(%rsp)
movzwl 0xe(%rax), %ecx
cvtsi2ss %ecx, %xmm0
movzwl 0xa(%rax), %ecx
cvtsi2ss %ecx, %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x54(%rsp)
movzwl 0xc(%rax), %ecx
movzwl 0x10(%rax), %edx
addl %edx, %ecx
cvtsi2ss %ecx, %xmm0
movzwl 0x8(%rax), %ecx
cvtsi2ss %ecx, %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x58(%rsp)
movzwl 0xe(%rax), %ecx
movzwl 0x12(%rax), %edx
addl %edx, %ecx
cvtsi2ss %ecx, %xmm0
movzwl 0xa(%rax), %eax
cvtsi2ss %eax, %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x5c(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x10(%rsp)
movss 0x78(%rsp), %xmm0
movss 0x7c(%rsp), %xmm1
callq 0x13460
movlpd %xmm0, 0x48(%rsp)
movss 0x80(%rsp), %xmm2
movss 0x78(%rsp), %xmm0
movss 0x7c(%rsp), %xmm1
addss %xmm2, %xmm0
movss 0x84(%rsp), %xmm2
addss %xmm2, %xmm1
callq 0x13460
movq 0x10(%rsp), %rdi
movlpd %xmm0, 0x40(%rsp)
movsd 0x48(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movsd 0x50(%rsp), %xmm2
movsd 0x58(%rsp), %xmm3
movl 0x74(%rsp), %esi
callq 0x3a710
jmp 0x3a680
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movss 0x78(%rsp), %xmm0
movss 0x7c(%rsp), %xmm1
callq 0x13460
movlpd %xmm0, 0x38(%rsp)
movss 0x80(%rsp), %xmm2
movss 0x78(%rsp), %xmm0
movss 0x7c(%rsp), %xmm1
addss %xmm2, %xmm0
movss 0x84(%rsp), %xmm2
addss %xmm2, %xmm1
callq 0x13460
movlpd %xmm0, 0x30(%rsp)
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0x13460
movlpd %xmm0, 0x28(%rsp)
movss 0x72e9c(%rip), %xmm1    # 0xad4e8
movaps %xmm1, %xmm0
callq 0x13460
movq 0x8(%rsp), %rdi
movlpd %xmm0, 0x20(%rsp)
movsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm3
movl 0x74(%rsp), %esi
callq 0x3a710
addq $0x88, %rsp
retq
nopl (%rax,%rax)