// File: /workspace/github_cpp_makefile_star2_O3/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
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 0x2eaeb
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
leaq -0x1(%r12), %r13
shlq $0x4, %r12
addq $-0x10, %r12
movq 0x10(%r15), %rdx
movq %rdx, %rax
subq 0x18(%r15), %rax
movq 0x28(%r15), %rsi
sarq $0x4, %rax
movq %r13, %rcx
addq %rax, %rcx
js 0x2ea0c
cmpq $0x20, %rcx
jae 0x2ea15
cmpq %r14, (%rdx,%r12)
jb 0x2eaeb
movslq 0x8(%rdx,%r12), %rax
movq 0x170(%r15), %rdi
movl 0x198(%r15), %r8d
cmpl %r8d, (%rdi,%rax,4)
jne 0x2ea6f
jmp 0x2ead3
movq %rcx, %r8
sarq $0x5, %r8
jmp 0x2ea1c
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 0x2eaeb
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 0x2ead3
testq %rcx, %rcx
js 0x2ea78
cmpq $0x1f, %rcx
ja 0x2ea81
movslq 0x8(%rdx,%r12), %rax
movl %r8d, (%rdi,%rax,4)
addq %r12, %rdx
jmp 0x2eaaf
movq %rcx, %rdx
sarq $0x5, %rdx
jmp 0x2ea88
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 0x2eacb
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2ead3
movq %rbx, %rdi
callq 0x98f8
leaq -0x1(%r13), %rax
incq %r13
addq $-0x10, %r12
cmpq $0x1, %r13
movq %rax, %r13
ja 0x2e9c3
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 0x2ec47
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 0x2eb91
cmpq $0x20, %rax
jae 0x2eb9a
movq %r13, %rax
shlq $0x4, %rax
cmpq %r14, (%rdx,%rax)
jb 0x2ec47
addq %rax, %rdx
movq %rdx, %rax
jmp 0x2ebce
movq %rax, %rdx
sarq $0x5, %rdx
jmp 0x2eba1
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 0x2ec47
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 0x2ec38
movslq (%r14), %rax
movl %eax, 0xc(%rsp)
movq 0x170(%r15), %rcx
movl 0x198(%r15), %edx
cmpl %edx, (%rcx,%rax,4)
je 0x2ec32
movl %edx, (%rcx,%rax,4)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2ec25
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2ec32
movq %rbx, %rdi
leaq 0xc(%rsp), %rdx
callq 0x98f8
addq $0x4, %r14
jmp 0x2ebe9
cmpq $0x2, %rbp
movq 0x10(%rsp), %r14
jge 0x2eb4b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq