// File: /workspace/github_cpp_makefile_star2_O1/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
movabsq $-0x800000000000000, %r13 # imm = 0xF800000000000000
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 0x2fbdd
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
leaq -0x1(%r12), %rbp
shlq $0x4, %r12
addq $-0x10, %r12
movq 0x60(%r15), %rdx
movq %rdx, %rax
subq 0x68(%r15), %rax
sarq $0x4, %rax
leaq (%rax,%rbp), %rcx
cmpq $0x1f, %rcx
ja 0x2fa91
leaq (%rdx,%r12), %rsi
jmp 0x2fac1
movq 0x78(%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 0x2fbdd
cmpq $0x1f, %rcx
ja 0x2fad6
leaq (%rdx,%r12), %rsi
jmp 0x2fb06
movq 0x78(%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 0x2fbc5
cmpq $0x1f, %rcx
ja 0x2fb2e
leaq (%rdx,%r12), %r8
jmp 0x2fb5e
movq 0x78(%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 0x2fb71
addq %r12, %rdx
jmp 0x2fba1
movq 0x78(%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 0x2fbbd
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2fbc5
movq %rbx, %rdi
callq 0x98e8
leaq -0x1(%rbp), %rax
incq %rbp
addq $-0x10, %r12
cmpq $0x1, %rbp
movq %rax, %rbp
jg 0x2fa72
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 0x2fd78
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq %r14, 0x10(%rsp)
movq %r13, %rbp
movq 0x100(%r15), %rcx
movq %rcx, %rax
subq 0x108(%r15), %rax
decq %r13
sarq $0x4, %rax
addq %rbp, %rax
decq %rax
cmpq $0x1f, %rax
ja 0x2fc70
movq %r13, %rdx
shlq $0x4, %rdx
addq %rcx, %rdx
jmp 0x2fcaa
movq %rax, %rdx
shrq $0x5, %rdx
movq %rdx, %rsi
movabsq $-0x800000000000000, %rdi # imm = 0xF800000000000000
orq %rdi, %rsi
testq %rax, %rax
cmovgq %rdx, %rsi
movq 0x118(%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 0x2fd78
cmpq $0x1f, %rax
ja 0x2fcc5
movq %r13, %rax
shlq $0x4, %rax
addq %rax, %rcx
jmp 0x2fcff
movq %rax, %rcx
shrq $0x5, %rcx
movq %rcx, %rdx
movabsq $-0x800000000000000, %rsi # imm = 0xF800000000000000
orq %rsi, %rdx
testq %rax, %rax
cmovgq %rcx, %rdx
movq 0x118(%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 0x2fd69
movslq (%r14), %rax
movl %eax, 0xc(%rsp)
movq 0x170(%r15), %rcx
movl 0x198(%r15), %edx
cmpl %edx, (%rcx,%rax,4)
je 0x2fd63
movl %edx, (%rcx,%rax,4)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2fd56
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2fd63
movq %rbx, %rdi
leaq 0xc(%rsp), %rdx
callq 0x98e8
addq $0x4, %r14
jmp 0x2fd1a
cmpq $0x2, %rbp
movq 0x10(%rsp), %r14
jge 0x2fc3d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop