// File: /workspace/github_cpp_makefile_star2_O3/ivan-tkatchev[P]makerpm/makerpm.cc
// Function: Store::str[abi:cxx11](unsigned int)
std::string str(uint32_t tag) {
        // Add a pointless 'magic' field, which goes into the end of the store but as the first index entry.

        std::string magic;
        std::string magic_payload;

        int32_t magic_offset = -((nentries + 1) * rpm::index_t::entry_t::SIZE);

        add_uint32(tag, magic_payload);
        add_uint32(rpm::index_t::entry_t::TYPE_BIN, magic_payload);
        add_uint32((uint32_t)magic_offset, magic_payload);
        add_uint32(rpm::index_t::entry_t::SIZE, magic_payload);

        add_magic(tag, magic_payload, magic, store, nentries);

        // Add header with the number of fields.

        std::string iheader;
        iheader += '\x8e';
        iheader += '\xad';
        iheader += '\xe8';
        iheader += '\x01';
        add_uint32(0, iheader);
        add_uint32(nentries, iheader);
        add_uint32(store.size(), iheader);

        return iheader + magic + index + store;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
movl 0x40(%rsi), %r15d
leaq 0x28(%rsp), %rsi
movl %edx, %edi
callq 0x10b83
leaq 0x28(%rsp), %rsi
movl $0x7, %edi
callq 0x10b83
notl %r15d
shll $0x4, %r15d
leaq 0x28(%rsp), %rsi
movl %r15d, %edi
callq 0x10b83
leaq 0x28(%rsp), %rsi
movl $0x10, %edi
callq 0x10b83
leaq 0x40(%r14), %r15
leaq 0x20(%r14), %rcx
leaq 0x28(%rsp), %rsi
leaq 0x68(%rsp), %rdx
movl %ebp, %edi
movq %r15, %r8
callq 0x10c48
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
leaq 0x8(%rsp), %rdi
movl $0xffffff8e, %esi       # imm = 0xFFFFFF8E
callq 0x3680
leaq 0x8(%rsp), %rdi
movl $0xffffffad, %esi       # imm = 0xFFFFFFAD
callq 0x3680
leaq 0x8(%rsp), %rdi
movl $0xffffffe8, %esi       # imm = 0xFFFFFFE8
callq 0x3680
leaq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0x3680
leaq 0x8(%rsp), %rsi
xorl %edi, %edi
callq 0x10b83
movl (%r15), %edi
leaq 0x8(%rsp), %rsi
callq 0x10b83
movl 0x28(%r14), %edi
leaq 0x8(%rsp), %rsi
callq 0x10b83
leaq 0x88(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x14871
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x88(%rsp), %rdi
callq 0x3450
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1442f
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x14436
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
callq 0x3450
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x14481
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x14487
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x144ad
callq 0x32f0
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x144c3
callq 0x32f0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x144d2
callq 0x32f0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x144e1
callq 0x32f0
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x144f0
callq 0x32f0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x1451c
callq 0x32f0
jmp 0x1451c
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1453e
callq 0x32f0
jmp 0x1453e
jmp 0x1453b
movq %rax, %rbx
jmp 0x1454d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1454d
callq 0x32f0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x1455c
callq 0x32f0
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x1456b
callq 0x32f0
movq %rbx, %rdi
callq 0x3370
nop