// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/touchedlist.cpp
// Function: maxPreprocessor::TouchedList::getTouchedVarsCh(unsigned long, std::vector<int, std::allocator<int>>&)
void TouchedList::getTouchedVarsCh(uint64_t eitr, std::vector<int>& ret) {
	for (int i = (int)touchedLiterals.size() - 1; i >= 0 && touchedLiterals[i].F >= eitr; i--) {
		if (getI[litVariable(touchedLiterals[i].S)] != getItr) {
			getI[litVariable(touchedLiterals[i].S)] = getItr;
			ret.push_back(litVariable(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[litVariable(l)] != getItr) {
				getI[litVariable(l)] = getItr;
				ret.push_back(litVariable(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
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), %r13
shrq $0x4, %rax
subq 0x10(%rdi), %r13
shrq $0x4, %r13
addq %rax, %r13
addq %rcx, %r13
testl %r13d, %r13d
jle 0x2f121
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
leaq 0x1(%r13), %rbp
shlq $0x4, %r13
addq $-0x10, %r13
leaq 0xc(%rsp), %r12
movq 0x10(%r15), %rcx
movq %rcx, %rax
subq 0x18(%r15), %rax
movq 0x28(%r15), %rsi
sarq $0x4, %rax
leaq (%rax,%rbp), %rdx
addq $-0x2, %rdx
js 0x2f004
cmpq $0x20, %rdx
jae 0x2f00d
cmpq %r14, (%rcx,%r13)
jb 0x2f121
leaq (%rcx,%r13), %rdi
jmp 0x2f045
movq %rdx, %r8
sarq $0x5, %r8
jmp 0x2f014
movq %rdx, %r8
shrq $0x5, %r8
movq (%rsi,%r8,8), %rdi
movl %edx, %r9d
andl $0x1f, %r9d
shll $0x4, %r9d
cmpq %r14, (%rdi,%r9)
jb 0x2f121
shlq $0x5, %r8
movq %rax, %r9
subq %r8, %r9
addq %rbp, %r9
shlq $0x4, %r9
addq %r9, %rdi
addq $-0x20, %rdi
movl 0x8(%rdi), %edi
sarl %edi
movslq %edi, %r9
movq 0x170(%r15), %rdi
movl 0x198(%r15), %r8d
cmpl %r8d, (%rdi,%r9,4)
je 0x2f110
testq %rdx, %rdx
js 0x2f07f
cmpq $0x1f, %rdx
ja 0x2f088
movl 0x8(%rcx,%r13), %eax
sarl %eax
cltq
movl %r8d, (%rdi,%rax,4)
jmp 0x2f0be
movq %rdx, %r9
sarq $0x5, %r9
jmp 0x2f08f
movq %rdx, %r9
shrq $0x5, %r9
movq (%rsi,%r9,8), %r10
shlq $0x5, %r9
movq %rax, %r11
subq %r9, %r11
addq %rbp, %r11
shlq $0x4, %r11
movl -0x18(%r11,%r10), %r9d
sarl %r9d
movslq %r9d, %r9
movl %r8d, (%rdi,%r9,4)
testq %rdx, %rdx
js 0x2f0c3
cmpq $0x1f, %rdx
ja 0x2f0c9
addq %r13, %rcx
jmp 0x2f0e6
sarq $0x5, %rdx
jmp 0x2f0cd
shrq $0x5, %rdx
movq (%rsi,%rdx,8), %rcx
shlq $0x5, %rdx
subq %rdx, %rax
addq %rbp, %rax
shlq $0x4, %rax
addq %rax, %rcx
addq $-0x20, %rcx
movl 0x8(%rcx), %eax
sarl %eax
movl %eax, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2f105
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2f110
movq %rbx, %rdi
movq %r12, %rdx
callq 0x1ffb8
decq %rbp
addq $-0x10, %r13
cmpq $0x1, %rbp
ja 0x2efd1
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 0x2f27e
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq %r14, 0x10(%rsp)
movq %r13, %rbp
decq %r13
movq 0xb0(%r15), %rdx
movq 0xc8(%r15), %rcx
movq %rdx, %rax
subq 0xb8(%r15), %rax
sarq $0x4, %rax
addq %r13, %rax
js 0x2f1c7
cmpq $0x20, %rax
jae 0x2f1d0
movq %r13, %rax
shlq $0x4, %rax
cmpq %r14, (%rdx,%rax)
jb 0x2f27e
addq %rax, %rdx
movq %rdx, %rax
jmp 0x2f204
movq %rax, %rdx
sarq $0x5, %rdx
jmp 0x2f1d7
movq %rax, %rdx
shrq $0x5, %rdx
movq (%rcx,%rdx,8), %rsi
shlq $0x5, %rdx
movq %rax, %rdi
subq %rdx, %rdi
shlq $0x4, %rdi
cmpq %r14, (%rsi,%rdi)
jb 0x2f27e
movq %rax, %rdx
sarq $0x5, %rdx
andl $0x1f, %eax
shll $0x4, %eax
addq (%rcx,%rdx,8), %rax
movq 0x1a0(%r15), %rcx
movslq 0x8(%rax), %rax
movq (%rcx), %rcx
leaq (%rax,%rax,4), %rax
movq (%rcx,%rax,8), %r14
movq 0x8(%rcx,%rax,8), %r12
cmpq %r12, %r14
je 0x2f26f
movl (%r14), %eax
sarl %eax
movslq %eax, %rcx
movq 0x170(%r15), %rdx
movl 0x198(%r15), %esi
cmpl %esi, (%rdx,%rcx,4)
je 0x2f269
movl %esi, (%rdx,%rcx,4)
movl %ecx, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2f25c
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2f269
movq %rbx, %rdi
leaq 0x8(%rsp), %rdx
callq 0x1ffb8
addq $0x4, %r14
jmp 0x2f21f
cmpq $0x2, %rbp
movq 0x10(%rsp), %r14
jge 0x2f181
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop