// File: /workspace/github_cpp_makefile_star2_O3/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), %rcx
movq 0x18(%rsi), %r12
cmpq %rcx, %r12
je 0x5669
movq %rsi, %r15
movq 0x30(%rsi), %rdx
movq 0x38(%rsi), %rax
cmpq %rdx, %rax
jne 0x546f
movq 0x40(%r15), %rax
movq %rax, %r13
subq %rcx, %r13
jb 0x56a3
cmpq %r12, %rax
ja 0x56a3
movq 0x48(%r15), %rdx
cmpq %rcx, %rdx
jb 0x56a3
cmpq %r12, %rdx
ja 0x56a3
movq 0x8(%r15), %r14
testq %r14, %r14
je 0x54b9
movq 0x6b65(%rip), %r12      # 0xbfc0
cmpb $0x0, (%r12)
je 0x54f0
incl 0x8(%r14)
jmp 0x54f5
movq 0x40(%r15), %rsi
movq %rsi, %r13
subq %rcx, %r13
jb 0x56c2
subq %rsi, %r12
jb 0x56c2
movq 0x48(%r15), %rcx
cmpq %rdx, %rcx
jb 0x56c2
cmpq %rax, %rcx
ja 0x56c2
movq 0x8(%r15), %r14
testq %r14, %r14
je 0x54d6
movq 0x6b12(%rip), %rax      # 0xbfc0
cmpb $0x0, (%rax)
je 0x550d
incl 0x8(%r14)
jmp 0x5512
addq (%r15), %r13
subq %rax, %rdx
movq %rdx, (%rsp)
movq %r13, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
jmp 0x559a
addq (%r15), %r13
movq %r12, (%rsp)
movq %r13, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
jmp 0x55f0
lock
incl 0x8(%r14)
movq (%r15), %rbp
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x552f
cmpb $0x0, (%r12)
je 0x554f
incl 0x8(%rdi)
jmp 0x555e
lock
incl 0x8(%r14)
movq (%r15), %rbp
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x5540
cmpb $0x0, (%rax)
je 0x55aa
incl 0x8(%rdi)
jmp 0x55b7
cmpb $0x0, (%r12)
je 0x567b
incl 0x8(%r14)
jmp 0x5567
cmpb $0x0, (%rax)
je 0x5685
incl 0x8(%r14)
jmp 0x55c0
lock
incl 0x8(%rdi)
cmpb $0x0, (%r12)
je 0x568f
incl 0x8(%r14)
callq 0x4130
addq %r13, %rbp
movq %r14, %rdi
callq 0x4130
movq 0x48(%r15), %rax
subq 0x40(%r15), %rax
movq %rax, (%rsp)
movq %rbp, 0x8(%rsp)
movq %r14, 0x10(%rsp)
cmpb $0x0, (%r12)
je 0x5595
incl 0x8(%r14)
jmp 0x559a
lock
incl 0x8(%r14)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x5b62
jmp 0x564d
lock
incl 0x8(%rdi)
cmpb $0x0, (%rax)
je 0x5699
incl 0x8(%r14)
callq 0x4130
addq %r13, %rbp
movq %r14, %rdi
callq 0x4130
movq %r12, (%rsp)
movq %rbp, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq 0x69e0(%rip), %rax      # 0xbfc0
cmpb $0x0, (%rax)
je 0x55eb
incl 0x8(%r14)
jmp 0x55f0
lock
incl 0x8(%r14)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x5b62
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x560a
callq 0x4130
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 0x5642
movq 0x698c(%rip), %rcx      # 0xbfc0
cmpb $0x0, (%rcx)
je 0x563e
incl 0x8(%rax)
jmp 0x5642
lock
incl 0x8(%rax)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x5b62
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x565c
callq 0x4130
testq %r14, %r14
je 0x5669
movq %r14, %rdi
callq 0x4130
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
lock
incl 0x8(%r14)
jmp 0x5567
lock
incl 0x8(%r14)
jmp 0x55c0
lock
incl 0x8(%r14)
jmp 0x5562
lock
incl 0x8(%r14)
jmp 0x55bb
leaq 0x2f51(%rip), %rdi      # 0x85fb
leaq 0x2cbc(%rip), %rsi      # 0x836d
leaq 0x2fd0(%rip), %rcx      # 0x8688
movl $0x7f, %edx
callq 0x3160
leaq 0x2ff7(%rip), %rdi      # 0x86c0
leaq 0x2c9d(%rip), %rsi      # 0x836d
leaq 0x2fb1(%rip), %rcx      # 0x8688
movl $0x8b, %edx
callq 0x3160
jmp 0x56e5
jmp 0x56e5
movq %rax, %r15
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x56f7
callq 0x4130
testq %r14, %r14
je 0x5704
movq %r14, %rdi
callq 0x4130
movq %rbx, %rdi
callq 0x5714
movq %r15, %rdi
callq 0x3370