// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_draw.cpp
// Function: ImDrawList::PathRect(ImVec2 const&, ImVec2 const&, float, int)
void ImDrawList::PathRect(const ImVec2& a, const ImVec2& b, float rounding, ImDrawCornerFlags rounding_corners)
{
    rounding = ImMin(rounding, ImFabs(b.x - a.x) * ( ((rounding_corners & ImDrawCornerFlags_Top)  == ImDrawCornerFlags_Top)  || ((rounding_corners & ImDrawCornerFlags_Bot)   == ImDrawCornerFlags_Bot)   ? 0.5f : 1.0f ) - 1.0f);
    rounding = ImMin(rounding, ImFabs(b.y - a.y) * ( ((rounding_corners & ImDrawCornerFlags_Left) == ImDrawCornerFlags_Left) || ((rounding_corners & ImDrawCornerFlags_Right) == ImDrawCornerFlags_Right) ? 0.5f : 1.0f ) - 1.0f);

    if (rounding <= 0.0f || rounding_corners == 0)
    {
        PathLineTo(a);
        PathLineTo(ImVec2(b.x, a.y));
        PathLineTo(b);
        PathLineTo(ImVec2(a.x, b.y));
    }
    else
    {
        const float rounding_tl = (rounding_corners & ImDrawCornerFlags_TopLeft) ? rounding : 0.0f;
        const float rounding_tr = (rounding_corners & ImDrawCornerFlags_TopRight) ? rounding : 0.0f;
        const float rounding_br = (rounding_corners & ImDrawCornerFlags_BotRight) ? rounding : 0.0f;
        const float rounding_bl = (rounding_corners & ImDrawCornerFlags_BotLeft) ? rounding : 0.0f;
        PathArcToFast(ImVec2(a.x + rounding_tl, a.y + rounding_tl), rounding_tl, 6, 9);
        PathArcToFast(ImVec2(b.x - rounding_tr, a.y + rounding_tr), rounding_tr, 9, 12);
        PathArcToFast(ImVec2(b.x - rounding_br, b.y - rounding_br), rounding_br, 0, 3);
        PathArcToFast(ImVec2(a.x + rounding_bl, b.y - rounding_bl), rounding_bl, 3, 6);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl %ecx, %eax
notl %eax
movss 0x38368(%rip), %xmm1    # 0x9c018
movss 0x38340(%rip), %xmm2    # 0x9bff8
movaps %xmm1, %xmm3
testb $0xc, %al
je 0x63cc2
movaps %xmm2, %xmm3
movaps %xmm1, %xmm4
testb $0x3, %al
je 0x63ccc
movaps %xmm3, %xmm4
movaps %xmm1, %xmm3
testb $0xa, %al
je 0x63cd6
movaps %xmm2, %xmm3
testb $0x5, %al
je 0x63cdd
movaps %xmm3, %xmm1
testl %ecx, %ecx
je 0x63e4e
movss (%r15), %xmm2
movss (%r14), %xmm5
subss %xmm2, %xmm5
movaps 0x38af6(%rip), %xmm6    # 0x9c7f0
andps %xmm6, %xmm5
movss 0x4(%r15), %xmm3
movss 0x4(%r14), %xmm7
mulss %xmm4, %xmm5
movss 0x382db(%rip), %xmm4    # 0x9bff0
addss %xmm4, %xmm5
subss %xmm3, %xmm7
minss %xmm5, %xmm0
andps %xmm6, %xmm7
mulss %xmm1, %xmm7
addss %xmm4, %xmm7
minss %xmm7, %xmm0
xorps %xmm4, %xmm4
ucomiss %xmm0, %xmm4
jae 0x63e4e
xorps %xmm1, %xmm1
testb $0x1, %cl
je 0x63d47
movaps %xmm0, %xmm1
xorps %xmm5, %xmm5
testb $0x2, %cl
je 0x63d52
movaps %xmm0, %xmm5
movss %xmm5, -0x38(%rbp)
xorps %xmm5, %xmm5
testb $0x8, %cl
je 0x63d62
movaps %xmm0, %xmm5
movss %xmm5, -0x3c(%rbp)
testb $0x4, %cl
je 0x63d6f
movaps %xmm0, %xmm4
movss %xmm4, -0x34(%rbp)
addss %xmm1, %xmm2
addss %xmm1, %xmm3
leaq -0x30(%rbp), %r13
movss %xmm2, (%r13)
movss %xmm3, 0x4(%r13)
pushq $0x6
popq %rdx
pushq $0x9
popq %r12
movq %rbx, %rdi
movq %r13, %rsi
movaps %xmm1, %xmm0
movl %r12d, %ecx
callq 0x63484
movss (%r14), %xmm2
movss -0x38(%rbp), %xmm0
subss %xmm0, %xmm2
movss 0x4(%r15), %xmm1
addss %xmm0, %xmm1
movss %xmm2, (%r13)
movss %xmm1, 0x4(%r13)
pushq $0xc
popq %rcx
movq %rbx, %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0x63484
movss (%r14), %xmm2
movss 0x4(%r14), %xmm1
movss -0x3c(%rbp), %xmm0
subss %xmm0, %xmm2
subss %xmm0, %xmm1
movss %xmm2, (%r13)
movss %xmm1, 0x4(%r13)
leaq -0x30(%rbp), %r12
pushq $0x3
popq %r13
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
movl %r13d, %ecx
callq 0x63484
movss (%r15), %xmm2
movss -0x34(%rbp), %xmm0
addss %xmm0, %xmm2
movss 0x4(%r14), %xmm1
subss %xmm0, %xmm1
movss %xmm2, (%r12)
movss %xmm1, 0x4(%r12)
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
movl %r13d, %edx
pushq $0x6
popq %rcx
callq 0x63484
jmp 0x63eb3
addq $0x78, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4c382
movss (%r14), %xmm0
movss 0x4(%r15), %xmm1
leaq -0x30(%rbp), %r12
movss %xmm0, (%r12)
movss %xmm1, 0x4(%r12)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4c382
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4c382
movss (%r15), %xmm0
movss 0x4(%r14), %xmm1
movss %xmm0, (%r12)
movss %xmm1, 0x4(%r12)
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x4c382
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq