// File: /workspace/github_cpp_makefile_star2_O2/Laakeri[P]maxpre/src/./BIG.cpp
// Function: maxPreprocessor::Preprocessor::tryBIG(int, bool)
int Preprocessor::tryBIG(int lit, bool doTC) {
	vector<int> cc;
	BIGdfs1(lit, cc);
	for (unsigned i = 0; i < cc.size(); i++) {
		BIGu[cc[i]] = BIGIt - 1;
		BIGid[cc[i]] = (int)i;
		BIGu2[i] = 0;
	}
	vector<vector<int> > g(cc.size());
	vector<vector<int> > rg(cc.size());
	for (int x : cc) {
		// forward edges
		for (int c : pi.litClauses[litNegation(x)]) {
			if (pi.clauses[c].lit.size() == 2) {
				for (int nx : pi.clauses[c].lit) {
					if (nx != litNegation(x) && pi.isLabel[litVariable(nx)] == VAR_UNDEFINED && BIGu[nx] != BIGIt) {
						g[BIGid[x]].push_back(BIGid[nx]);
					}
				}
			}
		}
		// backward edges
		for (int c : pi.litClauses[x]) {
			if (pi.clauses[c].lit.size() == 2) {
				for (int nx : pi.clauses[c].lit) {
					if (nx != x && pi.isLabel[litVariable(nx)] == VAR_UNDEFINED && BIGu[litNegation(nx)] != BIGIt) {
						rg[BIGid[x]].push_back(BIGid[litNegation(nx)]);
					}
				}
			}
		}
	}
	for (int x : cc) {
		BIGu[x] = BIGIt;
	}
	vector<int> ns;
	for (int i = 0; i < (int)cc.size(); i++) {
		BIGdfs2(g, i, ns);
	}
	int removed = 0;
	vector<vector<int> > sccs;
	vector<int> topo1;
	topo1.reserve(cc.size());
	for (int i = (int)ns.size() - 1; i >= 0; i--) {
		if (BIGu2[ns[i]] != 2) {
			vector<int> scc;
			BIGdfs3(rg, ns[i], scc);
			if (scc.size() > 1) {
				for (int& x : scc) {
					x = cc[x];
				}
				sccs.push_back(scc);
			}
			else {
				topo1.push_back(scc[0]);
			}
		}
	}
	for (auto& scc : sccs) {
		if (scc.size() > 1 && BIGu2[litVariable(scc[0])] != 3) {
			sort(scc.begin(), scc.end());
			bool unsat = false;
			for (unsigned j = 1; j < scc.size(); j++) {
				if (scc[j - 1] == litNegation(scc[j])) {
					unsat = true;
					break;
				}
			}
			if (unsat) {
				for (int l : scc) {
					vector<int> pCls = pi.litClauses[l];
					vector<int> nCls = pi.litClauses[litNegation(l)];
					for (int c : pCls) {
						pi.removeClause(c);
						rLog.removeClause(1);
					}
					for (int c : nCls) {
						pi.removeClause(c);
						rLog.removeClause(1);
					}
				}
				pi.addClause({scc[0]});
				pi.addClause({litNegation(scc[0])});
				rLog.removeVariable((int)scc.size() - 1);
				continue;
			}
			for (unsigned j = 0; j < scc.size(); j++) {
				assert(BIGu2[litVariable(scc[j])] != 3);
				BIGu2[litVariable(scc[j])] = 3;
			}
			for (unsigned j = 1; j < scc.size(); j++) {
				vector<int> pCls = pi.litClauses[scc[j]];
				vector<int> nCls = pi.litClauses[litNegation(scc[j])];
				for (int c : pCls) {
					pi.removeLiteralFromClause(scc[j], c);
				}
				for (int c : nCls) {
					pi.removeLiteralFromClause(litNegation(scc[j]), c);
				}
				for (int c : pCls) {
					bool f = false;
					bool fn = false;
					for (int l : pi.clauses[c].lit) {
						if (l == scc[0]) f = true;
						if (l == litNegation(scc[0])) fn = true;
					}
					if (fn) {
						pi.removeClause(c);
						rLog.removeClause(1);
					}
					else if (!f) {
						pi.addLiteralToClause(scc[0], c);
					}
				}
				for (int c : nCls) {
					bool f = false;
					bool fn = false;
					for (int l : pi.clauses[c].lit) {
						if (l == litNegation(scc[0])) f = true;
						if (l == scc[0]) fn = true;
					}
					if (fn) {
						pi.removeClause(c);
						rLog.removeClause(1);
					}
					else if (!f) {
						pi.addLiteralToClause(litNegation(scc[0]), c);
					}
				}
				trace.setEqual(scc[0], scc[j]);
			}
			rLog.removeVariable((int)scc.size() - 1);
			removed += (int)scc.size() - 1;
		}
	}
	if (sccs.size() > 0 || cc.size() == 1) {
		return removed;
	}
	if (!doTC) return 0;
	if (doneUnhiding) return 0;
	doneUnhiding = true;
	rLog.stopTechnique(Log::Technique::EE);
	rLog.startTechnique(Log::Technique::UH);
	int stamp = 1;
	vector<pair<int, int> > pcc(cc.size());
	for (int i = 0; i < (int)cc.size(); i++) {
		pcc[i] = {cc[i], i};
	}
	sort(pcc.begin(), pcc.end());
	
	vector<int> trueLits;
	vector<pair<int, int> > rmLit;
	vector<int> rmClause;
	vector<pair<int, int> > qrs;
	for (int i = 1; i < (int)pcc.size(); i++) {
		if (pcc[i].F == litNegation(pcc[i - 1].F)) {
			int a = pcc[i].S;
			int b = pcc[i - 1].S;
			qrs.push_back({a, b});
		}
	}
	vector<int> leIndex(cc.size());
	vector<int> riIndex(cc.size());
	vector<int> up1(cc.size());
	vector<int> up2(cc.size());
	vector<int> perm(cc.size());
	for (int i = 0; i < (int)cc.size(); i++) perm[i] = i;
	for (int trys = 0; trys < 9; trys++) { // magic constant
		random_shuffle(perm.begin(), perm.end());
		for (int i = 0; i < (int)cc.size(); i++) BIGu2[i] = 0;
		for (int i : perm) {
			genIndex(g, rg, i, i, i, stamp, leIndex, riIndex, up1, up2, trys%3);
		}
		// FAILED LITERALS
		for (auto qq : qrs) {
			if (BIGisPath(qq.F, qq.S, leIndex, riIndex, up1, up2)) trueLits.push_back(cc[qq.S]);
			else if (BIGisPath(qq.S, qq.F, leIndex, riIndex, up1, up2)) trueLits.push_back(cc[qq.F]);
		}
		for (int x : cc) {
			BIGu2[x] = 5;
		}
		//HLE
		for (int l1 : cc) {
			for (int c : pi.litClauses[l1]) {
// 				if (pi.clauses[c].lit.size() <= 2) continue;
				for (int l2 : pi.clauses[c].lit) {
					if (l2 != l1 && BIGu2[l2] == 5) {
						if (BIGisPath(BIGid[l1], BIGid[l2], leIndex, riIndex, up1, up2)) {
							rmLit.push_back({l1, c});
						}
					}
				}
			}
		}
		//HTE
		for (int l1 : cc) {
			for (int c : pi.litClauses[l1]) {
				if (pi.clauses[c].lit.size() <= 2) continue;
				for (int l2 : pi.clauses[c].lit) {
					if (l2 != l1 && BIGu2[litNegation(l2)] == 5) {
						if (BIGisPath(BIGid[litNegation(l2)], BIGid[l1], leIndex, riIndex, up1, up2)) {
							rmClause.push_back(c);
						}
					}
				}
			}
		}
		for (int x : cc) {
			BIGu2[x] = 0;
		}
	}
	sort(rmLit.begin(), rmLit.end());
	rmLit.erase(unique(rmLit.begin(), rmLit.end()), rmLit.end());
	for (auto rm : rmLit) {
		pi.removeLiteralFromClause(rm.F, rm.S);
		rLog.removeLiteral(1);
		removed++;
	}
	sort(rmClause.begin(), rmClause.end());
	rmClause.erase(unique(rmClause.begin(), rmClause.end()), rmClause.end());
	for (int c : rmClause) {
		pi.removeClause(c);
		rLog.removeClause(1);
	}
	sort(trueLits.begin(), trueLits.end());
	trueLits.erase(unique(trueLits.begin(), trueLits.end()), trueLits.end());
	for (int l : trueLits) {
		int rmC = 0;
		if (litValue(l) == true) {
			rmC = setVariable(litVariable(l), true);
		}
		else {
			rmC = setVariable(litVariable(l), false);
		}
		removed++;
		rLog.removeVariable(1);
		rLog.removeClause(rmC);
	}
	rLog.stopTechnique(Log::Technique::UH);
	rLog.startTechnique(Log::Technique::EE);
	return removed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movl %edx, 0x78(%rsp)
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
callq 0xfbde
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rsi
subq %rax, %rsi
sarq $0x2, %rsi
movq 0x3b0(%rbx), %rcx
movq 0x3c8(%rbx), %rdx
movq 0x3e0(%rbx), %rdi
xorl %r8d, %r8d
movl %r8d, %r9d
cmpq %r9, %rsi
jbe 0x1042e
movl 0x3ac(%rbx), %r10d
decl %r10d
movslq (%rax,%r9,4), %r11
movl %r10d, (%rcx,%r11,4)
movslq (%rax,%r9,4), %r10
movl %r8d, (%rdi,%r10,4)
andl $0x0, (%rdx,%r9,4)
incl %r8d
jmp 0x10402
leaq 0x1a8(%rsp), %rdi
leaq 0x170(%rsp), %rdx
callq 0x19232
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
leaq 0x170(%rsp), %rdi
leaq 0x150(%rsp), %rdx
callq 0x19232
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, 0x28(%rsp)
cmpq 0x28(%rsp), %rax
je 0x105d4
movq %rax, (%rsp)
movslq (%rax), %r12
movq %r12, %r13
xorq $0x1, %r13
movq 0x18(%rbx), %rax
imulq $0x18, %r13, %rcx
movq (%rax,%rcx), %rbp
movq 0x8(%rax,%rcx), %rax
movq %rax, 0x8(%rsp)
cmpq 0x8(%rsp), %rbp
je 0x1052a
movslq (%rbp), %rax
movq (%rbx), %rcx
imulq $0x28, %rax, %rax
movq (%rcx,%rax), %r14
movq 0x8(%rcx,%rax), %r15
movq %r15, %rax
subq %r14, %rax
cmpq $0x8, %rax
jne 0x10521
cmpq %r15, %r14
je 0x10521
movslq (%r14), %rax
cmpl %r13d, %eax
je 0x1051b
movl %eax, %ecx
sarl %ecx
movslq %ecx, %rcx
movq 0x48(%rbx), %rdx
cmpl $0x0, (%rdx,%rcx,4)
jne 0x1051b
movq 0x3b0(%rbx), %rcx
movl (%rcx,%rax,4), %ecx
cmpl 0x3ac(%rbx), %ecx
je 0x1051b
movq 0x3e0(%rbx), %rcx
movslq (%rcx,%r12,4), %rdx
imulq $0x18, %rdx, %rdi
addq 0x1a8(%rsp), %rdi
leaq (%rcx,%rax,4), %rsi
callq 0x68a4
addq $0x4, %r14
jmp 0x104cb
addq $0x4, %rbp
jmp 0x104a4
movq 0x18(%rbx), %rax
imulq $0x18, %r12, %rcx
movq (%rax,%rcx), %r13
movq 0x8(%rax,%rcx), %rbp
cmpq %rbp, %r13
je 0x105c7
movslq (%r13), %rax
movq (%rbx), %rcx
imulq $0x28, %rax, %rax
movq (%rcx,%rax), %r15
movq 0x8(%rcx,%rax), %r14
movq %r14, %rax
subq %r15, %rax
cmpq $0x8, %rax
jne 0x105be
cmpq %r14, %r15
je 0x105be
movslq (%r15), %rax
cmpl %r12d, %eax
je 0x105b8
movl %eax, %ecx
sarl %ecx
movslq %ecx, %rcx
movq 0x48(%rbx), %rdx
cmpl $0x0, (%rdx,%rcx,4)
jne 0x105b8
xorq $0x1, %rax
movq 0x3b0(%rbx), %rcx
movl (%rcx,%rax,4), %ecx
cmpl 0x3ac(%rbx), %ecx
je 0x105b8
movq 0x3e0(%rbx), %rcx
movslq (%rcx,%r12,4), %rdx
imulq $0x18, %rdx, %rdi
addq 0x170(%rsp), %rdi
leaq (%rcx,%rax,4), %rsi
callq 0x68a4
addq $0x4, %r15
jmp 0x10564
addq $0x4, %r13
jmp 0x1053b
movq (%rsp), %rax
addq $0x4, %rax
jmp 0x10475
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x3b0(%rbx), %rdx
cmpq %rcx, %rax
je 0x105fc
movslq (%rax), %rsi
movl 0x3ac(%rbx), %edi
movl %edi, (%rdx,%rsi,4)
addq $0x4, %rax
jmp 0x105e5
leaq 0x150(%rsp), %r14
andq $0x0, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
xorl %ebp, %ebp
leaq 0x1a8(%rsp), %r15
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
cmpl %esi, %ebp
jge 0x10640
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
movq %r14, %rcx
callq 0xfdba
incl %ebp
jmp 0x1061a
xorps %xmm0, %xmm0
movaps %xmm0, 0xd0(%rsp)
andq $0x0, 0xe0(%rsp)
leaq 0x1e0(%rsp), %rdi
movaps %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
callq 0x19034
movq 0x158(%rsp), %rax
subq 0x150(%rsp), %rax
shrq $0x2, %rax
movl %eax, %ebp
leaq 0x170(%rsp), %r14
leaq 0x60(%rsp), %r15
leaq 0xd0(%rsp), %r12
leaq 0x1e0(%rsp), %r13
movq %rbp, %rax
testl %eax, %eax
jle 0x10735
leaq -0x1(%rax), %rbp
movq 0x150(%rsp), %rcx
movslq -0x4(%rcx,%rax,4), %rdx
movq 0x3c8(%rbx), %rsi
cmpl $0x2, (%rsi,%rdx,4)
je 0x1069c
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
andq $0x0, 0x70(%rsp)
movl -0x4(%rcx,%rax,4), %edx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0xfede
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rax
movq %rax, %rcx
subq %rsi, %rcx
cmpq $0x5, %rcx
jb 0x10713
movq 0x10(%rsp), %rcx
cmpq %rax, %rsi
je 0x1071d
movslq (%rsi), %rdx
movl (%rcx,%rdx,4), %edx
movl %edx, (%rsi)
addq $0x4, %rsi
jmp 0x10700
movq %r13, %rdi
callq 0x68a4
jmp 0x10728
movq %r12, %rdi
movq %r15, %rsi
callq 0x18f96
movq %r15, %rdi
callq 0x7512
jmp 0x1069c
movq 0xd0(%rsp), %r12
movq 0xd8(%rsp), %r14
leaq 0x218(%rbx), %rax
movq %rax, (%rsp)
leaq 0x2f0(%rbx), %rax
movq %rax, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
pushq $0x1
popq %r13
pushq $0x1
popq %r15
movq %rbx, 0x8(%rsp)
movq %r14, 0x38(%rsp)
cmpq %r14, %r12
je 0x10bc1
movq (%r12), %rdi
movq 0x8(%r12), %rsi
movq %rsi, %rax
subq %rdi, %rax
cmpq $0x5, %rax
jb 0x10bb8
movl (%rdi), %eax
sarl %eax
cltq
movq 0x3c8(%rbx), %rcx
cmpl $0x3, (%rcx,%rax,4)
je 0x10bb8
callq 0x1c706
movq (%r12), %r13
movq 0x8(%r12), %r14
movq %r14, %rax
subq %r13, %rax
sarq $0x2, %rax
xorl %ecx, %ecx
leal 0x1(%rcx), %edx
cmpq %rdx, %rax
jbe 0x10949
movl %ecx, %ecx
movl (%r13,%rdx,4), %esi
xorl (%r13,%rcx,4), %esi
movl %edx, %ecx
cmpl $0x1, %esi
jne 0x107ca
jmp 0x10894
movq %rbx, %rbp
movslq (%r13), %rbx
imulq $0x18, %rbx, %rsi
addq 0x18(%rbp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x19284
xorq $0x1, %rbx
imulq $0x18, %rbx, %rsi
addq 0x18(%rbp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x19284
movq 0x60(%rsp), %rbx
movq 0x68(%rsp), %rbp
cmpq %rbp, %rbx
je 0x1084a
movl (%rbx), %esi
movq 0x8(%rsp), %rdi
callq 0x21490
movq (%rsp), %rdi
movl %r15d, %esi
callq 0x21e84
addq $0x4, %rbx
jmp 0x10827
movq 0x40(%rsp), %rbx
movq 0x48(%rsp), %rbp
cmpq %rbp, %rbx
je 0x10877
movl (%rbx), %esi
movq 0x8(%rsp), %rdi
callq 0x21490
movq (%rsp), %rdi
movl %r15d, %esi
callq 0x21e84
addq $0x4, %rbx
jmp 0x10854
leaq 0x40(%rsp), %rdi
callq 0x7512
leaq 0x60(%rsp), %rdi
callq 0x7512
addq $0x4, %r13
movq 0x8(%rsp), %rbx
cmpq %r14, %r13
jne 0x107ee
movq (%r12), %rax
movl (%rax), %eax
movl %eax, 0x40(%rsp)
leaq 0x60(%rsp), %rbp
movq %rbp, %rdi
leaq 0x40(%rsp), %rsi
pushq $0x1
popq %r13
movq %r13, %rdx
leaq 0x90(%rsp), %rcx
callq 0x18af6
movq %rbx, %rdi
movq %rbp, %rsi
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
callq 0x214e8
movq 0x38(%rsp), %r14
movq %rbp, %rdi
callq 0x7512
movq (%r12), %rax
movl (%rax), %eax
xorl $0x1, %eax
movl %eax, 0x40(%rsp)
movq %rbp, %rdi
leaq 0x40(%rsp), %rsi
movq %r13, %rdx
leaq 0x90(%rsp), %rcx
callq 0x18af6
movq %rbx, %rdi
movq %rbp, %rsi
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
callq 0x214e8
movq %rbp, %rdi
callq 0x7512
movq 0x8(%r12), %rsi
subq (%r12), %rsi
shrq $0x2, %rsi
decl %esi
movq (%rsp), %rdi
callq 0x21ebe
jmp 0x10bb8
movq 0x3c8(%rbx), %rcx
xorl %edx, %edx
movl %edx, %edx
cmpq %rdx, %rax
jbe 0x10978
movl (%r13,%rdx,4), %esi
sarl %esi
movslq %esi, %rsi
cmpl $0x3, (%rcx,%rsi,4)
je 0x11471
movl $0x3, (%rcx,%rsi,4)
incl %edx
jmp 0x10952
movl %r15d, %ebp
movl %ebp, %ebp
subq %r13, %r14
sarq $0x2, %r14
cmpq %rbp, %r14
jbe 0x10b85
movslq (%r13,%rbp,4), %rax
imulq $0x18, %rax, %rsi
addq 0x18(%rbx), %rsi
leaq 0x60(%rsp), %rdi
callq 0x19284
movq (%r12), %rax
movslq (%rax,%rbp,4), %rax
xorq $0x1, %rax
imulq $0x18, %rax, %rsi
addq 0x18(%rbx), %rsi
leaq 0x40(%rsp), %rdi
callq 0x19284
movq 0x60(%rsp), %rbx
movq 0x68(%rsp), %r14
cmpq %r14, %rbx
je 0x109ed
movl (%rbx), %edx
movq (%r12), %rax
movl (%rax,%rbp,4), %esi
movq 0x8(%rsp), %rdi
movl %r15d, %ecx
callq 0x216d0
addq $0x4, %rbx
jmp 0x109cc
movq 0x40(%rsp), %rbx
movq 0x48(%rsp), %r14
cmpq %r14, %rbx
je 0x10a1b
movl (%rbx), %edx
movq (%r12), %rax
movl (%rax,%rbp,4), %esi
xorl $0x1, %esi
movq 0x8(%rsp), %rdi
movl %r15d, %ecx
callq 0x216d0
addq $0x4, %rbx
jmp 0x109f7
movq 0x60(%rsp), %r14
movq 0x68(%rsp), %r13
movq 0x8(%rsp), %rbx
cmpq %r13, %r14
je 0x10ab4
movslq (%r14), %rdx
movq (%rbx), %rcx
imulq $0x28, %rdx, %rsi
movq (%rcx,%rsi), %rax
movq 0x8(%rcx,%rsi), %rdi
xorl %ecx, %ecx
xorl %esi, %esi
cmpq %rdi, %rax
je 0x10a77
movl (%rax), %r8d
movq (%r12), %r9
movl (%r9), %r9d
cmpl %r9d, %r8d
sete %r10b
orb %r10b, %sil
xorl %r8d, %r9d
cmpl $0x1, %r9d
sete %r8b
orb %r8b, %cl
addq $0x4, %rax
jmp 0x10a4a
testb $0x1, %cl
je 0x10a94
movq %rbx, %rdi
movl %edx, %esi
callq 0x21490
movq (%rsp), %rdi
movl %r15d, %esi
callq 0x21e84
jmp 0x10aab
testb $0x1, %sil
jne 0x10aab
movq (%r12), %rax
movl (%rax), %esi
movq %rbx, %rdi
movl %r15d, %ecx
callq 0x21638
addq $0x4, %r14
jmp 0x10a2a
movq 0x40(%rsp), %r14
movq 0x48(%rsp), %r13
cmpq %r13, %r14
je 0x10b4e
movslq (%r14), %rdx
movq (%rbx), %rcx
imulq $0x28, %rdx, %rsi
movq (%rcx,%rsi), %rax
movq 0x8(%rcx,%rsi), %rdi
xorl %ecx, %ecx
xorl %esi, %esi
cmpq %rdi, %rax
je 0x10b0e
movl (%rax), %r8d
movq (%r12), %r9
movl (%r9), %r9d
movl %r9d, %r10d
xorl %r8d, %r10d
cmpl $0x1, %r10d
sete %r10b
orb %r10b, %sil
cmpl %r9d, %r8d
sete %r8b
orb %r8b, %cl
addq $0x4, %rax
jmp 0x10ade
testb $0x1, %cl
je 0x10b2b
movq %rbx, %rdi
movl %edx, %esi
callq 0x21490
movq (%rsp), %rdi
movl %r15d, %esi
callq 0x21e84
jmp 0x10b45
testb $0x1, %sil
jne 0x10b45
movq (%r12), %rax
movl (%rax), %esi
xorl $0x1, %esi
movq %rbx, %rdi
movl %r15d, %ecx
callq 0x21638
addq $0x4, %r14
jmp 0x10abe
movq (%r12), %rax
movl (%rax), %esi
movl (%rax,%rbp,4), %edx
movq 0x28(%rsp), %rdi
callq 0x20614
leaq 0x40(%rsp), %rdi
callq 0x7512
leaq 0x60(%rsp), %rdi
callq 0x7512
incl %ebp
movq (%r12), %r13
movq 0x8(%r12), %r14
jmp 0x1097b
decl %r14d
movq (%rsp), %rdi
movl %r14d, %esi
callq 0x21ebe
pushq $0x1
popq %r13
movq 0x38(%rsp), %r14
movq 0x8(%r12), %rax
subq (%r12), %rax
shrq $0x2, %rax
movq 0x30(%rsp), %rcx
addl %eax, %ecx
decl %ecx
movq %rcx, 0x30(%rsp)
addq $0x18, %r12
jmp 0x10777
movq 0xd8(%rsp), %rax
cmpq 0xd0(%rsp), %rax
je 0x10bdc
movq 0x30(%rsp), %rax
movl %eax, %ebp
jmp 0x10c0f
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
xorl %ecx, %ecx
cmpq $0x4, %rax
setne %al
movq 0x30(%rsp), %rdx
movl %edx, %ebp
cmovnel %ecx, %ebp
andb 0x78(%rsp), %al
cmpb $0x1, %al
jne 0x10c0f
cmpb $0x0, 0x3f8(%rbx)
movl $0x0, %ebp
je 0x10c6e
leaq 0x1e0(%rsp), %rdi
callq 0x7512
leaq 0xd0(%rsp), %rdi
callq 0x6aa2
leaq 0x150(%rsp), %rdi
callq 0x7512
leaq 0x170(%rsp), %rdi
callq 0x6aa2
leaq 0x1a8(%rsp), %rdi
callq 0x6aa2
leaq 0x10(%rsp), %rdi
callq 0x7512
movl %ebp, %eax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, 0x3f8(%rbx)
pushq $0x9
popq %rsi
movq (%rsp), %r14
movq %r14, %rdi
callq 0x21e46
pushq $0xd
popq %rsi
movq %r14, %rdi
callq 0x21e0a
movl $0x1, 0xcc(%rsp)
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x192d2
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movq 0x60(%rsp), %rdx
xorl %esi, %esi
testl %ecx, %ecx
cmovlel %esi, %ecx
cmpq %rsi, %rcx
je 0x10ce8
movl (%rax,%rsi,4), %edi
movl %edi, (%rdx,%rsi,8)
movl %esi, 0x4(%rdx,%rsi,8)
incq %rsi
jmp 0x10cd4
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x1d596
andq $0x0, 0x50(%rsp)
xorps %xmm0, %xmm0
andq $0x0, 0xa0(%rsp)
movaps %xmm0, 0x40(%rsp)
andq $0x0, 0xc0(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0xb0(%rsp)
leaq 0x1c0(%rsp), %r14
movaps %xmm0, (%r14)
andq $0x0, 0x10(%r14)
leaq 0x190(%rsp), %r15
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r13
jge 0x10d8f
movl -0x8(%rax,%r13,8), %ecx
xorl (%rax,%r13,8), %ecx
cmpl $0x1, %ecx
jne 0x10d8a
movl -0x4(%rax,%r13,8), %ecx
movl 0x4(%rax,%r13,8), %eax
movl %eax, 0x190(%rsp)
movl %ecx, 0x194(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d392
incq %r13
jmp 0x10d40
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
leaq 0x190(%rsp), %rbp
leaq 0x138(%rsp), %rdx
movq %rbp, %rdi
callq 0x6852
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
leaq 0x138(%rsp), %rdi
leaq 0x120(%rsp), %rdx
callq 0x6852
movq (%rsp), %r15
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
leaq 0x120(%rsp), %rdi
leaq 0x108(%rsp), %rdx
callq 0x6852
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
leaq 0x108(%rsp), %rdi
leaq 0xf0(%rsp), %rdx
callq 0x6852
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
leaq 0xf0(%rsp), %rdi
leaq 0x88(%rsp), %rdx
callq 0x6852
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
shrq $0x2, %rax
movq 0xf0(%rsp), %rcx
xorl %edx, %edx
testl %eax, %eax
cmovlel %edx, %eax
cmpq %rdx, %rax
je 0x10e6f
movl %edx, (%rcx,%rdx,4)
incq %rdx
jmp 0x10e62
xorl %eax, %eax
cmpl $0x9, %eax
je 0x11259
movl %eax, 0x84(%rsp)
movq 0xf0(%rsp), %rdi
movq 0xf8(%rsp), %rsi
callq 0x19323
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
shrq $0x2, %rax
movq 0x3c8(%rbx), %rcx
testl %eax, %eax
movl $0x0, %edx
cmovlel %edx, %eax
xorl %edx, %edx
leaq 0x138(%rsp), %r15
cmpq %rdx, %rax
je 0x10ecd
andl $0x0, (%rcx,%rdx,4)
incq %rdx
jmp 0x10ebf
movq 0xf0(%rsp), %rbx
movq 0xf8(%rsp), %r14
movl 0x84(%rsp), %eax
xorl %edx, %edx
pushq $0x3
popq %rcx
divl %ecx
movl %edx, %r12d
cmpq %r14, %rbx
je 0x10f3f
movl (%rbx), %ecx
movq 0x8(%rsp), %rdi
leaq 0x1a8(%rsp), %rsi
leaq 0x170(%rsp), %rdx
movl %ecx, %r8d
movl %ecx, %r9d
pushq %r12
leaq 0x110(%rsp), %rax
pushq %rax
leaq 0x130(%rsp), %rax
pushq %rax
pushq %r15
pushq %rbp
leaq 0xf4(%rsp), %rax
pushq %rax
callq 0x10050
addq $0x30, %rsp
addq $0x4, %rbx
jmp 0x10eee
movq 0x1c0(%rsp), %r14
movq 0x1c8(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x8(%rsp), %rbx
cmpq 0x78(%rsp), %r14
je 0x10fef
movl (%r14), %esi
movl 0x4(%r14), %edx
subq $0x8, %rsp
movl %esi, 0x40(%rsp)
movl %edx, 0x30(%rsp)
movq %rbp, %rcx
leaq 0x140(%rsp), %r12
movq %r12, %r8
leaq 0x128(%rsp), %r13
movq %r13, %r9
leaq 0x110(%rsp), %r15
pushq %r15
callq 0x1000a
popq %rcx
popq %rdx
testb %al, %al
je 0x10fac
movslq 0x28(%rsp), %rsi
jmp 0x10fd3
subq $0x8, %rsp
movl 0x30(%rsp), %esi
movl 0x40(%rsp), %edx
movq %rbp, %rcx
movq %r12, %r8
movq %r13, %r9
pushq %r15
callq 0x1000a
popq %rcx
popq %rdx
testb %al, %al
je 0x10fe6
movslq 0x38(%rsp), %rsi
shlq $0x2, %rsi
addq 0x10(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x68a4
addq $0x8, %r14
jmp 0x10f59
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdi
movq 0x3c8(%rbx), %rax
movq %rsi, %rcx
movq (%rsp), %r15
cmpq %rdi, %rcx
je 0x1101c
movslq (%rcx), %rdx
movl $0x5, (%rax,%rdx,4)
addq $0x4, %rcx
jmp 0x11007
movq %rdi, 0x188(%rsp)
cmpq %rdi, %rsi
je 0x11134
movq %rsi, 0x78(%rsp)
movl (%rsi), %r14d
movslq %r14d, %r15
movq 0x18(%rbx), %rax
imulq $0x18, %r15, %rcx
movq (%rax,%rcx), %rdx
movq 0x8(%rax,%rcx), %rax
movq %rax, 0x38(%rsp)
cmpq 0x38(%rsp), %rdx
je 0x1111a
movq %rbp, %r12
movq %rdx, 0x28(%rsp)
movslq (%rdx), %r13
movq (%rbx), %rax
imulq $0x28, %r13, %rcx
movq (%rax,%rcx), %rbp
movq 0x8(%rax,%rcx), %rbx
cmpq %rbx, %rbp
je 0x11104
movslq (%rbp), %rax
cmpl %r14d, %eax
je 0x110fb
movq 0x8(%rsp), %rcx
movq 0x3c8(%rcx), %rcx
cmpl $0x5, (%rcx,%rax,4)
jne 0x110fb
movq 0x8(%rsp), %rcx
movq 0x3e0(%rcx), %rcx
movl (%rcx,%r15,4), %esi
movl (%rcx,%rax,4), %edx
subq $0x8, %rsp
movq %r12, %rcx
leaq 0x140(%rsp), %r8
leaq 0x128(%rsp), %r9
leaq 0x110(%rsp), %rax
pushq %rax
callq 0x1000a
popq %rcx
popq %rdx
testb %al, %al
je 0x110fb
movl %r14d, 0x88(%rsp)
movl %r13d, 0x8c(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x1d392
addq $0x4, %rbp
jmp 0x11074
movq 0x28(%rsp), %rdx
addq $0x4, %rdx
movq 0x8(%rsp), %rbx
movq %r12, %rbp
jmp 0x1104e
movq 0x78(%rsp), %rsi
addq $0x4, %rsi
movq (%rsp), %r15
movq 0x188(%rsp), %rdi
jmp 0x11024
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, 0x78(%rsp)
cmpq 0x78(%rsp), %rax
je 0x11228
movq %rax, 0x38(%rsp)
movslq (%rax), %r14
movq 0x18(%rbx), %rax
imulq $0x18, %r14, %rcx
movq (%rax,%rcx), %r15
movq 0x8(%rax,%rcx), %rax
movq %rax, 0x28(%rsp)
cmpq 0x28(%rsp), %r15
je 0x11216
movslq (%r15), %rax
movl %eax, 0x88(%rsp)
movq (%rbx), %rcx
imulq $0x28, %rax, %rax
movq (%rcx,%rax), %r12
movq 0x8(%rcx,%rax), %r13
movq %r13, %rax
subq %r12, %rax
cmpq $0x9, %rax
jae 0x111a3
addq $0x4, %r15
jmp 0x1116c
cmpq %r13, %r12
je 0x1119d
movslq (%r12), %rax
cmpl %r14d, %eax
je 0x11210
xorq $0x1, %rax
movq 0x3c8(%rbx), %rcx
cmpl $0x5, (%rcx,%rax,4)
jne 0x11210
movq 0x3e0(%rbx), %rcx
movl (%rcx,%rax,4), %esi
movl (%rcx,%r14,4), %edx
subq $0x8, %rsp
movq %rbp, %rcx
leaq 0x140(%rsp), %r8
leaq 0x128(%rsp), %r9
leaq 0x110(%rsp), %rax
pushq %rax
callq 0x1000a
popq %rcx
popq %rdx
testb %al, %al
je 0x11210
leaq 0xb0(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x68a4
addq $0x4, %r12
jmp 0x111a3
movq 0x38(%rsp), %rax
addq $0x4, %rax
movq (%rsp), %r15
jmp 0x11143
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x3c8(%rbx), %rdx
cmpq %rcx, %rax
je 0x1124b
movslq (%rax), %rsi
andl $0x0, (%rdx,%rsi,4)
addq $0x4, %rax
jmp 0x11239
movl 0x84(%rsp), %eax
incl %eax
jmp 0x10e71
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
callq 0x1d596
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
callq 0x1db29
leaq 0x90(%rsp), %rdi
movq 0x8(%rdi), %rdx
movq %rax, %rsi
callq 0x19380
movq 0x90(%rsp), %rbx
movq 0x98(%rsp), %r14
pushq $0x1
popq %rbp
cmpq %r14, %rbx
je 0x112dc
movl (%rbx), %esi
movl 0x4(%rbx), %edx
movq 0x8(%rsp), %rdi
movl %ebp, %ecx
callq 0x216d0
movq %r15, %rdi
movl %ebp, %esi
callq 0x21ef8
movq 0x30(%rsp), %rax
incl %eax
movq %rax, 0x30(%rsp)
addq $0x8, %rbx
jmp 0x112aa
movq 0xb0(%rsp), %rdi
movq 0xb8(%rsp), %rsi
callq 0x1c706
movq 0xb0(%rsp), %rdi
movq 0xb8(%rsp), %rsi
callq 0x1cd6f
leaq 0xb0(%rsp), %rdi
movq 0x8(%rdi), %rdx
movq %rax, %rsi
callq 0x1902e
movq 0xb0(%rsp), %rbx
movq 0xb8(%rsp), %r14
pushq $0x1
popq %rbp
cmpq %r14, %rbx
je 0x1134e
movl (%rbx), %esi
movq 0x8(%rsp), %rdi
callq 0x21490
movq %r15, %rdi
movl %ebp, %esi
callq 0x21e84
addq $0x4, %rbx
jmp 0x1132d
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x1c706
movq 0x8(%rsp), %rbx
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x1cd6f
leaq 0x40(%rsp), %rdi
movq 0x8(%rdi), %rdx
movq %rax, %rsi
callq 0x1902e
movq 0x40(%rsp), %r15
movq 0x48(%rsp), %r12
pushq $0x1
popq %rbp
cmpq %r12, %r15
je 0x113d6
movl (%r15), %esi
xorl %edx, %edx
testb $0x1, %sil
sete %dl
sarl %esi
movq %rbx, %rdi
callq 0x7c98
movl %eax, %r14d
movq (%rsp), %rdi
movl %ebp, %esi
callq 0x21ebe
movq (%rsp), %rdi
movl %r14d, %esi
callq 0x21e84
addq $0x4, %r15
movq 0x30(%rsp), %rax
incl %eax
movq %rax, 0x30(%rsp)
jmp 0x1138f
pushq $0xd
popq %rsi
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x21e46
pushq $0x9
popq %rsi
movq %rbx, %rdi
callq 0x21e0a
leaq 0xf0(%rsp), %rdi
callq 0x7512
leaq 0x108(%rsp), %rdi
callq 0x7512
leaq 0x120(%rsp), %rdi
callq 0x7512
leaq 0x138(%rsp), %rdi
callq 0x7512
leaq 0x190(%rsp), %rdi
callq 0x7512
leaq 0x1c0(%rsp), %rdi
callq 0x1d322
leaq 0xb0(%rsp), %rdi
callq 0x7512
leaq 0x90(%rsp), %rdi
callq 0x1d322
leaq 0x40(%rsp), %rdi
callq 0x7512
leaq 0x60(%rsp), %rdi
callq 0x1d322
jmp 0x10bd3
leaq 0x1e80d(%rip), %rdi     # 0x2fc85
leaq 0x1e74a(%rip), %rsi     # 0x2fbc9
leaq 0x1e81f(%rip), %rcx     # 0x2fca5
movl $0xd4, %edx
callq 0x31c0
jmp 0x1156d
jmp 0x1156d
jmp 0x1156d
jmp 0x1156d
jmp 0x1156d
jmp 0x1156d
movq %rax, %rbx
jmp 0x1157d
movq %rax, %rbx
jmp 0x1158a
movq %rax, %rbx
jmp 0x11597
movq %rax, %rbx
jmp 0x115a4
jmp 0x114f3
movq %rax, %rbx
jmp 0x115e2
jmp 0x11524
jmp 0x1156d
movq %rax, %rbx
jmp 0x11620
jmp 0x114e9
movq %rax, %rbx
jmp 0x1162d
jmp 0x11524
movq %rax, %rbx
jmp 0x115b1
jmp 0x1152c
jmp 0x11524
jmp 0x1152c
jmp 0x11524
jmp 0x1156d
jmp 0x1156d
jmp 0x1156d
jmp 0x11524
jmp 0x11524
jmp 0x1152c
movq %rax, %rbx
jmp 0x11606
jmp 0x1156d
jmp 0x1156d
jmp 0x11524
movq %rax, %rbx
jmp 0x11561
jmp 0x11543
movq %rax, %rbx
jmp 0x115ec
movq %rax, %rbx
jmp 0x11561
jmp 0x11533
movq %rax, %rbx
jmp 0x11613
jmp 0x11543
jmp 0x11543
jmp 0x1156d
jmp 0x11543
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x7512
jmp 0x11561
jmp 0x11554
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x7512
leaq 0x60(%rsp), %rdi
callq 0x7512
jmp 0x115ec
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x7512
leaq 0x108(%rsp), %rdi
callq 0x7512
leaq 0x120(%rsp), %rdi
callq 0x7512
leaq 0x138(%rsp), %rdi
callq 0x7512
leaq 0x190(%rsp), %rdi
callq 0x7512
leaq 0x1c0(%rsp), %rdi
callq 0x1d322
leaq 0xb0(%rsp), %rdi
callq 0x7512
leaq 0x90(%rsp), %rdi
callq 0x1d322
leaq 0x40(%rsp), %rdi
callq 0x7512
leaq 0x60(%rsp), %rdi
callq 0x1d322
leaq 0x1e0(%rsp), %rdi
callq 0x7512
leaq 0xd0(%rsp), %rdi
callq 0x6aa2
leaq 0x150(%rsp), %rdi
callq 0x7512
leaq 0x170(%rsp), %rdi
callq 0x6aa2
leaq 0x1a8(%rsp), %rdi
callq 0x6aa2
leaq 0x10(%rsp), %rdi
callq 0x7512
movq %rbx, %rdi
callq 0x3490
nop