// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::ArrowButtonEx(char const*, int, ImVec2, int)
bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiButtonFlags flags)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return false;

    ImGuiContext& g = *GImGui;
    const ImGuiID id = window->GetID(str_id);
    const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
    const float default_size = GetFrameHeight();
    ItemSize(size, (size.y >= default_size) ? g.Style.FramePadding.y : -1.0f);
    if (!ItemAdd(bb, id))
        return false;

    if (window->DC.ItemFlags & ImGuiItemFlags_ButtonRepeat)
        flags |= ImGuiButtonFlags_Repeat;

    bool hovered, held;
    bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags);

    // Render
    const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
    const ImU32 text_col = GetColorU32(ImGuiCol_Text);
    RenderNavHighlight(bb, id);
    RenderFrame(bb.Min, bb.Max, bg_col, true, g.Style.FrameRounding);
    RenderArrow(window->DrawList, bb.Min + ImVec2(ImMax(0.0f, (size.x - g.FontSize) * 0.5f), ImMax(0.0f, (size.y - g.FontSize) * 0.5f)), text_col, dir);

    return pressed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movlps %xmm0, -0x38(%rbp)
leaq 0x6a708(%rip), %rax     # 0xfbcd0
movq (%rax), %rbx
movq 0x1ae0(%rbx), %r14
movb $0x1, 0x90(%r14)
cmpb $0x0, 0x93(%r14)
je 0x915ec
xorl %r12d, %r12d
jmp 0x91799
movl %edx, %r13d
movq %rdi, %rcx
movl %esi, -0x3c(%rbp)
movaps %xmm0, -0x70(%rbp)
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, -0x50(%rbp)
movq %r14, %rdi
movq %rcx, %rsi
xorl %edx, %edx
callq 0x4570a
movl %eax, %r15d
movss 0xd8(%r14), %xmm0
addss -0x70(%rbp), %xmm0
movss 0xdc(%r14), %xmm1
addss -0x50(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movq 0xd8(%r14), %rax
movq %rax, -0x60(%rbp)
movlps %xmm0, -0x58(%rbp)
callq 0x562ff
movaps -0x50(%rbp), %xmm1
ucomiss %xmm0, %xmm1
jae 0x91657
movss 0x2397b(%rip), %xmm0    # 0xb4fd0
jmp 0x9165f
movss 0x159c(%rbx), %xmm0
leaq -0x38(%rbp), %rdi
callq 0x52315
xorl %r12d, %r12d
leaq -0x60(%rbp), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x524a8
testb %al, %al
je 0x91799
movl 0x1cc(%r14), %r8d
andl $0x2, %r8d
shll $0x9, %r8d
orl %r13d, %r8d
leaq -0x60(%rbp), %rdi
leaq -0x2a(%rbp), %r13
leaq -0x29(%rbp), %r12
movl %r15d, %esi
movq %r13, %rdx
movq %r12, %rcx
callq 0x90b6f
movb (%r12), %cl
movb (%r13), %dl
movl %ecx, %esi
xorb $0x1, %sil
andb %dl, %sil
movzbl %sil, %esi
addl $0x15, %esi
testb $0x1, %dl
movl $0x17, %edi
cmovel %esi, %edi
movl %eax, %r12d
testb %cl, %cl
cmovel %esi, %edi
movss 0x23904(%rip), %xmm0    # 0xb4fe4
callq 0x43bca
movl %eax, %r13d
xorl %edi, %edi
movss 0x238f2(%rip), %xmm0    # 0xb4fe4
callq 0x43bca
movl %eax, -0x50(%rbp)
movl %r15d, %esi
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movl $0x1, %edx
callq 0x4521b
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movss 0x15a0(%rbx), %xmm2
movl %r13d, %edi
movl $0x1, %esi
callq 0x44f69
movq 0x2b8(%r14), %rdi
movss 0x1980(%rbx), %xmm1
movss -0x38(%rbp), %xmm2
movss -0x34(%rbp), %xmm3
subss %xmm1, %xmm2
movss 0x238b1(%rip), %xmm4    # 0xb5004
mulss %xmm4, %xmm2
xorps %xmm5, %xmm5
movaps %xmm2, %xmm0
cmpless %xmm5, %xmm0
andnps %xmm2, %xmm0
subss %xmm1, %xmm3
mulss %xmm4, %xmm3
movaps %xmm3, %xmm1
cmpless %xmm5, %xmm1
addss (%r15), %xmm0
andnps %xmm3, %xmm1
addss 0x4(%r15), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movl -0x50(%rbp), %esi
movl -0x3c(%rbp), %edx
movss 0x23850(%rip), %xmm1    # 0xb4fe4
callq 0x81dcb
movl %r12d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq