// File: /workspace/github_cpp_makefile_star2_O1/vsklad[P]cgen/./bal/bal/linkedlistindex.hpp
// Function: bal::SimpleLinkedListsIndex<unsigned int>::append(unsigned int, unsigned int)
inline void append(const container_size_t instance_offset, const container_size_t container_offset) {
            if (instance_offset >= this->instances_.size_) {
                this->instances_.append(CONTAINER_END, instance_offset - this->instances_.size_ + 1);
                this->instances_last_.append(CONTAINER_END, instance_offset - instances_last_.size_ + 1);
            };
            
            this->reserve(1); // size_ is the valid offset for the new item
            this->data_[this->size_] = { CONTAINER_END, container_offset };
            if (this->instances_.data_[instance_offset] == CONTAINER_END) {
                // the instance list is empty
                assert(instances_last_.data_[instance_offset] == CONTAINER_END);
                this->instances_.data_[instance_offset] = this->size_;
            } else {
                // after the last item
                assert(instances_last_.data_[instance_offset] != CONTAINER_END);
                this->data_[instances_last_.data_[instance_offset]].next_offset = this->size_;
            }
            instances_last_.data_[instance_offset] = this->size_;
            this->size_++;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r15d
movl %esi, %r14d
movq %rdi, %rbx
movl 0x38(%rdi), %eax
cmpl %esi, %eax
ja 0x1541d
leaq 0x30(%rbx), %rdi
leal 0x1(%r14), %r12d
movl %r12d, %edx
subl %eax, %edx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x12094
leaq 0x60(%rbx), %rdi
subl 0x68(%rbx), %r12d
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl %r12d, %edx
callq 0x12094
movl 0x10(%rbx), %r12d
movl 0x20(%rbx), %eax
incl %r12d
cmpl %r12d, %eax
jae 0x154b6
movl %eax, %ecx
shrl %ecx
addl %ecx, %r12d
cmpl %r12d, %eax
je 0x154b6
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x15465
testl %r12d, %r12d
je 0x1549e
movl %r12d, %esi
shlq $0x3, %rsi
callq 0xc470
testq %rax, %rax
je 0x15549
movq %rax, 0x8(%rbx)
jmp 0x154b2
testl %r12d, %r12d
je 0x154ab
movl %r12d, %edi
shlq $0x3, %rdi
callq 0xc380
movq %rax, 0x8(%rbx)
testq %rax, %rax
jne 0x154ab
leaq 0x2c39f(%rip), %rdi     # 0x41825
leaq 0x2c32a(%rip), %rsi     # 0x417b7
leaq 0x2f379(%rip), %rcx     # 0x4480d
movl $0x38, %edx
callq 0xc180
callq 0xc350
movq $0x0, 0x8(%rbx)
movl $0x0, 0x10(%rbx)
movl %r12d, 0x20(%rbx)
movq 0x8(%rbx), %rcx
movl 0x10(%rbx), %eax
movl $0xffffffff, (%rcx,%rax,8) # imm = 0xFFFFFFFF
movl %r15d, 0x4(%rcx,%rax,8)
movq 0x30(%rbx), %rdx
movq 0x60(%rbx), %rsi
movl %r14d, %eax
cmpl $-0x1, (%rdx,%rax,4)
movl (%rsi,%rax,4), %esi
je 0x154ea
cmpl $-0x1, %esi
je 0x1550b
movl 0x10(%rbx), %edx
movl %edx, (%rcx,%rsi,8)
jmp 0x154f5
cmpl $-0x1, %esi
jne 0x1552a
movl 0x10(%rbx), %ecx
movl %ecx, (%rdx,%rax,4)
movl 0x10(%rbx), %ecx
movq 0x60(%rbx), %rdx
movl %ecx, (%rdx,%rax,4)
incl 0x10(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x310a1(%rip), %rdi     # 0x465b3
leaq 0x30ff3(%rip), %rsi     # 0x4650c
leaq 0x3100a(%rip), %rcx     # 0x4652a
movl $0xbd, %edx
callq 0xc180
leaq 0x30fa3(%rip), %rdi     # 0x464d4
leaq 0x30fd4(%rip), %rsi     # 0x4650c
leaq 0x30feb(%rip), %rcx     # 0x4652a
movl $0xb9, %edx
callq 0xc180
leaq 0x2c253(%rip), %rdi     # 0x417a3
leaq 0x2c260(%rip), %rsi     # 0x417b7
leaq 0x2f2af(%rip), %rcx     # 0x4480d
movl $0x33, %edx
callq 0xc180