// File: /workspace/github_cpp_makefile_star2_O3/donfreiday[P]gb/./imgui/imgui_draw.cpp
// Function: ImDrawList::PathRect(ImVec2 const&, ImVec2 const&, float, int)
void ImDrawList::PathRect(const ImVec2& a, const ImVec2& b, float rounding, int rounding_corners)
{
    float r = rounding;
    r = ImMin(r, fabsf(b.x-a.x) * ( ((rounding_corners&(1|2))==(1|2)) || ((rounding_corners&(4|8))==(4|8)) ? 0.5f : 1.0f ) - 1.0f);
    r = ImMin(r, fabsf(b.y-a.y) * ( ((rounding_corners&(1|8))==(1|8)) || ((rounding_corners&(2|4))==(2|4)) ? 0.5f : 1.0f ) - 1.0f);

    if (r == 0.0f || rounding_corners == 0)
    {
        PathLineTo(a);
        PathLineTo(ImVec2(b.x,a.y));
        PathLineTo(b);
        PathLineTo(ImVec2(a.x,b.y));
    }
    else
    {
        const float r0 = (rounding_corners & 1) ? r : 0.0f;
        const float r1 = (rounding_corners & 2) ? r : 0.0f;
        const float r2 = (rounding_corners & 4) ? r : 0.0f;
        const float r3 = (rounding_corners & 8) ? r : 0.0f;
        PathArcToFast(ImVec2(a.x+r0,a.y+r0), r0, 6, 9);
        PathArcToFast(ImVec2(b.x-r1,a.y+r1), r1, 9, 12);
        PathArcToFast(ImVec2(b.x-r2,b.y-r2), r2, 0, 3);
        PathArcToFast(ImVec2(a.x+r3,b.y-r3), r3, 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 0xe090(%rip), %xmm1     # 0x3d3cc
movss 0xe04c(%rip), %xmm2     # 0x3d390
movaps %xmm1, %xmm3
testb $0xc, %al
je 0x2f34e
movaps %xmm2, %xmm3
movaps %xmm1, %xmm4
testb $0x3, %al
je 0x2f358
movaps %xmm3, %xmm4
movaps %xmm1, %xmm3
testb $0x6, %al
je 0x2f362
movaps %xmm2, %xmm3
testb $0x9, %al
je 0x2f369
movaps %xmm3, %xmm1
testl %ecx, %ecx
je 0x2f4e4
movss (%r15), %xmm2
movss (%r14), %xmm5
subss %xmm2, %xmm5
movaps 0xdf5a(%rip), %xmm6     # 0x3d2e0
andps %xmm6, %xmm5
movss 0x4(%r15), %xmm3
movss 0x4(%r14), %xmm7
mulss %xmm4, %xmm5
movss 0xdffb(%rip), %xmm4     # 0x3d39c
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 %xmm4, %xmm0
jne 0x2f3ca
jnp 0x2f4e4
xorps %xmm1, %xmm1
testb $0x1, %cl
je 0x2f3d5
movaps %xmm0, %xmm1
xorps %xmm5, %xmm5
testb $0x2, %cl
je 0x2f3e0
movaps %xmm0, %xmm5
movss %xmm5, -0x2c(%rbp)
xorps %xmm5, %xmm5
testb $0x4, %cl
je 0x2f3f0
movaps %xmm0, %xmm5
movss %xmm5, -0x30(%rbp)
testb $0x8, %cl
je 0x2f3fd
movaps %xmm0, %xmm4
movss %xmm4, -0x34(%rbp)
addss %xmm1, %xmm2
addss %xmm1, %xmm3
leaq -0x3c(%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 0x2e8f6
movss (%r14), %xmm2
movss -0x2c(%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 0x2e8f6
movss (%r14), %xmm2
movss 0x4(%r14), %xmm1
movss -0x30(%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 0x2e8f6
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 -0x3c(%rbp), %rsi
movq %rbx, %rdi
movl $0x3, %edx
movl $0x6, %ecx
callq 0x2e8f6
jmp 0x2f6da
movl 0x70(%rbx), %eax
cmpl 0x74(%rbx), %eax
jne 0x2f500
leal 0x1(%rax), %ecx
testl %eax, %eax
je 0x2f506
movl %eax, %edx
shrl $0x1f, %edx
addl %eax, %edx
sarl %edx
addl %eax, %edx
jmp 0x2f50b
movq 0x78(%rbx), %r12
jmp 0x2f54b
movl $0x8, %edx
cmpl %ecx, %edx
cmovgl %edx, %ecx
movslq %ecx, %r13
leaq (,%r13,8), %rdi
callq 0x8589
movq %rax, %r12
movq 0x78(%rbx), %rsi
movslq 0x70(%rbx), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
callq 0x7080
movq 0x78(%rbx), %rdi
callq 0x9019
movq %r12, 0x78(%rbx)
movl %r13d, 0x74(%rbx)
movl 0x70(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x70(%rbx)
cltq
movq (%r15), %rcx
movq %rcx, (%r12,%rax,8)
movl (%r14), %edx
movl 0x4(%r15), %esi
movl 0x70(%rbx), %eax
cmpl 0x74(%rbx), %eax
jne 0x2f583
movl %edx, -0x30(%rbp)
leal 0x1(%rax), %ecx
testl %eax, %eax
movl %esi, -0x2c(%rbp)
je 0x2f589
movl %eax, %edx
shrl $0x1f, %edx
addl %eax, %edx
sarl %edx
addl %eax, %edx
jmp 0x2f58e
movq 0x78(%rbx), %r12
jmp 0x2f5d4
movl $0x8, %edx
cmpl %ecx, %edx
cmovgl %edx, %ecx
movslq %ecx, %r13
leaq (,%r13,8), %rdi
callq 0x8589
movq %rax, %r12
movq 0x78(%rbx), %rsi
movslq 0x70(%rbx), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
callq 0x7080
movq 0x78(%rbx), %rdi
callq 0x9019
movq %r12, 0x78(%rbx)
movl %r13d, 0x74(%rbx)
movl 0x70(%rbx), %eax
movl -0x30(%rbp), %edx
movl -0x2c(%rbp), %esi
leal 0x1(%rax), %ecx
movl %ecx, 0x70(%rbx)
cltq
movl %edx, (%r12,%rax,8)
movl %esi, 0x4(%r12,%rax,8)
movl 0x70(%rbx), %eax
cmpl 0x74(%rbx), %eax
jne 0x2f601
leal 0x1(%rax), %ecx
testl %eax, %eax
je 0x2f607
movl %eax, %edx
shrl $0x1f, %edx
addl %eax, %edx
sarl %edx
addl %eax, %edx
jmp 0x2f60c
movq 0x78(%rbx), %r12
jmp 0x2f64c
movl $0x8, %edx
cmpl %ecx, %edx
cmovgl %edx, %ecx
movslq %ecx, %r13
leaq (,%r13,8), %rdi
callq 0x8589
movq %rax, %r12
movq 0x78(%rbx), %rsi
movslq 0x70(%rbx), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
callq 0x7080
movq 0x78(%rbx), %rdi
callq 0x9019
movq %r12, 0x78(%rbx)
movl %r13d, 0x74(%rbx)
movl 0x70(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x70(%rbx)
cltq
movq (%r14), %rcx
movq %rcx, (%r12,%rax,8)
movl (%r15), %r15d
movl 0x4(%r14), %r12d
movl 0x70(%rbx), %eax
cmpl 0x74(%rbx), %eax
jne 0x2f67e
leal 0x1(%rax), %ecx
testl %eax, %eax
je 0x2f684
movl %eax, %edx
shrl $0x1f, %edx
addl %eax, %edx
sarl %edx
addl %eax, %edx
jmp 0x2f689
movq 0x78(%rbx), %r14
jmp 0x2f6c9
movl $0x8, %edx
cmpl %ecx, %edx
cmovgl %edx, %ecx
movslq %ecx, %r13
leaq (,%r13,8), %rdi
callq 0x8589
movq %rax, %r14
movq 0x78(%rbx), %rsi
movslq 0x70(%rbx), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
callq 0x7080
movq 0x78(%rbx), %rdi
callq 0x9019
movq %r14, 0x78(%rbx)
movl %r13d, 0x74(%rbx)
movl 0x70(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x70(%rbx)
cltq
movl %r15d, (%r14,%rax,8)
movl %r12d, 0x4(%r14,%rax,8)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop