// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/src/../include/imgui_club/imgui_memory_editor/imgui_memory_editor.h
// Function: MemoryEditor::DrawPreviewLine(MemoryEditor::Sizes const&, void*, unsigned long, unsigned long)
void DrawPreviewLine(const Sizes& s, void* mem_data_void, size_t mem_size, size_t base_display_addr)
    {
        IM_UNUSED(base_display_addr);
        ImU8* mem_data = (ImU8*)mem_data_void;
        ImGuiStyle& style = ImGui::GetStyle();
        ImGui::AlignTextToFramePadding();
        ImGui::Text("Preview as:");
        ImGui::SameLine();
        ImGui::PushItemWidth((s.GlyphWidth * 10.0f) + style.FramePadding.x * 2.0f + style.ItemInnerSpacing.x);
        if (ImGui::BeginCombo("##combo_type", DataTypeGetDesc(PreviewDataType), ImGuiComboFlags_HeightLargest))
        {
            for (int n = 0; n < ImGuiDataType_COUNT; n++)
                if (ImGui::Selectable(DataTypeGetDesc((ImGuiDataType)n), PreviewDataType == n))
                    PreviewDataType = (ImGuiDataType)n;
            ImGui::EndCombo();
        }
        ImGui::PopItemWidth();
        ImGui::SameLine();
        ImGui::PushItemWidth((s.GlyphWidth * 6.0f) + style.FramePadding.x * 2.0f + style.ItemInnerSpacing.x);
        ImGui::Combo("##combo_endianess", &PreviewEndianess, "LE\0BE\0\0");
        ImGui::PopItemWidth();

        char buf[128] = "";
        float x = s.GlyphWidth * 6.0f;
        bool has_value = DataPreviewAddr != (size_t)-1;
        if (has_value)
            DrawPreviewData(DataPreviewAddr, mem_data, mem_size, PreviewDataType, DataFormat_Dec, buf, (size_t)IM_ARRAYSIZE(buf));
        ImGui::Text("Dec"); ImGui::SameLine(x); ImGui::TextUnformatted(has_value ? buf : "N/A");
        if (has_value)
            DrawPreviewData(DataPreviewAddr, mem_data, mem_size, PreviewDataType, DataFormat_Hex, buf, (size_t)IM_ARRAYSIZE(buf));
        ImGui::Text("Hex"); ImGui::SameLine(x); ImGui::TextUnformatted(has_value ? buf : "N/A");
        if (has_value)
            DrawPreviewData(DataPreviewAddr, mem_data, mem_size, PreviewDataType, DataFormat_Bin, buf, (size_t)IM_ARRAYSIZE(buf));
        buf[IM_ARRAYSIZE(buf) - 1] = 0;
        ImGui::Text("Bin"); ImGui::SameLine(x); ImGui::TextUnformatted(has_value ? buf : "N/A");
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rcx, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movq %rsi, %r12
movq %rdi, %r15
callq 0x35cfd
movq %rax, %r13
callq 0x7c785
leaq 0x69c02(%rip), %rdi     # 0x9c502
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x795ac
movss 0x696df(%rip), %xmm1    # 0x9bff0
xorps %xmm0, %xmm0
callq 0x437ec
movss 0x8(%r12), %xmm0
movss 0x38(%r13), %xmm1
mulss 0x696ee(%rip), %xmm0    # 0x9c01c
addss %xmm1, %xmm1
addss %xmm1, %xmm0
addss 0x50(%r13), %xmm0
callq 0x43b8c
movl 0xb4(%r15), %esi
movq %r15, %rdi
callq 0x32bc4
leaq 0x69bb7(%rip), %rdi     # 0x9c50e
pushq $0x10
popq %rdx
movq %rax, %rsi
callq 0x7cfa7
testb %al, %al
je 0x329b2
leaq -0xc0(%rbp), %r14
cmpl $0xa, %ebx
je 0x329ad
movq %r15, %rdi
movl %ebx, %esi
callq 0x32bc4
xorl %esi, %esi
cmpl 0xb4(%r15), %ebx
sete %sil
andq $0x0, -0xc0(%rbp)
movq %rax, %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x7d81c
testb %al, %al
je 0x329a9
movl %ebx, 0xb4(%r15)
incl %ebx
jmp 0x3296d
callq 0x7d6af
callq 0x43cbe
movss 0x69631(%rip), %xmm1    # 0x9bff0
xorps %xmm0, %xmm0
callq 0x437ec
movss 0x38(%r13), %xmm1
addss %xmm1, %xmm1
movss 0x69647(%rip), %xmm2    # 0x9c020
movss %xmm2, -0x2c(%rbp)
movss 0x8(%r12), %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
addss 0x50(%r13), %xmm0
callq 0x43b8c
leaq 0xb0(%r15), %rsi
leaq 0x69b15(%rip), %rdi     # 0x9c51b
leaq 0x69d5b(%rip), %rdx     # 0x9c768
pushq $-0x1
popq %rcx
callq 0x7dd48
callq 0x43cbe
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
movaps %xmm0, -0x80(%rbp)
movaps %xmm0, -0x90(%rbp)
movaps %xmm0, -0xa0(%rbp)
movaps %xmm0, -0xb0(%rbp)
movaps %xmm0, -0xc0(%rbp)
movss -0x2c(%rbp), %xmm0
mulss 0x8(%r12), %xmm0
movss %xmm0, -0x2c(%rbp)
movq 0x40(%r15), %rbx
cmpq $-0x1, %rbx
je 0x32a97
movl 0xb4(%r15), %r8d
leaq -0xc0(%rbp), %r12
pushq $0x1
popq %r9
movq %r15, %rdi
movq %rbx, %rsi
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %r13
movq %r13, %rcx
pushq $0x80
pushq %r12
callq 0x32bfe
popq %rax
popq %rcx
jmp 0x32aa2
leaq 0x69a93(%rip), %r12     # 0x9c531
movq -0x38(%rbp), %r13
leaq 0x69a84(%rip), %rdi     # 0x9c52d
xorl %eax, %eax
callq 0x795ac
movss 0x69538(%rip), %xmm1    # 0x9bff0
movss -0x2c(%rbp), %xmm0
callq 0x437ec
movq %r12, %rdi
xorl %esi, %esi
callq 0x7959d
cmpq $-0x1, %rbx
je 0x32b5a
movq 0x40(%r15), %rsi
movl 0xb4(%r15), %r8d
movl $0x80, %eax
leaq -0xc0(%rbp), %r14
pushq $0x2
popq %r9
movq %r15, %rdi
movq -0x40(%rbp), %rbx
movq %rbx, %rdx
movq %r13, %rcx
pushq %rax
pushq %r14
callq 0x32bfe
popq %rax
popq %rcx
leaq 0x699e4(%rip), %rdi     # 0x9c4f3
xorl %eax, %eax
callq 0x795ac
movss 0x694d2(%rip), %xmm1    # 0x9bff0
movss -0x2c(%rbp), %xmm0
callq 0x437ec
movq %r12, %rdi
xorl %esi, %esi
callq 0x7959d
movq 0x40(%r15), %rsi
movl 0xb4(%r15), %r8d
movq %r15, %rdi
movq %rbx, %rdx
movq %r13, %rcx
xorl %r9d, %r9d
movl $0x80, %eax
pushq %rax
pushq %r14
callq 0x32bfe
popq %rax
popq %rcx
jmp 0x32b84
leaq 0x69992(%rip), %rdi     # 0x9c4f3
xorl %eax, %eax
callq 0x795ac
movss 0x69480(%rip), %xmm1    # 0x9bff0
movss -0x2c(%rbp), %xmm0
callq 0x437ec
movq %r12, %rdi
xorl %esi, %esi
callq 0x7959d
movb $0x0, -0x41(%rbp)
leaq 0x699a6(%rip), %rdi     # 0x9c535
xorl %eax, %eax
callq 0x795ac
movss 0x69452(%rip), %xmm1    # 0x9bff0
movss -0x2c(%rbp), %xmm0
callq 0x437ec
movq %r12, %rdi
xorl %esi, %esi
callq 0x7959d
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq