// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/touchedlist.cpp
// Function: maxPreprocessor::TouchedList::getModLiteralsCh(unsigned long, std::vector<int, std::allocator<int>>&)
void TouchedList::getModLiteralsCh(uint64_t eitr, std::vector<int>& ret) {
	for (int i = (int)modLiterals.size() - 1; i >= 0 && modLiterals[i].F >= eitr; i--) {
		if (getI[modLiterals[i].S] != getItr) {
			getI[modLiterals[i].S] = getItr;
			ret.push_back(modLiterals[i].S);
		}
	}
	for (int i = (int)modClauses.size() - 1; i >= 0 && modClauses[i].F >= eitr; i--) {
		for (int l : pi.clauses[modClauses[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
movq 0x98(%rdi), %rax
movq %rax, %rcx
subq 0x78(%rdi), %rcx
shrq $0x3, %rcx
cmpq $0x1, %rax
adcq $-0x1, %rcx
shlq $0x5, %rcx
movq 0x80(%rdi), %rax
subq 0x88(%rdi), %rax
movq 0x70(%rdi), %r12
shrq $0x4, %rax
subq 0x60(%rdi), %r12
shrq $0x4, %r12
addq %rax, %r12
addq %rcx, %r12
testl %r12d, %r12d
jle 0x2edf4
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
leaq -0x1(%r12), %r13
shlq $0x4, %r12
addq $-0x10, %r12
movq 0x60(%r15), %rdx
movq %rdx, %rax
subq 0x68(%r15), %rax
movq 0x78(%r15), %rsi
sarq $0x4, %rax
movq %r13, %rcx
addq %rax, %rcx
js 0x2ed15
cmpq $0x20, %rcx
jae 0x2ed1e
cmpq %r14, (%rdx,%r12)
jb 0x2edf4
movslq 0x8(%rdx,%r12), %rax
movq 0x170(%r15), %rdi
movl 0x198(%r15), %r8d
cmpl %r8d, (%rdi,%rax,4)
jne 0x2ed78
jmp 0x2eddc
movq %rcx, %r8
sarq $0x5, %r8
jmp 0x2ed25
movq %rcx, %r8
shrq $0x5, %r8
movq (%rsi,%r8,8), %rdi
movl %ecx, %r9d
andl $0x1f, %r9d
shll $0x4, %r9d
cmpq %r14, (%rdi,%r9)
jb 0x2edf4
shlq $0x5, %r8
movq %rax, %r9
subq %r8, %r9
addq %r13, %r9
shlq $0x4, %r9
movslq 0x8(%rdi,%r9), %r9
movq 0x170(%r15), %rdi
movl 0x198(%r15), %r8d
cmpl %r8d, (%rdi,%r9,4)
je 0x2eddc
testq %rcx, %rcx
js 0x2ed81
cmpq $0x1f, %rcx
ja 0x2ed8a
movslq 0x8(%rdx,%r12), %rax
movl %r8d, (%rdi,%rax,4)
addq %r12, %rdx
jmp 0x2edb8
movq %rcx, %rdx
sarq $0x5, %rdx
jmp 0x2ed91
movq %rcx, %rdx
shrq $0x5, %rdx
movq (%rsi,%rdx,8), %rsi
andl $0x1f, %ecx
shll $0x4, %ecx
movslq 0x8(%rsi,%rcx), %rcx
movl %r8d, (%rdi,%rcx,4)
shlq $0x5, %rdx
subq %rdx, %rax
addq %r13, %rax
shlq $0x4, %rax
addq %rsi, %rax
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2edd4
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2eddc
movq %rbx, %rdi
callq 0x98f8
leaq -0x1(%r13), %rax
incq %r13
addq $-0x10, %r12
cmpq $0x1, %r13
movq %rax, %r13
ja 0x2eccc
movq 0x138(%r15), %rax
movq %rax, %rcx
subq 0x118(%r15), %rcx
shrq $0x3, %rcx
cmpq $0x1, %rax
adcq $-0x1, %rcx
shlq $0x5, %rcx
movq 0x120(%r15), %rax
subq 0x128(%r15), %rax
movq 0x110(%r15), %r13
shrq $0x4, %rax
subq 0x100(%r15), %r13
shrq $0x4, %r13
addq %rax, %r13
addq %rcx, %r13
testl %r13d, %r13d
jle 0x2ef50
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq %r14, 0x10(%rsp)
movq %r13, %rbp
decq %r13
movq 0x100(%r15), %rdx
movq 0x118(%r15), %rcx
movq %rdx, %rax
subq 0x108(%r15), %rax
sarq $0x4, %rax
addq %r13, %rax
js 0x2ee9a
cmpq $0x20, %rax
jae 0x2eea3
movq %r13, %rax
shlq $0x4, %rax
cmpq %r14, (%rdx,%rax)
jb 0x2ef50
addq %rax, %rdx
movq %rdx, %rax
jmp 0x2eed7
movq %rax, %rdx
sarq $0x5, %rdx
jmp 0x2eeaa
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 0x2ef50
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 0x2ef41
movslq (%r14), %rax
movl %eax, 0xc(%rsp)
movq 0x170(%r15), %rcx
movl 0x198(%r15), %edx
cmpl %edx, (%rcx,%rax,4)
je 0x2ef3b
movl %edx, (%rcx,%rax,4)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2ef2e
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2ef3b
movq %rbx, %rdi
leaq 0xc(%rsp), %rdx
callq 0x98f8
addq $0x4, %r14
jmp 0x2eef2
cmpq $0x2, %rbp
movq 0x10(%rsp), %r14
jge 0x2ee54
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop