// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
testq %rdi, %rdi
je 0x2aac8
movaps %xmm0, %xmm3
movq %rdi, %rbx
movaps %xmm1, %xmm0
subps %xmm3, %xmm0
movaps 0x42b32(%rip), %xmm4    # 0x6d570
movaps %xmm0, %xmm5
xorps %xmm4, %xmm5
maxss %xmm0, %xmm5
minss %xmm5, %xmm2
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
xorps %xmm0, %xmm4
maxss %xmm0, %xmm4
minss %xmm4, %xmm2
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm2
movaps %xmm1, (%rsp)
jne 0x2aafd
jp 0x2aafd
movq %rbx, %rdi
movaps %xmm3, %xmm0
movaps %xmm3, 0x20(%rsp)
callq 0x12970
movaps 0x20(%rsp), %xmm0
movaps (%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 0x12970
movq %rbx, %rdi
movaps (%rsp), %xmm0
callq 0x12970
movaps (%rsp), %xmm0
movaps 0x20(%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
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x12970
movq 0x5c521(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x462c3(%rip), %rsi     # 0x70d9c
leaq 0x462da(%rip), %rdx     # 0x70dba
movl $0x287c, %ecx           # imm = 0x287C
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x13780
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
movaps %xmm1, 0x10(%rsp)
movaps %xmm2, 0x50(%rsp)
shufps $0x0, %xmm2, %xmm2      # xmm2 = xmm2[0,0,0,0]
addps %xmm2, %xmm3
movl $0x8, %r14d
movaps %xmm3, 0x20(%rsp)
movaps %xmm2, 0x30(%rsp)
movsd (%rbx,%r14,8), %xmm0
mulps %xmm2, %xmm0
addps %xmm3, %xmm0
movq %rbx, %rdi
callq 0x12970
movaps 0x30(%rsp), %xmm2
movaps 0x20(%rsp), %xmm3
incq %r14
cmpq $0xc, %r14
jne 0x2ab22
movaps (%rsp), %xmm0
subss 0x50(%rsp), %xmm0
movaps %xmm0, (%rsp)
movss %xmm0, %xmm3            # xmm3 = xmm0[0],xmm3[1,2,3]
movaps %xmm3, 0x40(%rsp)
movl $0x9, %r14d
xorl %r15d, %r15d
cmpq $0xc, %r14
movq %r14, %rax
cmoveq %r15, %rax
movsd 0x10(%rbx,%rax,8), %xmm0
mulps %xmm2, %xmm0
addps 0x40(%rsp), %xmm0
movq %rbx, %rdi
callq 0x12970
movaps 0x30(%rsp), %xmm2
incq %r14
cmpq $0xd, %r14
jne 0x2ab69
movaps 0x10(%rsp), %xmm0
subss 0x50(%rsp), %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, %xmm1
movaps (%rsp), %xmm0
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
movaps %xmm1, 0x40(%rsp)
movl $0x2, %r14d
movsd (%rbx,%r14,8), %xmm0
mulps %xmm2, %xmm0
addps 0x40(%rsp), %xmm0
movq %rbx, %rdi
callq 0x12970
movaps 0x30(%rsp), %xmm2
incq %r14
cmpq $0x6, %r14
jne 0x2abc1
movaps 0x20(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
movl $0x5, %r14d
movaps %xmm1, 0x10(%rsp)
movsd (%rbx,%r14,8), %xmm0
mulps %xmm2, %xmm0
addps %xmm1, %xmm0
movq %rbx, %rdi
callq 0x12970
movaps 0x30(%rsp), %xmm2
movaps 0x10(%rsp), %xmm1
incq %r14
cmpq $0x9, %r14
jne 0x2ac01
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq