// File: /workspace/github_cpp_makefile_star2_O1/Laakeri[P]maxpre/src/touchedlist.cpp
// Function: maxPreprocessor::TouchedList::getTouchedLiteralsCh(unsigned long, std::vector<int, std::allocator<int>>&)
void TouchedList::getTouchedLiteralsCh(uint64_t eitr, std::vector<int>& ret) {
	for (int i = (int)touchedLiterals.size() - 1; i >= 0 && touchedLiterals[i].F >= eitr; i--) {
		if (getI[touchedLiterals[i].S] != getItr) {
			getI[touchedLiterals[i].S] = getItr;
			ret.push_back(touchedLiterals[i].S);
		}
	}
	for (int i = (int)touchedClauses.size() - 1; i >= 0 && touchedClauses[i].F >= eitr; i--) {
		for (int l : pi.clauses[touchedClauses[i].S].lit) {
			if (getI[l] != getItr) {
				getI[l] = getItr;
				ret.push_back(l);
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movabsq $-0x800000000000000, %r13 # imm = 0xF800000000000000
movq 0x48(%rdi), %rax
movq %rax, %rcx
subq 0x28(%rdi), %rcx
shrq $0x3, %rcx
cmpq $0x1, %rax
adcq $-0x1, %rcx
shlq $0x5, %rcx
movq 0x30(%rdi), %rax
subq 0x38(%rdi), %rax
movq 0x20(%rdi), %r12
shrq $0x4, %rax
subq 0x10(%rdi), %r12
shrq $0x4, %r12
addq %rax, %r12
addq %rcx, %r12
testl %r12d, %r12d
jle 0x2f848
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
leaq -0x1(%r12), %rbp
shlq $0x4, %r12
addq $-0x10, %r12
movq 0x10(%r15), %rdx
movq %rdx, %rax
subq 0x18(%r15), %rax
sarq $0x4, %rax
leaq (%rax,%rbp), %rcx
cmpq $0x1f, %rcx
ja 0x2f6fc
leaq (%rdx,%r12), %rsi
jmp 0x2f72c
movq 0x28(%r15), %rdi
movq %rcx, %rsi
shrq $0x5, %rsi
movq %rsi, %r8
orq %r13, %r8
testq %rcx, %rcx
cmovgq %rsi, %r8
movq %r8, %r9
shlq $0x5, %r9
movq %rax, %rsi
subq %r9, %rsi
addq %rbp, %rsi
shlq $0x4, %rsi
addq (%rdi,%r8,8), %rsi
cmpq %r14, (%rsi)
jb 0x2f848
cmpq $0x1f, %rcx
ja 0x2f741
leaq (%rdx,%r12), %rsi
jmp 0x2f771
movq 0x28(%r15), %rdi
movq %rcx, %rsi
shrq $0x5, %rsi
movq %rsi, %r8
orq %r13, %r8
testq %rcx, %rcx
cmovgq %rsi, %r8
movq %r8, %r9
shlq $0x5, %r9
movq %rax, %rsi
subq %r9, %rsi
addq %rbp, %rsi
shlq $0x4, %rsi
addq (%rdi,%r8,8), %rsi
movslq 0x8(%rsi), %r8
movq 0x170(%r15), %rsi
movl 0x198(%r15), %edi
cmpl %edi, (%rsi,%r8,4)
je 0x2f830
cmpq $0x1f, %rcx
ja 0x2f799
leaq (%rdx,%r12), %r8
jmp 0x2f7c9
movq 0x28(%r15), %r9
movq %rcx, %r8
shrq $0x5, %r8
movq %r8, %r10
orq %r13, %r10
testq %rcx, %rcx
cmovgq %r8, %r10
movq %r10, %r11
shlq $0x5, %r11
movq %rax, %r8
subq %r11, %r8
addq %rbp, %r8
shlq $0x4, %r8
addq (%r9,%r10,8), %r8
movslq 0x8(%r8), %r8
movl %edi, (%rsi,%r8,4)
cmpq $0x1f, %rcx
ja 0x2f7dc
addq %r12, %rdx
jmp 0x2f80c
movq 0x28(%r15), %rdx
movq %rcx, %rsi
shrq $0x5, %rsi
movq %rsi, %rdi
orq %r13, %rdi
testq %rcx, %rcx
cmovgq %rsi, %rdi
movq %rdi, %rcx
shlq $0x5, %rcx
subq %rcx, %rax
addq %rbp, %rax
shlq $0x4, %rax
addq (%rdx,%rdi,8), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2f828
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2f830
movq %rbx, %rdi
callq 0x98e8
leaq -0x1(%rbp), %rax
incq %rbp
addq $-0x10, %r12
cmpq $0x1, %rbp
movq %rax, %rbp
jg 0x2f6dd
movq 0xe8(%r15), %rax
movq %rax, %rcx
subq 0xc8(%r15), %rcx
shrq $0x3, %rcx
cmpq $0x1, %rax
adcq $-0x1, %rcx
shlq $0x5, %rcx
movq 0xd0(%r15), %rax
subq 0xd8(%r15), %rax
movq 0xc0(%r15), %r13
shrq $0x4, %rax
subq 0xb0(%r15), %r13
shrq $0x4, %r13
addq %rax, %r13
addq %rcx, %r13
testl %r13d, %r13d
jle 0x2f9e3
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq %r14, 0x10(%rsp)
movq %r13, %rbp
movq 0xb0(%r15), %rcx
movq %rcx, %rax
subq 0xb8(%r15), %rax
decq %r13
sarq $0x4, %rax
addq %rbp, %rax
decq %rax
cmpq $0x1f, %rax
ja 0x2f8db
movq %r13, %rdx
shlq $0x4, %rdx
addq %rcx, %rdx
jmp 0x2f915
movq %rax, %rdx
shrq $0x5, %rdx
movq %rdx, %rsi
movabsq $-0x800000000000000, %rdi # imm = 0xF800000000000000
orq %rdi, %rsi
testq %rax, %rax
cmovgq %rdx, %rsi
movq 0xc8(%r15), %rdi
movq %rsi, %r8
shlq $0x5, %r8
movq %rax, %rdx
subq %r8, %rdx
shlq $0x4, %rdx
addq (%rdi,%rsi,8), %rdx
cmpq %r14, (%rdx)
jb 0x2f9e3
cmpq $0x1f, %rax
ja 0x2f930
movq %r13, %rax
shlq $0x4, %rax
addq %rax, %rcx
jmp 0x2f96a
movq %rax, %rcx
shrq $0x5, %rcx
movq %rcx, %rdx
movabsq $-0x800000000000000, %rsi # imm = 0xF800000000000000
orq %rsi, %rdx
testq %rax, %rax
cmovgq %rcx, %rdx
movq 0xc8(%r15), %rcx
movq %rdx, %rsi
shlq $0x5, %rsi
subq %rsi, %rax
shlq $0x4, %rax
addq (%rcx,%rdx,8), %rax
movq %rax, %rcx
movq 0x1a0(%r15), %rax
movslq 0x8(%rcx), %rcx
movq (%rax), %rax
leaq (%rcx,%rcx,4), %rcx
movq (%rax,%rcx,8), %r14
movq 0x8(%rax,%rcx,8), %r12
cmpq %r12, %r14
je 0x2f9d4
movslq (%r14), %rax
movl %eax, 0xc(%rsp)
movq 0x170(%r15), %rcx
movl 0x198(%r15), %edx
cmpl %edx, (%rcx,%rax,4)
je 0x2f9ce
movl %edx, (%rcx,%rax,4)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2f9c1
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2f9ce
movq %rbx, %rdi
leaq 0xc(%rsp), %rdx
callq 0x98e8
addq $0x4, %r14
jmp 0x2f985
cmpq $0x2, %rbp
movq 0x10(%rsp), %r14
jge 0x2f8a8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq