// File: /workspace/github_cpp_makefile_star2_O2/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 0x694f1(%rip), %rax     # 0xe3ce0
movq (%rax), %rbx
movq 0x1ae0(%rbx), %r14
movb $0x1, 0x90(%r14)
cmpb $0x0, 0x93(%r14)
je 0x7a813
xorl %r12d, %r12d
jmp 0x7a9ba
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 0x3700a
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 0x43ec9
movaps -0x50(%rbp), %xmm1
ucomiss %xmm0, %xmm1
jae 0x7a87e
movss 0x21774(%rip), %xmm0    # 0x9bff0
jmp 0x7a886
movss 0x159c(%rbx), %xmm0
leaq -0x38(%rbp), %rdi
callq 0x40d3b
xorl %r12d, %r12d
leaq -0x60(%rbp), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x40ea5
testb %al, %al
je 0x7a9ba
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 0x79dde
movb (%r12), %cl
movb (%r13), %dl
movl %ecx, %esi
xorb $0x1, %sil
andb %dl, %sil
movzbl %sil, %esi
addl $0x15, %esi
testb $0x1, %dl
pushq $0x17
popq %rdi
cmovel %esi, %edi
movl %eax, %r12d
testb %cl, %cl
cmovel %esi, %edi
movss 0x216f3(%rip), %xmm0    # 0x9bff8
callq 0x35d33
movl %eax, %r13d
xorl %edi, %edi
movss 0x216e1(%rip), %xmm0    # 0x9bff8
callq 0x35d33
movl %eax, -0x50(%rbp)
pushq $0x1
popq %rdx
movl %r15d, %esi
leaq -0x60(%rbp), %r15
movq %r15, %rdi
callq 0x36c91
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movss 0x15a0(%rbx), %xmm2
movl %r13d, %edi
pushq $0x1
popq %rsi
callq 0x36a6f
movq 0x2b8(%r14), %rdi
movss 0x1980(%rbx), %xmm1
movss -0x38(%rbp), %xmm2
movss -0x34(%rbp), %xmm3
subss %xmm1, %xmm2
movss 0x216a4(%rip), %xmm4    # 0x9c018
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 0x21643(%rip), %xmm1    # 0x9bff8
callq 0x6b8b0
movl %r12d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq