// File: /workspace/github_cpp_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x10(%rsi), %rax
movq 0x18(%rsi), %r12
cmpq %rax, %r12
je 0x55b0
movq %rsi, %r15
movq 0x38(%rsi), %rcx
cmpq 0x30(%rsi), %rcx
jne 0x5479
movq 0x40(%r15), %rcx
movq %rcx, %r13
subq %rax, %r13
jb 0x56b5
cmpq %r12, %rcx
ja 0x56b5
movq 0x48(%r15), %rcx
cmpq %rax, %rcx
jb 0x56b5
cmpq %r12, %rcx
ja 0x56b5
movq 0x8(%r15), %r14
testq %r14, %r14
je 0x54ed
movq 0x6b52(%rip), %rax      # 0xbfc0
cmpb $0x0, (%rax)
je 0x54e8
incl 0x8(%r14)
jmp 0x54ed
cmpq %rax, %r12
je 0x55b0
movq 0x30(%r15), %rdx
movq 0x38(%r15), %rcx
cmpq %rdx, %rcx
je 0x55b0
movq 0x40(%r15), %rsi
movq %rsi, %r13
subq %rax, %r13
jb 0x56d4
subq %rsi, %r12
jb 0x56d4
movq 0x48(%r15), %rax
cmpq %rdx, %rax
jb 0x56d4
cmpq %rcx, %rax
ja 0x56d4
movq 0x8(%r15), %r14
testq %r14, %r14
je 0x55c7
movq 0x6aea(%rip), %rax      # 0xbfc0
cmpb $0x0, (%rax)
je 0x55c2
incl 0x8(%r14)
jmp 0x55c7
lock
incl 0x8(%r14)
movq (%r15), %r12
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x550e
movq 0x6ac0(%rip), %rax      # 0xbfc0
cmpb $0x0, (%rax)
je 0x550a
incl 0x8(%rdi)
jmp 0x550e
lock
incl 0x8(%rdi)
testq %r14, %r14
je 0x552a
movq 0x6aa6(%rip), %rax      # 0xbfc0
cmpb $0x0, (%rax)
je 0x5525
incl 0x8(%r14)
jmp 0x552a
lock
incl 0x8(%r14)
testq %rdi, %rdi
je 0x5534
callq 0x413a
addq %r13, %r12
testq %r14, %r14
je 0x556c
movq %r14, %rdi
callq 0x413a
movq 0x48(%r15), %rax
subq 0x40(%r15), %rax
movq %rax, (%rsp)
movq %r12, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq 0x6a5f(%rip), %rax      # 0xbfc0
cmpb $0x0, (%rax)
je 0x5584
incl 0x8(%r14)
jmp 0x5589
movq 0x48(%r15), %rax
subq 0x40(%r15), %rax
movq %rax, (%rsp)
movq %r12, 0x8(%rsp)
movq %r14, 0x10(%rsp)
jmp 0x5589
lock
incl 0x8(%r14)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x5b82
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x55a3
callq 0x413a
testq %r14, %r14
je 0x55b0
movq %r14, %rdi
callq 0x413a
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
lock
incl 0x8(%r14)
movq (%r15), %rbp
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x55e8
movq 0x69e6(%rip), %rax      # 0xbfc0
cmpb $0x0, (%rax)
je 0x55e4
incl 0x8(%rdi)
jmp 0x55e8
lock
incl 0x8(%rdi)
testq %r14, %r14
je 0x5604
movq 0x69cc(%rip), %rax      # 0xbfc0
cmpb $0x0, (%rax)
je 0x55ff
incl 0x8(%r14)
jmp 0x5604
lock
incl 0x8(%r14)
testq %rdi, %rdi
je 0x560e
callq 0x413a
addq %r13, %rbp
testq %r14, %r14
je 0x563e
movq %r14, %rdi
callq 0x413a
movq %r12, (%rsp)
movq %rbp, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq 0x698d(%rip), %rax      # 0xbfc0
cmpb $0x0, (%rax)
je 0x564e
incl 0x8(%r14)
jmp 0x5653
movq %r12, (%rsp)
movq %rbp, 0x8(%rsp)
movq %r14, 0x10(%rsp)
jmp 0x5653
lock
incl 0x8(%r14)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x5b82
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x566d
callq 0x413a
movq 0x48(%r15), %rax
subq 0x30(%r15), %rax
movq %rax, (%rsp)
movq 0x20(%r15), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%r15), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x56a5
movq 0x6929(%rip), %rcx      # 0xbfc0
cmpb $0x0, (%rcx)
je 0x56a1
incl 0x8(%rax)
jmp 0x56a5
lock
incl 0x8(%rax)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x5b82
jmp 0x5594
leaq 0x2f3f(%rip), %rdi      # 0x85fb
leaq 0x2caa(%rip), %rsi      # 0x836d
leaq 0x2fbe(%rip), %rcx      # 0x8688
movl $0x7f, %edx
callq 0x3160
leaq 0x2fe5(%rip), %rdi      # 0x86c0
leaq 0x2c8b(%rip), %rsi      # 0x836d
leaq 0x2f9f(%rip), %rcx      # 0x8688
movl $0x8b, %edx
callq 0x3160
jmp 0x56f7
jmp 0x56f7
movq %rax, %r15
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5709
callq 0x413a
testq %r14, %r14
je 0x5716
movq %r14, %rdi
callq 0x413a
movq %rbx, %rdi
callq 0x5726
movq %r15, %rdi
callq 0x3370