// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./BVE.cpp
// Function: maxPreprocessor::Preprocessor::tryBVE2(int)
int Preprocessor::tryBVE2(int var) {
	int sizeLimit = pi.litClauses[posLit(var)].size() + pi.litClauses[negLit(var)].size();

  sizeLimit += min(BVElocalGrow, BVEglobalGrow);
	
	vector<int> isPosDef, isNegDef;
	vector<int> defClauses;
	if (BVEgate) {
		defClauses = tryBVEGE(var);
	}
	bool defFound = false;
	if (defClauses.size() > 0) {
		defFound = true;
		rLog.gatesExtracted++;
		isPosDef.resize(pi.litClauses[posLit(var)].size());
		isNegDef.resize(pi.litClauses[negLit(var)].size());
		sort(defClauses.begin(), defClauses.end());
		for (int i = 0; i < (int)pi.litClauses[posLit(var)].size(); i++) {
			if (binary_search(defClauses.begin(), defClauses.end(), pi.litClauses[posLit(var)][i])) {
				isPosDef[i] = 1;
			}
		}
		for (int i = 0; i < (int)pi.litClauses[negLit(var)].size(); i++) {
			if (binary_search(defClauses.begin(), defClauses.end(), pi.litClauses[negLit(var)][i])) {
				isNegDef[i] = 1;
			}
		}
	}
	
	//the condition sizelimit >= 6 doesnt really help
	if (sizeLimit >= 6) { // magic constant
		vector<uint64_t> h1=getBVEHash(pi.litClauses[posLit(var)], var, 0);
		vector<uint64_t> h2=getBVEHash(pi.litClauses[negLit(var)], var, 1);
		int hcnt = 0;
		for (int i = 0; i < (int)pi.litClauses[posLit(var)].size(); i++) {
			for (int ii = 0; ii < (int)pi.litClauses[negLit(var)].size(); ii++) {
				if (defFound && (isPosDef[i] == isNegDef[ii])) continue;
				if ((h1[i] & h2[ii]) == 0) {
					hcnt++;
					if (hcnt > sizeLimit) return 0;
				}
			}
		}
	}
	
	vector<vector<int> > newClauses;
	for (int i = 0; i < (int)pi.litClauses[posLit(var)].size(); i++) {
		for (int ii = 0; ii < (int)pi.litClauses[negLit(var)].size(); ii++) {
			if (defFound && (isPosDef[i] == isNegDef[ii])) continue;
			const vector<int>& c1 = pi.clauses[pi.litClauses[posLit(var)][i]].lit;
			const vector<int>& c2 = pi.clauses[pi.litClauses[negLit(var)][ii]].lit;
			unsigned j2 = 0;
			bool f = false;
			for (unsigned j = 0; j < c1.size(); j++) {
				while (j2 < c2.size() && c2[j2] <= c1[j]) {
					if (litNegation(c2[j2]) == c1[j] && litVariable(c1[j]) != var) {
						f = true;
						break;
					}
					j2++;
				}
				if (f) break;
				if (j2 < c2.size() && litNegation(c2[j2]) == c1[j] && litVariable(c1[j]) != var) {
					f = true;
					break;
				}
			}
			
			if (f) continue;
			if ((int)newClauses.size() >= sizeLimit) return 0;
			newClauses.push_back(vector<int>());
			j2 = 0;
			for (unsigned j = 0; j < c1.size(); j++) {
				while (j2 < c2.size() && c2[j2] <= c1[j]) {
					if (litVariable(c2[j2]) != var) {
						newClauses.back().push_back(c2[j2]);
					}
					j2++;
				}
				if (!(newClauses.back().size() > 0 && newClauses.back().back() == c1[j]) && litVariable(c1[j]) != var) {
					newClauses.back().push_back(c1[j]);
				}
			}
			while (j2 < c2.size()) {
				if (litVariable(c2[j2]) != var) {
					newClauses.back().push_back(c2[j2]);
				}
				j2++;
			}
		}
	}
	
	vector<vector<int> > nClauses;
	vector<int> toRemove;
	for (int c : pi.litClauses[posLit(var)]) {
		toRemove.push_back(c);
	}
	for (int c : pi.litClauses[negLit(var)]) {
		toRemove.push_back(c);
		nClauses.push_back(pi.clauses[c].lit);
	}
	for (int c : toRemove) {
		pi.removeClause(c);
	}
	for (auto& nc : newClauses) {
		pi.addClause(nc);
	}
	trace.BVE(var, nClauses);
	
	rLog.removeVariable(1);
	rLog.removeClause((int)toRemove.size() - (int)newClauses.size());

  BVEglobalGrow += (int)toRemove.size() - (int)newClauses.size();
	
	assert(pi.litClauses[posLit(var)].size() == 0 && pi.litClauses[negLit(var)].size() == 0);
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %esi, %r12d
movq %rdi, %r15
leal (%r12,%r12), %eax
movslq %eax, %rcx
movq 0x18(%rdi), %rax
leaq (%rcx,%rcx,2), %rcx
movq 0x8(%rax,%rcx,8), %rbx
movq %rcx, 0x18(%rsp)
subq (%rax,%rcx,8), %rbx
leal 0x1(,%r12,2), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rdx
movq 0x8(%rax,%rdx,8), %r14
movl 0x3a8(%rdi), %ecx
movq %rdx, 0x20(%rsp)
subq (%rax,%rdx,8), %r14
movl 0x3a4(%rdi), %edx
cmpl %edx, %ecx
cmovll %ecx, %edx
movl %edx, 0x28(%rsp)
xorl %ecx, %ecx
movq %rcx, 0xd0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0xc0(%rsp)
movq $0x0, 0x8(%rsp)
movq %rcx, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
cmpb $0x1, 0x3a0(%rdi)
movq %rdi, 0x10(%rsp)
jne 0xeb4c
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0xe5fa
movq %r15, %rsi
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %r13
movq %r13, %r15
movq 0x40(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x18(%rsi), %rax
movq %rdx, 0x8(%rsp)
subq %rdx, %r15
sete 0x7(%rsp)
je 0xeb5f
incl 0x2c8(%rsi)
movq 0x18(%rsp), %rcx
movq 0x8(%rax,%rcx,8), %rsi
subq (%rax,%rcx,8), %rsi
sarq $0x2, %rsi
leaq 0xc0(%rsp), %rdi
callq 0x8cac
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x8(%rax,%rcx,8), %rsi
subq (%rax,%rcx,8), %rsi
sarq $0x2, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x8cac
sarq $0x2, %r15
bsrq %r15, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x2226b
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x2234e
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x18(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rax,%rcx,8), %rcx
subq %rdx, %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
jle 0xead6
xorl %r15d, %r15d
xorl %ebp, %ebp
addq %r15, %rdx
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x1f033
testb %al, %al
je 0xeaa9
movq 0xc0(%rsp), %rax
movl $0x1, (%rax,%r15)
incq %rbp
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x18(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rax,%rcx,8), %rcx
subq %rdx, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
addq $0x4, %r15
cmpq %rcx, %rbp
jl 0xea85
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rax,%rcx,8), %rcx
subq %rdx, %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
jle 0xeb45
xorl %r15d, %r15d
xorl %ebp, %ebp
addq %r15, %rdx
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x1f033
testb %al, %al
je 0xeb18
movq 0xa0(%rsp), %rax
movl $0x1, (%rax,%r15)
incq %rbp
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rax,%rcx,8), %rcx
subq %rdx, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
addq $0x4, %r15
cmpq %rcx, %rbp
jl 0xeaf4
movq 0x10(%rsp), %r15
jmp 0xeb67
movb $0x1, 0x7(%rsp)
movq $0x0, 0x98(%rsp)
jmp 0xeb67
movb $0x1, 0x7(%rsp)
movq %rsi, %r15
shrq $0x2, %rbx
shrq $0x2, %r14
addl %r14d, %ebx
movl 0x28(%rsp), %ecx
addl %ebx, %ecx
movl %ecx, 0x28(%rsp)
cmpl $0x6, %ecx
jl 0xec91
movq 0x18(%rsp), %rcx
leaq (%rax,%rcx,8), %rdx
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0xcb78
movq 0x20(%rsp), %rax
leaq (,%rax,8), %rdx
addq 0x18(%r15), %rdx
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
movl %r12d, %ecx
movl $0x1, %r8d
callq 0xcb78
movq 0x18(%r15), %rdx
movq 0x18(%rsp), %rcx
movq 0x8(%rdx,%rcx,8), %rax
subq (%rdx,%rcx,8), %rax
shrq $0x2, %rax
movq 0x70(%rsp), %rdi
testl %eax, %eax
jle 0xec61
movq 0x20(%rsp), %rsi
movq 0x8(%rdx,%rsi,8), %rcx
subq (%rdx,%rsi,8), %rcx
shrq $0x2, %rcx
movq 0xc0(%rsp), %rdx
movq 0xa0(%rsp), %rsi
movq 0x30(%rsp), %r8
movl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
andq %r10, %rax
movq %rcx, %r9
andq %r10, %r9
xorl %r10d, %r10d
xorl %r11d, %r11d
testl %ecx, %ecx
jle 0xec59
xorl %ebx, %ebx
cmpb $0x0, 0x7(%rsp)
jne 0xec39
movl (%rdx,%r10,4), %ebp
cmpl (%rsi,%rbx,4), %ebp
je 0xec51
movq (%rdi,%rbx,8), %r14
testq %r14, (%r8,%r10,8)
jne 0xec51
cmpl 0x28(%rsp), %r11d
jge 0xf20a
incl %r11d
incq %rbx
cmpq %rbx, %r9
jne 0xec29
incq %r10
cmpq %rax, %r10
jne 0xec23
testq %rdi, %rdi
je 0xec76
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xec8d
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x18(%r15), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x18(%rsp), %rdx
movq 0x8(%rax,%rdx,8), %rcx
subq (%rax,%rdx,8), %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
jle 0xefdc
movq $0x0, 0x90(%rsp)
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rax,%rcx,8), %rcx
subq %rdx, %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
jle 0xefab
xorl %ebx, %ebx
cmpb $0x0, 0x7(%rsp)
jne 0xed12
movq 0xc0(%rsp), %rcx
movq 0x90(%rsp), %rsi
movl (%rcx,%rsi,4), %ecx
movq 0xa0(%rsp), %rsi
cmpl (%rsi,%rbx,4), %ecx
je 0xef7e
movq 0x18(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x90(%rsp), %rcx
movslq (%rax,%rcx,4), %rax
movq 0x10(%rsp), %rcx
movq (%rcx), %r15
leaq (%rax,%rax,4), %rcx
movq (%r15,%rcx,8), %rax
movq %rcx, 0xe0(%rsp)
movq 0x8(%r15,%rcx,8), %rcx
movslq (%rdx,%rbx,4), %rdx
leaq (%rdx,%rdx,4), %rdx
leaq (%r15,%rdx,8), %r14
subq %rax, %rcx
je 0xedc5
sarq $0x2, %rcx
movq (%r14), %rdx
movq 0x8(%r14), %rsi
subq %rdx, %rsi
sarq $0x2, %rsi
xorl %edi, %edi
xorl %r8d, %r8d
movl %r8d, %r11d
cmpq %r11, %rsi
jbe 0xedbe
movl (%rax,%rdi,4), %r9d
movl %r9d, %r10d
sarl %r10d
cmpl %r12d, %r10d
sete %bpl
movl (%rdx,%r11,4), %r13d
movl %r9d, %r11d
xorl %r13d, %r11d
cmpl $0x1, %r11d
setne %r11b
orb %bpl, %r11b
cmpl %r9d, %r13d
jg 0xedb5
testb %r11b, %r11b
je 0xef7e
incl %r8d
movq %r8, %r11
cmpq %r8, %rsi
ja 0xed7e
jmp 0xedbe
testb %r11b, %r11b
je 0xef7e
incl %edi
cmpq %rdi, %rcx
ja 0xed6c
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cmpl %eax, 0x28(%rsp)
jle 0xf1f7
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x2259a
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xee20
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0xe0(%rsp), %rax
leaq (%r15,%rax,8), %rbp
movq (%rbp), %rax
cmpq %rax, 0x8(%rbp)
je 0xef17
xorl %r13d, %r13d
xorl %r15d, %r15d
movl %r15d, %edx
movq (%r14), %rcx
movq 0x8(%r14), %rsi
subq %rcx, %rsi
sarq $0x2, %rsi
cmpq %rdx, %rsi
jbe 0xeeb4
movl (%rcx,%rdx,4), %r8d
movq (%rbp), %rax
cmpl (%rax,%r13,4), %r8d
jg 0xeeb4
movl %r8d, %eax
sarl %eax
cmpl %r12d, %eax
je 0xee9a
movq 0x38(%rsp), %rdi
movq -0x10(%rdi), %rsi
cmpq -0x8(%rdi), %rsi
je 0xee8a
movl %r8d, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x10(%rdi)
jmp 0xee9a
leaq (%rcx,%rdx,4), %rdx
addq $-0x18, %rdi
callq 0x98f8
movq (%r14), %rcx
incl %r15d
movq 0x8(%r14), %rax
subq %rcx, %rax
sarq $0x2, %rax
movq %r15, %rdx
cmpq %r15, %rax
ja 0xee56
movq (%rbp), %rax
movq 0x38(%rsp), %rdi
movq -0x10(%rdi), %rsi
cmpq -0x18(%rdi), %rsi
je 0xeece
movl (%rax,%r13,4), %ecx
cmpl %ecx, -0x4(%rsi)
jne 0xeed2
jmp 0xeefe
movl (%rax,%r13,4), %ecx
movl %ecx, %edx
sarl %edx
cmpl %r12d, %edx
je 0xeefe
cmpq -0x8(%rdi), %rsi
je 0xeeed
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x10(%rdi)
jmp 0xeefe
addq $-0x18, %rdi
leaq (%rax,%r13,4), %rdx
callq 0x98f8
movq (%rbp), %rax
incl %r13d
movq 0x8(%rbp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r13, %rcx
ja 0xee40
jmp 0xef1a
xorl %r15d, %r15d
movl %r15d, %ecx
movq (%r14), %rax
movq 0x8(%r14), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %rcx, %rdx
jbe 0xef7e
leal 0x1(%rcx), %ebp
movl (%rax,%rcx,4), %edx
movl %edx, %esi
sarl %esi
cmpl %r12d, %esi
je 0xef6a
movq 0x38(%rsp), %rdi
movq -0x10(%rdi), %rsi
cmpq -0x8(%rdi), %rsi
je 0xef5a
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x10(%rdi)
jmp 0xef6a
leaq (%rax,%rcx,4), %rdx
addq $-0x18, %rdi
callq 0x98f8
movq (%r14), %rax
movl %ebp, %ecx
movq 0x8(%r14), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0xef33
incq %rbx
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rax,%rcx,8), %rcx
subq %rdx, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %rbx
jl 0xece7
movq 0x18(%rsp), %rdx
movq 0x8(%rax,%rdx,8), %rcx
subq (%rax,%rdx,8), %rcx
movq 0x90(%rsp), %rsi
incq %rsi
shrq $0x2, %rcx
movslq %ecx, %rcx
movq %rsi, 0x90(%rsp)
cmpq %rcx, %rsi
jl 0xecc8
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x80(%rsp)
movq %rcx, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movq 0x18(%rsp), %rcx
movq (%rax,%rcx,8), %rbx
movq 0x8(%rax,%rcx,8), %r15
cmpq %r15, %rbx
je 0xf051
leaq 0x50(%rsp), %r14
leaq 0x2c(%rsp), %r13
movl (%rbx), %eax
movl %eax, 0x2c(%rsp)
movq 0x58(%rsp), %rsi
cmpq 0x60(%rsp), %rsi
je 0xf034
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x58(%rsp)
jmp 0xf03f
movq %r14, %rdi
movq %r13, %rdx
callq 0x98f8
addq $0x4, %rbx
cmpq %r15, %rbx
jne 0xf015
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rbx
movq 0x8(%rax,%rcx,8), %r15
cmpq %r15, %rbx
je 0xf0c3
leaq 0x50(%rsp), %rbp
leaq 0x2c(%rsp), %r13
leaq 0x70(%rsp), %r14
movl (%rbx), %eax
movl %eax, 0x2c(%rsp)
movq 0x58(%rsp), %rsi
cmpq 0x60(%rsp), %rsi
je 0xf092
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x58(%rsp)
jmp 0xf09d
movq %rbp, %rdi
movq %r13, %rdx
callq 0x98f8
movslq 0x2c(%rsp), %rax
leaq (%rax,%rax,4), %rsi
shlq $0x3, %rsi
movq 0x10(%rsp), %rax
addq (%rax), %rsi
movq %r14, %rdi
callq 0x1f07e
addq $0x4, %rbx
cmpq %r15, %rbx
jne 0xf073
movq 0x50(%rsp), %rbx
movq 0x58(%rsp), %r14
cmpq %r14, %rbx
movq 0x10(%rsp), %r15
je 0xf0ea
movl (%rbx), %esi
movq %r15, %rdi
callq 0x27f28
addq $0x4, %rbx
cmpq %r14, %rbx
jne 0xf0d7
movq 0x30(%rsp), %r14
movq 0x38(%rsp), %rbx
cmpq %rbx, %r14
je 0xf11a
movabsq $-0x8000000000000000, %r13 # imm = 0x8000000000000000
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x27f82
addq $0x18, %r14
cmpq %rbx, %r14
jne 0xf103
leaq 0x2f0(%r15), %rdi
leaq 0x70(%rsp), %rdx
movl %r12d, %esi
callq 0x26904
leaq 0x218(%r15), %r14
movq %r14, %rdi
movl $0x1, %esi
callq 0x28c64
movq 0x58(%rsp), %rax
subq 0x50(%rsp), %rax
movq 0x38(%rsp), %rcx
subq 0x30(%rsp), %rcx
shrq $0x2, %rax
shrq $0x3, %rcx
imull $0x55555555, %ecx, %esi # imm = 0x55555555
addl %eax, %esi
movq %r14, %rdi
callq 0x28c28
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rax
subq %rdi, %rax
shrq $0x2, %rax
movq 0x38(%rsp), %rcx
subq 0x30(%rsp), %rcx
shrq $0x3, %rcx
imull $0x55555555, %ecx, %ecx # imm = 0x55555555
addl 0x3a8(%r15), %eax
addl %ecx, %eax
movl %eax, 0x3a8(%r15)
movq 0x18(%r15), %rax
movq 0x18(%rsp), %rdx
movq 0x8(%rax,%rdx,8), %rcx
cmpq (%rax,%rdx,8), %rcx
movq 0x8(%rsp), %rbx
jne 0xf29e
movq 0x20(%rsp), %rdx
movq 0x8(%rax,%rdx,8), %rcx
cmpq (%rax,%rdx,8), %rcx
jne 0xf29e
testq %rdi, %rdi
je 0xf1e6
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x70(%rsp), %rdi
callq 0x8f5e
movl $0x1, %ebp
jmp 0xf1fe
xorl %ebp, %ebp
movq 0x8(%rsp), %rbx
leaq 0x30(%rsp), %rdi
callq 0x8f5e
jmp 0xf238
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xf231
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
xorl %ebp, %ebp
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0xf250
movq 0x98(%rsp), %rsi
subq %rbx, %rsi
movq %rbx, %rdi
callq 0x32b0
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xf26d
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xf28a
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movl %ebp, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x29424(%rip), %rdi     # 0x386c9
leaq 0x292a3(%rip), %rsi     # 0x3854f
leaq 0x29467(%rip), %rcx     # 0x3871a
movl $0x1cf, %edx            # imm = 0x1CF
callq 0x31b0
movq %rax, %r15
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xf34e
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0xf34e
jmp 0xf2ef
movq %rax, %r15
jmp 0xf368
jmp 0xf2f8
jmp 0xf2ef
jmp 0xf2f8
jmp 0xf2ef
movq %rax, %r15
jmp 0xf34e
jmp 0xf2f8
jmp 0xf2f8
movq %rax, %r15
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xf312
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x70(%rsp), %rdi
callq 0x8f5e
jmp 0xf344
movq %rax, %r15
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xf344
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0xf344
jmp 0xf341
jmp 0xf341
movq %rax, %r15
leaq 0x30(%rsp), %rdi
callq 0x8f5e
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xf368
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xf385
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xf3a2
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %r15, %rdi
callq 0x34a0