// File: /workspace/github_cpp_makefile_star2_O1/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 $0x48, %rsp
movq 0xb8014(%rip), %rax     # 0xfdcd0
cmpl %esi, 0x1c98(%rax)
jne 0x45f11
movl %edx, %ebx
testb $0x4, %bl
jne 0x45cdc
cmpb $0x0, 0x1ce6(%rax)
jne 0x45f11
movq 0x1ae0(%rax), %r13
cmpb $0x0, 0x15c(%r13)
jne 0x45f11
xorps %xmm0, %xmm0
movss %xmm0, -0x44(%rbp)
testb $0x8, %bl
jne 0x45d0b
movss 0x15a0(%rax), %xmm0
movss %xmm0, -0x44(%rbp)
movups (%rdi), %xmm0
movaps %xmm0, -0x40(%rbp)
movss 0x258(%r13), %xmm1
movss 0x25c(%r13), %xmm0
movss -0x40(%rbp), %xmm2
movss -0x3c(%rbp), %xmm3
movaps %xmm1, %xmm4
cmpless %xmm2, %xmm4
andps %xmm4, %xmm2
andnps %xmm1, %xmm4
orps %xmm2, %xmm4
movaps %xmm0, %xmm2
cmpless %xmm3, %xmm2
andps %xmm2, %xmm3
andnps %xmm0, %xmm2
orps %xmm3, %xmm2
unpcklps %xmm2, %xmm4            # xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
movlps %xmm4, -0x40(%rbp)
movss -0x38(%rbp), %xmm4
movss 0x260(%r13), %xmm3
movss 0x264(%r13), %xmm2
minss %xmm3, %xmm4
movss -0x34(%rbp), %xmm5
minss %xmm2, %xmm5
unpcklps %xmm5, %xmm4            # xmm4 = xmm4[0],xmm5[0],xmm4[1],xmm5[1]
movlps %xmm4, -0x38(%rbp)
testb $0x1, %bl
je 0x45eb1
movss 0x71acd(%rip), %xmm4    # 0xb7860
movss -0x40(%rbp), %xmm5
addss %xmm4, %xmm5
movss %xmm5, -0x40(%rbp)
addss -0x3c(%rbp), %xmm4
movss %xmm4, -0x3c(%rbp)
movss 0x71ab1(%rip), %xmm6    # 0xb7864
movss -0x38(%rbp), %xmm7
addss %xmm6, %xmm7
movss %xmm7, -0x38(%rbp)
addss -0x34(%rbp), %xmm6
movss %xmm6, -0x34(%rbp)
cmpleps %xmm5, %xmm1
cmpleps %xmm4, %xmm0
ucomiss %xmm7, %xmm3
andps %xmm1, %xmm0
setae %al
ucomiss %xmm6, %xmm2
movd %xmm0, %ecx
setae %r15b
andb %al, %r15b
andb %cl, %r15b
jne 0x45e07
movq 0x2b8(%r13), %rdi
movsd -0x40(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
xorl %esi, %esi
callq 0x77162
movss 0x711d5(%rip), %xmm0    # 0xb6fe4
movss -0x40(%rbp), %xmm1
addss %xmm0, %xmm1
addss -0x3c(%rbp), %xmm0
movq 0x2b8(%r13), %r14
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
leaq -0x50(%rbp), %rax
movss 0x7119d(%rip), %xmm0    # 0xb6fd0
movss -0x38(%rbp), %xmm2
addss %xmm0, %xmm2
addss -0x34(%rbp), %xmm0
movlps %xmm1, (%rax)
unpcklps %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
leaq -0x68(%rbp), %r12
movlps %xmm2, (%r12)
movq 0xb7e79(%rip), %rax     # 0xfdcd0
movups 0x1934(%rax), %xmm0
leaq -0x60(%rbp), %rdi
movaps %xmm0, (%rdi)
movss 0x1560(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x42e9e
movss 0x719e4(%rip), %xmm1    # 0xb7868
movq %r14, %rdi
leaq -0x50(%rbp), %rsi
movq %r12, %rdx
movl %eax, %ecx
movss -0x44(%rbp), %xmm0
movl $0xf, %r8d
callq 0x79c80
testb %r15b, %r15b
jne 0x45eb1
movq 0x2b8(%r13), %rdi
callq 0x772e8
testb $0x2, %bl
je 0x45f11
leaq -0x38(%rbp), %rbx
movq 0x2b8(%r13), %r14
movq 0xb7e08(%rip), %rax     # 0xfdcd0
movups 0x1934(%rax), %xmm0
leaq -0x60(%rbp), %rdi
movaps %xmm0, (%rdi)
movss 0x1560(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x42e9e
leaq -0x40(%rbp), %rsi
movss 0x710eb(%rip), %xmm1    # 0xb6fe4
movq %r14, %rdi
movq %rbx, %rdx
movl %eax, %ecx
movss -0x44(%rbp), %xmm0
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x79c80
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq