// File: /workspace/github_cpp_makefile_star2_O1/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 $0x38, %rsp
movlps %xmm0, -0x38(%rbp)
leaq 0x6a9fd(%rip), %rax     # 0xfdcd0
movq (%rax), %rbx
movq 0x1ae0(%rbx), %r14
movb $0x1, 0x90(%r14)
cmpb $0x0, 0x93(%r14)
je 0x932f7
xorl %r15d, %r15d
jmp 0x93489
movl %edx, %r13d
movq %rdi, %rcx
movl %esi, -0x44(%rbp)
movq %r14, %rdi
movq %rcx, %rsi
xorl %edx, %edx
callq 0x46258
movl %eax, %r12d
movss 0xd8(%r14), %xmm0
movss 0xdc(%r14), %xmm1
addss -0x38(%rbp), %xmm0
addss -0x34(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movq 0xd8(%r14), %rax
movq %rax, -0x58(%rbp)
movlps %xmm0, -0x50(%rbp)
callq 0x57404
movss -0x34(%rbp), %xmm1
ucomiss %xmm0, %xmm1
jae 0x93357
movss 0x23c7b(%rip), %xmm0    # 0xb6fd0
jmp 0x9335f
movss 0x159c(%rbx), %xmm0
leaq -0x38(%rbp), %rdi
callq 0x532de
xorl %r15d, %r15d
leaq -0x58(%rbp), %rdi
movl %r12d, %esi
xorl %edx, %edx
callq 0x5346f
testb %al, %al
je 0x93489
movl 0x1cc(%r14), %r8d
andl $0x2, %r8d
shll $0x9, %r8d
orl %r13d, %r8d
leaq -0x58(%rbp), %rdi
leaq -0x29(%rbp), %rdx
leaq -0x2a(%rbp), %r13
movl %r12d, %esi
movq %r13, %rcx
callq 0x92870
movl %eax, %r15d
cmpb $0x1, (%r13)
jne 0x933bf
movl $0x17, %edi
cmpb $0x0, -0x29(%rbp)
jne 0x933c6
movzbl -0x29(%rbp), %edi
addl $0x15, %edi
movss 0x23c16(%rip), %xmm0    # 0xb6fe4
callq 0x445bd
movl %eax, -0x3c(%rbp)
xorl %edi, %edi
movss 0x23c04(%rip), %xmm0    # 0xb6fe4
callq 0x445bd
movl %eax, -0x40(%rbp)
leaq -0x58(%rbp), %r13
movq %r13, %rdi
movl %r12d, %esi
movl $0x1, %edx
callq 0x45ca4
movsd (%r13), %xmm0
movsd 0x8(%r13), %xmm1
movss 0x15a0(%rbx), %xmm2
movl -0x3c(%rbp), %edi
movl $0x1, %esi
callq 0x459e5
movq 0x2b8(%r14), %rdi
movss 0x1980(%rbx), %xmm1
movss -0x38(%rbp), %xmm2
movss -0x34(%rbp), %xmm3
subss %xmm1, %xmm2
movss 0x23bc2(%rip), %xmm4    # 0xb7004
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 (%r13), %xmm0
andnps %xmm3, %xmm1
addss 0x4(%r13), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movl -0x40(%rbp), %esi
movl -0x44(%rbp), %edx
movss 0x23b60(%rip), %xmm1    # 0xb6fe4
callq 0x8391b
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq