// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGui::RenderNavHighlight(ImRect const&, unsigned int, int)
void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags)
{
    ImGuiContext& g = *GImGui;
    if (id != g.NavId)
        return;
    if (g.NavDisableHighlight && !(flags & ImGuiNavHighlightFlags_AlwaysDraw))
        return;
    ImGuiWindow* window = g.CurrentWindow;
    if (window->DC.NavHideHighlightOneFrame)
        return;

    float rounding = (flags & ImGuiNavHighlightFlags_NoRounding) ? 0.0f : g.Style.FrameRounding;
    ImRect display_rect = bb;
    display_rect.ClipWith(window->ClipRect);
    if (flags & ImGuiNavHighlightFlags_TypeDefault)
    {
        const float THICKNESS = 2.0f;
        const float DISTANCE = 3.0f + THICKNESS * 0.5f;
        display_rect.Expand(ImVec2(DISTANCE, DISTANCE));
        bool fully_visible = window->ClipRect.Contains(display_rect);
        if (!fully_visible)
            window->DrawList->PushClipRect(display_rect.Min, display_rect.Max);
        window->DrawList->AddRect(display_rect.Min + ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), display_rect.Max - ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), GetColorU32(ImGuiCol_NavHighlight), rounding, ImDrawCornerFlags_All, THICKNESS);
        if (!fully_visible)
            window->DrawList->PopClipRect();
    }
    if (flags & ImGuiNavHighlightFlags_TypeThin)
    {
        window->DrawList->AddRect(display_rect.Min, display_rect.Max, GetColorU32(ImGuiCol_NavHighlight), rounding, ~0, 1.0f);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq 0xb6a9a(%rip), %rax     # 0xfbcd0
cmpl %esi, 0x1c98(%rax)
jne 0x454cf
movl %edx, %ebx
testb $0x4, %bl
jne 0x45256
cmpb $0x0, 0x1ce6(%rax)
jne 0x454cf
movq 0x1ae0(%rax), %r13
cmpb $0x0, 0x15c(%r13)
jne 0x454cf
xorps %xmm0, %xmm0
movss %xmm0, -0x44(%rbp)
testb $0x8, %bl
jne 0x45285
movss 0x15a0(%rax), %xmm0
movss %xmm0, -0x44(%rbp)
movups (%rdi), %xmm0
movaps %xmm0, -0x40(%rbp)
movss -0x40(%rbp), %xmm3
movss -0x3c(%rbp), %xmm4
movss 0x258(%r13), %xmm1
movss 0x25c(%r13), %xmm0
movaps %xmm1, %xmm2
cmpless %xmm3, %xmm2
andps %xmm2, %xmm3
andnps %xmm1, %xmm2
orps %xmm3, %xmm2
movaps %xmm0, %xmm7
cmpless %xmm4, %xmm7
andps %xmm7, %xmm4
andnps %xmm0, %xmm7
orps %xmm4, %xmm7
movaps %xmm2, %xmm3
unpcklps %xmm7, %xmm3            # xmm3 = xmm3[0],xmm7[0],xmm3[1],xmm7[1]
movlps %xmm3, -0x40(%rbp)
movss -0x38(%rbp), %xmm4
movss -0x34(%rbp), %xmm8
movss 0x260(%r13), %xmm5
movss 0x264(%r13), %xmm3
minss %xmm5, %xmm4
minss %xmm3, %xmm8
movaps %xmm4, %xmm6
unpcklps %xmm8, %xmm6            # xmm6 = xmm6[0],xmm8[0],xmm6[1],xmm8[1]
movlps %xmm6, -0x38(%rbp)
testb $0x1, %bl
je 0x4546c
movss 0x7054a(%rip), %xmm6    # 0xb5860
addss %xmm6, %xmm2
movss %xmm2, -0x40(%rbp)
addss %xmm6, %xmm7
movss %xmm7, -0x3c(%rbp)
movss 0x70534(%rip), %xmm6    # 0xb5864
addss %xmm6, %xmm4
movss %xmm4, -0x38(%rbp)
addss %xmm6, %xmm8
movss %xmm8, -0x34(%rbp)
cmpleps %xmm2, %xmm1
cmpleps %xmm7, %xmm0
andps %xmm1, %xmm0
ucomiss %xmm4, %xmm5
movd %xmm0, %ecx
setae %dl
ucomiss %xmm8, %xmm3
setae %r15b
andb %dl, %r15b
andb %cl, %r15b
cmpb $0x1, %r15b
jne 0x45379
movss -0x40(%rbp), %xmm2
movss -0x38(%rbp), %xmm1
jmp 0x453cd
movq 0x2b8(%r13), %rdi
movsd -0x40(%rbp), %xmm0
movaps %xmm0, -0x70(%rbp)
movsd -0x38(%rbp), %xmm1
movaps %xmm1, -0x60(%rbp)
movaps %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm2     # xmm2 = xmm2[1,1],xmm0[1,1]
movaps %xmm2, -0x90(%rbp)
movaps %xmm1, %xmm2
shufps $0x55, %xmm1, %xmm2     # xmm2 = xmm2[1,1],xmm1[1,1]
movaps %xmm2, -0x80(%rbp)
xorl %esi, %esi
callq 0x75b8a
movaps -0x70(%rbp), %xmm2
movaps -0x60(%rbp), %xmm1
movaps -0x80(%rbp), %xmm8
movaps -0x90(%rbp), %xmm7
movq 0xb6903(%rip), %rax     # 0xfbcd0
movq 0x2b8(%r13), %r14
movss 0x6fc08(%rip), %xmm0    # 0xb4fe4
addss %xmm0, %xmm2
addss %xmm0, %xmm7
unpcklps %xmm7, %xmm2            # xmm2 = xmm2[0],xmm7[0],xmm2[1],xmm7[1]
leaq -0x50(%rbp), %rcx
movlps %xmm2, (%rcx)
movss 0x6fbda(%rip), %xmm0    # 0xb4fd0
addss %xmm0, %xmm1
addss %xmm0, %xmm8
unpcklps %xmm8, %xmm1            # xmm1 = xmm1[0],xmm8[0],xmm1[1],xmm8[1]
leaq -0xa8(%rbp), %r12
movlps %xmm1, (%r12)
movups 0x1934(%rax), %xmm0
leaq -0xa0(%rbp), %rdi
movaps %xmm0, (%rdi)
movss 0x1560(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x42601
movss 0x70429(%rip), %xmm1    # 0xb5868
movq %r14, %rdi
leaq -0x50(%rbp), %rsi
movq %r12, %rdx
movl %eax, %ecx
movss -0x44(%rbp), %xmm0
movl $0xf, %r8d
callq 0x7851c
testb %r15b, %r15b
jne 0x4546c
movq 0x2b8(%r13), %rdi
callq 0x75d0e
testb $0x2, %bl
je 0x454cf
leaq -0x38(%rbp), %rbx
movq 0x2b8(%r13), %r14
movq 0xb684d(%rip), %rax     # 0xfbcd0
movups 0x1934(%rax), %xmm0
leaq -0xa0(%rbp), %rdi
movaps %xmm0, (%rdi)
movss 0x1560(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x42601
leaq -0x40(%rbp), %rsi
movss 0x6fb2d(%rip), %xmm1    # 0xb4fe4
movq %r14, %rdi
movq %rbx, %rdx
movl %eax, %ecx
movss -0x44(%rbp), %xmm0
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x7851c
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop