LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/src/../include/imgui_club/imgui_memory_editor/imgui_memory_editor.h
// Function: MemoryEditor::DrawWindow(char const*, void*, unsigned long, unsigned long)
void DrawWindow(const char* title, void* mem_data, size_t mem_size, size_t base_display_addr = 0x0000)
    {
        Sizes s;
        CalcSizes(s, mem_size, base_display_addr);
        ImGui::SetNextWindowSizeConstraints(ImVec2(0.0f, 0.0f), ImVec2(s.WindowWidth, FLT_MAX));

        Open = true;
        if (ImGui::Begin(title, &Open, ImGuiWindowFlags_NoScrollbar))
        {
            if (ImGui::IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows) && ImGui::IsMouseReleased(ImGuiMouseButton_Right))
                ImGui::OpenPopup("context");
            DrawContents(mem_data, mem_size, base_display_addr);
            if (ContentsWidthChanged)
            {
                CalcSizes(s, mem_size, base_display_addr);
                ImGui::SetWindowSize(ImVec2(s.WindowWidth, ImGui::GetWindowSize().y));
            }
        }
        ImGui::End();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r14
movq %rcx, %r13
movq %rdx, -0x38(%rbp)
movq %rsi, -0x30(%rbp)
movq %rdi, %r15
xorps %xmm0, %xmm0
leaq -0x70(%rbp), %r12
movaps %xmm0, 0x10(%r12)
movaps %xmm0, (%r12)
xorl %ebx, %ebx
movq %rbx, 0x20(%r12)
movq %r12, %rsi
movq %rcx, %rdx
movq %r8, %rcx
callq 0x3e806
leaq -0x40(%rbp), %rdi
movq %rbx, (%rdi)
movss 0x24(%r12), %xmm0
leaq -0x48(%rbp), %rsi
movss %xmm0, (%rsi)
movl $0x7f7fffff, 0x4(%rsi)  # imm = 0x7F7FFFFF
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x54628
movb $0x1, (%r15)
movq -0x30(%rbp), %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x4b741
testb %al, %al
je 0x3e7f2
movl $0x3, %edi
callq 0x540e4
testb %al, %al
je 0x3e79a
movl $0x1, %edi
callq 0x516d9
testb %al, %al
je 0x3e79a
leaq 0x79af6(%rip), %rdi     # 0xb8289
xorl %esi, %esi
callq 0x56c96
movq %r15, %rdi
movq -0x38(%rbp), %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x3e950
cmpb $0x1, 0x38(%r15)
jne 0x3e7f2
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x3e806
movss 0x24(%r12), %xmm0
movss %xmm0, -0x30(%rbp)
callq 0x543c5
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
leaq -0x40(%rbp), %rdi
movss -0x30(%rbp), %xmm1
movss %xmm1, (%rdi)
movss %xmm0, 0x4(%rdi)
xorl %esi, %esi
callq 0x543de
callq 0x50af3
addq $0x48, %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/src/../include/imgui_club/imgui_memory_editor/imgui_memory_editor.h
// Function: MemoryEditor::DrawContents(void*, unsigned long, unsigned long)::UserData::Callback(ImGuiInputTextCallbackData*)
static int Callback(ImGuiInputTextCallbackData* data)
                        {
                            UserData* user_data = (UserData*)data->UserData;
                            if (!data->HasSelection())
                                user_data->CursorPos = data->CursorPos;
                            if (data->SelectionStart == 0 && data->SelectionEnd == data->BufTextLen)
                            {
                                // When not editing a byte, always rewrite its content (this is a bit tricky, since InputText technically "owns" the master copy of the buffer we edit it in there)
                                data->DeleteChars(0, data->BufTextLen);
                                data->InsertChars(0, user_data->CurrentBufOverwrite);
                                data->SelectionStart = 0;
                                data->SelectionEnd = 2;
                                data->CursorPos = 0;
                            }
                            return 0;
                        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %r14
movl 0x30(%rdi), %eax
movl 0x34(%rdi), %edx
cmpl %edx, %eax
jne 0x3f649
movl 0x2c(%rbx), %ecx
movl %ecx, 0x4(%r14)
testl %eax, %eax
jne 0x3f67a
cmpl 0x20(%rbx), %edx
jne 0x3f67a
movq %rbx, %rdi
xorl %esi, %esi
callq 0x9c5e2
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x9c662
movl $0x2, 0x34(%rbx)
movq $0x0, 0x2c(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/src/../include/imgui_club/imgui_memory_editor/imgui_memory_editor.h
// Function: MemoryEditor::FormatBinary(unsigned char const*, int) const
const char* FormatBinary(const uint8_t* buf, int width) const
    {
        IM_ASSERT(width <= 64);
        size_t out_n = 0;
        static char out_buf[64 + 8 + 1];
        int n = width / 8;
        for (int j = n - 1; j >= 0; --j)
        {
            for (int i = 0; i < 8; ++i)
                out_buf[out_n++] = (buf[j] & (1 << (7 - i))) ? '1' : '0';
            out_buf[out_n++] = ' ';
        }
        IM_ASSERT(out_n < IM_ARRAYSIZE(out_buf));
        out_buf[out_n] = 0;
        return out_buf;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x41, %edx
jge 0x4026b
cmpl $0x8, %edx
jl 0x4025c
shrl $0x3, %edx
andl $0x1f, %edx
xorl %r9d, %r9d
leaq 0xbba88(%rip), %rax     # 0xfbc80
leaq -0x1(%rdx), %rdi
movl $0x7, %r8d
movq %r9, %rcx
movzbl (%rsi,%rdi), %r9d
btl %r8d, %r9d
setae %r9b
xorb $0x31, %r9b
movb %r9b, (%rcx,%rax)
incq %rcx
addl $-0x1, %r8d
jb 0x40205
leaq 0x1(%rcx), %r9
movb $0x20, (%rcx,%rax)
cmpq $0x1, %rdx
movq %rdi, %rdx
jg 0x401f8
incq %rcx
cmpq $0x49, %rcx
jb 0x4025e
leaq 0x75458(%rip), %rdi     # 0xb569c
leaq 0x7512d(%rip), %rsi     # 0xb5378
leaq 0x75407(%rip), %rcx     # 0xb5659
movl $0x273, %edx            # imm = 0x273
callq 0xc140
xorl %ecx, %ecx
leaq 0xbba1b(%rip), %rax     # 0xfbc80
movb $0x0, (%rcx,%rax)
popq %rbp
retq
leaq 0x753db(%rip), %rdi     # 0xb564d
leaq 0x750ff(%rip), %rsi     # 0xb5378
leaq 0x753d9(%rip), %rcx     # 0xb5659
movl $0x269, %edx            # imm = 0x269
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/src/../include/imgui_club/imgui_memory_editor/imgui_memory_editor.h
// Function: MemoryEditor::EndianessCopyBigEndian(void*, void*, unsigned long, int)
static void* EndianessCopyBigEndian(void* _dst, void* _src, size_t s, int is_little_endian)
    {
        if (is_little_endian)
        {
            uint8_t* dst = (uint8_t*)_dst;
            uint8_t* src = (uint8_t*)_src + s - 1;
            for (int i = 0, n = (int)s; i < n; ++i)
                memcpy(dst++, src--, 1);
            return _dst;
        }
        else
        {
            return memcpy(_dst, _src, s);
        }
    }

// Assembly:
testl %ecx, %ecx
je 0xc080
testl %edx, %edx
jle 0x402b0
pushq %rbp
movq %rsp, %rbp
decq %rsi
xorl %eax, %eax
movb (%rsi,%rdx), %cl
movb %cl, (%rdi,%rax)
incq %rax
decq %rsi
cmpl %eax, %edx
jne 0x4029f
popq %rbp
movq %rdi, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: SetClipboardTextFn_DefaultImpl(void*, char const*)
static void SetClipboardTextFn_DefaultImpl(void*, const char* text)
{
    ImGuiContext& g = *GImGui;
    g.ClipboardHandlerData.clear();
    const char* text_end = text + strlen(text);
    g.ClipboardHandlerData.resize((int)(text_end - text) + 1);
    memcpy(&g.ClipboardHandlerData[0], text, (size_t)(text_end - text));
    g.ClipboardHandlerData[(int)(text_end - text)] = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq 0xbb3db(%rip), %r12     # 0xfbcd0
movq 0x30b8(%r12), %rdi
testq %rdi, %rdi
je 0x40929
xorl %ebx, %ebx
movq %rbx, 0x30b0(%r12)
decl 0x3b4(%r12)
movq 0xbb3c5(%rip), %rsi     # 0xfbce0
callq *0xb6bf7(%rip)          # 0xf7518
movq %rbx, 0x30b8(%r12)
movq %r14, -0x30(%rbp)
movq %r14, %rdi
callq 0xc350
movq %rax, %r14
leal 0x1(%rax), %r13d
movl 0x30b4(%r12), %eax
cmpl %r14d, %eax
jle 0x40951
xorl %r15d, %r15d
jmp 0x409ec
testl %eax, %eax
je 0x40962
movl %eax, %ebx
shrl $0x1f, %ebx
addl %eax, %ebx
sarl %ebx
addl %eax, %ebx
jmp 0x40967
movl $0x8, %ebx
cmpl %r13d, %ebx
cmovlel %r13d, %ebx
movslq %ebx, %rdi
movq 0xbb358(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x40983
incl 0x3b4(%rax)
movq 0xbb356(%rip), %rsi     # 0xfbce0
callq *0xb6b80(%rip)          # 0xf7510
movq %rax, %r15
movq 0x30b8(%r12), %rsi
testq %rsi, %rsi
je 0x409dc
movslq 0x30b0(%r12), %rdx
movq %r15, %rdi
callq 0xc080
movq 0x30b8(%r12), %rdi
testq %rdi, %rdi
je 0x409cf
movq 0xbb30c(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x409cf
decl 0x3b4(%rax)
movq 0xbb30a(%rip), %rsi     # 0xfbce0
callq *0xb6b3c(%rip)          # 0xf7518
movq %r15, 0x30b8(%r12)
movl %ebx, 0x30b4(%r12)
movl %r13d, 0x30b0(%r12)
testl %r14d, %r14d
js 0x40a35
movq %r15, %rdi
movq -0x30(%rbp), %rsi
movq %r14, %rdx
callq 0xc080
cmpl %r14d, 0x30b0(%r12)
jle 0x40a35
movq 0x30b8(%r12), %rax
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movb $0x0, (%rax,%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x78c3c(%rip), %rdi     # 0xb9678
leaq 0x78c48(%rip), %rsi     # 0xb968b
leaq 0x79d4e(%rip), %rcx     # 0xba798
movl $0x65c, %edx            # imm = 0x65C
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiIO::AddInputCharactersUTF8(char const*)
void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars)
{
    while (*utf8_chars != 0)
    {
        unsigned int c = 0;
        utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL);
        if (c != 0)
            InputQueueCharacters.push_back((ImWchar)c);
    }
}

// Assembly:
cmpb $0x0, (%rsi)
je 0x40f7f
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x0, -0x2c(%rbp)
leaq -0x2c(%rbp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x40f80
movl -0x2c(%rbp), %r15d
testl %r15d, %r15d
je 0x40f63
movl 0x1548(%r14), %r12d
cmpl 0x154c(%r14), %r12d
jne 0x40eac
testl %r12d, %r12d
je 0x40eb8
movl %r12d, %ecx
shrl $0x1f, %ecx
addl %r12d, %ecx
sarl %ecx
addl %r12d, %ecx
jmp 0x40ebd
movq 0x1550(%r14), %r13
jmp 0x40f53
movl $0x8, %ecx
movl %eax, -0x30(%rbp)
incl %r12d
cmpl %r12d, %ecx
cmovgl %ecx, %r12d
movq 0xbadff(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x40edc
incl 0x3b4(%rax)
movslq %r12d, %rdi
addq %rdi, %rdi
movq 0xbadf7(%rip), %rsi     # 0xfbce0
callq *0xb6621(%rip)          # 0xf7510
movq %rax, %r13
movq 0x1550(%r14), %rsi
testq %rsi, %rsi
je 0x40f3b
movslq 0x1548(%r14), %rdx
addq %rdx, %rdx
movq %r13, %rdi
callq 0xc080
movq 0x1550(%r14), %rdi
testq %rdi, %rdi
je 0x40f2e
movq 0xbadad(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x40f2e
decl 0x3b4(%rax)
movq 0xbadab(%rip), %rsi     # 0xfbce0
callq *0xb65dd(%rip)          # 0xf7518
movq %r13, 0x1550(%r14)
movl %r12d, 0x154c(%r14)
movl 0x1548(%r14), %r12d
movl -0x30(%rbp), %eax
movslq %r12d, %rcx
movw %r15w, (%r13,%rcx,2)
incl 0x1548(%r14)
cltq
addq %rax, %rbx
cmpb $0x0, (%rbx)
jne 0x40e65
addq $0x8, %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.cpp
// Function: ImLineClosestPoint(ImVec2 const&, ImVec2 const&, ImVec2 const&)
ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p)
{
    ImVec2 ap = p - a;
    ImVec2 ab_dir = b - a;
    float dot = ap.x * ab_dir.x + ap.y * ab_dir.y;
    if (dot < 0.0f)
        return a;
    float ab_len_sqr = ab_dir.x * ab_dir.x + ab_dir.y * ab_dir.y;
    if (dot > ab_len_sqr)
        return b;
    return a + ab_dir * dot / ab_len_sqr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movss (%rdx), %xmm2
movss 0x4(%rdx), %xmm5
movss (%rdi), %xmm0
movss 0x4(%rdi), %xmm1
subss %xmm0, %xmm2
subss %xmm1, %xmm5
movss (%rsi), %xmm4
movss 0x4(%rsi), %xmm3
subss %xmm0, %xmm4
subss %xmm1, %xmm3
mulss %xmm3, %xmm5
mulss %xmm4, %xmm2
addss %xmm5, %xmm2
xorps %xmm5, %xmm5
ucomiss %xmm2, %xmm5
jbe 0x41385
movsd (%rdi), %xmm0
jmp 0x413bd
movaps %xmm3, %xmm6
mulss %xmm3, %xmm6
movaps %xmm4, %xmm5
mulss %xmm4, %xmm5
addss %xmm6, %xmm5
ucomiss %xmm5, %xmm2
jbe 0x413a2
movsd (%rsi), %xmm0
jmp 0x413bd
mulss %xmm2, %xmm4
mulss %xmm2, %xmm3
divss %xmm5, %xmm4
divss %xmm5, %xmm3
addss %xmm4, %xmm0
addss %xmm3, %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImBezierCubicClosestPointCasteljau(ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, float)
ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol)
{
    IM_ASSERT(tess_tol > 0.0f);
    ImVec2 p_last = p1;
    ImVec2 p_closest;
    float p_closest_dist2 = FLT_MAX;
    ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, tess_tol, 0);
    return p_closest;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x38, %rsp
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x4145a
movq (%rdi), %rdi
leaq -0x18(%rbp), %rax
movq %rdi, (%rax)
leaq -0x20(%rbp), %rbx
movq $0x0, (%rbx)
leaq -0xc(%rbp), %r9
movl $0x7f7fffff, (%r9)      # imm = 0x7F7FFFFF
movd %edi, %xmm2
shrq $0x20, %rdi
movd %edi, %xmm3
movss (%rsi), %xmm4
movss 0x4(%rsi), %xmm5
movss (%rdx), %xmm6
movss 0x4(%rdx), %xmm7
movss (%rcx), %xmm9
movss 0x4(%rcx), %xmm10
movss (%r8), %xmm8
movss 0x4(%r8), %xmm1
movss %xmm0, 0x10(%rsp)
movss %xmm10, 0x8(%rsp)
movss %xmm9, (%rsp)
movaps %xmm8, %xmm0
movq %rbx, %rdi
movq %rax, %rsi
movq %r9, %rdx
xorl %ecx, %ecx
callq 0x41479
movsd (%rbx), %xmm0
addq $0x38, %rsp
popq %rbx
popq %rbp
retq
leaq 0x74d92(%rip), %rdi     # 0xb61f3
leaq 0x74cfd(%rip), %rsi     # 0xb6165
leaq 0x74d94(%rip), %rcx     # 0xb6203
movl $0x4a7, %edx            # imm = 0x4A7
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImStrncpy(char*, char const*, unsigned long)
void ImStrncpy(char* dst, const char* src, size_t count)
{
    if (count < 1)
        return;
    if (count > 1)
        strncpy(dst, src, count - 1);
    dst[count - 1] = 0;
}

// Assembly:
testq %rdx, %rdx
je 0x41c19
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
cmpq $0x1, %rdx
je 0x41c0f
leaq -0x1(%rbx), %rdx
movq %r14, %rdi
callq 0xc110
movb $0x0, -0x1(%r14,%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImStrdupcpy(char*, unsigned long*, char const*)
char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* src)
{
    size_t dst_buf_size = p_dst_size ? *p_dst_size : strlen(dst) + 1;
    size_t src_size = strlen(src) + 1;
    if (dst_buf_size < src_size)
    {
        IM_FREE(dst);
        dst = (char*)IM_ALLOC(src_size);
        if (p_dst_size)
            *p_dst_size = src_size;
    }
    return (char*)memcpy(dst, (const void*)src, src_size);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rsi, %rsi
je 0x41cab
movq (%r14), %r13
jmp 0x41cb9
movq %r15, %rdi
callq 0xc350
movq %rax, %r13
incq %r13
movq %rbx, %rdi
callq 0xc350
movq %rax, %r12
incq %r12
cmpq %r12, %r13
jae 0x41d20
testq %r15, %r15
je 0x41ce3
movq 0xb9ff8(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x41ce3
decl 0x3b4(%rax)
movq 0xb9ff6(%rip), %rsi     # 0xfbce0
movq %r15, %rdi
callq *0xb5825(%rip)          # 0xf7518
movq 0xb9fd6(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x41d05
incl 0x3b4(%rax)
movq 0xb9fd4(%rip), %rsi     # 0xfbce0
movq %r12, %rdi
callq *0xb57fb(%rip)          # 0xf7510
movq %rax, %r15
testq %r14, %r14
je 0x41d20
movq %r12, (%r14)
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc080
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGui::MemFree(void*)
void ImGui::MemFree(void* ptr)
{
    if (ptr)
        if (ImGuiContext* ctx = GImGui)
            ctx->IO.MetricsActiveAllocations--;
    return GImAllocatorFreeFunc(ptr, GImAllocatorUserData);
}

// Assembly:
testq %rdi, %rdi
je 0x41d58
movq 0xb9f88(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x41d58
pushq %rbp
movq %rsp, %rbp
decl 0x3b4(%rax)
popq %rbp
movq 0xb57b9(%rip), %rax     # 0xf7518
movq 0xb9f7a(%rip), %rsi     # 0xfbce0
jmpq *%rax
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImStristr(char const*, char const*, char const*, char const*)
const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end)
{
    if (!needle_end)
        needle_end = needle + strlen(needle);

    const char un0 = (char)toupper(*needle);
    while ((!haystack_end && *haystack) || (haystack_end && haystack < haystack_end))
    {
        if (toupper(*haystack) == un0)
        {
            const char* b = needle + 1;
            for (const char* a = haystack + 1; b < needle_end; a++, b++)
                if (toupper(*a) != toupper(*b))
                    break;
            if (b == needle_end)
                return haystack;
        }
        haystack++;
    }
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq %rcx, -0x30(%rbp)
testq %rcx, %rcx
jne 0x41e0d
movq %r12, %rdi
callq 0xc350
addq %r12, %rax
movq %rax, -0x30(%rbp)
movsbl (%r12), %edi
callq 0xc160
movsbl %al, %r15d
movq %r14, -0x40(%rbp)
movl %r15d, -0x34(%rbp)
testq %r14, %r14
je 0x41e31
cmpq %r14, %rbx
jae 0x41e85
movb (%rbx), %al
jmp 0x41e37
movb (%rbx), %al
testb %al, %al
je 0x41e85
movsbl %al, %edi
callq 0xc160
cmpl %r15d, %eax
jne 0x41e80
movl $0x1, %r15d
leaq (%r12,%r15), %r14
cmpq -0x30(%rbp), %r14
jae 0x41e72
movsbl (%rbx,%r15), %edi
callq 0xc160
movl %eax, %r13d
movsbl (%r14), %edi
callq 0xc160
incq %r15
cmpl %eax, %r13d
je 0x41e4a
cmpq -0x30(%rbp), %r14
movq -0x40(%rbp), %r14
movl -0x34(%rbp), %r15d
je 0x41e87
incq %rbx
jmp 0x41e23
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %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.cpp
// Function: ImStrTrimBlanks(char*)
void ImStrTrimBlanks(char* buf)
{
    char* p = buf;
    while (p[0] == ' ' || p[0] == '\t')     // Leading blanks
        p++;
    char* p_start = p;
    while (*p != 0)                         // Find end of string
        p++;
    while (p > p_start && (p[-1] == ' ' || p[-1] == '\t'))  // Trailing blanks
        p--;
    if (p_start != buf)                     // Copy memory if we had leading blanks
        memmove(buf, p_start, p - p_start);
    buf[p - p_start] = 0;                   // Zero terminate
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
xorl %eax, %eax
xorl %ebx, %ebx
movq %rdi, %rsi
movzbl (%rsi), %ecx
cmpl $0x9, %ecx
je 0x41eb4
cmpl $0x20, %ecx
jne 0x41ebf
incq %rsi
decq %rbx
incq %rax
jmp 0x41ea7
movq %rsi, %r14
testl %ecx, %ecx
je 0x41eea
cmpb $0x0, 0x1(%r14)
leaq 0x1(%r14), %r14
jne 0x41ec6
jmp 0x41ee5
movzbl -0x1(%r14), %ecx
cmpl $0x20, %ecx
je 0x41ee2
cmpl $0x9, %ecx
jne 0x41eea
decq %r14
cmpq %rsi, %r14
ja 0x41ed3
testq %rax, %rax
je 0x41efd
movq %r14, %rdx
subq %rdi, %rdx
subq %rax, %rdx
callq 0xc130
movb $0x0, (%rbx,%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImHashData(void const*, unsigned long, unsigned int)
ImGuiID ImHashData(const void* data_p, size_t data_size, ImU32 seed)
{
    ImU32 crc = ~seed;
    const unsigned char* data = (const unsigned char*)data_p;
    const ImU32* crc32_lut = GCrc32LookupTable;
    while (data_size-- != 0)
        crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ *data++];
    return ~crc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edx, %eax
testq %rsi, %rsi
je 0x42031
notl %eax
xorl %ecx, %ecx
leaq 0x739cc(%rip), %rdx     # 0xb59e0
movzbl %al, %r8d
shrl $0x8, %eax
movzbl (%rdi,%rcx), %r9d
xorl %r8d, %r9d
xorl (%rdx,%r9,4), %eax
incq %rcx
cmpq %rcx, %rsi
jne 0x42014
notl %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImHashStr(char const*, unsigned long, unsigned int)
ImGuiID ImHashStr(const char* data_p, size_t data_size, ImU32 seed)
{
    seed = ~seed;
    ImU32 crc = seed;
    const unsigned char* data = (const unsigned char*)data_p;
    const ImU32* crc32_lut = GCrc32LookupTable;
    if (data_size != 0)
    {
        while (data_size-- != 0)
        {
            unsigned char c = *data++;
            if (c == '#' && data_size >= 2 && data[0] == '#' && data[1] == '#')
                crc = seed;
            crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c];
        }
    }
    else
    {
        while (unsigned char c = *data++)
        {
            if (c == '#' && data[0] == '#' && data[1] == '#')
                crc = seed;
            crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c];
        }
    }
    return ~crc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
notl %edx
testq %rsi, %rsi
je 0x42094
decq %rsi
addq $0x2, %rdi
leaq 0x73994(%rip), %rcx     # 0xb59e0
movl %edx, %r8d
movzbl -0x2(%rdi), %r9d
cmpl $0x23, %r9d
setne %al
cmpq $0x2, %rsi
setb %r10b
orb %al, %r10b
jne 0x42075
cmpb $0x23, -0x1(%rdi)
jne 0x42075
cmpb $0x23, (%rdi)
cmovel %edx, %r8d
movl %r8d, %eax
shrl $0x8, %eax
movzbl %r8b, %r8d
xorl %r9d, %r8d
xorl (%rcx,%r8,4), %eax
incq %rdi
movl %eax, %r8d
addq $-0x1, %rsi
jb 0x4204f
jmp 0x420ec
movb (%rdi), %sil
testb %sil, %sil
je 0x420ea
addq $0x2, %rdi
leaq 0x73939(%rip), %rcx     # 0xb59e0
movl %edx, %r8d
movl %esi, %eax
xorb $0x23, %al
movb -0x1(%rdi), %r9b
movl %r9d, %r10d
xorb $0x23, %r10b
orb %al, %r10b
jne 0x420c5
cmpb $0x23, (%rdi)
cmovel %edx, %r8d
movzbl %sil, %esi
movl %r8d, %eax
shrl $0x8, %eax
movzbl %r8b, %r8d
xorl %esi, %r8d
xorl (%rcx,%r8,4), %eax
incq %rdi
movl %r9d, %esi
movl %eax, %r8d
testb %r9b, %r9b
jne 0x420aa
jmp 0x420ec
movl %edx, %eax
notl %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImFileLoadToMemory(char const*, char const*, unsigned long*, int)
void*   ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size, int padding_bytes)
{
    IM_ASSERT(filename && mode);
    if (out_file_size)
        *out_file_size = 0;

    ImFileHandle f;
    if ((f = ImFileOpen(filename, mode)) == NULL)
        return NULL;

    size_t file_size = (size_t)ImFileGetSize(f);
    if (file_size == (size_t)-1)
    {
        ImFileClose(f);
        return NULL;
    }

    void* file_data = IM_ALLOC(file_size + padding_bytes);
    if (file_data == NULL)
    {
        ImFileClose(f);
        return NULL;
    }
    if (ImFileRead(file_data, 1, file_size, f) != file_size)
    {
        ImFileClose(f);
        IM_FREE(file_data);
        return NULL;
    }
    if (padding_bytes > 0)
        memset((void*)(((char*)file_data) + file_size), 0, (size_t)padding_bytes);

    ImFileClose(f);
    if (out_file_size)
        *out_file_size = file_size;

    return file_data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x42297
testq %rsi, %rsi
je 0x42297
movl %ecx, %r15d
movq %rdx, %rbx
testq %rdx, %rdx
je 0x421ba
movq $0x0, (%rbx)
callq 0xc9a0
testq %rax, %rax
je 0x42282
movq %rax, %r12
movq %rax, %rdi
callq 0x4210a
cmpq $-0x1, %rax
je 0x4224e
movq %rax, %r13
movslq %r15d, %rax
movq %rax, -0x30(%rbp)
leaq (%rax,%r13), %rdi
movq 0xb9ae2(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x421f9
incl 0x3b4(%rax)
movq 0xb9ae0(%rip), %rsi     # 0xfbce0
callq *0xb530a(%rip)          # 0xf7510
testq %rax, %rax
je 0x4224e
movq %rax, %r14
movl $0x1, %esi
movq %rax, %rdi
movq %r13, %rdx
movq %r12, %rcx
callq 0xc480
cmpq %r13, %rax
jne 0x42258
testl %r15d, %r15d
jle 0x4223c
movq %r14, %rdi
addq %r13, %rdi
xorl %esi, %esi
movq -0x30(%rbp), %rdx
callq 0xc260
movq %r12, %rdi
callq 0xc3b0
testq %rbx, %rbx
je 0x42285
movq %r13, (%rbx)
jmp 0x42285
movq %r12, %rdi
callq 0xc3b0
jmp 0x42282
movq %r12, %rdi
callq 0xc3b0
movq 0xb9a69(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x42272
decl 0x3b4(%rax)
movq 0xb9a67(%rip), %rsi     # 0xfbce0
movq %r14, %rdi
callq *0xb5296(%rip)          # 0xf7518
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x73fe6(%rip), %rdi     # 0xb6284
leaq 0x73ec0(%rip), %rsi     # 0xb6165
leaq 0x73fe9(%rip), %rcx     # 0xb6295
movl $0x5f7, %edx            # imm = 0x5F7
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImTextStrFromUtf8(unsigned short*, int, char const*, char const*, char const**)
int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_text_remaining)
{
    ImWchar* buf_out = buf;
    ImWchar* buf_end = buf + buf_size;
    while (buf_out < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text)
    {
        unsigned int c;
        in_text += ImTextCharFromUtf8(&c, in_text, in_text_end);
        if (c == 0)
            break;
        *buf_out++ = (ImWchar)c;
    }
    *buf_out = 0;
    if (in_text_remaining)
        *in_text_remaining = in_text;
    return (int)(buf_out - buf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, -0x38(%rbp)
movq %rdx, %r15
movq %rdi, %r14
movslq %esi, %rax
leaq (%rdi,%rax,2), %rbx
addq $-0x2, %rbx
cmpq %rdi, %rbx
jbe 0x42322
movq %rcx, %r13
movq %r14, %r12
testq %r13, %r13
je 0x422f1
cmpq %r13, %r15
jae 0x42325
cmpb $0x0, (%r15)
je 0x42325
leaq -0x2c(%rbp), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x40f80
cltq
addq %rax, %r15
movl -0x2c(%rbp), %eax
testl %eax, %eax
je 0x42325
movw %ax, (%r12)
addq $0x2, %r12
cmpq %rbx, %r12
jb 0x422e7
jmp 0x42325
movq %r14, %r12
movw $0x0, (%r12)
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x42338
movq %r15, (%rax)
subq %r14, %r12
shrq %r12
movl %r12d, %eax
addq $0x18, %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.cpp
// Function: ImTextCountCharsFromUtf8(char const*, char const*)
int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end)
{
    int char_count = 0;
    while ((!in_text_end || in_text < in_text_end) && *in_text)
    {
        unsigned int c;
        in_text += ImTextCharFromUtf8(&c, in_text, in_text_end);
        if (c == 0)
            break;
        char_count++;
    }
    return char_count;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorl %eax, %eax
leaq -0x24(%rbp), %r15
movl %eax, %r12d
testq %rbx, %rbx
je 0x42378
cmpq %rbx, %r14
jae 0x4239c
cmpb $0x0, (%r14)
je 0x4239c
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x40f80
cltq
addq %rax, %r14
leal 0x1(%r12), %eax
cmpl $0x0, -0x24(%rbp)
jne 0x4236b
movl %r12d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImTextStrToUtf8(char*, int, unsigned short const*, unsigned short const*)
int ImTextStrToUtf8(char* buf, int buf_size, const ImWchar* in_text, const ImWchar* in_text_end)
{
    char* buf_out = buf;
    const char* buf_end = buf + buf_size;
    while (buf_out < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text)
    {
        unsigned int c = (unsigned int)(*in_text++);
        if (c < 0x80)
            *buf_out++ = (char)c;
        else
            buf_out += ImTextCharToUtf8(buf_out, (int)(buf_end - buf_out - 1), c);
    }
    *buf_out = 0;
    return (int)(buf_out - buf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rsi
leaq (%rdi,%rsi), %r8
decq %r8
movq %rdi, %rax
cmpq %rdi, %r8
jbe 0x424aa
addq %rdi, %rsi
movq %rdi, %rax
testq %rcx, %rcx
sete %r9b
cmpq %rcx, %rdx
setb %r10b
orb %r9b, %r10b
cmpb $0x1, %r10b
jne 0x424aa
movzwl (%rdx), %r9d
testw %r9w, %r9w
je 0x424aa
cmpw $0x7f, %r9w
ja 0x42421
movb %r9b, (%rax)
incq %rax
jmp 0x4249d
movl %eax, %r11d
notl %r11d
addl %esi, %r11d
movzwl %r9w, %r10d
cmpl $0x7ff, %r10d           # imm = 0x7FF
ja 0x42459
cmpl $0x2, %r11d
jl 0x4245f
movl %r9d, %r10d
shrl $0x6, %r10d
orb $-0x40, %r10b
movb %r10b, (%rax)
movl $0x2, %r10d
movl $0x1, %r11d
jmp 0x4248e
cmpl $0x3, %r11d
jge 0x42464
xorl %r10d, %r10d
jmp 0x4249a
movl %r10d, %r11d
shrl $0xc, %r11d
orb $-0x20, %r11b
movb %r11b, (%rax)
shrl $0x6, %r10d
andb $0x3f, %r10b
orb $-0x80, %r10b
movb %r10b, 0x1(%rax)
movl $0x3, %r10d
movl $0x2, %r11d
andb $0x3f, %r9b
orb $-0x80, %r9b
movb %r9b, (%rax,%r11)
addq %r10, %rax
addq $0x2, %rdx
cmpq %r8, %rax
jb 0x423e9
movb $0x0, (%rax)
subl %edi, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImTextCountUtf8BytesFromStr(unsigned short const*, unsigned short const*)
int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end)
{
    int bytes_count = 0;
    while ((!in_text_end || in_text < in_text_end) && *in_text)
    {
        unsigned int c = (unsigned int)(*in_text++);
        if (c < 0x80)
            bytes_count++;
        else
            bytes_count += ImTextCountUtf8BytesFromChar(c);
    }
    return bytes_count;
}

// Assembly:
testq %rsi, %rsi
setne %cl
cmpq %rsi, %rdi
setae %dl
xorl %eax, %eax
testb %dl, %cl
jne 0x42514
pushq %rbp
movq %rsp, %rbp
addq $0x2, %rdi
xorl %eax, %eax
movl $0x1, %ecx
movzwl -0x2(%rdi), %edx
testw %dx, %dx
je 0x42513
testq %rsi, %rsi
sete %r8b
movzwl %dx, %edx
cmpl $0x800, %edx            # imm = 0x800
movl $0x3, %r9d
sbbl $0x0, %r9d
cmpl $0x80, %edx
cmovbl %ecx, %r9d
addl %r9d, %eax
cmpq %rsi, %rdi
setb %dl
orb %r8b, %dl
addq $0x2, %rdi
testb %dl, %dl
jne 0x424d2
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGui::ColorConvertU32ToFloat4(unsigned int)
ImVec4 ImGui::ColorConvertU32ToFloat4(ImU32 in)
{
    float s = 1.0f / 255.0f;
    return ImVec4(
        ((in >> IM_COL32_R_SHIFT) & 0xFF) * s,
        ((in >> IM_COL32_G_SHIFT) & 0xFF) * s,
        ((in >> IM_COL32_B_SHIFT) & 0xFF) * s,
        ((in >> IM_COL32_A_SHIFT) & 0xFF) * s);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0xff, %eax
movl %edi, %ecx
andl %eax, %ecx
cvtsi2ss %ecx, %xmm0
movss 0x73283(%rip), %xmm2    # 0xb584c
mulss %xmm2, %xmm0
movl %edi, %ecx
shrl $0x8, %ecx
andl %eax, %ecx
cvtsi2ss %ecx, %xmm1
mulss %xmm2, %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movl %edi, %ecx
shrl $0x10, %ecx
andl %eax, %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
mulss %xmm2, %xmm1
shrl $0x18, %edi
cvtsi2ss %edi, %xmm3
mulss %xmm2, %xmm3
unpcklps %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGui::ColorConvertFloat4ToU32(ImVec4 const&)
ImU32 ImGui::ColorConvertFloat4ToU32(const ImVec4& in)
{
    ImU32 out;
    out  = ((ImU32)IM_F32_TO_INT8_SAT(in.x)) << IM_COL32_R_SHIFT;
    out |= ((ImU32)IM_F32_TO_INT8_SAT(in.y)) << IM_COL32_G_SHIFT;
    out |= ((ImU32)IM_F32_TO_INT8_SAT(in.z)) << IM_COL32_B_SHIFT;
    out |= ((ImU32)IM_F32_TO_INT8_SAT(in.w)) << IM_COL32_A_SHIFT;
    return out;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movss (%rdi), %xmm4
movss 0x4(%rdi), %xmm5
movss 0x729ce(%rip), %xmm0    # 0xb4fe4
movaps %xmm0, %xmm2
minss %xmm4, %xmm2
xorps %xmm1, %xmm1
cmpltss %xmm1, %xmm4
andnps %xmm2, %xmm4
movss 0x73218(%rip), %xmm2    # 0xb5848
mulss %xmm2, %xmm4
movss 0x729c8(%rip), %xmm3    # 0xb5004
addss %xmm3, %xmm4
cvttss2si %xmm4, %eax
movaps %xmm0, %xmm4
minss %xmm5, %xmm4
cmpltss %xmm1, %xmm5
andnps %xmm4, %xmm5
mulss %xmm2, %xmm5
addss %xmm3, %xmm5
cvttss2si %xmm5, %ecx
shll $0x8, %ecx
orl %eax, %ecx
movss 0x8(%rdi), %xmm4
movaps %xmm0, %xmm5
minss %xmm4, %xmm5
cmpltss %xmm1, %xmm4
andnps %xmm5, %xmm4
mulss %xmm2, %xmm4
addss %xmm3, %xmm4
cvttss2si %xmm4, %edx
shll $0x10, %edx
movss 0xc(%rdi), %xmm4
minss %xmm4, %xmm0
cmpltss %xmm1, %xmm4
andnps %xmm0, %xmm4
mulss %xmm2, %xmm4
addss %xmm3, %xmm4
cvttss2si %xmm4, %eax
shll $0x18, %eax
orl %edx, %eax
orl %ecx, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGui::ColorConvertRGBtoHSV(float, float, float, float&, float&, float&)
void ImGui::ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v)
{
    float K = 0.f;
    if (g < b)
    {
        ImSwap(g, b);
        K = -1.f;
    }
    if (r < g)
    {
        ImSwap(r, g);
        K = -2.f / 6.f - K;
    }

    const float chroma = r - (g < b ? g : b);
    out_h = ImFabs(K + (g - b) / (6.f * chroma + 1e-20f));
    out_s = chroma / (r + 1e-20f);
    out_v = r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movaps %xmm2, %xmm3
maxss %xmm1, %xmm3
movaps %xmm1, %xmm4
minss %xmm2, %xmm4
cmpltss %xmm2, %xmm1
movss 0x72904(%rip), %xmm2    # 0xb4fd0
andps %xmm1, %xmm2
movss 0x73179(%rip), %xmm5    # 0xb5850
subss %xmm2, %xmm5
movaps %xmm3, %xmm1
maxss %xmm0, %xmm1
movaps %xmm0, %xmm6
minss %xmm3, %xmm6
cmpltss %xmm3, %xmm0
movaps %xmm0, %xmm3
andnps %xmm2, %xmm3
andps %xmm5, %xmm0
orps %xmm3, %xmm0
movaps %xmm6, %xmm2
minss %xmm4, %xmm2
movaps %xmm1, %xmm3
subss %xmm2, %xmm3
subss %xmm4, %xmm6
movss 0x728f8(%rip), %xmm2    # 0xb500c
mulss %xmm3, %xmm2
movss 0x73134(%rip), %xmm4    # 0xb5854
addss %xmm4, %xmm2
divss %xmm2, %xmm6
addss %xmm0, %xmm6
andps 0x7309d(%rip), %xmm6    # 0xb57d0
movss %xmm6, (%rdi)
addss %xmm1, %xmm4
divss %xmm4, %xmm3
movss %xmm3, (%rsi)
movss %xmm1, (%rdx)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGui::ColorConvertHSVtoRGB(float, float, float, float&, float&, float&)
void ImGui::ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b)
{
    if (s == 0.0f)
    {
        // gray
        out_r = out_g = out_b = v;
        return;
    }

    h = ImFmod(h, 1.0f) / (60.0f / 360.0f);
    int   i = (int)h;
    float f = h - (float)i;
    float p = v * (1.0f - s);
    float q = v * (1.0f - s * f);
    float t = v * (1.0f - s * (1.0f - f));

    switch (i)
    {
    case 0: out_r = v; out_g = t; out_b = p; break;
    case 1: out_r = q; out_g = v; out_b = p; break;
    case 2: out_r = p; out_g = v; out_b = t; break;
    case 3: out_r = p; out_g = q; out_b = v; break;
    case 4: out_r = t; out_g = p; out_b = v; break;
    case 5: default: out_r = v; out_g = p; out_b = q; break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movaps %xmm1, %xmm3
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm3
jne 0x42782
jp 0x42782
movss %xmm2, (%rbx)
movss %xmm2, (%r14)
movss %xmm2, (%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movss 0x7285a(%rip), %xmm1    # 0xb4fe4
movss %xmm2, -0x20(%rbp)
movss %xmm3, -0x1c(%rbp)
callq 0xc9c0
movss -0x1c(%rbp), %xmm6
movss 0x7283e(%rip), %xmm5    # 0xb4fe4
movss -0x20(%rbp), %xmm4
divss 0x730a5(%rip), %xmm0    # 0xb5858
cvttss2si %xmm0, %eax
cvttps2dq %xmm0, %xmm1
cvtdq2ps %xmm1, %xmm1
subss %xmm1, %xmm0
movaps %xmm5, %xmm1
subss %xmm6, %xmm1
mulss %xmm4, %xmm1
movaps %xmm6, %xmm3
mulss %xmm0, %xmm3
movaps %xmm5, %xmm2
subss %xmm3, %xmm2
mulss %xmm4, %xmm2
cmpl $0x4, %eax
ja 0x42858
movaps %xmm5, %xmm3
subss %xmm0, %xmm3
mulss %xmm3, %xmm6
subss %xmm6, %xmm5
mulss %xmm4, %xmm5
leaq 0x73112(%rip), %rcx     # 0xb5910
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movss %xmm4, (%r15)
movss %xmm5, (%r14)
jmp 0x4284f
movss %xmm5, (%r15)
movss %xmm1, (%r14)
jmp 0x4283c
movss %xmm1, (%r15)
movss %xmm4, (%r14)
movss %xmm5, (%rbx)
jmp 0x42777
movss %xmm1, (%r15)
movss %xmm2, (%r14)
movss %xmm4, (%rbx)
jmp 0x42777
movss %xmm2, (%r15)
movss %xmm4, (%r14)
movss %xmm1, (%rbx)
jmp 0x42777
movss %xmm4, (%r15)
movss %xmm1, (%r14)
movss %xmm2, (%rbx)
jmp 0x42777
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiStorage::GetInt(unsigned int, int) const
int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
{
    ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
    if (it == Data.end() || it->key != key)
        return default_val;
    return it->val_i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edx, %eax
movslq (%rdi), %r8
movq 0x8(%rdi), %rcx
testq %r8, %r8
je 0x428ee
movq %rcx, %rdx
movq %r8, %r9
movq %r8, %rdi
shrq %rdi
movq %rdi, %r10
shlq $0x4, %r10
cmpl %esi, (%rdx,%r10)
jae 0x428e4
notq %rdi
addq %r9, %rdi
addq %r10, %rdx
addq $0x10, %rdx
movq %rdi, %r9
testq %rdi, %rdi
jne 0x428c7
jmp 0x428f4
xorl %r8d, %r8d
movq %rcx, %rdx
shlq $0x4, %r8
addq %r8, %rcx
cmpq %rcx, %rdx
je 0x42907
cmpl %esi, (%rdx)
jne 0x42907
movl 0x8(%rdx), %eax
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiStorage::GetFloat(unsigned int, float) const
float ImGuiStorage::GetFloat(ImGuiID key, float default_val) const
{
    ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
    if (it == Data.end() || it->key != key)
        return default_val;
    return it->val_f;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq (%rdi), %rdx
movq 0x8(%rdi), %rax
testq %rdx, %rdx
je 0x4295a
movq %rax, %rcx
movq %rdx, %r8
movq %rdx, %rdi
shrq %rdi
movq %rdi, %r9
shlq $0x4, %r9
cmpl %esi, (%rcx,%r9)
jae 0x42950
notq %rdi
addq %r8, %rdi
addq %r9, %rcx
addq $0x10, %rcx
movq %rdi, %r8
testq %rdi, %rdi
jne 0x42933
jmp 0x4295f
xorl %edx, %edx
movq %rax, %rcx
shlq $0x4, %rdx
addq %rdx, %rax
cmpq %rax, %rcx
je 0x42974
cmpl %esi, (%rcx)
jne 0x42974
movss 0x8(%rcx), %xmm0
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiStorage::GetVoidPtr(unsigned int) const
void* ImGuiStorage::GetVoidPtr(ImGuiID key) const
{
    ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
    if (it == Data.end() || it->key != key)
        return NULL;
    return it->val_p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq (%rdi), %rcx
movq 0x8(%rdi), %rax
testq %rcx, %rcx
je 0x429b6
movq %rax, %rdx
movq %rcx, %r8
movq %rcx, %rdi
shrq %rdi
movq %rdi, %r9
shlq $0x4, %r9
cmpl %esi, (%rdx,%r9)
jae 0x429ac
notq %rdi
addq %r8, %rdi
addq %r9, %rdx
addq $0x10, %rdx
movq %rdi, %r8
testq %rdi, %rdi
jne 0x4298f
jmp 0x429bb
xorl %ecx, %ecx
movq %rax, %rdx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq %rax, %rdx
je 0x429d1
cmpl %esi, (%rdx)
jne 0x429d1
movq 0x8(%rdx), %rax
jmp 0x429d3
xorl %eax, %eax
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiStorage::GetIntRef(unsigned int, int)
int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val)
{
    ImGuiStoragePair* it = LowerBound(Data, key);
    if (it == Data.end() || it->key != key)
        it = Data.insert(it, ImGuiStoragePair(key, default_val));
    return &it->val_i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movslq (%rdi), %r8
movq 0x8(%rdi), %rcx
testq %r8, %r8
je 0x42a1a
movq %rcx, %rax
movq %r8, %r10
movq %r8, %r9
shrq %r9
movq %r9, %r11
shlq $0x4, %r11
cmpl %esi, (%rax,%r11)
jae 0x42a10
notq %r9
addq %r10, %r9
addq %r11, %rax
addq $0x10, %rax
movq %r9, %r10
testq %r9, %r9
jne 0x429f3
jmp 0x42a20
xorl %r8d, %r8d
movq %rcx, %rax
shlq $0x4, %r8
addq %r8, %rcx
cmpq %rcx, %rax
je 0x42a30
cmpl %esi, (%rax)
je 0x42a44
leaq -0x10(%rbp), %rcx
movl %esi, (%rcx)
movl %edx, 0x8(%rcx)
movq %rax, %rsi
movq %rcx, %rdx
callq 0x5cfe0
addq $0x8, %rax
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiStorage::GetFloatRef(unsigned int, float)
float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val)
{
    ImGuiStoragePair* it = LowerBound(Data, key);
    if (it == Data.end() || it->key != key)
        it = Data.insert(it, ImGuiStoragePair(key, default_val));
    return &it->val_f;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movslq (%rdi), %rdx
movq 0x8(%rdi), %rcx
testq %rdx, %rdx
je 0x42a9c
movq %rcx, %rax
movq %rdx, %r9
movq %rdx, %r8
shrq %r8
movq %r8, %r10
shlq $0x4, %r10
cmpl %esi, (%rax,%r10)
jae 0x42a92
notq %r8
addq %r9, %r8
addq %r10, %rax
addq $0x10, %rax
movq %r8, %r9
testq %r8, %r8
jne 0x42a75
jmp 0x42aa1
xorl %edx, %edx
movq %rcx, %rax
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
je 0x42ab1
cmpl %esi, (%rax)
je 0x42ac4
leaq -0x10(%rbp), %rdx
movl %esi, (%rdx)
movss %xmm0, 0x8(%rdx)
movq %rax, %rsi
callq 0x5cfe0
addq $0x8, %rax
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiStorage::GetVoidPtrRef(unsigned int, void*)
void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val)
{
    ImGuiStoragePair* it = LowerBound(Data, key);
    if (it == Data.end() || it->key != key)
        it = Data.insert(it, ImGuiStoragePair(key, default_val));
    return &it->val_p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movslq (%rdi), %r8
movq 0x8(%rdi), %rcx
testq %r8, %r8
je 0x42b12
movq %rcx, %rax
movq %r8, %r10
movq %r8, %r9
shrq %r9
movq %r9, %r11
shlq $0x4, %r11
cmpl %esi, (%rax,%r11)
jae 0x42b08
notq %r9
addq %r10, %r9
addq %r11, %rax
addq $0x10, %rax
movq %r9, %r10
testq %r9, %r9
jne 0x42aeb
jmp 0x42b18
xorl %r8d, %r8d
movq %rcx, %rax
shlq $0x4, %r8
addq %r8, %rcx
cmpq %rcx, %rax
je 0x42b28
cmpl %esi, (%rax)
je 0x42b3d
leaq -0x10(%rbp), %rcx
movl %esi, (%rcx)
movq %rdx, 0x8(%rcx)
movq %rax, %rsi
movq %rcx, %rdx
callq 0x5cfe0
addq $0x8, %rax
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiStorage::SetInt(unsigned int, int)
void ImGuiStorage::SetInt(ImGuiID key, int val)
{
    ImGuiStoragePair* it = LowerBound(Data, key);
    if (it == Data.end() || it->key != key)
    {
        Data.insert(it, ImGuiStoragePair(key, val));
        return;
    }
    it->val_i = val;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movslq (%rdi), %r8
movq 0x8(%rdi), %rcx
testq %r8, %r8
je 0x42b8c
movq %rcx, %rax
movq %r8, %r10
movq %r8, %r9
shrq %r9
movq %r9, %r11
shlq $0x4, %r11
cmpl %esi, (%rax,%r11)
jae 0x42b82
notq %r9
addq %r10, %r9
addq %r11, %rax
addq $0x10, %rax
movq %r9, %r10
testq %r9, %r9
jne 0x42b65
jmp 0x42b92
xorl %r8d, %r8d
movq %rcx, %rax
shlq $0x4, %r8
addq %r8, %rcx
cmpq %rcx, %rax
je 0x42ba7
cmpl %esi, (%rax)
jne 0x42ba7
movl %edx, 0x8(%rax)
jmp 0x42bbb
leaq -0x10(%rbp), %rcx
movl %esi, (%rcx)
movl %edx, 0x8(%rcx)
movq %rax, %rsi
movq %rcx, %rdx
callq 0x5cfe0
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiStorage::SetFloat(unsigned int, float)
void ImGuiStorage::SetFloat(ImGuiID key, float val)
{
    ImGuiStoragePair* it = LowerBound(Data, key);
    if (it == Data.end() || it->key != key)
    {
        Data.insert(it, ImGuiStoragePair(key, val));
        return;
    }
    it->val_f = val;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movslq (%rdi), %rdx
movq 0x8(%rdi), %rcx
testq %rdx, %rdx
je 0x42c10
movq %rcx, %rax
movq %rdx, %r9
movq %rdx, %r8
shrq %r8
movq %r8, %r10
shlq $0x4, %r10
cmpl %esi, (%rax,%r10)
jae 0x42c06
notq %r8
addq %r9, %r8
addq %r10, %rax
addq $0x10, %rax
movq %r8, %r9
testq %r8, %r8
jne 0x42be9
jmp 0x42c15
xorl %edx, %edx
movq %rcx, %rax
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
je 0x42c2c
cmpl %esi, (%rax)
jne 0x42c2c
movss %xmm0, 0x8(%rax)
jmp 0x42c3f
leaq -0x10(%rbp), %rdx
movl %esi, (%rdx)
movss %xmm0, 0x8(%rdx)
movq %rax, %rsi
callq 0x5cfe0
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiStorage::SetVoidPtr(unsigned int, void*)
void ImGuiStorage::SetVoidPtr(ImGuiID key, void* val)
{
    ImGuiStoragePair* it = LowerBound(Data, key);
    if (it == Data.end() || it->key != key)
    {
        Data.insert(it, ImGuiStoragePair(key, val));
        return;
    }
    it->val_p = val;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movslq (%rdi), %r8
movq 0x8(%rdi), %rcx
testq %r8, %r8
je 0x42c8a
movq %rcx, %rax
movq %r8, %r10
movq %r8, %r9
shrq %r9
movq %r9, %r11
shlq $0x4, %r11
cmpl %esi, (%rax,%r11)
jae 0x42c80
notq %r9
addq %r10, %r9
addq %r11, %rax
addq $0x10, %rax
movq %r9, %r10
testq %r9, %r9
jne 0x42c63
jmp 0x42c90
xorl %r8d, %r8d
movq %rcx, %rax
shlq $0x4, %r8
addq %r8, %rcx
cmpq %rcx, %rax
je 0x42ca6
cmpl %esi, (%rax)
jne 0x42ca6
movq %rdx, 0x8(%rax)
jmp 0x42cbb
leaq -0x10(%rbp), %rcx
movl %esi, (%rcx)
movq %rdx, 0x8(%rcx)
movq %rax, %rsi
movq %rcx, %rdx
callq 0x5cfe0
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiTextFilter::ImGuiTextFilter(char const*)
ImGuiTextFilter::ImGuiTextFilter(const char* default_filter)
{
    if (default_filter)
    {
        ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf));
        Build();
    }
    else
    {
        InputBuf[0] = 0;
        CountGrep = 0;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x100(%rdi)
testq %rsi, %rsi
je 0x42d28
leaq 0x100(%rbx), %r14
movl $0xff, %edx
movq %rbx, %rdi
callq 0xc110
movb $0x0, 0xff(%rbx)
movq %rbx, %rdi
callq 0x42d4e
jmp 0x42d35
movb $0x0, (%rbx)
movl $0x0, 0x110(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x5d12c
movq %rbx, %rdi
callq 0xc560
nop