// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_fill_rect_multi_color
NK_API void
nk_draw_list_fill_rect_multi_color(struct nk_draw_list *list, struct nk_rect rect,
    struct nk_color left, struct nk_color top, struct nk_color right,
    struct nk_color bottom)
{
    void *vtx;
    struct nk_colorf col_left, col_top;
    struct nk_colorf col_right, col_bottom;
    nk_draw_index *idx;
    nk_draw_index index;

    nk_color_fv(&col_left.r, left);
    nk_color_fv(&col_right.r, right);
    nk_color_fv(&col_top.r, top);
    nk_color_fv(&col_bottom.r, bottom);

    NK_ASSERT(list);
    if (!list) return;

    nk_draw_list_push_image(list, list->config.tex_null.texture);
    index = (nk_draw_index)list->vertex_count;
    vtx = nk_draw_list_alloc_vertices(list, 4);
    idx = nk_draw_list_alloc_elements(list, 6);
    if (!vtx || !idx) return;

    idx[0] = (nk_draw_index)(index+0); idx[1] = (nk_draw_index)(index+1);
    idx[2] = (nk_draw_index)(index+2); idx[3] = (nk_draw_index)(index+0);
    idx[4] = (nk_draw_index)(index+2); idx[5] = (nk_draw_index)(index+3);

    vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x, rect.y), list->config.tex_null.uv, col_left);
    vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x + rect.w, rect.y), list->config.tex_null.uv, col_top);
    vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x + rect.w, rect.y + rect.h), list->config.tex_null.uv, col_right);
    vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x, rect.y + rect.h), list->config.tex_null.uv, col_bottom);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movl %edx, %r15d
movaps %xmm1, (%rsp)
movaps %xmm0, 0x10(%rsp)
movq %rdi, %rbx
leaq 0x50(%rsp), %rdi
callq 0x12830
leaq 0x30(%rsp), %rdi
movl %r14d, %esi
callq 0x12830
leaq 0x40(%rsp), %rdi
movl %r15d, %esi
callq 0x12830
leaq 0x20(%rsp), %rdi
movl %ebp, %esi
callq 0x12830
testq %rbx, %rbx
je 0x2981f
movq 0x88(%rbx), %rsi
movq %rbx, %rdi
callq 0x28e35
movl 0xcc(%rbx), %r12d
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x283af
movq %rax, %r15
pushq $0x6
popq %rsi
movq %rbx, %rdi
callq 0x2842e
testq %r15, %r15
setne %cl
testq %rax, %rax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x29857
leaq 0x70(%rbx), %r14
movw %r12w, (%rax)
leal 0x1(%r12), %ecx
movw %cx, 0x2(%rax)
leal 0x2(%r12), %ecx
movw %cx, 0x4(%rax)
movw %r12w, 0x6(%rax)
movw %cx, 0x8(%rax)
addl $0x3, %r12d
movw %r12w, 0xa(%rax)
movsd 0x90(%rbx), %xmm1
movsd 0x50(%rsp), %xmm2
movsd 0x58(%rsp), %xmm3
movq %r15, %rdi
movq %r14, %rsi
movaps 0x10(%rsp), %xmm0
callq 0x28470
movsd 0x90(%rbx), %xmm1
movsd 0x40(%rsp), %xmm2
movsd 0x48(%rsp), %xmm3
movaps (%rsp), %xmm4
movaps 0x10(%rsp), %xmm0
addps %xmm0, %xmm4
movaps %xmm4, (%rsp)
shufps $0x1, %xmm4, %xmm0      # xmm0 = xmm0[1,0],xmm4[0,0]
shufps $0xe2, %xmm4, %xmm0     # xmm0 = xmm0[2,0],xmm4[2,3]
movq %rax, %rdi
movq %r14, %rsi
callq 0x28470
movsd 0x90(%rbx), %xmm1
movsd 0x30(%rsp), %xmm2
movsd 0x38(%rsp), %xmm3
movq %rax, %rdi
movq %r14, %rsi
movaps (%rsp), %xmm0
callq 0x28470
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
shufps $0x1, %xmm1, %xmm0      # xmm0 = xmm0[1,0],xmm1[0,0]
shufps $0xe2, %xmm1, %xmm0     # xmm0 = xmm0[2,0],xmm1[2,3]
movsd 0x90(%rbx), %xmm1
movsd 0x20(%rsp), %xmm2
movsd 0x28(%rsp), %xmm3
movq %rax, %rdi
movq %r14, %rsi
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x28470
movq 0x5b7ca(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x404dc(%rip), %rsi     # 0x69d0c
leaq 0x404f3(%rip), %rdx     # 0x69d2a
movl $0x28fb, %ecx           # imm = 0x28FB
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x13960
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq