// File: 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
movq %rsp, %rbp
subq $0xc0, %rsp
movb %sil, %al
movq %rdi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x90(%rbp)
addq $0x218, %rdi            # imm = 0x218
movl $0x9, %esi
callq 0x61320
movq -0x90(%rbp), %rdi
addq $0x218, %rdi            # imm = 0x218
movl $0x9, %esi
callq 0x62450
testb $0x1, %al
jne 0x26cd3
movq -0x90(%rbp), %rdi
addq $0x218, %rdi            # imm = 0x218
movl $0x9, %esi
callq 0x61390
movl $0x0, -0x4(%rbp)
jmp 0x26fbc
movq -0x90(%rbp), %rdi
movl $0x0, -0x18(%rbp)
movl 0x3ac(%rdi), %eax
addl $0x1, %eax
movl %eax, 0x3ac(%rdi)
addq $0x3b0, %rdi            # imm = 0x3B0
callq 0xf940
movq -0x90(%rbp), %rcx
movl 0x60(%rcx), %ecx
shll %ecx
cmpl %ecx, %eax
jge 0x26d2a
movq -0x90(%rbp), %rax
movq %rax, %rdi
addq $0x3b0, %rdi            # imm = 0x3B0
movl 0x60(%rax), %eax
shll %eax
movslq %eax, %rsi
callq 0xa990
movq -0x90(%rbp), %rdi
addq $0x3c8, %rdi            # imm = 0x3C8
callq 0xf940
movq -0x90(%rbp), %rcx
movl 0x60(%rcx), %ecx
shll %ecx
cmpl %ecx, %eax
jge 0x26d6b
movq -0x90(%rbp), %rax
movq %rax, %rdi
addq $0x3c8, %rdi            # imm = 0x3C8
movl 0x60(%rax), %eax
shll %eax
movslq %eax, %rsi
callq 0xa990
movq -0x90(%rbp), %rdi
addq $0x3e0, %rdi            # imm = 0x3E0
callq 0xf940
movq -0x90(%rbp), %rcx
movl 0x60(%rcx), %ecx
shll %ecx
cmpl %ecx, %eax
jge 0x26dac
movq -0x90(%rbp), %rax
movq %rax, %rdi
addq $0x3e0, %rdi            # imm = 0x3E0
movl 0x60(%rax), %eax
shll %eax
movslq %eax, %rsi
callq 0xa990
movq -0x90(%rbp), %rax
addq $0x68, %rax
movq %rax, -0xa0(%rbp)
leaq -0x51(%rbp), %rdi
movq %rdi, -0x98(%rbp)
callq 0x4620
movq -0x98(%rbp), %rdx
leaq 0x5fe5e(%rip), %rsi     # 0x86c3a
leaq -0x50(%rbp), %rdi
callq 0xa430
jmp 0x26de7
movq -0xa0(%rbp), %rsi
leaq -0x30(%rbp), %rdi
leaq -0x50(%rbp), %rdx
callq 0x73900
jmp 0x26dfd
leaq -0x50(%rbp), %rdi
callq 0x4240
leaq -0x51(%rbp), %rdi
callq 0x43f0
leaq -0x30(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
callq 0xa800
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rdi
callq 0xa830
movq %rax, -0x80(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0xa860
testb $0x1, %al
jne 0x26e47
jmp 0x26f7b
leaq -0x78(%rbp), %rdi
callq 0xa8a0
movq -0x90(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x84(%rbp)
addq $0x218, %rdi            # imm = 0x218
movl $0x9, %esi
callq 0x62450
movb %al, -0xa1(%rbp)
jmp 0x26e78
movb -0xa1(%rbp), %al
testb $0x1, %al
jne 0x26ed4
jmp 0x26e84
jmp 0x26f7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x26eac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x4240
leaq -0x51(%rbp), %rdi
callq 0x43f0
jmp 0x26fc8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xab00
jmp 0x26fc8
movq -0x90(%rbp), %rdi
addq $0x3b0, %rdi            # imm = 0x3B0
movslq -0x84(%rbp), %rsi
callq 0xa7c0
movq -0x90(%rbp), %rcx
movl (%rax), %eax
cmpl 0x3ac(%rcx), %eax
je 0x26f3e
movq -0x90(%rbp), %rax
addq $0x48, %rax
movq %rax, -0xb0(%rbp)
movl -0x84(%rbp), %edi
callq 0x3c880
movl %eax, -0xa8(%rbp)
jmp 0x26f24
movq -0xb0(%rbp), %rdi
movl -0xa8(%rbp), %eax
movslq %eax, %rsi
callq 0xa7c0
cmpl $0x0, (%rax)
je 0x26f40
jmp 0x26f6d
movq -0x90(%rbp), %rdi
movl -0x84(%rbp), %esi
movzbl -0x11(%rbp), %edx
andl $0x1, %edx
callq 0x23cc0
movl %eax, -0xb4(%rbp)
jmp 0x26f61
movl -0xb4(%rbp), %eax
addl -0x18(%rbp), %eax
movl %eax, -0x18(%rbp)
leaq -0x78(%rbp), %rdi
callq 0xa930
jmp 0x26e31
movq -0x90(%rbp), %rdi
movl -0x18(%rbp), %esi
leaq 0x5fcb2(%rip), %rdx     # 0x86c3e
callq 0x3c620
jmp 0x26f93
movq -0x90(%rbp), %rdi
addq $0x218, %rdi            # imm = 0x218
movl $0x9, %esi
callq 0x61390
jmp 0x26fad
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xab00
movl -0x4(%rbp), %eax
addq $0xc0, %rsp
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x4610
nopw %cs:(%rax,%rax)