// File: /workspace/github_cpp_makefile_star2_O3/vsklad[P]cgen/./bal/cnf/processor/cnfprocessor.hpp
// Function: void bal::CnfProcessor::rebuild_clauses<bal::CnfOptimizer, &bal::CnfOptimizer::_normalize_clause(unsigned int*) const>(bal::CnfOptimizer const*, bool) const
inline void rebuild_clauses(const CALLER_T* const p_caller, const bool b_safe_mode) const {
            _assert_level_1(!cnf_.transaction_is_in());
            if (b_safe_mode) {
                // make a sorted list of all used container offsets
                // then basically d the same thing as unsafe while limiting to these offsets
                std::vector<container_offset_t> offsets;
                for (auto it: cnf_.clauses()) {
                    offsets.push_back((container_offset_t)(it - clauses_data_));
                };
                std::sort(offsets.begin(), offsets.end());
                // rollback after collecting the offsets
                cnf_.rollback(0, 0, 0);
                // add the clauses back
                for (auto i = 0; i < offsets.size(); i++) {
                    uint32_t* const p_clause = _clauses_offset_clause(clauses_data_, offsets[i]);
                    if ((p_caller->*p_update_clause)(p_clause)) {
                        Cnf::insertion_point_t insertion_point;
                        __insertion_point_t_init(insertion_point);
                        clauses_.append<false>(p_clause, insertion_point);
                    };
                };
            } else {
                const container_size_t original_size_ = cnf_.size_;
                cnf_.rollback(0, 0, 0);
                uint32_t offset = 0;
                while (offset < original_size_) {
                    uint32_t* const p_clause = _clauses_offset_clause(clauses_data_, offset);
                    // p_clause size may change
                    const clause_size_t clause_size = _clause_size(p_clause);
                    if ((p_caller->*p_update_clause)(p_clause)) {
                        Cnf::insertion_point_t insertion_point;
                        __insertion_point_t_init(insertion_point);
                        clauses_.append<false>(p_clause, insertion_point);
                    };
                    _clauses_offset_size_next(offset, clause_size);
                };
            };
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, -0x50(%rbp)
movq 0x8(%rdi), %rbx
cmpl $-0x1, 0xc8(%rbx)
jne 0x12bfc
movq %rdi, %r14
leaq 0x78(%rbx), %rsi
testb %dl, %dl
je 0x12b16
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
movq $0x0, -0x60(%rbp)
leaq -0x48(%rbp), %rdi
movl $0x1, %edx
callq 0x136d8
movl 0xb0(%rbx), %r15d
cmpl %r15d, -0x30(%rbp)
jne 0x128c3
cmpl $-0x1, -0x2c(%rbp)
je 0x12a0c
leaq -0x48(%rbp), %rdi
callq 0x12cfa
movq 0x18(%r14), %rcx
subq (%rcx), %rax
shrq $0x2, %rax
movl %eax, -0x74(%rbp)
movq -0x68(%rbp), %rsi
cmpq -0x60(%rbp), %rsi
je 0x128f0
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x68(%rbp)
jmp 0x128fd
leaq -0x70(%rbp), %rdi
leaq -0x74(%rbp), %rdx
callq 0xe7da
movq -0x48(%rbp), %rdx
movl 0x38(%rdx), %ecx
testl %ecx, %ecx
je 0x1293b
movl -0x34(%rbp), %eax
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
cmpq %rsi, %rax
je 0x1296c
movq -0x40(%rbp), %rsi
movq 0x8(%rsi), %rsi
movl 0x4(%rsi,%rax,4), %edi
cmpl $-0x1, %edi
je 0x12943
movl %edi, %eax
movl %edi, -0x34(%rbp)
movl %edi, %ecx
movl 0x8(%rsi,%rcx,4), %edi
cmpl $-0x1, %edi
jne 0x12926
jmp 0x129f6
movl -0x2c(%rbp), %eax
jmp 0x129f9
movl (%rsi,%rax,4), %edi
cmpl $-0x1, %edi
je 0x12965
movl %eax, %r8d
movl %edi, %eax
movl %edi, %edi
cmpl %r8d, 0x4(%rsi,%rdi,4)
movl %eax, -0x34(%rbp)
jne 0x129f6
movl (%rsi,%rdi,4), %edi
jmp 0x12946
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
movl -0x30(%rbp), %esi
leal 0x1(%rsi), %r8d
movl %r8d, -0x30(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %ecx, %r8d
jae 0x129f6
movq 0x30(%rdx), %rdi
movl %r8d, %edx
negl %ecx
addl $0x2, %esi
cmpl $-0x1, (%rdi,%rdx,4)
jne 0x129b1
incq %rdx
movl %esi, -0x30(%rbp)
leal (%rcx,%rsi), %r8d
incl %r8d
incl %esi
cmpl $0x1, %r8d
jne 0x12994
jmp 0x129f6
movl %edx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
cmpl %edx, 0x38(%rcx)
jbe 0x129ef
movq 0x30(%rcx), %rsi
movl %edx, %edx
movl (%rsi,%rdx,4), %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %esi, -0x34(%rbp)
cmpq %rdx, %rsi
je 0x129f6
movq 0x8(%rcx), %rcx
movl 0x8(%rcx,%rsi,4), %edx
movl %esi, %eax
cmpl $-0x1, %edx
je 0x129f6
movl %edx, %eax
movl %edx, -0x34(%rbp)
movl %edx, %edx
movl 0x8(%rcx,%rdx,4), %edx
jmp 0x129dd
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
movl %eax, -0x2c(%rbp)
cmpl %r15d, -0x30(%rbp)
jne 0x128c3
cmpl $-0x1, %eax
jne 0x128c3
movq -0x70(%rbp), %r15
movq -0x68(%rbp), %r12
cmpq %r12, %r15
je 0x12a46
movq %r12, %rax
subq %r15, %rax
sarq $0x2, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x13771
movq %r15, %rdi
movq %r12, %rsi
callq 0x13852
movq 0x8(%r14), %rdi
movq 0x78(%rdi), %rax
addq $0x78, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq *(%rax)
movq -0x70(%rbp), %rdi
cmpq %rdi, -0x68(%rbp)
je 0x12b03
xorl %r13d, %r13d
movl $0x7fff, %r15d          # imm = 0x7FFF
leaq -0x48(%rbp), %rbx
movq 0x18(%r14), %rax
movq (%rax), %rax
movl (%rdi,%r13,4), %ecx
leaq (%rax,%rcx,4), %r12
addq $0xc, %r12
movl (%r12), %eax
andl %r15d, %eax
cmpl $0x4, %eax
ja 0x12aa5
movq -0x50(%rbp), %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x12d5e
jmp 0x12ab4
movq -0x50(%rbp), %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x12fae
cmpl $0x3, %eax
je 0x12ae8
cmpl $0x4, %eax
je 0x12bbe
movzwl (%r12), %eax
testl $0x7fff, %eax           # imm = 0x7FFF
je 0x12bdd
movl $0xffffffff, -0x44(%rbp) # imm = 0xFFFFFFFF
movq 0x10(%r14), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x10062
incq %r13
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rax
subq %rdi, %rax
sarq $0x2, %rax
cmpq %r13, %rax
ja 0x12a75
testq %rdi, %rdi
je 0x12baf
callq 0xb280
jmp 0x12baf
movl 0x88(%rbx), %r13d
movq 0x78(%rbx), %rax
xorl %r15d, %r15d
movq %rsi, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq *(%rax)
testl %r13d, %r13d
je 0x12baf
movq 0x18(%r14), %rax
movq (%rax), %rax
movl %r15d, %ecx
leaq (%rax,%rcx,4), %r12
addq $0xc, %r12
movl (%r12), %ebx
movl $0x7fff, %eax           # imm = 0x7FFF
andl %eax, %ebx
cmpl $0x4, %ebx
ja 0x12b67
movq -0x50(%rbp), %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x12d5e
jmp 0x12b76
movq -0x50(%rbp), %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x12fae
cmpl $0x3, %eax
je 0x12ba3
cmpl $0x4, %eax
je 0x12bbe
movzwl (%r12), %eax
testl $0x7fff, %eax           # imm = 0x7FFF
je 0x12bdd
movl $0xffffffff, -0x44(%rbp) # imm = 0xFFFFFFFF
movq 0x10(%r14), %rdi
movq %r12, %rsi
leaq -0x48(%rbp), %rdx
callq 0x10062
addl %ebx, %r15d
addl $0x4, %r15d
cmpl %r13d, %r15d
jb 0x12b34
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2f7a7(%rip), %rdi     # 0x4236c
leaq 0x2f23c(%rip), %rsi     # 0x41e08
leaq 0x2f7ae(%rip), %rcx     # 0x42381
movl $0x472, %edx            # imm = 0x472
callq 0xb180
leaq 0x2f7de(%rip), %rdi     # 0x423c2
leaq 0x2f21d(%rip), %rsi     # 0x41e08
leaq 0x2f78f(%rip), %rcx     # 0x42381
movl $0x473, %edx            # imm = 0x473
callq 0xb180
leaq 0x2f681(%rip), %rdi     # 0x42284
leaq 0x2f694(%rip), %rsi     # 0x4229e
leaq 0x2f6b2(%rip), %rcx     # 0x422c3
movl $0x52, %edx
callq 0xb180
jmp 0x12c23
jmp 0x12c23
jmp 0x12c23
jmp 0x12c23
movq %rax, %rbx
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x12c34
callq 0xb280
movq %rbx, %rdi
callq 0xb4e0