// File: /workspace/github_cpp_makefile_star2_O2/jansucan[P]diff-dd/src/create.cpp
// Function: Diff::getData() const
std::vector<FormatV2::RecordData> getData() const
    {
        std::vector<FormatV2::RecordData> data{};

        if (!m_pages[0].isEmpty() && m_pages[1].isEmpty()) {
            // Only the first page
            assert((m_start >= m_pages[0].getStart()) &&
                   (m_start <= m_pages[0].getEnd()) &&
                   (m_end >= m_pages[0].getStart()) &&
                   (m_end <= m_pages[0].getEnd()));

            const uint64_t offset{m_start - m_pages[0].getStart()};
            auto data_first{std::shared_ptr<char[]>{
                m_pages[0].getData(),
                static_cast<char *>(m_pages[0].getData().get()) + offset}};
            data.push_back(FormatV2::RecordData{getSize(), data_first});
        } else if (!m_pages[0].isEmpty() && !m_pages[1].isEmpty()) {
            // Both pages
            assert((m_start >= m_pages[0].getStart()) &&
                   (m_start <= m_pages[0].getEnd()) &&
                   (m_end >= m_pages[1].getStart()) &&
                   (m_end <= m_pages[1].getEnd()));

            size_t size{m_pages[0].getEnd() - m_start};
            const uint64_t offset{m_start - m_pages[0].getStart()};
            auto data_first{std::shared_ptr<char[]>{
                m_pages[0].getData(),
                static_cast<char *>(m_pages[0].getData().get()) + offset}};
            data.push_back(FormatV2::RecordData{size, data_first});

            size = m_end - m_pages[1].getStart();
            data.push_back(FormatV2::RecordData{size, m_pages[1].getData()});
        }

        return data;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq 0x10(%rsi), %rax
movq 0x18(%rsi), %r13
cmpq %rax, %r13
je 0x5034
movq %rsi, %r14
movq 0x30(%rsi), %rdx
movq 0x38(%rsi), %rcx
cmpq %rdx, %rcx
jne 0x4f50
movq 0x40(%r14), %rcx
movq %rcx, %r12
subq %rax, %r12
jb 0x5045
cmpq %r13, %rcx
ja 0x5045
movq 0x48(%r14), %rcx
cmpq %rax, %rcx
jb 0x5045
cmpq %r13, %rcx
ja 0x5045
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x3f8e
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x3f8e
addq (%r15), %r12
leaq 0x38(%rsp), %r15
movq %r12, -0x8(%r15)
leaq 0x10(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x3fa2
leaq 0x28(%rsp), %rdi
callq 0x3ed0
movq %r12, %rdi
callq 0x3ed0
movq 0x48(%r14), %rax
subq 0x40(%r14), %rax
movq %rax, -0x8(%r12)
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x3f8e
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x55ee
jmp 0x5022
movq 0x40(%r14), %rsi
movq %rsi, %r12
subq %rax, %r12
jb 0x5062
subq %rsi, %r13
jb 0x5062
movq 0x48(%r14), %rax
cmpq %rdx, %rax
jb 0x5062
cmpq %rcx, %rax
ja 0x5062
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x3f8e
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x3f8e
addq (%r15), %r12
leaq 0x38(%rsp), %r15
movq %r12, -0x8(%r15)
leaq 0x10(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x3fa2
leaq 0x28(%rsp), %rdi
callq 0x3ed0
movq %r12, %rdi
callq 0x3ed0
movq %r13, -0x8(%r12)
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x3f8e
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x55ee
leaq 0x20(%r14), %r12
leaq 0x18(%rsp), %r13
movq %r13, %rdi
callq 0x3ed0
movq 0x48(%r14), %rax
subq 0x30(%r14), %rax
movq %rax, -0x10(%r13)
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x3f8e
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x55ee
leaq 0x18(%rsp), %rdi
callq 0x3ed0
movq %r15, %rdi
callq 0x3ed0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x3593(%rip), %rdi      # 0x85df
leaq 0x32fe(%rip), %rsi      # 0x8351
leaq 0x3612(%rip), %rcx      # 0x866c
pushq $0x7f
popq %rdx
callq 0x3160
leaq 0x363b(%rip), %rdi      # 0x86a4
leaq 0x32e1(%rip), %rsi      # 0x8351
leaq 0x35f5(%rip), %rcx      # 0x866c
movl $0x8b, %edx
callq 0x3160
jmp 0x5085
jmp 0x5085
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x3ed0
movq %r15, %rdi
callq 0x3ed0
movq %rbx, %rdi
callq 0x50aa
movq %r14, %rdi
callq 0x3340