// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_path_rect_to
NK_API void
nk_draw_list_path_rect_to(struct nk_draw_list *list, struct nk_vec2 a,
    struct nk_vec2 b, float rounding)
{
    float r;
    NK_ASSERT(list);
    if (!list) return;
    r = rounding;
    r = NK_MIN(r, ((b.x-a.x) < 0) ? -(b.x-a.x): (b.x-a.x));
    r = NK_MIN(r, ((b.y-a.y) < 0) ? -(b.y-a.y): (b.y-a.y));

    if (r == 0.0f) {
        nk_draw_list_path_line_to(list, a);
        nk_draw_list_path_line_to(list, nk_vec2(b.x,a.y));
        nk_draw_list_path_line_to(list, b);
        nk_draw_list_path_line_to(list, nk_vec2(a.x,b.y));
    } else {
        nk_draw_list_path_arc_to_fast(list, nk_vec2(a.x + r, a.y + r), r, 6, 9);
        nk_draw_list_path_arc_to_fast(list, nk_vec2(b.x - r, a.y + r), r, 9, 12);
        nk_draw_list_path_arc_to_fast(list, nk_vec2(b.x - r, b.y - r), r, 0, 3);
        nk_draw_list_path_arc_to_fast(list, nk_vec2(a.x + r, b.y - r), r, 3, 6);
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
testq %rdi, %rdi
je 0x29150
movq %rdi, %rbx
movaps %xmm1, %xmm3
subss %xmm0, %xmm3
movaps 0x3d4bb(%rip), %xmm4    # 0x66570
movaps %xmm3, %xmm5
xorps %xmm4, %xmm5
maxss %xmm3, %xmm5
minss %xmm5, %xmm2
movaps %xmm1, 0x10(%rsp)
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
movaps %xmm0, %xmm5
shufps $0x55, %xmm0, %xmm5     # xmm5 = xmm5[1,1],xmm0[1,1]
movaps %xmm1, %xmm3
subss %xmm5, %xmm3
xorps %xmm3, %xmm4
maxss %xmm3, %xmm4
minss %xmm4, %xmm2
xorps %xmm3, %xmm3
ucomiss %xmm3, %xmm2
jne 0x29184
jp 0x29184
movq %rbx, %rdi
movaps %xmm0, 0x20(%rsp)
callq 0x12a20
movaps 0x20(%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]
movq %rbx, %rdi
callq 0x12a20
movq %rbx, %rdi
movaps 0x10(%rsp), %xmm0
callq 0x12a20
movaps 0x20(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
shufps $0x1, %xmm0, %xmm1      # xmm1 = xmm1[1,0],xmm0[0,0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
movaps %xmm1, %xmm0
movq %rbx, %rdi
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x12a20
movq 0x5be99(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x40bab(%rip), %rsi     # 0x69d0c
leaq 0x40bc2(%rip), %rdx     # 0x69d2a
movl $0x287c, %ecx           # imm = 0x287C
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x13960
addss %xmm2, %xmm0
movaps %xmm0, 0x20(%rsp)
addss %xmm2, %xmm5
movaps %xmm5, 0x40(%rsp)
unpcklps %xmm5, %xmm0            # xmm0 = xmm0[0],xmm5[0],xmm0[1],xmm5[1]
pushq $0x6
popq %rbp
pushq $0x9
popq %r14
movq %rbx, %rdi
movaps %xmm1, 0x30(%rsp)
movaps %xmm2, %xmm1
movl %ebp, %esi
movl %r14d, %edx
movss %xmm2, 0xc(%rsp)
callq 0x12fd0
movaps 0x10(%rsp), %xmm0
movss 0xc(%rsp), %xmm1
subss %xmm1, %xmm0
movaps %xmm0, 0x10(%rsp)
unpcklps 0x40(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
pushq $0xc
popq %rdx
movq %rbx, %rdi
movl %r14d, %esi
callq 0x12fd0
movaps 0x30(%rsp), %xmm2
movss 0xc(%rsp), %xmm1
subss %xmm1, %xmm2
movaps %xmm2, 0x30(%rsp)
movaps 0x10(%rsp), %xmm0
unpcklps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
pushq $0x3
popq %r14
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
callq 0x12fd0
movaps 0x20(%rsp), %xmm0
unpcklps 0x30(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
movq %rbx, %rdi
movss 0xc(%rsp), %xmm1
movl %r14d, %esi
movl %ebp, %edx
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x12fd0