// File: /workspace/github_cpp_makefile_star2_O1/Laakeri[P]maxpre/src/AMSLEX.cpp
// Function: maxPreprocessor::AMSLEX::amsLexSSRPerm(std::vector<int, std::allocator<int>> const&, std::vector<int, std::allocator<int>> const&, int)
pair<vector<int>, vector<int> > AMSLEX::amsLexSSRPerm(const vector<int>& c1, const vector<int>& c2, int var) {
	vector<vecP> D(c1.size() + c2.size());
	vector<int> d0Index;
	ALIt++;
	int pid = 0;
	int maxFreq = 0;
	unsigned dataP = 0;
	for (unsigned i = 0; i < c1.size(); i++) {
		if (pi.clauses[c1[i]].lit.size() == 1) {
			pair<vector<int>, vector<int> > ret;
			for (int a : c1) {
				ret.F.push_back(a);
			}
			for (int b : c2) {
				ret.S.push_back(b);
			}
			return ret;
		}
		assumeSize(dataP + pi.clauses[c1[i]].lit.size());
		memcpy(data + dataP, pi.clauses[c1[i]].lit.data(), pi.clauses[c1[i]].lit.size()*sizeof(int));
		D[i].B = dataP;
		D[i].E = dataP + pi.clauses[c1[i]].lit.size();
		D[i].O = 2*c1[i];
		for (unsigned j = D[i].B; j < D[i].E; j++) {
			if (litVariable(data[j]) == var) {
				swap(data[j], data[D[i].E - 1]);
				break;
			}
		}
		D[i].E--;
		dataP += D[i].size();
		
		for (unsigned j = D[i].B; j < D[i].E; j++) {
			if ((int)ALU.size() <= data[j]) {
				ALU.resize(data[j] + 1);
				ALI.resize(data[j] + 1);
			}
			if (ALU[data[j]] != ALIt) {
				ALU[data[j]] = ALIt;
				if (pid >= (int)ALF.size()) ALF.resize(pid + 1);
				ALF[pid] = 0;
				ALI[data[j]] = pid++;
			}
			data[j] = ALI[data[j]];
			ALF[data[j]]++;
			maxFreq = max(maxFreq, ALF[data[j]]);
		}
	}
	for (unsigned i = c1.size(); i < c1.size()+c2.size(); i++) {
		if (pi.clauses[c2[i - c1.size()]].lit.size() == 1) {
			pair<vector<int>, vector<int> > ret;
			for (int a : c1) {
				ret.F.push_back(a);
			}
			for (int b : c2) {
				ret.S.push_back(b);
			}
			return ret;
		}
		assumeSize(dataP + pi.clauses[c2[i - c1.size()]].lit.size());
		memcpy(data + dataP, pi.clauses[c2[i - c1.size()]].lit.data(), pi.clauses[c2[i - c1.size()]].lit.size()*sizeof(int));
		D[i].B = dataP;
		D[i].E = dataP + pi.clauses[c2[i - c1.size()]].lit.size();
		D[i].O = 2*c2[i - c1.size()] + 1;
		for (unsigned j = D[i].B; j < D[i].E; j++) {
			if (litVariable(data[j]) == var) {
				swap(data[j], data[D[i].E - 1]);
				break;
			}
		}
		D[i].E--;
		dataP += D[i].size();
		
		for (unsigned j = D[i].B; j < D[i].E; j++) {
			if ((int)ALU.size() <= data[j]) {
				ALU.resize(data[j] + 1);
				ALI.resize(data[j] + 1);
			}
			if (ALU[data[j]] != ALIt) {
				ALU[data[j]] = ALIt;
				if (pid >= (int)ALF.size()) ALF.resize(pid + 1);
				ALF[pid] = 0;
				ALI[data[j]] = pid++;
			}
			data[j] = ALI[data[j]];
			ALF[data[j]]++;
			maxFreq = max(maxFreq, ALF[data[j]]);
		}
	}
	vector<vector<int> > cSort(maxFreq + 1);
	for (int i = 0; i < pid; i++) {
		cSort[ALF[i]].push_back(i);
	}
	vector<unsigned> perm(pid);
	unsigned i2 = 0;
	for (int i = 0; i <= maxFreq; i++) {
		for (int t : cSort[i]) {
			perm[t] = i2++;
		}
	}
	for (unsigned i = 0; i < D.size(); i++) {
		for (unsigned j = D[i].B; j < D[i].E; j++) {
			data[j] = perm[data[j]];
		}
		sort(data + D[i].B, data + D[i].E);
	}
	auto cmp = [&](vecP a, vecP b) {
		if (getD(a, 0) < getD(b, 0)) return true;
		else if (getD(a, 0) > getD(b, 0)) return false;
		unsigned sz = min(a.size(), b.size());
		for (unsigned i = 1; i < sz; i++) {
			if (getD(a, i) < getD(b, i)) return true;
			else if (getD(a, i) > getD(b, i)) return false;
		}
		return a.size() < b.size();
	};
	vector<vector<vecP> > cSort2(pid);
	for (unsigned i = 0; i < D.size(); i++) {
		cSort2[getD(D[i], 0)].push_back(D[i]);
	}
	unsigned di = 0;
	for (int i = 0; i < pid; i++) {
		sort(cSort2[i].begin(), cSort2[i].end(), cmp);
		for (unsigned j = 0; j < cSort2[i].size(); j++) {
			D[di++] = cSort2[i][j];
		}
	}
	d0Index.resize(pid + 1);
	int idx = 0;
	for (unsigned i = 0; i < D.size(); i++) {
		if (i == 0 || getD(D[i], 0) > getD(D[i - 1], 0)) {
			while (idx <= getD(D[i], 0)) {
				d0Index[idx++] = i;
			}
		}
	}
	while (idx <= pid) {
		d0Index[idx++] = (int)D.size();
	}
	vector<int> subsumed(D.size());
	unsigned S = 0;
	for (unsigned i = 1; i < D.size(); i++) {
		if (D[S].size() <= D[i].size() && isPrefix(D[S], D[i])) {
			subsumed[i] = true;
		}
		else {
			S = i;
		}
	}
	for (unsigned i = 0; i + 1 < D.size(); i++) {
		if (!subsumed[i] && CSO1(D, i + 1, D.size() - 1, D[i], 0, 0, d0Index)) {
			subsumed[i] = true;
		}
	}
	pair<vector<int>, vector<int> > ret;
	for (unsigned i = 0; i < c1.size() + c2.size(); i++) {
		if (subsumed[i]) {
			if (D[i].O%2 == 0) {
				ret.F.push_back(D[i].O/2);
			}
			else {
				ret.S.push_back(D[i].O/2);
			}
		}
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %r8d, 0x64(%rsp)
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, 0x38(%rsp)
movq 0x8(%rdx), %rax
subq (%rdx), %rax
sarq $0x2, %rax
movq 0x8(%rcx), %rsi
movq %rcx, 0x20(%rsp)
subq (%rcx), %rsi
sarq $0x2, %rsi
addq %rax, %rsi
leaq 0x8(%rsp), %rdi
leaq 0xa0(%rsp), %r14
movq %r14, %rdx
callq 0x2ea98
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
incl 0x30(%r12)
movq (%r15), %rbx
movq %r15, 0x28(%rsp)
movq 0x8(%r15), %r14
cmpq %rbx, %r14
je 0x2ca1e
movq 0x68(%r12), %rax
movslq (%rbx), %rcx
movq (%rax), %rdx
leaq (%rcx,%rcx,4), %rcx
movq 0x8(%rdx,%rcx,8), %rax
subq (%rdx,%rcx,8), %rax
cmpq $0x4, %rax
je 0x2c978
leaq 0x18(%r12), %rcx
movq %rcx, 0x58(%rsp)
leaq 0x38(%r12), %rcx
movq %rcx, 0x50(%rsp)
xorl %r13d, %r13d
xorl %esi, %esi
xorl %r15d, %r15d
movq $0x0, (%rsp)
xorl %ebp, %ebp
movq %rsi, 0x48(%rsp)
shrq $0x2, %rax
addl %r15d, %eax
movl 0x60(%r12), %ebx
cmpl %eax, %ebx
jae 0x2c73b
addl %ebx, %ebx
cmpl %eax, %ebx
cmovbel %eax, %ebx
movq 0x58(%r12), %rdi
leaq (,%rbx,4), %rsi
callq 0x3470
movq %rax, 0x58(%r12)
movl %ebx, 0x60(%r12)
movl %r15d, %eax
movq %rax, 0x40(%rsp)
leaq (,%rax,4), %rdi
addq 0x58(%r12), %rdi
movq 0x68(%r12), %rax
movq 0x28(%rsp), %rbx
movq (%rbx), %rcx
movslq (%rcx,%rbp,4), %rcx
movq (%rax), %rax
leaq (%rcx,%rcx,4), %rcx
movq (%rax,%rcx,8), %rsi
movq 0x8(%rax,%rcx,8), %rdx
subq %rsi, %rdx
callq 0x3240
movq 0x8(%rsp), %rax
leaq (,%rbp,2), %r14
addq %rbp, %r14
movl %r15d, (%rax,%r14,4)
movq 0x68(%r12), %rcx
movq (%rbx), %rsi
movslq (%rsi,%rbp,4), %rdx
movq (%rcx), %rcx
leaq (%rdx,%rdx,4), %rdi
movq 0x8(%rcx,%rdi,8), %rdx
subq (%rcx,%rdi,8), %rdx
shrq $0x2, %rdx
leal (%rdx,%r15), %ecx
movl %ecx, 0x4(%rax,%r14,4)
movl (%rsi,%rbp,4), %esi
addl %esi, %esi
movl %esi, 0x8(%rax,%r14,4)
cmpl %ecx, %r15d
movl 0x64(%rsp), %r11d
jae 0x2c809
movq 0x58(%r12), %rsi
movq 0x40(%rsp), %rdi
leaq (%rsi,%rdi,4), %r8
xorl %edi, %edi
movl (%r8,%rdi,4), %r9d
movl %r9d, %r10d
sarl %r10d
cmpl %r11d, %r10d
je 0x2c7f2
incq %rdi
cmpl %edi, %edx
jne 0x2c7da
jmp 0x2c809
movq 0x40(%rsp), %rdx
leaq (%rsi,%rdx,4), %rdx
decl %ecx
movl (%rsi,%rcx,4), %r8d
movl %r8d, (%rdx,%rdi,4)
movl %r9d, (%rsi,%rcx,4)
leaq (%rax,%r14,4), %rax
movl (%rax), %edx
movl 0x4(%rax), %ecx
movq %rcx, 0x80(%rsp)
decl %ecx
movl %ecx, 0x4(%rax)
movq 0x8(%rsp), %rax
movq %rdx, %rbx
movq %rdx, 0x40(%rsp)
cmpl 0x4(%rax,%r14,4), %edx
movq (%rsp), %rbp
jae 0x2c915
movq 0x8(%r12), %rax
subq (%r12), %rax
movq 0x58(%r12), %rcx
shrq $0x2, %rax
movslq (%rcx,%rbx,4), %rsi
cmpl %eax, %esi
jl 0x2c876
incq %rsi
movq %r12, %rdi
callq 0x8cbc
movq 0x58(%r12), %rax
movslq (%rax,%rbx,4), %rsi
incq %rsi
movq 0x58(%rsp), %rdi
callq 0x8cbc
movq 0x58(%r12), %rax
movslq (%rax,%rbx,4), %rax
movq (%r12), %rcx
movl 0x30(%r12), %edx
cmpl %edx, (%rcx,%rax,4)
je 0x2c8d4
movl %edx, (%rcx,%rax,4)
movq 0x40(%r12), %rax
subq 0x38(%r12), %rax
shrq $0x2, %rax
cmpl %eax, %ebp
jl 0x2c8b2
leal 0x1(%rbp), %eax
movslq %eax, %rsi
movq 0x50(%rsp), %rdi
callq 0x8cbc
movslq %ebp, %rax
movq 0x38(%r12), %rcx
movl $0x0, (%rcx,%rax,4)
movq 0x18(%r12), %rax
movq 0x58(%r12), %rcx
movslq (%rcx,%rbx,4), %rcx
movl %ebp, (%rax,%rcx,4)
incl %ebp
movq 0x18(%r12), %rax
movq 0x58(%r12), %rcx
movslq (%rcx,%rbx,4), %rdx
movslq (%rax,%rdx,4), %rax
movl %eax, (%rcx,%rbx,4)
movq 0x38(%r12), %rdx
incl (%rdx,%rax,4)
movslq (%rcx,%rbx,4), %rax
movl (%rdx,%rax,4), %eax
cmpl %eax, %r13d
cmovlel %eax, %r13d
incq %rbx
movq 0x8(%rsp), %rax
movl 0x4(%rax,%r14,4), %eax
cmpq %rax, %rbx
jb 0x2c83b
movq 0x80(%rsp), %rax
addl %eax, %r15d
decl %r15d
subl 0x40(%rsp), %r15d
movq 0x48(%rsp), %rsi
incl %esi
movq 0x28(%rsp), %rax
movq (%rax), %rbx
movq 0x8(%rax), %r14
movq %r14, %rax
subq %rbx, %rax
sarq $0x2, %rax
cmpq %rsi, %rax
movq %rbp, (%rsp)
jbe 0x2ca2c
movq 0x68(%r12), %rax
movslq (%rbx,%rsi,4), %rcx
movq (%rax), %rdx
leaq (%rcx,%rcx,4), %rcx
movq 0x8(%rdx,%rcx,8), %rax
subq (%rdx,%rcx,8), %rax
movq %rsi, %rbp
cmpq $0x4, %rax
jne 0x2c703
xorps %xmm0, %xmm0
movq 0x38(%rsp), %r13
movups %xmm0, 0x20(%r13)
movups %xmm0, 0x10(%r13)
movups %xmm0, (%r13)
cmpq %r14, %rbx
movq 0x20(%rsp), %r12
je 0x2c9ce
leaq 0x68(%rsp), %r15
movl (%rbx), %eax
movl %eax, 0x68(%rsp)
movq 0x8(%r13), %rsi
cmpq 0x10(%r13), %rsi
je 0x2c9ba
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r13)
jmp 0x2c9c5
movq %r13, %rdi
movq %r15, %rdx
callq 0x98e8
addq $0x4, %rbx
cmpq %r14, %rbx
jne 0x2c99e
movq (%r12), %rbx
movq 0x8(%r12), %r12
cmpq %r12, %rbx
je 0x2d4f5
leaq 0x18(%r13), %r14
leaq 0x68(%rsp), %r15
movl (%rbx), %eax
movl %eax, 0x68(%rsp)
movq 0x20(%r13), %rsi
cmpq 0x28(%r13), %rsi
je 0x2ca05
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%r13)
jmp 0x2ca10
movq %r14, %rdi
movq %r15, %rdx
callq 0x98e8
addq $0x4, %rbx
cmpq %r12, %rbx
jne 0x2c9e9
jmp 0x2d4f5
xorl %r13d, %r13d
xorl %r15d, %r15d
movq $0x0, (%rsp)
movq 0x28(%rsp), %rax
movq (%rax), %rbp
movq 0x8(%rax), %r14
movq %r14, %rax
subq %rbp, %rax
movq %rax, %rcx
shrq $0x2, %rcx
movq %rcx, 0x50(%rsp)
movl %ecx, %ebx
sarq $0x2, %rax
movq 0x20(%rsp), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
addq %rax, %rdx
cmpq %rbx, %rdx
jbe 0x2ce0d
movq 0x68(%r12), %rdx
movq %rbx, %rsi
subq %rax, %rsi
movslq (%rcx,%rsi,4), %rax
movq (%rdx), %rcx
leaq (%rax,%rax,4), %rdx
movq 0x8(%rcx,%rdx,8), %rax
subq (%rcx,%rdx,8), %rax
cmpq $0x4, %rax
je 0x2cd68
leaq 0x18(%r12), %rcx
movq %rcx, 0x80(%rsp)
leaq 0x38(%r12), %rcx
movq %rcx, 0x58(%rsp)
shrq $0x2, %rax
addl %r15d, %eax
movl 0x60(%r12), %r14d
cmpl %eax, %r14d
jae 0x2cae6
addl %r14d, %r14d
cmpl %eax, %r14d
cmovbel %eax, %r14d
movq 0x58(%r12), %rdi
leaq (,%r14,4), %rsi
callq 0x3470
movq %rax, 0x58(%r12)
movl %r14d, 0x60(%r12)
movl %r15d, %eax
movq %rax, 0x48(%rsp)
leaq (,%rax,4), %rdi
addq 0x58(%r12), %rdi
movq 0x68(%r12), %rax
movq 0x28(%rsp), %r14
movq 0x8(%r14), %rcx
subq (%r14), %rcx
shrq $0x2, %rcx
movq %rbx, %rdx
subq %rcx, %rdx
movq 0x20(%rsp), %rcx
movq (%rcx), %rcx
movslq (%rcx,%rdx,4), %rcx
movq (%rax), %rax
leaq (%rcx,%rcx,4), %rcx
movq (%rax,%rcx,8), %rsi
movq 0x8(%rax,%rcx,8), %rdx
subq %rsi, %rdx
callq 0x3240
movq 0x8(%rsp), %rax
leaq (%rbx,%rbx,2), %rbp
movl %r15d, (%rax,%rbp,4)
movq 0x68(%r12), %rcx
movq 0x8(%r14), %rdx
subq (%r14), %rdx
shrq $0x2, %rdx
subq %rdx, %rbx
movq 0x20(%rsp), %rdx
movq (%rdx), %rsi
movslq (%rsi,%rbx,4), %rdx
movq (%rcx), %rcx
leaq (%rdx,%rdx,4), %rdi
movq 0x8(%rcx,%rdi,8), %rdx
subq (%rcx,%rdi,8), %rdx
shrq $0x2, %rdx
leal (%rdx,%r15), %ecx
movl %ecx, 0x4(%rax,%rbp,4)
movl (%rsi,%rbx,4), %esi
leal 0x1(,%rsi,2), %esi
movl %esi, 0x8(%rax,%rbp,4)
cmpl %ecx, %r15d
movl 0x64(%rsp), %r11d
movq 0x80(%rsp), %r14
jae 0x2cbe1
movq 0x58(%r12), %rsi
movq 0x48(%rsp), %rdi
leaq (%rsi,%rdi,4), %r8
xorl %edi, %edi
movl (%r8,%rdi,4), %r9d
movl %r9d, %r10d
sarl %r10d
cmpl %r11d, %r10d
je 0x2cbca
incq %rdi
cmpl %edi, %edx
jne 0x2cbb2
jmp 0x2cbe1
movq 0x48(%rsp), %rdx
leaq (%rsi,%rdx,4), %rdx
decl %ecx
movl (%rsi,%rcx,4), %r8d
movl %r8d, (%rdx,%rdi,4)
movl %r9d, (%rsi,%rcx,4)
leaq (%rax,%rbp,4), %rax
movl (%rax), %edx
movl 0x4(%rax), %ecx
movq %rcx, 0x40(%rsp)
decl %ecx
movl %ecx, 0x4(%rax)
movq 0x8(%rsp), %rax
movq %rdx, %rbx
movq %rdx, 0x48(%rsp)
cmpl 0x4(%rax,%rbp,4), %edx
jae 0x2ccee
movq 0x8(%r12), %rax
subq (%r12), %rax
movq 0x58(%r12), %rcx
shrq $0x2, %rax
movslq (%rcx,%rbx,4), %rsi
cmpl %eax, %esi
jl 0x2cc44
incq %rsi
movq %r12, %rdi
callq 0x8cbc
movq 0x58(%r12), %rax
movslq (%rax,%rbx,4), %rsi
incq %rsi
movq %r14, %rdi
callq 0x8cbc
movq 0x58(%r12), %rax
movslq (%rax,%rbx,4), %rax
movq (%r12), %rcx
movl 0x30(%r12), %edx
cmpl %edx, (%rcx,%rax,4)
je 0x2ccae
movl %edx, (%rcx,%rax,4)
movq 0x40(%r12), %rax
subq 0x38(%r12), %rax
shrq $0x2, %rax
cmpl %eax, (%rsp)
jl 0x2cc84
movq (%rsp), %rax
incl %eax
movslq %eax, %rsi
movq 0x58(%rsp), %rdi
callq 0x8cbc
movq (%rsp), %rdx
movslq %edx, %rax
movq 0x38(%r12), %rcx
movl $0x0, (%rcx,%rax,4)
movq 0x18(%r12), %rax
movq 0x58(%r12), %rcx
movslq (%rcx,%rbx,4), %rcx
movl %edx, (%rax,%rcx,4)
incl %edx
movq %rdx, (%rsp)
movq 0x18(%r12), %rax
movq 0x58(%r12), %rcx
movslq (%rcx,%rbx,4), %rdx
movslq (%rax,%rdx,4), %rax
movl %eax, (%rcx,%rbx,4)
movq 0x38(%r12), %rdx
incl (%rdx,%rax,4)
movslq (%rcx,%rbx,4), %rax
movl (%rdx,%rax,4), %eax
cmpl %eax, %r13d
cmovlel %eax, %r13d
incq %rbx
movq 0x8(%rsp), %rax
movl 0x4(%rax,%rbp,4), %eax
cmpq %rax, %rbx
jb 0x2cc0b
movq 0x50(%rsp), %rbx
incl %ebx
movq 0x28(%rsp), %rax
movq (%rax), %rbp
movq 0x8(%rax), %r14
movq %r14, %rax
subq %rbp, %rax
sarq $0x2, %rax
movq 0x20(%rsp), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
addq %rax, %rdx
cmpq %rbx, %rdx
jbe 0x2ce0d
movq 0x40(%rsp), %rdx
addl %edx, %r15d
decl %r15d
subl 0x48(%rsp), %r15d
movq 0x68(%r12), %rdx
movq %rbx, %rsi
subq %rax, %rsi
movslq (%rcx,%rsi,4), %rax
movq (%rdx), %rcx
leaq (%rax,%rax,4), %rdx
movq 0x8(%rcx,%rdx,8), %rax
subq (%rcx,%rdx,8), %rax
movq %rbx, 0x50(%rsp)
cmpq $0x4, %rax
jne 0x2caaf
xorps %xmm0, %xmm0
movq 0x38(%rsp), %r13
movups %xmm0, 0x20(%r13)
movups %xmm0, 0x10(%r13)
movups %xmm0, (%r13)
cmpq %r14, %rbp
movq 0x20(%rsp), %r15
je 0x2cdbf
leaq 0x68(%rsp), %rbx
movl (%rbp), %eax
movl %eax, 0x68(%rsp)
movq 0x8(%r13), %rsi
cmpq 0x10(%r13), %rsi
je 0x2cdab
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r13)
jmp 0x2cdb6
movq %r13, %rdi
movq %rbx, %rdx
callq 0x98e8
addq $0x4, %rbp
cmpq %r14, %rbp
jne 0x2cd8e
movq (%r15), %rbx
movq 0x8(%r15), %r12
cmpq %r12, %rbx
je 0x2d4f5
leaq 0x18(%r13), %r14
leaq 0x68(%rsp), %r15
movl (%rbx), %eax
movl %eax, 0x68(%rsp)
movq 0x20(%r13), %rsi
cmpq 0x28(%r13), %rsi
je 0x2cdf4
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%r13)
jmp 0x2cdff
movq %r14, %rdi
movq %r15, %rdx
callq 0x98e8
addq $0x4, %rbx
cmpq %r12, %rbx
jne 0x2cdd8
jmp 0x2d4f5
incl %r13d
leaq 0x68(%rsp), %rdi
leaq 0x88(%rsp), %rdx
movq %r13, %rsi
callq 0x1ff1e
movq (%rsp), %rbp
movl $0x0, 0x88(%rsp)
testl %ebp, %ebp
jle 0x2ce8d
xorl %eax, %eax
leaq 0x88(%rsp), %r14
movslq %eax, %rcx
movq 0x38(%r12), %rdx
movslq (%rdx,%rcx,4), %rcx
movq 0x68(%rsp), %rdx
leaq (%rcx,%rcx,2), %rcx
leaq (%rdx,%rcx,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2ce71
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2ce79
movq %r14, %rdx
callq 0x98e8
movl 0x88(%rsp), %eax
incl %eax
movl %eax, 0x88(%rsp)
cmpl %ebp, %eax
jl 0x2ce42
movslq %ebp, %r14
leaq 0x88(%rsp), %rdi
leaq 0xd0(%rsp), %rdx
movq %r14, %rsi
callq 0x2eb4a
movq 0x68(%rsp), %rax
movq 0x88(%rsp), %rcx
xorl %edx, %edx
xorl %esi, %esi
leaq (%rdx,%rdx,2), %r8
movq (%rax,%r8,8), %rdi
movq 0x8(%rax,%r8,8), %r8
cmpq %r8, %rdi
je 0x2ceda
movslq (%rdi), %r9
movl %esi, (%rcx,%r9,4)
incl %esi
addq $0x4, %rdi
jmp 0x2cec6
incq %rdx
cmpq %r13, %rdx
jne 0x2ceb9
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x2cf9c
xorl %ebx, %ebx
leaq (%rbx,%rbx,2), %rcx
leaq (%rax,%rcx,4), %rax
movl (%rax), %edx
movl 0x4(%rax), %ecx
cmpl %ecx, %edx
jae 0x2cf27
movq 0x58(%r12), %rsi
movq 0x88(%rsp), %rdi
movslq (%rsi,%rdx,4), %rcx
movl (%rdi,%rcx,4), %ecx
movl %ecx, (%rsi,%rdx,4)
incq %rdx
movl 0x4(%rax), %ecx
cmpq %rcx, %rdx
jb 0x2cf12
movl (%rax), %eax
cmpl %ecx, %eax
je 0x2cf72
movq 0x58(%r12), %rdx
leaq (%rdx,%rax,4), %r15
shlq $0x2, %rax
movl %ecx, %ecx
leaq (,%rcx,4), %rsi
subq %rax, %rsi
leaq (%rdx,%rcx,4), %r13
sarq $0x2, %rsi
bsrq %rsi, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0x2eceb
movq %r15, %rdi
movq %r13, %rsi
callq 0x2edc6
incl %ebx
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
cmpq %rbx, %rcx
ja 0x2cef4
leaq 0xd0(%rsp), %rdi
leaq 0xb8(%rsp), %rdx
movq %r14, %rsi
callq 0x2ebd4
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x2d034
movl $0x1, %ebx
xorl %ecx, %ecx
movq 0x58(%r12), %rsi
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,4), %rdx
movl (%rdx), %eax
movslq (%rsi,%rax,4), %rax
movq 0xd0(%rsp), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2d007
movl 0x8(%rdx), %eax
movl %eax, 0x8(%rsi)
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0xc, 0x8(%rdi)
jmp 0x2d00c
callq 0x2f050
movl %ebx, %ecx
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0x2cfc7
testl %ebp, %ebp
jle 0x2d163
movl (%rsp), %eax
movq %rax, 0x50(%rsp)
xorl %ecx, %ecx
xorl %ebx, %ebx
movq 0xd0(%rsp), %rax
movq %rcx, 0x58(%rsp)
leaq (%rcx,%rcx,2), %rbp
movq (%rax,%rbp,8), %r15
movq 0x8(%rax,%rbp,8), %r14
cmpq %r14, %r15
je 0x2d0df
movq %r14, %r13
subq %r15, %r13
movq %r13, %rax
sarq $0x2, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rcx
callq 0x2e2f6
cmpq $0xc1, %r13
jl 0x2d0d1
leaq 0xc0(%r15), %r13
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x2e8f4
cmpq %r14, %r13
je 0x2d0df
movq %r13, %rdi
movq %r12, %rsi
callq 0x2e999
addq $0xc, %r13
jmp 0x2d0bb
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2e8f4
movq 0xd0(%rsp), %rax
movq (%rax,%rbp,8), %rcx
cmpq %rcx, 0x8(%rax,%rbp,8)
je 0x2d150
movl $0x1, %eax
xorl %edx, %edx
movabsq $-0x5555555555555555, %r9 # imm = 0xAAAAAAAAAAAAAAAB
leal (%rbx,%rax), %esi
decl %esi
leaq (%rdx,%rdx,2), %rdx
movq 0x8(%rsp), %rdi
leaq (%rsi,%rsi,2), %rsi
movl 0x8(%rcx,%rdx,4), %r8d
movl %r8d, 0x8(%rdi,%rsi,4)
movq (%rcx,%rdx,4), %rcx
movq %rcx, (%rdi,%rsi,4)
movl %eax, %edx
movq 0xd0(%rsp), %rsi
movq (%rsi,%rbp,8), %rcx
movq 0x8(%rsi,%rbp,8), %rsi
subq %rcx, %rsi
sarq $0x2, %rsi
imulq %r9, %rsi
incl %eax
cmpq %rdx, %rsi
ja 0x2d103
addl %eax, %ebx
decl %ebx
movq 0x58(%rsp), %rcx
incq %rcx
cmpq 0x50(%rsp), %rcx
jne 0x2d048
movq (%rsp), %r14
leal 0x1(%r14), %eax
movslq %eax, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x8cbc
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rcx, %rsi
subq %rax, %rsi
sarq $0x2, %rsi
imulq %r13, %rsi
cmpq %rax, %rcx
je 0x2d216
movq 0x58(%r12), %rdx
movq 0xa0(%rsp), %rdi
leaq -0xc(%rax), %r8
xorl %r9d, %r9d
xorl %ecx, %ecx
testq %r9, %r9
je 0x2d1db
leaq (,%r9,4), %r10
leaq (%r10,%r10,2), %r10
movl (%rax,%r10), %r11d
movl (%rdx,%r11,4), %r11d
movl (%r8,%r10), %r10d
cmpl (%rdx,%r10,4), %r11d
jle 0x2d209
leaq (%r9,%r9,2), %r10
movl (%rax,%r10,4), %r11d
cmpl (%rdx,%r11,4), %ecx
jg 0x2d209
leaq (%rax,%r10,4), %r10
movslq %ecx, %r11
decq %r11
movl %r9d, 0x4(%rdi,%r11,4)
movl (%r10), %ebx
movslq (%rdx,%rbx,4), %rbx
incq %r11
incl %ecx
cmpq %rbx, %r11
jl 0x2d1f3
incq %r9
movl %r9d, %r10d
cmpq %r10, %rsi
ja 0x2d1b8
jmp 0x2d218
xorl %ecx, %ecx
cmpl %r14d, %ecx
jg 0x2d23f
movslq %ecx, %rax
shlq $0x2, %rax
addq 0xa0(%rsp), %rax
subl %ecx, %r14d
incl %r14d
xorl %ecx, %ecx
movl %esi, (%rax,%rcx,4)
incq %rcx
cmpl %ecx, %r14d
jne 0x2d234
leaq 0xb8(%rsp), %rdi
leaq 0x34(%rsp), %rdx
callq 0x8c32
movq 0x8(%rsp), %rbx
movq 0x10(%rsp), %r15
subq %rbx, %r15
sarq $0x2, %r15
imulq %r13, %r15
cmpq $0x2, %r15
jb 0x2d330
movq 0x58(%r12), %rax
xorl %esi, %esi
movl $0x1, %ecx
movl $0x1, %edi
movq 0xb8(%rsp), %rdx
movl %esi, %r8d
leaq (%r8,%r8,2), %r8
movl 0x4(%rbx,%r8,4), %r9d
subl (%rbx,%r8,4), %r9d
leaq (%rdi,%rdi,2), %r10
movl 0x4(%rbx,%r10,4), %ebp
subl (%rbx,%r10,4), %ebp
movl %ecx, %r11d
cmpl %ebp, %r9d
ja 0x2d31f
leaq (%rbx,%r8,4), %r8
movq (%r8), %r8
movq %r8, %r9
shrq $0x20, %r9
cmpl %r8d, %r9d
sete %bpl
je 0x2d30d
leaq (%rbx,%r10,4), %r10
movq (%r10), %r10
movl %r8d, %r11d
movl (%rax,%r11,4), %ebp
movl %r10d, %r14d
movl %ecx, %r11d
cmpl (%rax,%r14,4), %ebp
jne 0x2d31f
subl %r8d, %r9d
movl $0x1, %r14d
movq %r14, %r11
cmpq %r14, %r9
je 0x2d306
leal (%r8,%r11), %r14d
movl (%rax,%r14,4), %ebp
leal (%r10,%r11), %r13d
leaq 0x1(%r11), %r14
cmpl (%rax,%r13,4), %ebp
je 0x2d2e8
cmpq %r9, %r11
setae %bpl
movl %ecx, %r11d
testb %bpl, %bpl
je 0x2d31f
movl $0x1, (%rdx,%rdi,4)
movl %esi, %r11d
incl %ecx
movq %rcx, %rdi
movl %r11d, %esi
cmpq %rcx, %r15
ja 0x2d289
cmpq $0x2, %r15
jb 0x2d3ad
movq 0xb8(%rsp), %r13
leal -0x1(%r15), %eax
movl %eax, (%rsp)
movl $0x2, %r14d
leal -0x2(%r14), %ebp
cmpl $0x0, (%r13,%rbp,4)
jne 0x2d3a2
leal -0x1(%r14), %edx
leaq (,%rbp,2), %rax
addq %rbp, %rax
movq (%rbx,%rax,4), %r8
movl 0x8(%rbx,%rax,4), %r9d
subq $0x8, %rsp
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
movl 0x8(%rsp), %ecx
leaq 0xa8(%rsp), %rax
pushq %rax
xorl %eax, %eax
pushq %rax
pushq %rax
callq 0x2b3f4
addq $0x20, %rsp
testb %al, %al
je 0x2d3a2
movl $0x1, (%r13,%rbp,4)
movl %r14d, %eax
incl %r14d
cmpq %rax, %r15
ja 0x2d34b
xorps %xmm0, %xmm0
movq 0x38(%rsp), %r13
movups %xmm0, 0x20(%r13)
movups %xmm0, 0x10(%r13)
movups %xmm0, (%r13)
movq 0x28(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x2, %rax
movq 0x20(%rsp), %r12
movq 0x8(%r12), %rcx
subq (%r12), %rcx
sarq $0x2, %rcx
addq %rax, %rcx
je 0x2d4a4
leaq 0x18(%r13), %r14
movl $0x1, %ebx
xorl %eax, %eax
leaq 0x34(%rsp), %r15
movq 0xb8(%rsp), %rcx
cmpl $0x0, (%rcx,%rax,4)
je 0x2d477
movq 0x8(%rsp), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,4), %rax
addq $0x8, %rax
testb $0x1, (%rax)
jne 0x2d441
movl (%rax), %eax
shrl %eax
movl %eax, 0x34(%rsp)
movq 0x8(%r13), %rsi
cmpq 0x10(%r13), %rsi
je 0x2d45f
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r13)
jmp 0x2d477
movl (%rax), %eax
shrl %eax
movl %eax, 0x34(%rsp)
movq 0x20(%r13), %rsi
cmpq 0x28(%r13), %rsi
je 0x2d46c
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%r13)
jmp 0x2d477
movq %r13, %rdi
movq %r15, %rdx
callq 0x20b8a
jmp 0x2d477
movq %r14, %rdi
movq %r15, %rdx
callq 0x20b8a
movl %ebx, %eax
movq 0x28(%rsp), %rdx
movq 0x8(%rdx), %rcx
subq (%rdx), %rcx
sarq $0x2, %rcx
movq 0x8(%r12), %rdx
subq (%r12), %rdx
sarq $0x2, %rdx
addq %rcx, %rdx
incl %ebx
cmpq %rax, %rdx
ja 0x2d3ff
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x2d4c1
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0xd0(%rsp), %rdi
callq 0x2ec5c
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2d4eb
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x68(%rsp), %rdi
callq 0x8f6e
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x2d512
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2d529
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %r13, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d57d
jmp 0x2d57d
jmp 0x2d5a5
jmp 0x2d58f
jmp 0x2d5d3
jmp 0x2d54d
movq %rax, %r14
movq 0x38(%rsp), %rdi
callq 0x1fc6e
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x2d580
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0x2d580
jmp 0x2d596
jmp 0x2d596
movq %rax, %r14
leaq 0xd0(%rsp), %rdi
callq 0x2ec5c
jmp 0x2d5a8
movq %rax, %r14
jmp 0x2d5c5
jmp 0x2d596
movq %rax, %r14
movq 0x38(%rsp), %rdi
callq 0x1fc6e
jmp 0x2d5d6
movq %rax, %r14
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2d5c5
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x68(%rsp), %rdi
callq 0x8f6e
jmp 0x2d5d6
jmp 0x2d5d3
movq %rax, %r14
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x2d5f3
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2d60a
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %r14, %rdi
callq 0x34a0