// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl %ecx, %eax
notl %eax
movss 0x3d946(%rip), %xmm1    # 0xb7004
movss 0x3d91e(%rip), %xmm2    # 0xb6fe4
movaps %xmm1, %xmm3
testb $0xc, %al
je 0x796d0
movaps %xmm2, %xmm3
movaps %xmm1, %xmm4
testb $0x3, %al
je 0x796da
movaps %xmm3, %xmm4
movaps %xmm1, %xmm3
testb $0xa, %al
je 0x796e4
movaps %xmm2, %xmm3
testb $0x5, %al
je 0x796eb
movaps %xmm3, %xmm1
testl %ecx, %ecx
je 0x79864
movss (%r15), %xmm2
movss (%r14), %xmm5
subss %xmm2, %xmm5
movaps 0x3e0c8(%rip), %xmm6    # 0xb77d0
andps %xmm6, %xmm5
movss 0x4(%r15), %xmm3
movss 0x4(%r14), %xmm7
mulss %xmm4, %xmm5
movss 0x3d8ad(%rip), %xmm4    # 0xb6fd0
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 0x79864
xorps %xmm1, %xmm1
testb $0x1, %cl
je 0x79755
movaps %xmm0, %xmm1
xorps %xmm5, %xmm5
testb $0x2, %cl
je 0x79760
movaps %xmm0, %xmm5
movss %xmm5, -0x38(%rbp)
xorps %xmm5, %xmm5
testb $0x8, %cl
je 0x79770
movaps %xmm0, %xmm5
movss %xmm5, -0x2c(%rbp)
testb $0x4, %cl
je 0x7977d
movaps %xmm0, %xmm4
movss %xmm4, -0x3c(%rbp)
addss %xmm1, %xmm2
addss %xmm1, %xmm3
leaq -0x44(%rbp), %r12
movss %xmm2, (%r12)
movss %xmm3, 0x4(%r12)
movq %rbx, %rdi
movq %r12, %rsi
movaps %xmm1, %xmm0
movl $0x6, %edx
movl $0x9, %ecx
callq 0x787a2
movss (%r14), %xmm2
movss -0x38(%rbp), %xmm0
subss %xmm0, %xmm2
movss 0x4(%r15), %xmm1
addss %xmm0, %xmm1
movss %xmm2, (%r12)
movss %xmm1, 0x4(%r12)
movq %rbx, %rdi
movq %r12, %rsi
movl $0x9, %edx
movl $0xc, %ecx
callq 0x787a2
movss (%r14), %xmm2
movss 0x4(%r14), %xmm1
movss -0x2c(%rbp), %xmm0
subss %xmm0, %xmm2
subss %xmm0, %xmm1
movss %xmm2, (%r12)
movss %xmm1, 0x4(%r12)
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
movl $0x3, %ecx
callq 0x787a2
movss (%r15), %xmm2
movss -0x3c(%rbp), %xmm0
addss %xmm0, %xmm2
movss 0x4(%r14), %xmm1
subss %xmm0, %xmm1
movss %xmm2, (%r12)
movss %xmm1, 0x4(%r12)
leaq -0x44(%rbp), %rsi
movq %rbx, %rdi
movl $0x3, %edx
movl $0x6, %ecx
callq 0x787a2
jmp 0x79aad
movl 0x78(%rbx), %r13d
movl 0x7c(%rbx), %eax
cmpl %eax, %r13d
jne 0x798d7
incl %r13d
testl %eax, %eax
je 0x79884
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x79889
movl $0x8, %ecx
cmpl %r13d, %ecx
cmovgl %ecx, %r13d
cmpl %r13d, %eax
jge 0x798d7
movslq %r13d, %rdi
shlq $0x3, %rdi
callq 0x424fb
movq %rax, %r12
movq 0x80(%rbx), %rsi
testq %rsi, %rsi
je 0x798cc
movslq 0x78(%rbx), %rdx
shlq $0x3, %rdx
movq %r12, %rdi
callq 0xc080
movq 0x80(%rbx), %rdi
callq 0x425d4
movq %r12, 0x80(%rbx)
movl %r13d, 0x7c(%rbx)
movq 0x80(%rbx), %rax
movslq 0x78(%rbx), %rcx
movq (%r15), %rdx
movq %rdx, (%rax,%rcx,8)
movl 0x78(%rbx), %r13d
movl 0x7c(%rbx), %eax
leal 0x1(%r13), %ecx
movl %ecx, 0x78(%rbx)
movl (%r14), %r12d
movl 0x4(%r15), %edx
cmpl %eax, %ecx
jne 0x79975
addl $0x2, %r13d
testl %eax, %eax
je 0x79917
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x7991c
movl $0x8, %ecx
cmpl %r13d, %ecx
cmovgl %ecx, %r13d
cmpl %r13d, %eax
jge 0x79975
movl %edx, -0x2c(%rbp)
movslq %r13d, %rdi
shlq $0x3, %rdi
callq 0x424fb
movq 0x80(%rbx), %rsi
testq %rsi, %rsi
je 0x79967
movslq 0x78(%rbx), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
movq %rax, -0x38(%rbp)
callq 0xc080
movq 0x80(%rbx), %rdi
callq 0x425d4
movq -0x38(%rbp), %rax
movq %rax, 0x80(%rbx)
movl %r13d, 0x7c(%rbx)
movl -0x2c(%rbp), %edx
movq 0x80(%rbx), %rax
movslq 0x78(%rbx), %rcx
movl %r12d, (%rax,%rcx,8)
movl %edx, 0x4(%rax,%rcx,8)
movl 0x78(%rbx), %r13d
movl 0x7c(%rbx), %eax
leal 0x1(%r13), %ecx
movl %ecx, 0x78(%rbx)
cmpl %eax, %ecx
jne 0x79a02
addl $0x2, %r13d
testl %eax, %eax
je 0x799af
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x799b4
movl $0x8, %ecx
cmpl %r13d, %ecx
cmovgl %ecx, %r13d
cmpl %r13d, %eax
jge 0x79a02
movslq %r13d, %rdi
shlq $0x3, %rdi
callq 0x424fb
movq %rax, %r12
movq 0x80(%rbx), %rsi
testq %rsi, %rsi
je 0x799f7
movslq 0x78(%rbx), %rdx
shlq $0x3, %rdx
movq %r12, %rdi
callq 0xc080
movq 0x80(%rbx), %rdi
callq 0x425d4
movq %r12, 0x80(%rbx)
movl %r13d, 0x7c(%rbx)
movq 0x80(%rbx), %rax
movslq 0x78(%rbx), %rcx
movq (%r14), %rdx
movq %rdx, (%rax,%rcx,8)
movl 0x78(%rbx), %r12d
movl 0x7c(%rbx), %eax
leal 0x1(%r12), %ecx
movl %ecx, 0x78(%rbx)
movl (%r15), %r15d
movl 0x4(%r14), %r13d
cmpl %eax, %ecx
jne 0x79a96
addl $0x2, %r12d
testl %eax, %eax
je 0x79a43
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x79a48
movl $0x8, %ecx
cmpl %r12d, %ecx
cmovgl %ecx, %r12d
cmpl %r12d, %eax
jge 0x79a96
movslq %r12d, %rdi
shlq $0x3, %rdi
callq 0x424fb
movq %rax, %r14
movq 0x80(%rbx), %rsi
testq %rsi, %rsi
je 0x79a8b
movslq 0x78(%rbx), %rdx
shlq $0x3, %rdx
movq %r14, %rdi
callq 0xc080
movq 0x80(%rbx), %rdi
callq 0x425d4
movq %r14, 0x80(%rbx)
movl %r12d, 0x7c(%rbx)
movq 0x80(%rbx), %rax
movslq 0x78(%rbx), %rcx
movl %r15d, (%rax,%rcx,8)
movl %r13d, 0x4(%rax,%rcx,8)
incl 0x78(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq