LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/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 0x6a4dd(%rip), %rax     # 0xe3ce0
movl $0x1634, %esi           # imm = 0x1634
addq (%rax), %rsi
xorl %edi, %edi
callq 0x35e60
cmpb $0x25, (%r14)
jne 0x79826
cmpb $0x73, 0x1(%r14)
jne 0x79826
cmpb $0x0, 0x2(%r14)
je 0x7983d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x79627
pushq $0x1
popq %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x35eb4
movl (%rbx), %ecx
cmpq $0x28, %rcx
ja 0x79853
movq %rcx, %rax
addq 0x10(%rbx), %rax
addl $0x8, %ecx
movl %ecx, (%rbx)
jmp 0x7985f
movq 0x8(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq (%rax), %rdi
pushq $0x1
popq %rdx
xorl %esi, %esi
callq 0x7911c
jmp 0x79831
// File: /workspace/github_cpp_makefile_star2_O2/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 0x6a3df(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x1ae0(%rax), %rax
movss 0x1d4(%rax), %xmm1
xorps %xmm0, %xmm0
movss %xmm1, -0x14(%rbp)
ucomiss %xmm1, %xmm0
jbe 0x79925
callq 0x4250d
cmpb $0x25, (%r14)
jne 0x79939
cmpb $0x73, 0x1(%r14)
jne 0x79939
cmpb $0x0, 0x2(%r14)
je 0x79963
movq %r14, %rdi
movq %rbx, %rsi
callq 0x79627
xorps %xmm0, %xmm0
ucomiss -0x14(%rbp), %xmm0
jbe 0x7995a
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x4254c
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl (%rbx), %ecx
cmpq $0x28, %rcx
ja 0x79979
movq %rcx, %rax
addq 0x10(%rbx), %rax
addl $0x8, %ecx
movl %ecx, (%rbx)
jmp 0x79985
movq 0x8(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq (%rax), %rdi
pushq $0x1
popq %rdx
xorl %esi, %esi
callq 0x7911c
jmp 0x79944
// File: /workspace/github_cpp_makefile_star2_O2/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 0x69679(%rip), %rax     # 0xe3ce0
movq (%rax), %rbx
movss 0x159c(%rbx), %xmm0
movss %xmm0, -0xc(%rbp)
andl $0x0, 0x159c(%rbx)
leaq -0x14(%rbp), %rsi
andq $0x0, (%rsi)
movl $0x8000, %edx           # imm = 0x8000
callq 0x7a3f7
movss -0xc(%rbp), %xmm0
movss %xmm0, 0x159c(%rbx)
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x69624(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x1ae0(%rax), %r12
movb $0x1, 0x90(%r12)
cmpb $0x0, 0x93(%r12)
je 0x7a6e2
xorl %r14d, %r14d
jmp 0x7a7a2
movq %rsi, %r13
movss (%rsi), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm1
jne 0x7a6f7
jnp 0x7a7b4
movss 0x4(%r13), %xmm1
ucomiss %xmm0, %xmm1
jne 0x7a708
jnp 0x7a7b4
movl %edx, %ebx
movq %rdi, %rsi
xorl %r14d, %r14d
movq %r12, %rdi
xorl %edx, %edx
callq 0x3700a
movl %eax, %r15d
movsd (%r13), %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x43dc5
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 0x2187e(%rip), %xmm0    # 0x9bff0
callq 0x40d3b
movq %r12, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x40ea5
testb %al, %al
je 0x7a7a2
leaq -0x40(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
leaq -0x29(%rbp), %rcx
movl %r15d, %esi
movl %ebx, %r8d
callq 0x79dde
movl %eax, %r14d
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3dcbd(%rip), %rdi     # 0xb8478
leaq 0x3dbc6(%rip), %rsi     # 0xb8388
leaq 0x3dcd8(%rip), %rcx     # 0xb84a1
movl $0x2da, %edx            # imm = 0x2DA
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r14
pushq %rbx
subq $0x70, %rsp
movl %esi, %ebx
movq %rdi, %r14
callq 0x4b560
movaps %xmm0, -0x30(%rbp)
movaps %xmm1, -0x40(%rbp)
movss 0x4c(%r14), %xmm0
movss %xmm0, -0x14(%rbp)
movss 0x218(%r14), %xmm0
movaps %xmm0, -0x60(%rbp)
movss 0x21c(%r14), %xmm0
movaps %xmm0, -0x80(%rbp)
movss 0x220(%r14), %xmm0
movaps %xmm0, -0x50(%rbp)
movss 0x224(%r14), %xmm0
movaps %xmm0, -0x70(%rbp)
addq $0x84, %r14
movl %ebx, %eax
xorl $0x1, %eax
movslq %eax, %rsi
movq %r14, %rdi
callq 0x8e818
movss (%rax), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x7af1f
testl %ebx, %ebx
je 0x7aed7
movaps -0x40(%rbp), %xmm1
movaps -0x70(%rbp), %xmm4
movlhps %xmm1, %xmm4            # xmm4 = xmm4[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm4     # xmm4 = xmm4[2,0],xmm1[2,3]
subss -0x14(%rbp), %xmm1
subss %xmm0, %xmm1
movaps %xmm1, %xmm0
movaps -0x30(%rbp), %xmm2
cmpless %xmm2, %xmm0
movaps %xmm0, %xmm3
andnps %xmm1, %xmm3
andps %xmm2, %xmm0
orps %xmm3, %xmm0
unpcklps -0x80(%rbp), %xmm0      # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
movaps %xmm4, %xmm1
jmp 0x7af16
movaps -0x30(%rbp), %xmm4
shufps $0x55, %xmm4, %xmm4     # xmm4 = xmm4[1,1,1,1]
movaps -0x40(%rbp), %xmm1
movaps %xmm1, %xmm3
shufps $0x55, %xmm1, %xmm3     # xmm3 = xmm3[1,1],xmm1[1,1]
subss -0x14(%rbp), %xmm3
subss %xmm0, %xmm3
movaps %xmm3, %xmm5
cmpless %xmm4, %xmm5
movaps %xmm5, %xmm2
andnps %xmm3, %xmm2
andps %xmm4, %xmm5
orps %xmm2, %xmm5
movaps -0x60(%rbp), %xmm0
unpcklps %xmm5, %xmm0            # xmm0 = xmm0[0],xmm5[0],xmm0[1],xmm5[1]
movaps -0x50(%rbp), %xmm2
movss %xmm2, %xmm1            # xmm1 = xmm2[0],xmm1[1,2,3]
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x3d5d9(%rip), %rdi     # 0xb84ff
leaq 0x3d45b(%rip), %rsi     # 0xb8388
leaq 0x3d5e1(%rip), %rcx     # 0xb8515
movl $0x351, %edx            # imm = 0x351
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edi, %ebx
leaq 0x68d88(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x1ae0(%rax), %r15
movq %r15, %rdi
movl %ebx, %esi
callq 0x7adf7
movl %eax, -0x34(%rbp)
movl %eax, %edi
callq 0x370fd
movq %r15, %rdi
movl %ebx, %esi
callq 0x7ae17
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, -0x48(%rbp)
testl %ebx, %ebx
je 0x7afb6
movl $0x401, %eax            # imm = 0x401
andl 0xc(%r15), %eax
xorl %ecx, %ecx
cmpl $0x1, %eax
sete %cl
leal 0x8(,%rcx,2), %r12d
movl %ecx, %eax
addl %ecx, %eax
cmpb $0x0, 0x8c(%r15)
cmovnel %eax, %r12d
jmp 0x7afc9
movzbl 0x8d(%r15), %eax
xorl $0x1, %eax
leal 0x4(,%rax,8), %r12d
leaq 0x218(%r15), %r14
leaq 0x220(%r15), %rdi
movslq %ebx, %r13
movq %r13, %rsi
callq 0x8e818
movss (%rax), %xmm0
movss %xmm0, -0x30(%rbp)
movq %r14, %rdi
movq %r13, %rsi
callq 0x8e818
movss -0x30(%rbp), %xmm0
subss (%rax), %xmm0
movss %xmm0, -0x30(%rbp)
leaq 0x28(%r15), %rdi
movq %r13, %rsi
callq 0x8e818
movss (%rax), %xmm0
movss %xmm0, -0x2c(%rbp)
leaq 0x40(%r15), %rdi
movq %r13, %rsi
callq 0x8e818
movss (%rax), %xmm0
addss %xmm0, %xmm0
addss -0x2c(%rbp), %xmm0
movss %xmm0, -0x2c(%rbp)
addq $0x5c, %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0x8e818
leaq -0x48(%rbp), %rdi
movl -0x34(%rbp), %esi
movl %ebx, %edx
movq %rax, %rcx
movss -0x30(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
movl %r12d, %r8d
callq 0x7b073
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x686a8(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x1ae0(%rax), %r14
movb $0x1, 0x90(%r14)
cmpb $0x0, 0x93(%r14)
jne 0x7b7bb
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 0x7b6c1
movss 0x211e5(%rip), %xmm2    # 0x9c894
addss %xmm2, %xmm0
movss %xmm0, -0x30(%rbp)
addss %xmm2, %xmm1
movss %xmm1, -0x2c(%rbp)
leaq -0x38(%rbp), %rbx
movss 0x20923(%rip), %xmm0    # 0x9bff0
movq %rbx, %rdi
callq 0x4388d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x40ea5
testb %al, %al
je 0x7b7bb
movss 0xc(%r13), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
movq 0x2b8(%r14), %rbx
jbe 0x7b795
movq %r13, %rdi
callq 0x35d75
leaq -0x38(%rbp), %r13
pushq $0xf
popq %r8
movss 0x208de(%rip), %xmm1    # 0x9bff8
xorps %xmm0, %xmm0
movq %rbx, %rdi
movq %r13, %rsi
leaq -0x30(%rbp), %rdx
movl %eax, %ecx
callq 0x63f6c
movq 0x2b8(%r14), %rbx
movss (%r13), %xmm0
movss 0x208b5(%rip), %xmm1    # 0x9bff8
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 0x2088e(%rip), %xmm2    # 0x9bff0
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 0x35d75
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r13, %rcx
jmp 0x7b7ae
movq %r12, %rdi
callq 0x35d75
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 0x64ee2
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x68295(%rip), %rax     # 0xe3ce0
movq (%rax), %r15
movq 0x1ae0(%r15), %r14
cmpb $0x0, 0x93(%r14)
je 0x7ba63
xorl %eax, %eax
jmp 0x7bad7
movl %r8d, %ebx
movq %rsi, %r12
movq %rdi, %r13
movq %rdx, -0x38(%rbp)
movq %rcx, -0x40(%rbp)
movq %r9, -0x48(%rbp)
callq 0x42f1f
leaq 0x3cb62(%rip), %rsi     # 0xb85e6
movq %r14, %rdi
xorl %edx, %edx
callq 0x3700a
movl %eax, %r14d
callq 0x42fea
testl %ebx, %ebx
js 0x7baaa
cvtsi2ss %ebx, %xmm0
movss %xmm0, -0x30(%rbp)
movss %xmm0, -0x2c(%rbp)
jmp 0x7bab5
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 0x7b7ca
popq %rcx
popq %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x7bea5
testb %al, %al
je 0x7c249
movl %ebx, (%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x677b6(%rip), %rax     # 0xe3ce0
movq (%rax), %r14
movq 0x1ae0(%r14), %r15
movb $0x1, 0x90(%r15)
cmpb $0x0, 0x93(%r15)
jne 0x7c636
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 0x1fa37(%rip), %xmm0    # 0x9bff0
movq %rbx, %rdi
callq 0x4388d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x40ea5
testb %al, %al
je 0x7c621
movss 0x1fa1f(%rip), %xmm0    # 0x9bff8
xorl %edi, %edi
callq 0x35d33
movq 0x2b8(%r15), %rdi
movss 0x1fa29(%rip), %xmm1    # 0x9c018
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 0x6ba15
movss 0x1598(%r14), %xmm1
addss %xmm1, %xmm1
xorps %xmm0, %xmm0
callq 0x437ec
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x675d1(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x1ae0(%rax), %rbx
movb $0x1, 0x90(%rbx)
cmpb $0x0, 0x93(%rbx)
jne 0x7c77c
movl 0x1bc(%rbx), %r14d
movl $0x1, 0x1bc(%rbx)
movss 0x104(%rbx), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x7c754
leaq -0x18(%rbp), %rdi
andq $0x0, (%rdi)
jmp 0x7c768
movss 0x1980(%rax), %xmm0
leaq -0x18(%rbp), %rdi
andl $0x0, (%rdi)
movss %xmm0, 0x4(%rdi)
movss 0x1f880(%rip), %xmm0    # 0x9bff0
callq 0x40d3b
movl %r14d, 0x1bc(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x67550(%rip), %rax     # 0xe3ce0
movq (%rax), %rcx
movq 0x1ae0(%rcx), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
jne 0x7c803
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_O2/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 0x671fe(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x1ae0(%rax), %rax
cmpb $0x0, 0x93(%rax)
je 0x7caf7
popq %rbp
retq
xorl %edi, %edi
cmpl $0x1, 0x1bc(%rax)
adcl $0x5, %edi
popq %rbp
jmp 0x7c805
// File: /workspace/github_cpp_makefile_star2_O2/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, %r12
movq %rdi, %r13
xorl %r15d, %r15d
movq %rdx, %r14
cmpb $0x0, (%r14)
je 0x7dd81
movq %r14, %rdi
callq 0xc380
addq %rax, %r14
incq %r14
incl %r15d
jmp 0x7dd68
leaq 0x23(%rip), %rdx        # 0x7ddab
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rcx
movl %r15d, %r8d
movl -0x2c(%rbp), %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7d6b9
// File: /workspace/github_cpp_makefile_star2_O2/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
movl %esi, %r15d
movq %rdi, %r14
movb (%r14), %al
subl $0x1, %r15d
setb %cl
testb %al, %al
je 0x7dde0
testb %cl, %cl
jne 0x7dde0
movq %r14, %rdi
callq 0xc380
addq %rax, %r14
incq %r14
jmp 0x7ddbe
testq %rbx, %rbx
je 0x7ddec
testb %al, %al
je 0x7ddec
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_O2/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 0x7de53
cmpl $0x4, %eax
jne 0x7de63
movslq %esi, %rsi
movl (%rcx), %ecx
movq %r8, %rdx
xorl %eax, %eax
jmp 0x3468c
movslq %esi, %rsi
movq (%rcx), %rcx
movq %r8, %rdx
xorl %eax, %eax
jmp 0x3468c
cmpl $0x9, %edx
ja 0x7deb4
movl %edx, %eax
leaq 0x3a31f(%rip), %rdx     # 0xb8190
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movslq %esi, %rsi
movsbl (%rcx), %ecx
jmp 0x7de49
movslq %esi, %rsi
cvtss2sd (%rcx), %xmm0
jmp 0x7de9a
movslq %esi, %rsi
movzbl (%rcx), %ecx
jmp 0x7de49
movslq %esi, %rsi
movsd (%rcx), %xmm0
movq %r8, %rdx
movb $0x1, %al
jmp 0x3468c
movslq %esi, %rsi
movswl (%rcx), %ecx
jmp 0x7de49
movslq %esi, %rsi
movzwl (%rcx), %ecx
jmp 0x7de49
pushq %rbp
movq %rsp, %rbp
leaq 0x2125d(%rip), %rdi     # 0x9f11c
leaq 0x3a4c2(%rip), %rsi     # 0xb8388
leaq 0x3a9ef(%rip), %rcx     # 0xb88bc
movl $0x724, %edx            # imm = 0x724
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/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 0x7e797
movl %edi, %eax
leaq 0x39ad8(%rip), %rcx     # 0xb81f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb (%rsi), %al
cmpb (%rdx), %al
jmp 0x7e772
movl (%rsi), %eax
cmpl (%rdx), %eax
jmp 0x7e772
movsd (%rsi), %xmm0
movsd (%rdx), %xmm1
ucomisd %xmm0, %xmm1
seta %al
ucomisd %xmm1, %xmm0
jmp 0x7e767
movzwl (%rsi), %eax
cmpw (%rdx), %ax
jmp 0x7e772
movzwl (%rsi), %eax
cmpw (%rdx), %ax
jmp 0x7e764
movq (%rsi), %rax
cmpq (%rdx), %rax
jmp 0x7e764
movb (%rsi), %al
cmpb (%rdx), %al
jmp 0x7e764
movl (%rsi), %eax
cmpl (%rdx), %eax
setb %al
seta %cl
jmp 0x7e778
movq (%rsi), %rax
cmpq (%rdx), %rax
setl %al
setg %cl
movzbl %cl, %ecx
testb %al, %al
pushq $-0x1
popq %rax
cmovel %ecx, %eax
retq
movss (%rsi), %xmm0
movss (%rdx), %xmm1
ucomiss %xmm0, %xmm1
seta %al
ucomiss %xmm1, %xmm0
jmp 0x7e767
pushq %rbp
movq %rsp, %rbp
leaq 0x2097a(%rip), %rdi     # 0x9f11c
leaq 0x39bdf(%rip), %rsi     # 0xb8388
leaq 0x3a238(%rip), %rcx     # 0xb89e8
movl $0x7d7, %edx            # imm = 0x7D7
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/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
cmpb $0x25, (%rdi)
jne 0x7f214
cmpb $0x2e, 0x1(%rbx)
jne 0x7f214
cmpb $0x30, 0x2(%rbx)
jne 0x7f214
cmpb $0x66, 0x3(%rbx)
jne 0x7f214
cmpb $0x0, 0x4(%rbx)
je 0x7f273
movq %rbx, %rdi
callq 0x809e0
movq %rax, %r14
movq %rax, %rdi
callq 0x80a0a
cmpq %r14, %rax
jbe 0x7f27a
cmpb $0x66, -0x1(%rax)
jne 0x7f27a
cmpq %rbx, %r14
jne 0x7f23c
cmpb $0x0, (%rax)
je 0x7f273
leaq 0x64a9d(%rip), %rcx     # 0xe3ce0
movl $0x3378, %r15d          # imm = 0x3378
addq (%rcx), %r15
subl %ebx, %r14d
leaq 0x3b05e(%rip), %rdx     # 0xba2b4
movl $0xc01, %esi            # imm = 0xC01
movq %r15, %rdi
movl %r14d, %ecx
movq %rbx, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x3468c
movq %r15, %rbx
jmp 0x7f27a
leaq 0x24508(%rip), %rbx     # 0xa3782
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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, -0x58(%rbp)
movq %r8, -0x50(%rbp)
movss %xmm0, -0x34(%rbp)
leaq 0x648ea(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq 0x1ae0(%rax), %rax
movb $0x1, 0x90(%rax)
xorl %r15d, %r15d
cmpb $0x0, 0x93(%rax)
movl $0x0, %r14d
jne 0x7f514
movq %rdx, %r13
movq %rdi, %rbx
movl %esi, %r14d
movl %ecx, -0x2c(%rbp)
callq 0x43ff2
movq %rbx, -0x48(%rbp)
movq %rbx, %rdi
callq 0x42ea4
callq 0x43d17
movl -0x2c(%rbp), %edi
callq 0x43bdb
movl %r14d, -0x30(%rbp)
movslq %r14d, %rax
shlq $0x5, %rax
leaq 0x5f5d3(%rip), %rcx     # 0xdea30
movq (%rax,%rcx), %rbx
movl -0x2c(%rbp), %r12d
testl %r12d, %r12d
cmovlel %r15d, %r12d
xorl %r14d, %r14d
cmpl %r15d, %r12d
je 0x7f4d3
movl %r15d, %edi
callq 0x42f5a
testl %r15d, %r15d
je 0x7f495
movq -0x40(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0x437ec
movl 0x18(%rbp), %eax
movl %eax, (%rsp)
leaq 0x1ca7f(%rip), %rdi     # 0x9bf21
movl -0x30(%rbp), %esi
movq %r13, %rdx
movss -0x34(%rbp), %xmm0
movq -0x50(%rbp), %rcx
movq -0x58(%rbp), %r8
movq 0x10(%rbp), %r9
callq 0x7ed70
orb %al, %r14b
callq 0x42fea
callq 0x43cbe
addq %rbx, %r13
incl %r15d
jmp 0x7f46f
callq 0x42fea
movq -0x48(%rbp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x36123
cmpq %r15, %rax
je 0x7f50f
movq %rax, %rbx
movq -0x40(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0x437ec
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x7911c
callq 0x4352b
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_O2/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)
leaq 0x63a8b(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq 0x1ae0(%rax), %rax
movb $0x1, 0x90(%rax)
xorl %r15d, %r15d
cmpb $0x0, 0x93(%rax)
movl $0x0, %r14d
jne 0x8036e
movq %rdx, %r13
movq %rdi, %rbx
movl %esi, %r14d
movl %ecx, -0x2c(%rbp)
callq 0x43ff2
movq %rbx, -0x40(%rbp)
movq %rbx, %rdi
callq 0x42ea4
callq 0x43d17
movl -0x2c(%rbp), %edi
callq 0x43bdb
movl %r14d, -0x30(%rbp)
movslq %r14d, %rax
shlq $0x5, %rax
leaq 0x5e774(%rip), %rcx     # 0xdea30
movq (%rax,%rcx), %rbx
movl -0x2c(%rbp), %r12d
testl %r12d, %r12d
cmovlel %r15d, %r12d
xorl %r14d, %r14d
cmpl %r15d, %r12d
je 0x8032d
movl %r15d, %edi
callq 0x42f5a
testl %r15d, %r15d
je 0x802f4
movq -0x38(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0x437ec
movl 0x18(%rbp), %eax
movl %eax, (%rsp)
leaq 0x1bc20(%rip), %rdi     # 0x9bf21
movl -0x30(%rbp), %esi
movq %r13, %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq 0x10(%rbp), %r9
callq 0x7fe1e
orb %al, %r14b
callq 0x42fea
callq 0x43cbe
addq %rbx, %r13
incl %r15d
jmp 0x802ce
callq 0x42fea
movq -0x40(%rbp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x36123
cmpq %r15, %rax
je 0x80369
movq %rax, %rbx
movq -0x38(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0x437ec
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x7911c
callq 0x4352b
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_O2/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 $0x10, %rsp
movq %rsi, %rbx
testq %rdx, %rdx
leaq 0x24488(%rip), %rax     # 0xa48ff
cmoveq %rax, %rdx
movss (%rsi), %xmm2
mulss 0x21dad(%rip), %xmm2    # 0xa2234
divss 0x2d7f5(%rip), %xmm2    # 0xadc84
leaq -0x14(%rbp), %r14
movss %xmm2, (%r14)
movq %r14, %rsi
callq 0x80384
movss 0x2d7dc(%rip), %xmm0    # 0xadc84
mulss (%r14), %xmm0
divss 0x21d7f(%rip), %xmm0    # 0xa2234
movss %xmm0, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImParseFormatFindEnd(char const*)
const char* ImParseFormatFindEnd(const char* fmt)
{
    // Printf/scanf types modifiers: I/L/h/j/l/t/w/z. Other uppercase letters qualify as types aka end of the format.
    if (fmt[0] != '%')
        return fmt;
    const unsigned int ignored_uppercase_mask = (1 << ('I'-'A')) | (1 << ('L'-'A'));
    const unsigned int ignored_lowercase_mask = (1 << ('h'-'a')) | (1 << ('j'-'a')) | (1 << ('l'-'a')) | (1 << ('t'-'a')) | (1 << ('w'-'a')) | (1 << ('z'-'a'));
    for (char c; (c = *fmt) != 0; fmt++)
    {
        if (c >= 'A' && c <= 'Z' && ((1 << (c - 'A')) & ignored_uppercase_mask) == 0)
            return fmt + 1;
        if (c >= 'a' && c <= 'z' && ((1 << (c - 'a')) & ignored_lowercase_mask) == 0)
            return fmt + 1;
    }
    return fmt;
}

// Assembly:
movq %rdi, %rax
cmpb $0x25, (%rdi)
jne 0x80a63
pushq %rbp
movq %rsp, %rbp
incq %rax
movb $0x25, %sil
movl $0x900, %ecx            # imm = 0x900
movl $0x2480a80, %edx        # imm = 0x2480A80
testb %sil, %sil
je 0x80a5f
leal -0x41(%rsi), %edi
cmpb $0x19, %dil
ja 0x80a42
decb %sil
movzbl %sil, %esi
btl %esi, %ecx
jb 0x80a57
jmp 0x80a62
leal -0x61(%rsi), %edi
cmpb $0x19, %dil
ja 0x80a57
decb %sil
movzbl %sil, %esi
btl %esi, %edx
jae 0x80a62
movb (%rax), %sil
incq %rax
jmp 0x80a26
decq %rax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImParseFormatTrimDecorations(char const*, char*, unsigned long)
const char* ImParseFormatTrimDecorations(const char* fmt, char* buf, size_t buf_size)
{
    const char* fmt_start = ImParseFormatFindStart(fmt);
    if (fmt_start[0] != '%')
        return fmt;
    const char* fmt_end = ImParseFormatFindEnd(fmt_start);
    if (fmt_end[0] == 0) // If we only have leading decoration, we don't need to copy the data.
        return fmt_start;
    ImStrncpy(buf, fmt_start, ImMin((size_t)(fmt_end - fmt_start) + 1, buf_size));
    return buf;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
callq 0x809e0
cmpb $0x25, (%rax)
jne 0x80ab5
movq %rax, %r15
movq %rax, %rdi
callq 0x80a0a
cmpb $0x0, (%rax)
je 0x80ab2
subq %r15, %rax
incq %rax
cmpq %r14, %rax
cmovaeq %r14, %rax
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x343b1
movq %rbx, %r12
jmp 0x80ab5
movq %r15, %r12
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImParseFormatPrecision(char const*, int)
int ImParseFormatPrecision(const char* fmt, int default_precision)
{
    fmt = ImParseFormatFindStart(fmt);
    if (fmt[0] != '%')
        return default_precision;
    fmt++;
    while (*fmt >= '0' && *fmt <= '9')
        fmt++;
    int precision = INT_MAX;
    if (*fmt == '.')
    {
        fmt = ImAtoi<int>(fmt + 1, &precision);
        if (precision < 0 || precision > 99)
            precision = default_precision;
    }
    if (*fmt == 'e' || *fmt == 'E') // Maximum precision with scientific notation
        precision = -1;
    if ((*fmt == 'g' || *fmt == 'G') && precision == INT_MAX)
        precision = -1;
    return (precision == INT_MAX) ? default_precision : precision;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
callq 0x809e0
cmpb $0x25, (%rax)
jne 0x80b43
incq %rax
movb (%rax), %dl
leal -0x30(%rdx), %ecx
incq %rax
cmpb $0xa, %cl
jb 0x80adb
movl $0x7fffffff, -0x14(%rbp) # imm = 0x7FFFFFFF
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpb $0x2e, %dl
jne 0x80b13
leaq -0x14(%rbp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x80b59
movl (%r14), %ecx
cmpl $0x64, %ecx
cmovael %ebx, %ecx
movb (%rax), %dl
pushq $-0x1
popq %rax
cmpb $0x45, %dl
je 0x80b3f
movzbl %dl, %esi
cmpl $0x65, %esi
je 0x80b3f
cmpl $0x67, %esi
jne 0x80b32
cmpl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
je 0x80b3f
jmp 0x80b41
cmpb $0x47, %dl
jne 0x80b4e
cmpl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jne 0x80b4e
movl %eax, %ecx
movl %ecx, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
cmpl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmovel %ebx, %ecx
jmp 0x80b41
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: char const* ImAtoi<int>(char const*, int*)
static const char* ImAtoi(const char* src, TYPE* output)
{
    int negative = 0;
    if (*src == '-') { negative = 1; src++; }
    if (*src == '+') { src++; }
    TYPE v = 0;
    while (*src >= '0' && *src <= '9')
        v = (v * 10) + (*src++ - '0');
    *output = negative ? -v : v;
    return src;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb (%rdi), %cl
xorl %edx, %edx
cmpb $0x2d, %cl
sete %dl
xorl %eax, %eax
cmpb $0x2b, (%rdi,%rdx)
leaq (%rdi,%rdx), %rdx
sete %al
addq %rdx, %rax
xorl %edx, %edx
movb (%rax), %dil
addb $-0x30, %dil
cmpb $0x9, %dil
ja 0x80b96
imull $0xa, %edx, %r8d
incq %rax
movzbl %dil, %edx
addl %r8d, %edx
jmp 0x80b79
movl %edx, %edi
negl %edi
cmpb $0x2d, %cl
cmovnel %edx, %edi
movl %edi, (%rsi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::TempInputText(ImRect const&, unsigned int, char const*, char*, int, int)
bool ImGui::TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags)
{
    // On the first frame, g.TempInputTextId == 0, then on subsequent frames it becomes == id.
    // We clear ActiveID on the first frame to allow the InputText() taking it back.
    ImGuiContext& g = *GImGui;
    const bool init = (g.TempInputId != id);
    if (init)
        ClearActiveID();

    g.CurrentWindow->DC.CursorPos = bb.Min;
    bool value_changed = InputTextEx(label, NULL, buf, buf_size, bb.GetSize(), flags);
    if (init)
    {
        // First frame we started displaying the InputText widget, we expect it to take the active id.
        IM_ASSERT(g.ActiveId == id);
        g.TempInputId = g.ActiveId;
    }
    return value_changed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %r13d
movq %rdx, %r11
movl %esi, %ebx
movq %rdi, %r14
leaq 0x63119(%rip), %rax     # 0xe3ce0
movq (%rax), %r15
movl 0x3068(%r15), %r12d
cmpl %esi, %r12d
je 0x80bf3
movl %r9d, -0x2c(%rbp)
movq %rcx, -0x40(%rbp)
movq %r11, -0x38(%rbp)
callq 0x37444
movq -0x38(%rbp), %r11
movq -0x40(%rbp), %rcx
movl -0x2c(%rbp), %r9d
movq 0x1ae0(%r15), %rax
movq (%r14), %rdx
movq %rdx, 0xd8(%rax)
movss 0x8(%r14), %xmm0
movss 0xc(%r14), %xmm1
subss (%r14), %xmm0
subss 0x4(%r14), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
leaq -0x48(%rbp), %r8
movlps %xmm0, (%r8)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq %r11, %rdi
xorl %esi, %esi
movq %rcx, %rdx
movl %r13d, %ecx
callq 0x80c80
cmpl %ebx, %r12d
je 0x80c52
cmpl %ebx, 0x1b30(%r15)
jne 0x80c61
movl %ebx, 0x3068(%r15)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x384fc(%rip), %rdi     # 0xb9164
leaq 0x37719(%rip), %rsi     # 0xb8388
leaq 0x384ff(%rip), %rcx     # 0xb9175
movl $0xca9, %edx            # imm = 0xCA9
callq 0xc140