// File: /workspace/github_cpp_makefile_star2_O1/Laakeri[P]maxpre/src/./BIG.cpp
// Function: maxPreprocessor::Preprocessor::doBIG(bool)
int Preprocessor::doBIG(bool doTC) {
	rLog.startTechnique(Log::Technique::EE);
	if (!rLog.requestTime(Log::Technique::EE)) {
		rLog.stopTechnique(Log::Technique::EE);
		return 0;
	}
	int removed = 0;
	BIGIt++;
	if ((int)BIGu.size() < 2*pi.vars) BIGu.resize(2*pi.vars);
	if ((int)BIGu2.size() < 2*pi.vars) BIGu2.resize(2*pi.vars);
	if ((int)BIGid.size() < 2*pi.vars) BIGid.resize(2*pi.vars);
	vector<int> checkLit = pi.tl.getBinaryLiterals("BIG");
	for (int lit : checkLit) {
		if (!rLog.requestTime(Log::Technique::EE)) break;
		if (BIGu[lit] == BIGIt || pi.isLabel[litVariable(lit)]) continue;
		removed += tryBIG(lit, doTC);
	}
	log(removed, " variables removed by EE");
	rLog.stopTechnique(Log::Technique::EE);
	return removed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebp
movq %rdi, %r14
leaq 0x218(%rdi), %rbx
movq %rbx, %rdi
movl $0x9, %esi
callq 0x298e6
movq %rbx, %rdi
movl $0x9, %esi
callq 0x2a464
testb %al, %al
je 0x16513
incl 0x3ac(%r14)
movq 0x3b8(%r14), %rax
subq 0x3b0(%r14), %rax
shrq $0x2, %rax
movslq 0x60(%r14), %rsi
addq %rsi, %rsi
cmpl %eax, %esi
jle 0x163ec
leaq 0x3b0(%r14), %rdi
callq 0x8cbc
movq 0x3d0(%r14), %rax
subq 0x3c8(%r14), %rax
shrq $0x2, %rax
movslq 0x60(%r14), %rsi
addq %rsi, %rsi
cmpl %eax, %esi
jle 0x16415
leaq 0x3c8(%r14), %rdi
callq 0x8cbc
movq 0x3e8(%r14), %rax
subq 0x3e0(%r14), %rax
shrq $0x2, %rax
movslq 0x60(%r14), %rsi
addq %rsi, %rsi
cmpl %eax, %esi
jle 0x1643e
leaq 0x3e0(%r14), %rdi
callq 0x8cbc
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2385c(%rip), %rsi     # 0x39caa
leaq 0x23858(%rip), %rdx     # 0x39cad
leaq 0x28(%rsp), %r12
movq %r12, %rdi
callq 0x945c
leaq 0x68(%r14), %rsi
leaq 0x10(%rsp), %rdi
movq %r12, %rdx
callq 0x308cc
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1648a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %r15
cmpq %r15, %r13
je 0x16524
movl %ebp, %eax
xorl %ebp, %ebp
movzbl %al, %eax
movl %eax, 0xc(%rsp)
movslq (%r13), %r12
movq %rbx, %rdi
movl $0x9, %esi
callq 0x2a464
movl $0x2, %ecx
testb %al, %al
je 0x164ff
movq 0x3b0(%r14), %rax
movl (%rax,%r12,4), %eax
movl $0x3, %ecx
cmpl 0x3ac(%r14), %eax
je 0x164ff
movl %r12d, %eax
sarl %eax
cltq
movq 0x48(%r14), %rdx
cmpl $0x0, (%rdx,%rax,4)
jne 0x164ff
movq %r14, %rdi
movl %r12d, %esi
movl 0xc(%rsp), %edx
callq 0x14b6a
addl %eax, %ebp
xorl %ecx, %ecx
cmpl $0x3, %ecx
je 0x16508
testl %ecx, %ecx
jne 0x16526
addq $0x4, %r13
cmpq %r15, %r13
jne 0x164a8
jmp 0x16526
movq %rbx, %rdi
movl $0x9, %esi
callq 0x29928
xorl %ebp, %ebp
jmp 0x1655b
xorl %ebp, %ebp
leaq 0x23781(%rip), %rdx     # 0x39cae
movq %r14, %rdi
movl %ebp, %esi
callq 0x1f426
movq %rbx, %rdi
movl $0x9, %esi
callq 0x29928
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1655b
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1659f
movq 0x38(%rsp), %rsi
incq %rsi
jmp 0x1659a
jmp 0x16585
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1659f
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0
nop