LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::PushColumnsBackground()
void ImGui::PushColumnsBackground()
{
    ImGuiWindow* window = GetCurrentWindowRead();
    ImGuiOldColumns* columns = window->DC.CurrentColumns;
    if (columns->Count == 1)
        return;

    // Optimization: avoid SetCurrentChannel() + PushClipRect()
    columns->HostBackupClipRect = window->ClipRect;
    SetWindowClipRectBeforeSetChannel(window, columns->HostInitialClipRect);
    columns->Splitter.SetCurrentChannel(window->DrawList, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x6d375(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq 0x1ae0(%rax), %rax
movq 0x1b0(%rax), %rdi
cmpl $0x1, 0x10(%rdi)
jne 0x8e974
popq %rbp
retq
movups 0x258(%rax), %xmm0
movups %xmm0, 0x3c(%rdi)
movups 0x2c(%rdi), %xmm0
movups 0x2c(%rdi), %xmm1
movups %xmm1, 0x258(%rax)
movq 0x2b8(%rax), %rcx
movups %xmm0, 0x88(%rcx)
movq 0x2b8(%rax), %rcx
movq 0x60(%rcx), %rdx
movslq 0x58(%rcx), %rcx
shlq $0x4, %rcx
movups %xmm0, -0x10(%rdx,%rcx)
addq $0x70, %rdi
movq 0x2b8(%rax), %rsi
xorl %edx, %edx
popq %rbp
jmp 0x7a998
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::PopColumnsBackground()
void ImGui::PopColumnsBackground()
{
    ImGuiWindow* window = GetCurrentWindowRead();
    ImGuiOldColumns* columns = window->DC.CurrentColumns;
    if (columns->Count == 1)
        return;

    // Optimization: avoid PopClipRect() + SetCurrentChannel()
    SetWindowClipRectBeforeSetChannel(window, columns->HostBackupClipRect);
    columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x6d2fe(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq 0x1ae0(%rax), %rax
movq 0x1b0(%rax), %rdi
cmpl $0x1, 0x10(%rdi)
jne 0x8e9eb
popq %rbp
retq
movups 0x3c(%rdi), %xmm0
movups 0x3c(%rdi), %xmm1
movups %xmm1, 0x258(%rax)
movq 0x2b8(%rax), %rcx
movups %xmm0, 0x88(%rcx)
movq 0x2b8(%rax), %rcx
movq 0x60(%rcx), %rdx
movslq 0x58(%rcx), %rcx
shlq $0x4, %rcx
movups %xmm0, -0x10(%rdx,%rcx)
movq 0x2b8(%rax), %rsi
movl 0xc(%rdi), %edx
addq $0x70, %rdi
incl %edx
popq %rbp
jmp 0x7a998
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::FindOrCreateColumns(ImGuiWindow*, unsigned int)
ImGuiOldColumns* ImGui::FindOrCreateColumns(ImGuiWindow* window, ImGuiID id)
{
    // We have few columns per window so for now we don't need bother much with turning this into a faster lookup.
    for (int n = 0; n < window->ColumnsStorage.Size; n++)
        if (window->ColumnsStorage[n].ID == id)
            return &window->ColumnsStorage[n];

    window->ColumnsStorage.push_back(ImGuiOldColumns());
    ImGuiOldColumns* columns = &window->ColumnsStorage.back();
    columns->ID = id;
    return columns;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %esi, %ebx
movq %rdi, %r14
movslq 0x2a0(%rdi), %r13
testq %r13, %r13
jle 0x8ea78
movq 0x2a8(%r14), %rax
movq %r13, %rcx
cmpl %ebx, (%rax)
je 0x8eb96
addq $0x88, %rax
decq %rcx
jne 0x8ea65
leaq -0xb0(%rbp), %rdi
movl $0x88, %edx
xorl %esi, %esi
callq 0xc260
cmpl 0x2a4(%r14), %r13d
jne 0x8eaad
leal 0x1(%r13), %r12d
testl %r13d, %r13d
je 0x8eab6
movl %r13d, %eax
shrl $0x1f, %eax
addl %r13d, %eax
sarl %eax
addl %r13d, %eax
jmp 0x8eabb
movq 0x2a8(%r14), %r15
jmp 0x8eb1f
movl $0x8, %eax
cmpl %r12d, %eax
cmovgl %eax, %r12d
movslq %r12d, %rax
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rdi
callq 0x41c63
movq %rax, %r15
movq 0x2a8(%r14), %rsi
testq %rsi, %rsi
je 0x8eb0a
movslq 0x2a0(%r14), %rax
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rdx
movq %r15, %rdi
callq 0xc080
movq 0x2a8(%r14), %rdi
callq 0x41d3c
movq %r15, 0x2a8(%r14)
movl %r12d, 0x2a4(%r14)
movl 0x2a0(%r14), %r13d
movslq %r13d, %rax
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rdi
addq %r15, %rdi
leaq -0xb0(%rbp), %rsi
movl $0x88, %edx
callq 0xc080
incl 0x2a0(%r14)
leaq -0x40(%rbp), %rdi
callq 0x754ba
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x8eb5f
callq 0x41d3c
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x8eb6d
callq 0x41d3c
movslq 0x2a0(%r14), %rax
testq %rax, %rax
jle 0x8eba8
movq 0x2a8(%r14), %rcx
movq %rax, %rdx
shlq $0x7, %rdx
leaq (%rdx,%rax,8), %rax
addq %rcx, %rax
addq $-0x88, %rax
movl %ebx, (%rax)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3edfb(%rip), %rdi     # 0xcd9aa
leaq 0x2aad5(%rip), %rsi     # 0xb968b
leaq 0x42171(%rip), %rcx     # 0xd0d2e
movl $0x666, %edx            # imm = 0x666
callq 0xc140
jmp 0x8ebe2
jmp 0x8ebe2
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x8fc88
movq %rbx, %rdi
callq 0xc560
movq %rax, %rdi
callq 0x39dbe
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::GetColumnsID(char const*, int)
ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count)
{
    ImGuiWindow* window = GetCurrentWindow();

    // Differentiate column ID with an arbitrary prefix for cases where users name their columns set the same as another widget.
    // In addition, when an identifier isn't explicitly provided we include the number of columns in the hash to make it uniquer.
    PushID(0x11223347 + (str_id ? 0 : columns_count));
    ImGuiID id = window->GetID(str_id ? str_id : "columns");
    PopID();

    return id;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x6d0d8(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq 0x1ae0(%rax), %rbx
movb $0x1, 0x90(%rbx)
movl $0x11223347, %ecx       # imm = 0x11223347
leal (%rsi,%rcx), %eax
testq %rdi, %rdi
cmovnel %ecx, %eax
leaq 0x35998(%rip), %r14     # 0xc45b6
cmovneq %rdi, %r14
movl %eax, %edi
callq 0x54e5e
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x4570a
movl %eax, %ebx
callq 0x55082
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::Columns(int, char const*, bool)
void ImGui::Columns(int columns_count, const char* id, bool border)
{
    ImGuiWindow* window = GetCurrentWindow();
    IM_ASSERT(columns_count >= 1);

    ImGuiOldColumnFlags flags = (border ? 0 : ImGuiOldColumnFlags_NoBorder);
    //flags |= ImGuiOldColumnFlags_NoPreserveWidths; // NB: Legacy behavior
    ImGuiOldColumns* columns = window->DC.CurrentColumns;
    if (columns != NULL && columns->Count == columns_count && columns->Flags == flags)
        return;

    if (columns != NULL)
        EndColumns();

    if (columns_count != 1)
        BeginColumns(id, columns_count, flags);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x6c41f(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq 0x1ae0(%rax), %rax
movb $0x1, 0x90(%rax)
testl %edi, %edi
jle 0x8f915
movq %rsi, %r14
movl %edi, %ebx
xorb $0x1, %dl
movzbl %dl, %r15d
movq 0x1b0(%rax), %rax
testq %rax, %rax
je 0x8f8ee
cmpl %ebx, 0x10(%rax)
jne 0x8f8e9
cmpl %r15d, 0x4(%rax)
je 0x8f8f3
callq 0x8f3f4
cmpl $0x1, %ebx
jne 0x8f8fe
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movl %ebx, %esi
movl %r15d, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x8ec44
leaq 0x40ce9(%rip), %rdi     # 0xd0605
leaq 0x3f567(%rip), %rsi     # 0xcee8a
leaq 0x40dad(%rip), %rcx     # 0xd06d7
movl $0xf42, %edx            # imm = 0xF42
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::TextV(char const*, __va_list_tag*)
void ImGui::TextV(const char* fmt, va_list args)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return;

    ImGuiContext& g = *GImGui;
    const char* text_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
    TextEx(g.TempBuffer, text_end, ImGuiTextFlags_NoWidthForLargeClippedText);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x6b924(%rip), %rax     # 0xfbcd0
movq (%rax), %r14
movq 0x1ae0(%r14), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
je 0x903cb
popq %rbx
popq %r14
popq %rbp
retq
movq %rsi, %rcx
movq %rdi, %rdx
leaq 0x3378(%r14), %rbx
movl $0xc01, %esi            # imm = 0xC01
movq %rbx, %rdi
callq 0x41fc7
cltq
leaq (%r14,%rax), %rsi
addq $0x3378, %rsi           # imm = 0x3378
movq %rbx, %rdi
movl $0x1, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0x8fe70
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::TextColoredV(ImVec4 const&, char const*, __va_list_tag*)
void ImGui::TextColoredV(const ImVec4& col, const char* fmt, va_list args)
{
    PushStyleColor(ImGuiCol_Text, col);
    if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0)
        TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting
    else
        TextV(fmt, args);
    PopStyleColor();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %rsi
xorl %edi, %edi
callq 0x43e1b
cmpb $0x25, (%r14)
jne 0x904a5
cmpb $0x73, 0x1(%r14)
jne 0x904a5
cmpb $0x0, 0x2(%r14)
je 0x904be
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9039e
movl $0x1, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0x43f55
movl (%rbx), %ecx
cmpq $0x28, %rcx
ja 0x904d4
movq %rcx, %rax
addq 0x10(%rbx), %rax
addl $0x8, %ecx
movl %ecx, (%rbx)
jmp 0x904e0
movq 0x8(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq (%rax), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x8fe70
jmp 0x904b0
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::TextDisabledV(char const*, __va_list_tag*)
void ImGui::TextDisabledV(const char* fmt, va_list args)
{
    ImGuiContext& g = *GImGui;
    PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]);
    if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0)
        TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting
    else
        TextV(fmt, args);
    PopStyleColor();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x6b750(%rip), %rax     # 0xfbcd0
movl $0x1634, %esi           # imm = 0x1634
addq (%rax), %rsi
xorl %edi, %edi
callq 0x43e1b
cmpb $0x25, (%r14)
jne 0x905a3
cmpb $0x73, 0x1(%r14)
jne 0x905a3
cmpb $0x0, 0x2(%r14)
je 0x905bc
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9039e
movl $0x1, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0x43f55
movl (%rbx), %ecx
cmpq $0x28, %rcx
ja 0x905d2
movq %rcx, %rax
addq 0x10(%rbx), %rax
addl $0x8, %ecx
movl %ecx, (%rbx)
jmp 0x905de
movq 0x8(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq (%rax), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x8fe70
jmp 0x905ae
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::TextWrappedV(char const*, __va_list_tag*)
void ImGui::TextWrappedV(const char* fmt, va_list args)
{
    ImGuiContext& g = *GImGui;
    bool need_backup = (g.CurrentWindow->DC.TextWrapPos < 0.0f);  // Keep existing wrap position if one is already set
    if (need_backup)
        PushTextWrapPos(0.0f);
    if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0)
        TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting
    else
        TextV(fmt, args);
    if (need_backup)
        PopTextWrapPos();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x6b64e(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq 0x1ae0(%rax), %rax
movss 0x1d4(%rax), %xmm1
xorps %xmm0, %xmm0
movss %xmm1, -0x14(%rbp)
ucomiss %xmm1, %xmm0
jbe 0x906a6
callq 0x53f70
cmpb $0x25, (%r14)
jne 0x906ba
cmpb $0x73, 0x1(%r14)
jne 0x906ba
cmpb $0x0, 0x2(%r14)
je 0x906e4
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9039e
xorps %xmm0, %xmm0
ucomiss -0x14(%rbp), %xmm0
jbe 0x906db
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x54076
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl (%rbx), %ecx
cmpq $0x28, %rcx
ja 0x906fa
movq %rcx, %rax
addq 0x10(%rbx), %rax
addl $0x8, %ecx
movl %ecx, (%rbx)
jmp 0x90706
movq 0x8(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq (%rax), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x8fe70
jmp 0x906c5
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::SmallButton(char const*)
bool ImGui::SmallButton(const char* label)
{
    ImGuiContext& g = *GImGui;
    float backup_padding_y = g.Style.FramePadding.y;
    g.Style.FramePadding.y = 0.0f;
    bool pressed = ButtonEx(label, ImVec2(0, 0), ImGuiButtonFlags_AlignTextBaseLine);
    g.Style.FramePadding.y = backup_padding_y;
    return pressed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
leaq 0x6a896(%rip), %rax     # 0xfbcd0
movq (%rax), %rbx
movss 0x159c(%rbx), %xmm0
movss %xmm0, -0xc(%rbp)
movl $0x0, 0x159c(%rbx)
leaq -0x14(%rbp), %rsi
movq $0x0, (%rsi)
movl $0x8000, %edx           # imm = 0x8000
callq 0x911cc
movss -0xc(%rbp), %xmm0
movss %xmm0, 0x159c(%rbx)
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::InvisibleButton(char const*, ImVec2 const&, int)
bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiButtonFlags flags)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return false;

    // Cannot use zero-size for InvisibleButton(). Unlike Button() there is not way to fallback using the label size.
    IM_ASSERT(size_arg.x != 0.0f && size_arg.y != 0.0f);

    const ImGuiID id = window->GetID(str_id);
    ImVec2 size = CalcItemSize(size_arg, 0.0f, 0.0f);
    const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
    ItemSize(size);
    if (!ItemAdd(bb, id))
        return false;

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

    return pressed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x6a83b(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq 0x1ae0(%rax), %r12
movb $0x1, 0x90(%r12)
cmpb $0x0, 0x93(%r12)
je 0x914bb
xorl %r14d, %r14d
jmp 0x9157b
movq %rsi, %r13
movss (%rsi), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm1
jne 0x914d0
jnp 0x9158d
movss 0x4(%r13), %xmm1
ucomiss %xmm0, %xmm1
jne 0x914e1
jnp 0x9158d
movl %edx, %ebx
movq %rdi, %rsi
xorl %r14d, %r14d
movq %r12, %rdi
xorl %edx, %edx
callq 0x4570a
movl %eax, %r15d
movsd (%r13), %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x5620c
leaq -0x48(%rbp), %rdi
movlps %xmm0, (%rdi)
movss 0xd8(%r12), %xmm1
addss %xmm0, %xmm1
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
addss 0xdc(%r12), %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movq 0xd8(%r12), %rax
leaq -0x40(%rbp), %r12
movq %rax, (%r12)
movlps %xmm1, 0x8(%r12)
movss 0x23a85(%rip), %xmm0    # 0xb4fd0
callq 0x52315
movq %r12, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x524a8
testb %al, %al
je 0x9157b
leaq -0x40(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
leaq -0x29(%rbp), %rcx
movl %r15d, %esi
movl %ebx, %r8d
callq 0x90b6f
movl %eax, %r14d
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3fb74(%rip), %rdi     # 0xd1108
leaq 0x3fa7d(%rip), %rsi     # 0xd1018
leaq 0x3fb8f(%rip), %rcx     # 0xd1131
movl $0x2da, %edx            # imm = 0x2DA
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::GetWindowScrollbarRect(ImGuiWindow*, ImGuiAxis)
ImRect ImGui::GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis)
{
    const ImRect outer_rect = window->Rect();
    const ImRect inner_rect = window->InnerRect;
    const float border_size = window->WindowBorderSize;
    const float scrollbar_size = window->ScrollbarSizes[axis ^ 1]; // (ScrollbarSizes.x = width of Y scrollbar; ScrollbarSizes.y = height of X scrollbar)
    IM_ASSERT(scrollbar_size > 0.0f);
    if (axis == ImGuiAxis_X)
        return ImRect(inner_rect.Min.x, ImMax(outer_rect.Min.y, outer_rect.Max.y - border_size - scrollbar_size), inner_rect.Max.x, outer_rect.Max.y);
    else
        return ImRect(ImMax(outer_rect.Min.x, outer_rect.Max.x - border_size - scrollbar_size), inner_rect.Min.y, outer_rect.Max.x, inner_rect.Max.y);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x2, %esi
jae 0x91cb0
movl %esi, %eax
xorl $0x1, %eax
movss 0x84(%rdi,%rax,4), %xmm4
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm4
jbe 0x91ccf
movss 0x4c(%rdi), %xmm5
testl %esi, %esi
je 0x91c6b
movss 0x10(%rdi), %xmm6
movss 0x18(%rdi), %xmm1
addss %xmm6, %xmm1
movss 0x21c(%rdi), %xmm3
movss 0x224(%rdi), %xmm2
movaps %xmm1, %xmm7
subss %xmm5, %xmm7
subss %xmm4, %xmm7
movaps %xmm7, %xmm0
cmpless %xmm6, %xmm0
movaps %xmm0, %xmm4
andnps %xmm7, %xmm4
andps %xmm6, %xmm0
orps %xmm4, %xmm0
jmp 0x91ca8
movss 0x14(%rdi), %xmm6
movss 0x1c(%rdi), %xmm2
addss %xmm6, %xmm2
movss 0x218(%rdi), %xmm0
movss 0x220(%rdi), %xmm1
movaps %xmm2, %xmm7
subss %xmm5, %xmm7
subss %xmm4, %xmm7
movaps %xmm7, %xmm3
cmpless %xmm6, %xmm3
movaps %xmm3, %xmm4
andnps %xmm7, %xmm4
andps %xmm6, %xmm3
orps %xmm4, %xmm3
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
unpcklps %xmm3, %xmm0            # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
popq %rbp
retq
leaq 0x41244(%rip), %rdi     # 0xd2efb
leaq 0x279cd(%rip), %rsi     # 0xb968b
leaq 0x4123f(%rip), %rcx     # 0xd2f04
movl $0xe5, %edx
callq 0xc140
leaq 0x3f4b9(%rip), %rdi     # 0xd118f
leaq 0x3f33b(%rip), %rsi     # 0xd1018
leaq 0x3f4c1(%rip), %rcx     # 0xd11a5
movl $0x351, %edx            # imm = 0x351
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::Scrollbar(ImGuiAxis)
void ImGui::Scrollbar(ImGuiAxis axis)
{
    ImGuiContext& g = *GImGui;
    ImGuiWindow* window = g.CurrentWindow;

    const ImGuiID id = GetWindowScrollbarID(window, axis);
    KeepAliveID(id);

    // Calculate scrollbar bounding box
    ImRect bb = GetWindowScrollbarRect(window, axis);
    ImDrawCornerFlags rounding_corners = 0;
    if (axis == ImGuiAxis_X)
    {
        rounding_corners |= ImDrawCornerFlags_BotLeft;
        if (!window->ScrollbarY)
            rounding_corners |= ImDrawCornerFlags_BotRight;
    }
    else
    {
        if ((window->Flags & ImGuiWindowFlags_NoTitleBar) && !(window->Flags & ImGuiWindowFlags_MenuBar))
            rounding_corners |= ImDrawCornerFlags_TopRight;
        if (!window->ScrollbarX)
            rounding_corners |= ImDrawCornerFlags_BotRight;
    }
    float size_avail = window->InnerRect.Max[axis] - window->InnerRect.Min[axis];
    float size_contents = window->ContentSize[axis] + window->WindowPadding[axis] * 2.0f;
    ScrollbarEx(bb, id, axis, &window->Scroll[axis], size_avail, size_contents, rounding_corners);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edi, %ebx
leaq 0x69fcc(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq 0x1ae0(%rax), %r14
testl %edi, %edi
leaq 0x3f466(%rip), %rax     # 0xd117d
leaq 0x3f468(%rip), %rsi     # 0xd1186
cmoveq %rax, %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x45b30
movl %eax, %r15d
movl %eax, %edi
callq 0x459e2
movq %r14, %rdi
movl %ebx, %esi
callq 0x91bfc
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, -0x28(%rbp)
testl %ebx, %ebx
je 0x91d9d
movl $0x401, %eax            # imm = 0x401
andl 0xc(%r14), %eax
xorl %ecx, %ecx
cmpl $0x1, %eax
sete %cl
leal 0x8(,%rcx,2), %r8d
movl %ecx, %eax
addl %ecx, %eax
cmpb $0x0, 0x8c(%r14)
cmovnel %eax, %r8d
movl $0x1, %eax
cmpl $0x1, %ebx
je 0x91db2
leaq 0x41176(%rip), %rdi     # 0xd2efb
leaq 0x278ff(%rip), %rsi     # 0xb968b
leaq 0x41171(%rip), %rcx     # 0xd2f04
movl $0xe5, %edx
callq 0xc140
movzbl 0x8d(%r14), %eax
xorl $0x1, %eax
leal 0x4(,%rax,8), %r8d
xorl %eax, %eax
leaq (%r14,%rax,4), %rcx
addq $0x5c, %rcx
movss 0x1c4(%rcx), %xmm0
subss 0x1bc(%rcx), %xmm0
movss -0x1c(%rcx), %xmm1
addss %xmm1, %xmm1
addss -0x34(%rcx), %xmm1
leaq -0x28(%rbp), %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x91df1
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::Image(void*, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec4 const&, ImVec4 const&)
void ImGui::Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImVec4& border_col)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return;

    ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
    if (border_col.w > 0.0f)
        bb.Max += ImVec2(2, 2);
    ItemSize(bb);
    if (!ItemAdd(bb, 0))
        return;

    if (border_col.w > 0.0f)
    {
        window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(border_col), 0.0f);
        window->DrawList->AddImage(user_texture_id, bb.Min + ImVec2(1, 1), bb.Max - ImVec2(1, 1), uv0, uv1, GetColorU32(tint_col));
    }
    else
    {
        window->DrawList->AddImage(user_texture_id, bb.Min, bb.Max, uv0, uv1, GetColorU32(tint_col));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
leaq 0x6991e(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq 0x1ae0(%rax), %r14
movb $0x1, 0x90(%r14)
cmpb $0x0, 0x93(%r14)
jne 0x92537
movq %r9, %r13
movq %r8, %r12
movq %rdi, %r15
movq %rdx, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movss 0xd8(%r14), %xmm0
addss (%rsi), %xmm0
movss 0xdc(%r14), %xmm1
addss 0x4(%rsi), %xmm1
movaps %xmm0, %xmm2
unpcklps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
movq 0xd8(%r14), %rax
movq %rax, -0x38(%rbp)
movlps %xmm2, -0x30(%rbp)
movss 0xc(%r9), %xmm2
xorps %xmm3, %xmm3
ucomiss %xmm3, %xmm2
jbe 0x9243b
movss 0x2343f(%rip), %xmm2    # 0xb5868
addss %xmm2, %xmm0
movss %xmm0, -0x30(%rbp)
addss %xmm2, %xmm1
movss %xmm1, -0x2c(%rbp)
leaq -0x38(%rbp), %rbx
movss 0x22b89(%rip), %xmm0    # 0xb4fd0
movq %rbx, %rdi
callq 0x559be
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x524a8
testb %al, %al
je 0x92537
movss 0xc(%r13), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
movq 0x2b8(%r14), %rbx
jbe 0x92511
movq %r13, %rdi
callq 0x43c0c
leaq -0x38(%rbp), %r13
movss 0x22b54(%rip), %xmm1    # 0xb4fe4
xorps %xmm0, %xmm0
movq %rbx, %rdi
movq %r13, %rsi
leaq -0x30(%rbp), %rdx
movl %eax, %ecx
movl $0xf, %r8d
callq 0x7851c
movq 0x2b8(%r14), %rbx
movss (%r13), %xmm0
movss 0x22b25(%rip), %xmm1    # 0xb4fe4
addss %xmm1, %xmm0
addss 0x4(%r13), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
leaq -0x58(%rbp), %r14
movss 0x8(%r13), %xmm1
movss 0x22af2(%rip), %xmm2    # 0xb4fd0
addss %xmm2, %xmm1
addss 0xc(%r13), %xmm2
movlps %xmm0, (%r14)
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
leaq -0x50(%rbp), %r13
movlps %xmm1, (%r13)
movq %r12, %rdi
callq 0x43c0c
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r13, %rcx
jmp 0x9252a
movq %r12, %rdi
callq 0x43c0c
movl %eax, (%rsp)
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
leaq -0x30(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x48(%rbp), %r9
callq 0x79e9e
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::ImageButton(void*, ImVec2 const&, ImVec2 const&, ImVec2 const&, int, ImVec4 const&, ImVec4 const&)
bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, int frame_padding, const ImVec4& bg_col, const ImVec4& tint_col)
{
    ImGuiContext& g = *GImGui;
    ImGuiWindow* window = g.CurrentWindow;
    if (window->SkipItems)
        return false;

    // Default to using texture ID as ID. User can still push string/integer prefixes.
    PushID((void*)(intptr_t)user_texture_id);
    const ImGuiID id = window->GetID("#image");
    PopID();

    const ImVec2 padding = (frame_padding >= 0) ? ImVec2((float)frame_padding, (float)frame_padding) : g.Style.FramePadding;
    return ImageButtonEx(id, user_texture_id, size, uv0, uv1, padding, bg_col, tint_col);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x69502(%rip), %rax     # 0xfbcd0
movq (%rax), %r15
movq 0x1ae0(%r15), %r14
cmpb $0x0, 0x93(%r14)
je 0x927e6
xorl %eax, %eax
jmp 0x9285c
movl %r8d, %ebx
movq %rsi, %r12
movq %rdi, %r13
movq %rdx, -0x38(%rbp)
movq %rcx, -0x40(%rbp)
movq %r9, -0x48(%rbp)
callq 0x54d60
leaq 0x3ea6f(%rip), %rsi     # 0xd1276
movq %r14, %rdi
xorl %edx, %edx
callq 0x4570a
movl %eax, %r14d
callq 0x55082
testl %ebx, %ebx
js 0x9282d
cvtsi2ss %ebx, %xmm0
movss %xmm0, -0x30(%rbp)
movss %xmm0, -0x2c(%rbp)
jmp 0x92838
movq 0x1598(%r15), %rax
movq %rax, -0x30(%rbp)
leaq -0x30(%rbp), %r9
movl %r14d, %edi
movq %r13, %rsi
movq %r12, %rdx
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %r8
pushq 0x10(%rbp)
pushq -0x48(%rbp)
callq 0x92546
addq $0x10, %rsp
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::RadioButton(char const*, int*, int)
bool ImGui::RadioButton(const char* label, int* v, int v_button)
{
    const bool pressed = RadioButton(label, *v == v_button);
    if (pressed)
        *v = v_button;
    return pressed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
xorl %esi, %esi
cmpl %edx, (%r14)
sete %sil
callq 0x92c36
testb %al, %al
je 0x92ff0
movl %ebx, (%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::Bullet()
void ImGui::Bullet()
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return;

    ImGuiContext& g = *GImGui;
    const ImGuiStyle& style = g.Style;
    const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2), g.FontSize);
    const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize, line_height));
    ItemSize(bb);
    if (!ItemAdd(bb, 0))
    {
        SameLine(0, style.FramePadding.x * 2);
        return;
    }

    // Render and stay on same line
    ImU32 text_col = GetColorU32(ImGuiCol_Text);
    RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, line_height * 0.5f), text_col);
    SameLine(0, style.FramePadding.x * 2.0f);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
leaq 0x689f7(%rip), %rax     # 0xfbcd0
movq (%rax), %r14
movq 0x1ae0(%r14), %r15
movb $0x1, 0x90(%r15)
cmpb $0x0, 0x93(%r15)
jne 0x933e5
movss 0x104(%r15), %xmm0
movss 0x1980(%r14), %xmm1
movss 0x159c(%r14), %xmm2
addss %xmm2, %xmm2
addss %xmm1, %xmm2
minss %xmm2, %xmm0
movaps %xmm1, %xmm2
cmpless %xmm0, %xmm2
andps %xmm2, %xmm0
andnps %xmm1, %xmm2
addss 0xd8(%r15), %xmm1
orps %xmm0, %xmm2
movss 0xdc(%r15), %xmm0
movaps %xmm2, -0x40(%rbp)
addss %xmm2, %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movq 0xd8(%r15), %rax
leaq -0x28(%rbp), %rbx
movq %rax, (%rbx)
movlps %xmm1, 0x8(%rbx)
movss 0x21c68(%rip), %xmm0    # 0xb4fd0
movq %rbx, %rdi
callq 0x559be
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x524a8
testb %al, %al
je 0x933d0
movss 0x21c5c(%rip), %xmm0    # 0xb4fe4
xorl %edi, %edi
callq 0x43bca
movq 0x2b8(%r15), %rdi
movss 0x21c66(%rip), %xmm1    # 0xb5004
movss 0x1980(%r14), %xmm0
mulss %xmm1, %xmm0
addss 0x1598(%r14), %xmm0
addss -0x28(%rbp), %xmm0
movaps -0x40(%rbp), %xmm2
mulss %xmm1, %xmm2
addss -0x24(%rbp), %xmm2
unpcklps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movl %eax, %esi
callq 0x81f30
movss 0x1598(%r14), %xmm1
addss %xmm1, %xmm1
xorps %xmm0, %xmm0
callq 0x5591d
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::NewLine()
void ImGui::NewLine()
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return;

    ImGuiContext& g = *GImGui;
    const ImGuiLayoutType backup_layout_type = window->DC.LayoutType;
    window->DC.LayoutType = ImGuiLayoutType_Vertical;
    if (window->DC.CurrLineSize.y > 0.0f)     // In the event that we are on a line with items that is smaller that FontSize high, we will preserve its height.
        ItemSize(ImVec2(0, 0));
    else
        ItemSize(ImVec2(0.0f, g.FontSize));
    window->DC.LayoutType = backup_layout_type;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0x6880f(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq 0x1ae0(%rax), %rbx
movb $0x1, 0x90(%rbx)
cmpb $0x0, 0x93(%rbx)
jne 0x93534
movl 0x1bc(%rbx), %r14d
movl $0x1, 0x1bc(%rbx)
movss 0x104(%rbx), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x93509
leaq -0x18(%rbp), %rdi
movq $0x0, (%rdi)
jmp 0x93520
movss 0x1980(%rax), %xmm0
leaq -0x18(%rbp), %rdi
movl $0x0, (%rdi)
movss %xmm0, 0x4(%rdi)
movss 0x21aa8(%rip), %xmm0    # 0xb4fd0
callq 0x52315
movl %r14d, 0x1bc(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::AlignTextToFramePadding()
void ImGui::AlignTextToFramePadding()
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return;

    ImGuiContext& g = *GImGui;
    window->DC.CurrLineSize.y = ImMax(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2);
    window->DC.CurrLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, g.Style.FramePadding.y);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x68788(%rip), %rax     # 0xfbcd0
movq (%rax), %rcx
movq 0x1ae0(%rcx), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
jne 0x935bb
movss 0x159c(%rcx), %xmm0
movss 0x110(%rax), %xmm1
movaps %xmm0, %xmm2
cmpless %xmm1, %xmm2
andps %xmm2, %xmm1
andnps %xmm0, %xmm2
addss %xmm0, %xmm0
addss 0x1980(%rcx), %xmm0
movss 0x104(%rax), %xmm3
movaps %xmm0, %xmm4
cmpless %xmm3, %xmm4
movaps %xmm4, %xmm5
andnps %xmm0, %xmm5
andps %xmm3, %xmm4
orps %xmm5, %xmm4
movss %xmm4, 0x104(%rax)
orps %xmm1, %xmm2
movss %xmm2, 0x110(%rax)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::Separator()
void ImGui::Separator()
{
    ImGuiContext& g = *GImGui;
    ImGuiWindow* window = g.CurrentWindow;
    if (window->SkipItems)
        return;

    // Those flags should eventually be overridable by the user
    ImGuiSeparatorFlags flags = (window->DC.LayoutType == ImGuiLayoutType_Horizontal) ? ImGuiSeparatorFlags_Vertical : ImGuiSeparatorFlags_Horizontal;
    flags |= ImGuiSeparatorFlags_SpanAllColumns;
    SeparatorEx(flags);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x68435(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq 0x1ae0(%rax), %rax
cmpb $0x0, 0x93(%rax)
je 0x938b0
popq %rbp
retq
xorl %edi, %edi
cmpl $0x1, 0x1bc(%rax)
adcl $0x5, %edi
popq %rbp
jmp 0x935bd
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::Combo(char const*, int*, char const*, int)
bool ImGui::Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int height_in_items)
{
    int items_count = 0;
    const char* p = items_separated_by_zeros;       // FIXME-OPT: Avoid computing this, or at least only when combo is open
    while (*p)
    {
        p += strlen(p) + 1;
        items_count++;
    }
    bool value_changed = Combo(label, current_item, Items_SingleStringGetter, (void*)items_separated_by_zeros, items_count, height_in_items);
    return value_changed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, -0x2c(%rbp)
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
cmpb $0x0, (%rdx)
je 0x94bc2
xorl %r13d, %r13d
movq %rbx, %r14
movq %r14, %rdi
callq 0xc350
addq %rax, %r14
incq %r14
incl %r13d
cmpb $0x0, (%r14)
jne 0x94ba9
jmp 0x94bc5
xorl %r13d, %r13d
leaq 0x23(%rip), %rdx        # 0x94bef
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rcx
movl %r13d, %r8d
movl -0x2c(%rbp), %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x94493
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: Items_SingleStringGetter(void*, int, char const**)
static bool Items_SingleStringGetter(void* data, int idx, const char** out_text)
{
    // FIXME-OPT: we could pre-compute the indices to fasten this. But only 1 active combo means the waste is limited.
    const char* items_separated_by_zeros = (const char*)data;
    int items_count = 0;
    const char* p = items_separated_by_zeros;
    while (*p)
    {
        if (idx == items_count)
            break;
        p += strlen(p) + 1;
        items_count++;
    }
    if (!*p)
        return false;
    if (out_text)
        *out_text = p;
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movb (%rdi), %al
testb %al, %al
sete %cl
testl %esi, %esi
sete %dl
orb %cl, %dl
jne 0x94c35
movl %esi, %r15d
decl %r15d
movq %r14, %rdi
callq 0xc350
addq %rax, %r14
incq %r14
movb (%r14), %al
subl $0x1, %r15d
setb %cl
testb %al, %al
je 0x94c35
testb %cl, %cl
je 0x94c15
testq %rbx, %rbx
je 0x94c41
testb %al, %al
je 0x94c41
movq %r14, (%rbx)
testb %al, %al
setne %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::DataTypeFormatString(char*, int, int, void const*, char const*)
int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format)
{
    // Signedness doesn't matter when pushing integer arguments
    if (data_type == ImGuiDataType_S32 || data_type == ImGuiDataType_U32)
        return ImFormatString(buf, buf_size, format, *(const ImU32*)p_data);
    if (data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64)
        return ImFormatString(buf, buf_size, format, *(const ImU64*)p_data);
    if (data_type == ImGuiDataType_Float)
        return ImFormatString(buf, buf_size, format, *(const float*)p_data);
    if (data_type == ImGuiDataType_Double)
        return ImFormatString(buf, buf_size, format, *(const double*)p_data);
    if (data_type == ImGuiDataType_S8)
        return ImFormatString(buf, buf_size, format, *(const ImS8*)p_data);
    if (data_type == ImGuiDataType_U8)
        return ImFormatString(buf, buf_size, format, *(const ImU8*)p_data);
    if (data_type == ImGuiDataType_S16)
        return ImFormatString(buf, buf_size, format, *(const ImS16*)p_data);
    if (data_type == ImGuiDataType_U16)
        return ImFormatString(buf, buf_size, format, *(const ImU16*)p_data);
    IM_ASSERT(0);
    return 0;
}

// Assembly:
movl %edx, %eax
andl $-0x2, %eax
cmpl $0x6, %eax
je 0x94ca8
cmpl $0x4, %eax
jne 0x94cb8
movslq %esi, %rsi
movl (%rcx), %ecx
movq %r8, %rdx
xorl %eax, %eax
jmp 0x41f22
movslq %esi, %rsi
movq (%rcx), %rcx
movq %r8, %rdx
xorl %eax, %eax
jmp 0x41f22
cmpl $0x9, %edx
ja 0x94d09
movl %edx, %eax
leaq 0x3c15a(%rip), %rdx     # 0xd0e20
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movslq %esi, %rsi
movsbl (%rcx), %ecx
jmp 0x94c9e
movslq %esi, %rsi
cvtss2sd (%rcx), %xmm0
jmp 0x94cef
movslq %esi, %rsi
movzbl (%rcx), %ecx
jmp 0x94c9e
movslq %esi, %rsi
movsd (%rcx), %xmm0
movq %r8, %rdx
movb $0x1, %al
jmp 0x41f22
movslq %esi, %rsi
movswl (%rcx), %ecx
jmp 0x94c9e
movslq %esi, %rsi
movzwl (%rcx), %ecx
jmp 0x94c9e
pushq %rbp
movq %rsp, %rbp
leaq 0x233d8(%rip), %rdi     # 0xb80ec
leaq 0x3c2fd(%rip), %rsi     # 0xd1018
leaq 0x3c82a(%rip), %rcx     # 0xd154c
movl $0x724, %edx            # imm = 0x724
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::DataTypeCompare(int, void const*, void const*)
int ImGui::DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2)
{
    switch (data_type)
    {
    case ImGuiDataType_S8:     return DataTypeCompareT<ImS8  >((const ImS8*  )arg_1, (const ImS8*  )arg_2);
    case ImGuiDataType_U8:     return DataTypeCompareT<ImU8  >((const ImU8*  )arg_1, (const ImU8*  )arg_2);
    case ImGuiDataType_S16:    return DataTypeCompareT<ImS16 >((const ImS16* )arg_1, (const ImS16* )arg_2);
    case ImGuiDataType_U16:    return DataTypeCompareT<ImU16 >((const ImU16* )arg_1, (const ImU16* )arg_2);
    case ImGuiDataType_S32:    return DataTypeCompareT<ImS32 >((const ImS32* )arg_1, (const ImS32* )arg_2);
    case ImGuiDataType_U32:    return DataTypeCompareT<ImU32 >((const ImU32* )arg_1, (const ImU32* )arg_2);
    case ImGuiDataType_S64:    return DataTypeCompareT<ImS64 >((const ImS64* )arg_1, (const ImS64* )arg_2);
    case ImGuiDataType_U64:    return DataTypeCompareT<ImU64 >((const ImU64* )arg_1, (const ImU64* )arg_2);
    case ImGuiDataType_Float:  return DataTypeCompareT<float >((const float* )arg_1, (const float* )arg_2);
    case ImGuiDataType_Double: return DataTypeCompareT<double>((const double*)arg_1, (const double*)arg_2);
    case ImGuiDataType_COUNT:  break;
    }
    IM_ASSERT(0);
    return 0;
}

// Assembly:
cmpl $0x9, %edi
ja 0x9567f
movl %edi, %eax
leaq 0x3b882(%rip), %rcx     # 0xd0e80
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb (%rsi), %al
cmpb (%rdx), %al
jmp 0x95658
movl (%rsi), %eax
cmpl (%rdx), %eax
jmp 0x95658
movsd (%rsi), %xmm0
movsd (%rdx), %xmm1
ucomisd %xmm0, %xmm1
seta %al
ucomisd %xmm1, %xmm0
jmp 0x9564d
movzwl (%rsi), %eax
cmpw (%rdx), %ax
jmp 0x95658
movzwl (%rsi), %eax
cmpw (%rdx), %ax
jmp 0x9564a
movq (%rsi), %rax
cmpq (%rdx), %rax
jmp 0x9564a
movb (%rsi), %al
cmpb (%rdx), %al
jmp 0x9564a
movl (%rsi), %eax
cmpl (%rdx), %eax
setb %al
seta %cl
jmp 0x9565e
movq (%rsi), %rax
cmpq (%rdx), %rax
setl %al
setg %cl
movzbl %cl, %ecx
testb %al, %al
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovel %ecx, %eax
retq
movss (%rsi), %xmm0
movss (%rdx), %xmm1
ucomiss %xmm0, %xmm1
seta %al
ucomiss %xmm1, %xmm0
jmp 0x9564d
pushq %rbp
movq %rsp, %rbp
leaq 0x22a62(%rip), %rdi     # 0xb80ec
leaq 0x3b987(%rip), %rsi     # 0xd1018
leaq 0x3bfe0(%rip), %rcx     # 0xd1678
movl $0x7d7, %edx            # imm = 0x7D7
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: PatchFormatStringFloatToInt(char const*)
static const char* PatchFormatStringFloatToInt(const char* fmt)
{
    if (fmt[0] == '%' && fmt[1] == '.' && fmt[2] == '0' && fmt[3] == 'f' && fmt[4] == 0) // Fast legacy path for "%.0f" which is expected to be the most common case.
        return "%d";
    const char* fmt_start = ImParseFormatFindStart(fmt);    // Find % (if any, and ignore %%)
    const char* fmt_end = ImParseFormatFindEnd(fmt_start);  // Find end of format specifier, which itself is an exercise of confidence/recklessness (because snprintf is dependent on libc or user).
    if (fmt_end > fmt_start && fmt_end[-1] == 'f')
    {
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
        if (fmt_start == fmt && fmt_end[0] == 0)
            return "%d";
        ImGuiContext& g = *GImGui;
        ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%.*s%%d%s", (int)(fmt_start - fmt), fmt, fmt_end); // Honor leading and trailing decorations, but lose alignment/precision.
        return g.TempBuffer;
#else
        IM_ASSERT(0 && "DragInt(): Invalid format string!"); // Old versions used a default parameter of "%.0f", please replace with e.g. "%d"
#endif
    }
    return fmt;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl (%rdi), %eax
movq %rdi, %r14
testl %eax, %eax
je 0x96176
cmpl $0x25, %eax
jne 0x96154
cmpb $0x2e, 0x1(%rbx)
jne 0x96154
cmpb $0x30, 0x2(%rbx)
jne 0x96154
cmpb $0x66, 0x3(%rbx)
jne 0x96154
cmpb $0x0, 0x4(%rbx)
je 0x961d6
movq %rbx, %r14
cmpb $0x25, %al
jne 0x96162
cmpb $0x25, 0x1(%r14)
jne 0x96176
xorl %ecx, %ecx
cmpb $0x25, %al
sete %cl
addq %rcx, %r14
incq %r14
movb (%r14), %al
testb %al, %al
jne 0x96157
movq %r14, %rdi
callq 0x97aae
cmpq %r14, %rax
jbe 0x961c8
cmpb $0x66, -0x1(%rax)
jne 0x961c8
cmpq %rbx, %r14
jne 0x96193
cmpb $0x0, (%rax)
je 0x961d6
leaq 0x65b36(%rip), %rcx     # 0xfbcd0
movl $0x3378, %r15d          # imm = 0x3378
addq (%rcx), %r15
subl %ebx, %r14d
leaq 0x3cd97(%rip), %rdx     # 0xd2f44
movl $0xc01, %esi            # imm = 0xC01
movq %r15, %rdi
movl %r14d, %ecx
movq %rbx, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x41f22
movq %r15, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x26275(%rip), %rbx     # 0xbc452
jmp 0x961c8
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::DragScalarN(char const*, int, void*, int, float, void const*, void const*, char const*, int)
bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return false;

    ImGuiContext& g = *GImGui;
    bool value_changed = false;
    BeginGroup();
    PushID(label);
    PushMultiItemsWidths(components, CalcItemWidth());
    size_t type_size = GDataTypeInfo[data_type].Size;
    for (int i = 0; i < components; i++)
    {
        PushID(i);
        if (i > 0)
            SameLine(0, g.Style.ItemInnerSpacing.x);
        value_changed |= DragScalar("", data_type, p_data, v_speed, p_min, p_max, format, flags);
        PopID();
        PopItemWidth();
        p_data = (void*)((char*)p_data + type_size);
    }
    PopID();

    const char* label_end = FindRenderedTextEnd(label);
    if (label != label_end)
    {
        SameLine(0, g.Style.ItemInnerSpacing.x);
        TextEx(label, label_end);
    }

    EndGroup();
    return value_changed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, -0x50(%rbp)
movq %r8, -0x48(%rbp)
movss %xmm0, -0x30(%rbp)
movl %esi, -0x2c(%rbp)
leaq 0x6594a(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq 0x1ae0(%rax), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
je 0x963ac
xorl %r15d, %r15d
jmp 0x96499
movl %ecx, %r13d
movq %rdx, %rbx
movq %rdi, %r14
callq 0x56428
movq %r14, -0x40(%rbp)
movq %r14, %rdi
callq 0x54b5f
callq 0x5614d
movl %r13d, %edi
callq 0x55e21
xorl %r12d, %r12d
testl %r13d, %r13d
jle 0x96455
movslq -0x2c(%rbp), %rax
shlq $0x5, %rax
leaq 0x60626(%rip), %rcx     # 0xf6a10
movq (%rax,%rcx), %r14
xorl %r15d, %r15d
movl %r12d, %edi
callq 0x54e5e
testl %r12d, %r12d
je 0x96412
movq -0x38(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0x5591d
movl 0x18(%rbp), %eax
movl %eax, (%rsp)
leaq 0x1eafe(%rip), %rdi     # 0xb4f1d
movl -0x2c(%rbp), %esi
movq %rbx, %rdx
movss -0x30(%rbp), %xmm0
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq 0x10(%rbp), %r9
callq 0x95c7f
orb %al, %r15b
callq 0x55082
callq 0x560da
addq %r14, %rbx
incl %r12d
cmpl %r12d, %r13d
jne 0x963f1
jmp 0x96458
xorl %r15d, %r15d
callq 0x55082
movq -0x40(%rbp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x4443d
cmpq %r14, %rax
je 0x96494
movq %rax, %rbx
movq -0x38(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0x5591d
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x8fe70
callq 0x55617
andb $0x1, %r15b
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::SliderScalarN(char const*, int, void*, int, void const*, void const*, char const*, int)
bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, ImGuiSliderFlags flags)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return false;

    ImGuiContext& g = *GImGui;
    bool value_changed = false;
    BeginGroup();
    PushID(label);
    PushMultiItemsWidths(components, CalcItemWidth());
    size_t type_size = GDataTypeInfo[data_type].Size;
    for (int i = 0; i < components; i++)
    {
        PushID(i);
        if (i > 0)
            SameLine(0, g.Style.ItemInnerSpacing.x);
        value_changed |= SliderScalar("", data_type, v, v_min, v_max, format, flags);
        PopID();
        PopItemWidth();
        v = (void*)((char*)v + type_size);
    }
    PopID();

    const char* label_end = FindRenderedTextEnd(label);
    if (label != label_end)
    {
        SameLine(0, g.Style.ItemInnerSpacing.x);
        TextEx(label, label_end);
    }

    EndGroup();
    return value_changed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, -0x50(%rbp)
movq %r8, -0x48(%rbp)
movl %esi, -0x2c(%rbp)
leaq 0x64a4d(%rip), %rax     # 0xfbcd0
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq 0x1ae0(%rax), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
je 0x972a9
xorl %r14d, %r14d
jmp 0x97391
movl %ecx, %r13d
movq %rdx, %rbx
movq %rdi, %r14
callq 0x56428
movq %r14, -0x40(%rbp)
movq %r14, %rdi
callq 0x54b5f
callq 0x5614d
movl %r13d, %edi
callq 0x55e21
xorl %r12d, %r12d
testl %r13d, %r13d
jle 0x9734d
movslq -0x2c(%rbp), %rax
shlq $0x5, %rax
leaq 0x5f729(%rip), %rcx     # 0xf6a10
movq (%rax,%rcx), %r15
xorl %r14d, %r14d
movl %r12d, %edi
callq 0x54e5e
testl %r12d, %r12d
je 0x9730f
movq -0x38(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0x5591d
movl 0x18(%rbp), %eax
movl %eax, (%rsp)
leaq 0x1dc01(%rip), %rdi     # 0xb4f1d
movl -0x2c(%rbp), %esi
movq %rbx, %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq 0x10(%rbp), %r9
callq 0x96e02
orb %al, %r14b
callq 0x55082
callq 0x560da
addq %r15, %rbx
incl %r12d
cmpl %r12d, %r13d
jne 0x972ee
jmp 0x97350
xorl %r14d, %r14d
callq 0x55082
movq -0x40(%rbp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x4443d
cmpq %r15, %rax
je 0x9738c
movq %rax, %rbx
movq -0x38(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0x5591d
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x8fe70
callq 0x55617
andb $0x1, %r14b
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::SliderAngle(char const*, float*, float, float, char const*, int)
bool ImGui::SliderAngle(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags)
{
    if (format == NULL)
        format = "%.0f deg";
    float v_deg = (*v_rad) * 360.0f / (2 * IM_PI);
    bool value_changed = SliderFloat(label, &v_deg, v_degrees_min, v_degrees_max, format, flags);
    *v_rad = v_deg * (2 * IM_PI) / 360.0f;
    return value_changed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
testq %rdx, %rdx
leaq 0x2612d(%rip), %r9      # 0xbd5cf
cmovneq %rdx, %r9
movss (%rsi), %xmm2
mulss 0x23a46(%rip), %xmm2    # 0xbaef8
divss 0x2f49a(%rip), %xmm2    # 0xc6954
leaq -0x14(%rbp), %r14
movss %xmm2, (%r14)
leaq -0x1c(%rbp), %rax
movss %xmm0, (%rax)
leaq -0x18(%rbp), %r8
movss %xmm1, (%r8)
movl %ecx, (%rsp)
movl $0x8, %esi
movq %r14, %rdx
movq %rax, %rcx
callq 0x96e02
movss 0x2f465(%rip), %xmm0    # 0xc6954
mulss (%r14), %xmm0
divss 0x239fc(%rip), %xmm0    # 0xbaef8
movss %xmm0, (%rbx)
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq