// File: /workspace/github_cpp_makefile_star2_O3/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 $0xf8, %rsp
movl %r8d, 0x70(%rsp)
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, 0x48(%rsp)
movq 0x8(%rdx), %rax
subq (%rdx), %rax
sarq $0x2, %rax
movq 0x8(%rcx), %rsi
movq %rcx, 0x10(%rsp)
subq (%rcx), %rsi
sarq $0x2, %rsi
addq %rax, %rsi
leaq 0x28(%rsp), %rdi
leaq 0xb0(%rsp), %r14
movq %r14, %rdx
callq 0x2dd92
pxor %xmm0, %xmm0
movdqa %xmm0, (%r14)
movq $0x0, 0x10(%r14)
incl 0x30(%r12)
movq (%rbp), %r15
movq 0x8(%rbp), %r13
movq %r13, %r11
subq %r15, %r13
movq %rbp, 0x50(%rsp)
je 0x2bd94
movq 0x68(%r12), %rax
movslq (%r15), %rcx
movq (%rax), %rax
leaq (%rcx,%rcx,4), %rcx
movq (%rax,%rcx,8), %rsi
movq 0x8(%rax,%rcx,8), %rdx
subq %rsi, %rdx
cmpq $0x4, %rdx
je 0x2bce8
leaq 0x18(%r12), %r14
leaq 0x38(%r12), %rax
movq %rax, 0x20(%rsp)
xorl %ebx, %ebx
movq $0x0, 0x58(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x8(%rsp)
xorl %r13d, %r13d
movq %r14, 0x60(%rsp)
movq %rdx, %rcx
shrq $0x2, %rcx
addl 0x18(%rsp), %ecx
movl 0x60(%r12), %r15d
movq 0x58(%r12), %rax
cmpl %ecx, %r15d
jae 0x2baa4
addl %r15d, %r15d
cmpl %ecx, %r15d
cmovbel %ecx, %r15d
leaq (,%r15,4), %rsi
movq %rax, %rdi
callq 0x3470
movq %rax, 0x58(%r12)
movl %r15d, 0x60(%r12)
movq 0x68(%r12), %rcx
movq (%rbp), %rdx
movslq (%rdx,%r13,4), %rdx
movq (%rcx), %rcx
leaq (%rdx,%rdx,4), %rdx
movq (%rcx,%rdx,8), %rsi
movq 0x8(%rcx,%rdx,8), %rdx
subq %rsi, %rdx
movq %r13, %r14
movq 0x18(%rsp), %r13
movl %r13d, %ebp
leaq (%rax,%rbp,4), %rdi
callq 0x3240
movq 0x28(%rsp), %rax
leaq (%r14,%r14,2), %r15
leaq (%rax,%r15,4), %rax
movl %r13d, (%rax)
movq 0x68(%r12), %rcx
movq 0x50(%rsp), %rdx
movq (%rdx), %rsi
movslq (%rsi,%r14,4), %rdx
movq (%rcx), %rcx
leaq (%rdx,%rdx,4), %rdx
movq 0x8(%rcx,%rdx,8), %r9
subq (%rcx,%rdx,8), %r9
movq %r13, %rdi
shrq $0x2, %r9
addl %edi, %r9d
movl %r9d, 0x4(%rax)
movq %rsi, %r8
movl (%rsi,%r14,4), %ecx
movq %r9, %rsi
addl %ecx, %ecx
movl %ecx, 0x8(%rax)
cmpl %esi, %edi
jae 0x2bb3a
movq 0x58(%r12), %rcx
movq %rsi, %r9
movl %esi, %edx
movq 0x60(%rsp), %r14
movl (%rcx,%rbp,4), %esi
movl %esi, %edi
sarl %edi
cmpl 0x70(%rsp), %edi
je 0x2bb43
incq %rbp
cmpq %rbp, %rdx
jne 0x2bb19
movq 0x18(%rsp), %rdi
movl %edi, %edx
movq %r9, %rsi
jmp 0x2bb5b
movl %edi, %edx
movq 0x60(%rsp), %r14
jmp 0x2bb5b
decl %r9d
movl (%rcx,%r9,4), %edx
movl %edx, (%rcx,%rbp,4)
movl %esi, (%rcx,%r9,4)
movl (%rax), %edx
movl 0x4(%rax), %esi
movq 0x18(%rsp), %rdi
leal -0x1(%rsi), %ecx
movl %ecx, 0x4(%rax)
cmpl %ecx, %edx
movl %edx, 0x68(%rsp)
jae 0x2bc81
movq %rsi, 0x90(%rsp)
movl %edx, %ebp
movq 0x58(%r12), %rax
movq (%r12), %rcx
movq 0x8(%r12), %rsi
subq %rcx, %rsi
shrq $0x2, %rsi
movl (%rax,%rbp,4), %edx
cmpl %esi, %edx
jl 0x2bbc1
movslq %edx, %rsi
incq %rsi
movq %r12, %rdi
callq 0x8cac
movq 0x58(%r12), %rax
movslq (%rax,%rbp,4), %rsi
incq %rsi
movq %r14, %rdi
callq 0x8cac
movq (%r12), %rcx
movq 0x58(%r12), %rax
movl (%rax,%rbp,4), %edx
movslq %edx, %rdx
movl 0x30(%r12), %esi
cmpl %esi, (%rcx,%rdx,4)
jne 0x2bbdb
movq (%r14), %rsi
movq 0x20(%rsp), %rcx
movq (%rcx), %rcx
jmp 0x2bc38
movl %esi, (%rcx,%rdx,4)
movq 0x38(%r12), %rcx
movq 0x40(%r12), %rdx
subq %rcx, %rdx
shrq $0x2, %rdx
movq 0x8(%rsp), %rsi
leal 0x1(%rsi), %r13d
cmpl %edx, %esi
jl 0x2bc13
movslq %r13d, %rsi
movq 0x20(%rsp), %rdi
callq 0x8cac
movq 0x38(%r12), %rcx
movq 0x58(%r12), %rax
movq 0x8(%rsp), %rdi
movslq %edi, %rdx
movl $0x0, (%rcx,%rdx,4)
movslq (%rax,%rbp,4), %rdx
movq (%r14), %rsi
movl %edi, (%rsi,%rdx,4)
movslq (%rax,%rbp,4), %rdx
movl %r13d, %edi
movq %rdi, 0x8(%rsp)
movslq (%rsi,%rdx,4), %rdx
movl %edx, (%rax,%rbp,4)
incl (%rcx,%rdx,4)
movslq (%rax,%rbp,4), %rdx
movl (%rcx,%rdx,4), %ecx
cmpl %ecx, %ebx
cmovlel %ecx, %ebx
incq %rbp
movq 0x28(%rsp), %rcx
movl 0x4(%rcx,%r15,4), %ecx
cmpq %rcx, %rbp
jb 0x2bb7c
movq 0x50(%rsp), %rbp
movq (%rbp), %r15
movq 0x18(%rsp), %rdi
movq 0x58(%rsp), %rdx
movq 0x90(%rsp), %rsi
jmp 0x2bc8e
movq 0x50(%rsp), %rbp
movq %r8, %r15
movq 0x58(%rsp), %rdx
addl %esi, %edi
decl %edi
subl 0x68(%rsp), %edi
incl %edx
movq 0x8(%rbp), %r13
movq %r13, %r11
subq %r15, %r13
movq %r13, %rax
sarq $0x2, %rax
cmpq %rdx, %rax
jbe 0x2bda8
movq %rdi, 0x18(%rsp)
movq 0x68(%r12), %rax
movslq (%r15,%rdx,4), %rcx
movq (%rax), %rax
leaq (%rcx,%rcx,4), %rcx
movq (%rax,%rcx,8), %rsi
movq %rdx, %rdi
movq 0x8(%rax,%rcx,8), %rdx
subq %rsi, %rdx
movq %rdi, 0x58(%rsp)
movq %rdi, %r13
cmpq $0x4, %rdx
jne 0x2ba46
pxor %xmm0, %xmm0
movq 0x48(%rsp), %r13
movdqu %xmm0, 0x20(%r13)
movdqu %xmm0, 0x10(%r13)
movdqu %xmm0, (%r13)
cmpq %r11, %r15
je 0x2bd41
movq %r11, %rbx
leaq 0x78(%rsp), %r14
movl (%r15), %eax
movl %eax, 0x78(%rsp)
movq 0x8(%r13), %rsi
cmpq 0x10(%r13), %rsi
je 0x2bd2d
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r13)
jmp 0x2bd38
movq %r13, %rdi
movq %r14, %rdx
callq 0x98f8
addq $0x4, %r15
cmpq %rbx, %r15
jne 0x2bd10
movq 0x10(%rsp), %rax
movq (%rax), %rbx
movq 0x8(%rax), %r12
cmpq %r12, %rbx
je 0x2c975
leaq 0x18(%r13), %r14
leaq 0x78(%rsp), %r15
movl (%rbx), %eax
movl %eax, 0x78(%rsp)
movq 0x20(%r13), %rsi
cmpq 0x28(%r13), %rsi
je 0x2bd7b
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%r13)
jmp 0x2bd86
movq %r14, %rdi
movq %r15, %rdx
callq 0x98f8
addq $0x4, %rbx
cmpq %r12, %rbx
jne 0x2bd5f
jmp 0x2c975
movq %r13, %rax
sarq $0x2, %rax
xorl %ebx, %ebx
xorl %edi, %edi
movq $0x0, 0x8(%rsp)
shrq $0x2, %r13
movl %r13d, %r8d
movq 0x10(%rsp), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %r14
movq %r14, %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
addq %rax, %rdx
cmpq %r8, %rdx
jbe 0x2c1b5
movq 0x68(%r12), %rdx
movq %r8, %rsi
subq %rax, %rsi
movslq (%rcx,%rsi,4), %rax
movq (%rdx), %rdx
leaq (%rax,%rax,4), %rax
movq 0x8(%rdx,%rax,8), %rsi
subq (%rdx,%rax,8), %rsi
cmpq $0x4, %rsi
je 0x2c102
leaq 0x18(%r12), %rax
movq %rax, 0x20(%rsp)
leaq 0x38(%r12), %rax
movq %rax, 0x58(%rsp)
shrq $0x2, %rsi
movq %rdi, 0x18(%rsp)
addl %edi, %esi
movl 0x60(%r12), %r14d
movq 0x58(%r12), %rax
cmpl %esi, %r14d
movq %r13, 0x68(%rsp)
jae 0x2be6f
addl %r14d, %r14d
cmpl %esi, %r14d
cmovbel %esi, %r14d
leaq (,%r14,4), %rsi
movq %rax, %rdi
movq %r8, %r15
callq 0x3470
movq %r15, %r8
movq %rax, 0x58(%r12)
movl %r14d, 0x60(%r12)
movq 0x68(%r12), %rdx
movq (%rbp), %r15
movq 0x8(%rbp), %r11
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
movq (%rdx), %rdx
subq %r15, %r11
movq 0x18(%rsp), %r13
movl %r13d, %r15d
leaq (%rax,%r15,4), %rdi
shrq $0x2, %r11
movq %r8, %rax
subq %r11, %rax
movslq (%rcx,%rax,4), %rax
leaq (%rax,%rax,4), %rax
movq (%rdx,%rax,8), %rsi
movq 0x8(%rdx,%rax,8), %rdx
subq %rsi, %rdx
movq %r8, %r14
callq 0x3240
movq 0x28(%rsp), %rax
leaq (%r14,%r14,2), %rcx
movq %rcx, %r8
leaq (%rax,%rcx,4), %rdx
movl %r13d, (%rdx)
movq 0x68(%r12), %rsi
movq (%rbp), %rcx
movq 0x8(%rbp), %r11
movq %r11, %rax
movq %rcx, %r10
subq %rcx, %rax
sarq $0x2, %rax
subq %rax, %r14
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
movslq (%rcx,%r14,4), %rdi
movq (%rsi), %rsi
leaq (%rdi,%rdi,4), %rdi
movq 0x8(%rsi,%rdi,8), %rbp
subq (%rsi,%rdi,8), %rbp
shrq $0x2, %rbp
addl %r13d, %ebp
movl %ebp, 0x4(%rdx)
movl (%rcx,%r14,4), %esi
leal 0x1(,%rsi,2), %esi
movl %esi, 0x8(%rdx)
cmpl %ebp, %r13d
jae 0x2bf3e
movq 0x58(%r12), %rsi
movl %ebp, %edi
movq 0x68(%rsp), %r13
movq %r8, %r14
movl (%rsi,%r15,4), %r8d
movl %r8d, %r9d
sarl %r9d
cmpl 0x70(%rsp), %r9d
je 0x2bf4b
incq %r15
cmpq %r15, %rdi
jne 0x2bf1c
movq 0x18(%rsp), %rsi
movl %esi, %edi
jmp 0x2bf5d
movl %r13d, %edi
movq 0x68(%rsp), %r13
movq %r8, %r14
jmp 0x2bf5d
decl %ebp
movl (%rsi,%rbp,4), %edi
movl %edi, (%rsi,%r15,4)
movl %r8d, (%rsi,%rbp,4)
movl (%rdx), %edi
movl 0x4(%rdx), %ebp
movq %rbp, 0x60(%rsp)
leal -0x1(%rbp), %esi
movl %esi, 0x4(%rdx)
cmpl %esi, %edi
movl %edi, %esi
jae 0x2c09c
movl %esi, 0x90(%rsp)
movl %esi, %ebp
movq 0x58(%r12), %rax
movq (%r12), %rcx
movq 0x8(%r12), %rsi
subq %rcx, %rsi
shrq $0x2, %rsi
movl (%rax,%rbp,4), %edx
cmpl %esi, %edx
jl 0x2bfc7
movslq %edx, %rsi
incq %rsi
movq %r12, %rdi
callq 0x8cac
movq 0x58(%r12), %rax
movslq (%rax,%rbp,4), %rsi
incq %rsi
movq 0x20(%rsp), %rdi
callq 0x8cac
movq (%r12), %rcx
movq 0x58(%r12), %rax
movl (%rax,%rbp,4), %edx
movslq %edx, %rdx
movl 0x30(%r12), %esi
cmpl %esi, (%rcx,%rdx,4)
jne 0x2bfe6
movq 0x20(%rsp), %rcx
movq (%rcx), %rsi
movq 0x58(%rsp), %rcx
movq (%rcx), %rcx
jmp 0x2c048
movl %esi, (%rcx,%rdx,4)
movq 0x38(%r12), %rcx
movq 0x40(%r12), %rdx
subq %rcx, %rdx
shrq $0x2, %rdx
movq 0x8(%rsp), %rsi
leal 0x1(%rsi), %r15d
cmpl %edx, %esi
jl 0x2c01e
movslq %r15d, %rsi
movq 0x58(%rsp), %rdi
callq 0x8cac
movq 0x38(%r12), %rcx
movq 0x58(%r12), %rax
movq 0x8(%rsp), %rdi
movslq %edi, %rdx
movl $0x0, (%rcx,%rdx,4)
movslq (%rax,%rbp,4), %rdx
movq 0x20(%rsp), %rsi
movq (%rsi), %rsi
movl %edi, (%rsi,%rdx,4)
movslq (%rax,%rbp,4), %rdx
movl %r15d, %edi
movq %rdi, 0x8(%rsp)
movslq (%rsi,%rdx,4), %rdx
movl %edx, (%rax,%rbp,4)
incl (%rcx,%rdx,4)
movslq (%rax,%rbp,4), %rdx
movl (%rcx,%rdx,4), %ecx
cmpl %ecx, %ebx
cmovlel %ecx, %ebx
incq %rbp
movq 0x28(%rsp), %rcx
movl 0x4(%rcx,%r14,4), %ecx
cmpq %rcx, %rbp
jb 0x2bf80
movq 0x50(%rsp), %rbp
movq (%rbp), %r15
movq 0x8(%rbp), %rax
movq 0x10(%rsp), %rdx
movq (%rdx), %rcx
movq %rax, %r11
subq %r15, %rax
sarq $0x2, %rax
movl 0x90(%rsp), %esi
jmp 0x2c0a9
movq %r10, %r15
movq 0x10(%rsp), %rdx
movq 0x50(%rsp), %rbp
incl %r13d
movq 0x8(%rdx), %r14
movq %r14, %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
addq %rax, %rdx
cmpq %r13, %rdx
jbe 0x2c1b5
movq 0x18(%rsp), %rdi
movq 0x60(%rsp), %rdx
addl %edx, %edi
decl %edi
subl %esi, %edi
movq 0x68(%r12), %rdx
movq %r13, %rsi
subq %rax, %rsi
movslq (%rcx,%rsi,4), %rax
movq (%rdx), %rdx
leaq (%rax,%rax,4), %rax
movq 0x8(%rdx,%rax,8), %rsi
subq (%rdx,%rax,8), %rsi
movq %r13, %r8
cmpq $0x4, %rsi
jne 0x2be0e
pxor %xmm0, %xmm0
movq 0x48(%rsp), %r13
movdqu %xmm0, 0x20(%r13)
movdqu %xmm0, 0x10(%r13)
movdqu %xmm0, (%r13)
cmpq %r11, %r15
je 0x2c164
movq %r11, %rbx
leaq 0x78(%rsp), %r14
movl (%r15), %eax
movl %eax, 0x78(%rsp)
movq 0x8(%r13), %rsi
cmpq 0x10(%r13), %rsi
je 0x2c147
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r13)
jmp 0x2c152
movq %r13, %rdi
movq %r14, %rdx
callq 0x98f8
addq $0x4, %r15
cmpq %rbx, %r15
jne 0x2c12a
movq 0x10(%rsp), %rax
movq 0x8(%rax), %r14
movq 0x10(%rsp), %rax
movq (%rax), %r12
cmpq %r14, %r12
je 0x2c975
leaq 0x18(%r13), %rbx
leaq 0x78(%rsp), %r15
movl (%r12), %eax
movl %eax, 0x78(%rsp)
movq 0x20(%r13), %rsi
cmpq 0x28(%r13), %rsi
je 0x2c19c
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%r13)
jmp 0x2c1a7
movq %rbx, %rdi
movq %r15, %rdx
callq 0x98f8
addq $0x4, %r12
cmpq %r14, %r12
jne 0x2c17e
jmp 0x2c975
incl %ebx
movslq %ebx, %rsi
leaq 0x78(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x1f360
movl $0x0, 0x98(%rsp)
cmpl $0x0, 0x8(%rsp)
jle 0x2c235
xorl %eax, %eax
leaq 0x98(%rsp), %r14
movslq %eax, %rcx
movq 0x38(%r12), %rdx
movslq (%rdx,%rcx,4), %rcx
movq 0x78(%rsp), %rdx
leaq (%rcx,%rcx,2), %rcx
leaq (%rdx,%rcx,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2c217
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2c21f
movq %r14, %rdx
callq 0x98f8
movl 0x98(%rsp), %eax
incl %eax
movl %eax, 0x98(%rsp)
cmpl 0x8(%rsp), %eax
jl 0x2c1e8
movslq 0x8(%rsp), %r14
leaq 0x98(%rsp), %rdi
leaq 0xe0(%rsp), %rdx
movq %r14, %rsi
callq 0x2de54
movq 0x78(%rsp), %rax
movq 0x98(%rsp), %rcx
movl %ebx, %edx
xorl %esi, %esi
xorl %edi, %edi
leaq (%rsi,%rsi,2), %r9
movq (%rax,%r9,8), %r8
movq 0x8(%rax,%r9,8), %r9
cmpq %r9, %r8
je 0x2c286
movslq (%r8), %r10
movl %edi, (%rcx,%r10,4)
incl %edi
addq $0x4, %r8
jmp 0x2c272
incq %rsi
cmpq %rdx, %rsi
jne 0x2c265
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
cmpq %rax, %rcx
je 0x2c35a
xorl %ebx, %ebx
leaq (%rbx,%rbx,2), %r8
movl (%rax,%r8,4), %esi
movl 0x4(%rax,%r8,4), %edi
movq 0x58(%r12), %rdx
cmpl %edi, %esi
jae 0x2c2e9
leaq (%rax,%r8,4), %r8
movq 0x98(%rsp), %r9
movslq (%rdx,%rsi,4), %rdi
movl (%r9,%rdi,4), %edi
movl %edi, (%rdx,%rsi,4)
incq %rsi
movl 0x4(%r8), %edi
cmpq %rdi, %rsi
jb 0x2c2cf
movl (%r8), %esi
cmpl %edi, %esi
je 0x2c341
movl %esi, %eax
leaq (%rdx,%rax,4), %r13
shlq $0x2, %rax
leaq (,%rdi,4), %rcx
subq %rax, %rcx
leaq (%rdx,%rdi,4), %rbp
sarq $0x2, %rcx
bsrq %rcx, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x2dff3
movq %r13, %rdi
movq %rbp, %rsi
callq 0x2e0ce
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
incl %ebx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x2, %rdx
imulq %r13, %rdx
cmpq %rbx, %rdx
ja 0x2c2ad
leaq 0xe0(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
movq %r14, %rsi
callq 0x2dee0
movq 0x28(%rsp), %rax
cmpq %rax, 0x30(%rsp)
je 0x2c3e8
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 0xe0(%rsp), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2c3c5
movl 0x8(%rdx), %eax
movl %eax, 0x8(%rsi)
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0xc, 0x8(%rdi)
jmp 0x2c3ca
callq 0x2e340
movl %ebx, %ecx
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
imulq %r13, %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0x2c385
cmpl $0x0, 0x8(%rsp)
jle 0x2c527
movl 0x8(%rsp), %eax
movq %rax, 0x70(%rsp)
xorl %ecx, %ecx
movq 0xe0(%rsp), %rax
xorl %ebx, %ebx
movq %rcx, 0x20(%rsp)
leaq (%rcx,%rcx,2), %r15
movq (%rax,%r15,8), %r13
movq 0x8(%rax,%r15,8), %r14
cmpq %r14, %r13
je 0x2c497
movq %r14, %rbp
subq %r13, %rbp
movq %rbp, %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 %r13, %rdi
movq %r14, %rsi
movq %r12, %rcx
callq 0x2d689
cmpq $0xc1, %rbp
jl 0x2c489
leaq 0xc0(%r13), %rbp
movq %r13, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x2dc4b
cmpq %r14, %rbp
je 0x2c497
movq %rbp, %rdi
movq %r12, %rsi
callq 0x2dce9
addq $0xc, %rbp
jmp 0x2c473
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2dc4b
movq 0xe0(%rsp), %rax
movq (%rax,%r15,8), %rdx
cmpq %rdx, 0x8(%rax,%r15,8)
je 0x2c50a
movl $0x1, %ecx
xorl %esi, %esi
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
leal (%rbx,%rcx), %eax
decl %eax
leaq (%rsi,%rsi,2), %rsi
movq 0x28(%rsp), %rdi
leaq (%rax,%rax,2), %rax
movl 0x8(%rdx,%rsi,4), %r8d
movl %r8d, 0x8(%rdi,%rax,4)
movq (%rdx,%rsi,4), %rdx
movq %rdx, (%rdi,%rax,4)
movl %ecx, %esi
movq 0xe0(%rsp), %rax
movq (%rax,%r15,8), %rdx
movq 0x8(%rax,%r15,8), %rdi
subq %rdx, %rdi
sarq $0x2, %rdi
imulq %r13, %rdi
incl %ecx
cmpq %rsi, %rdi
ja 0x2c4bb
addl %ecx, %ebx
decl %ebx
jmp 0x2c514
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
movq 0x20(%rsp), %rcx
incq %rcx
cmpq 0x70(%rsp), %rcx
jne 0x2c408
movq 0x8(%rsp), %rax
incl %eax
movslq %eax, %rsi
leaq 0xb0(%rsp), %rdi
callq 0x8cac
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, %rsi
subq %rax, %rsi
sarq $0x2, %rsi
imulq %r13, %rsi
cmpq %rax, %rcx
je 0x2c5d3
movq 0x58(%r12), %rdx
movq 0xb0(%rsp), %rdi
leaq -0xc(%rax), %r8
xorl %r9d, %r9d
xorl %ecx, %ecx
testq %r9, %r9
je 0x2c596
leaq (,%r9,4), %r10
leaq (%r10,%r10,2), %r11
movl (%rax,%r11), %r10d
movl (%rdx,%r10,4), %r10d
movl (%r8,%r11), %r11d
cmpl (%rdx,%r11,4), %r10d
jg 0x2c59d
jmp 0x2c5c6
movl (%rax), %r10d
movl (%rdx,%r10,4), %r10d
cmpl %r10d, %ecx
jg 0x2c5c6
leaq (%r9,%r9,2), %r10
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 0x2c5b0
incq %r9
movl %r9d, %r10d
cmpq %r10, %rsi
ja 0x2c571
jmp 0x2c5d5
xorl %ecx, %ecx
movq 0x8(%rsp), %rax
subl %ecx, %eax
jl 0x2c6da
movq 0xb0(%rsp), %rdx
movslq %ecx, %rcx
movq %rax, %rdi
addq $0x4, %rax
andq $-0x4, %rax
movq %rdi, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq (%rdx,%rcx,4), %rcx
addq $0xc, %rcx
xorl %edx, %edx
movdqa 0xd72c(%rip), %xmm1     # 0x39d40
movdqa 0xbc74(%rip), %xmm2     # 0x38290
movdqa 0xbc7c(%rip), %xmm3     # 0x382a0
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movq %rdx, %xmm5
pshufd $0x44, %xmm5, %xmm5     # xmm5 = xmm5[0,1,0,1]
movdqa %xmm5, %xmm6
por %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %edi
notl %edi
testb $0x1, %dil
je 0x2c673
movl %esi, -0xc(%rcx,%rdx,4)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edi
testb $0x1, %dil
je 0x2c686
movl %esi, -0x8(%rcx,%rdx,4)
por %xmm1, %xmm5
pxor %xmm3, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
pxor %xmm4, %xmm5
pextrw $0x0, %xmm5, %edi
testb $0x1, %dil
je 0x2c6bf
movl %esi, -0x4(%rcx,%rdx,4)
pextrw $0x4, %xmm5, %edi
testb $0x1, %dil
je 0x2c6cd
movl %esi, (%rcx,%rdx,4)
addq $0x4, %rdx
cmpq %rdx, %rax
jne 0x2c62c
leaq 0xc8(%rsp), %rdi
leaq 0x44(%rsp), %rdx
callq 0x8c20
movq 0x28(%rsp), %r15
movq 0x30(%rsp), %r14
subq %r15, %r14
sarq $0x2, %r14
imulq %r13, %r14
cmpq $0x2, %r14
jb 0x2c835
movq 0x58(%r12), %rax
xorl %esi, %esi
movl $0x1, %ecx
movl $0x1, %edi
movq 0xc8(%rsp), %rdx
movl %esi, %r8d
leaq (%r8,%r8,2), %r8
movl 0x4(%r15,%r8,4), %r9d
subl (%r15,%r8,4), %r9d
leaq (%rdi,%rdi,2), %r10
movl 0x4(%r15,%r10,4), %r11d
subl (%r15,%r10,4), %r11d
movl %ecx, %ebx
cmpl %r11d, %r9d
ja 0x2c7ab
leaq (%r15,%r8,4), %r8
movq (%r8), %r9
movq %r9, %r8
shrq $0x20, %r8
cmpl %r9d, %r8d
jne 0x2c766
movl $0x1, (%rdx,%rdi,4)
movl %esi, %ebx
jmp 0x2c7ab
leaq (%r15,%r10,4), %r10
movq (%r10), %r10
movl %r9d, %r11d
movl (%rax,%r11,4), %r11d
movl %r10d, %r13d
movl %ecx, %ebx
cmpl (%rax,%r13,4), %r11d
jne 0x2c7ab
subl %r9d, %r8d
movl $0x1, %ebx
movq %rbx, %r11
cmpq %rbx, %r8
je 0x2c7a4
leal (%r9,%r11), %ebx
movl (%rax,%rbx,4), %ebp
leal (%r10,%r11), %r13d
leaq 0x1(%r11), %rbx
cmpl (%rax,%r13,4), %ebp
je 0x2c787
movl %ecx, %ebx
cmpq %r8, %r11
jae 0x2c75b
incl %ecx
movq %rcx, %rdi
movl %ebx, %esi
cmpq %rcx, %r14
ja 0x2c724
cmpq $0x2, %r14
jb 0x2c835
movq 0xc8(%rsp), %rbx
leal -0x1(%r14), %eax
movl %eax, 0x8(%rsp)
movl $0x2, %r13d
leal -0x2(%r13), %ebp
cmpl $0x0, (%rbx,%rbp,4)
jne 0x2c82a
leal -0x1(%r13), %edx
leaq (,%rbp,2), %rax
addq %rbp, %rax
movq (%r15,%rax,4), %r8
movl 0x8(%r15,%rax,4), %r9d
subq $0x8, %rsp
movq %r12, %rdi
leaq 0x30(%rsp), %rsi
movl 0x10(%rsp), %ecx
leaq 0xb8(%rsp), %rax
pushq %rax
xorl %eax, %eax
pushq %rax
pushq %rax
callq 0x2a6a8
addq $0x20, %rsp
testb %al, %al
je 0x2c82a
movl $0x1, (%rbx,%rbp,4)
movl %r13d, %eax
incl %r13d
cmpq %rax, %r14
ja 0x2c7d7
pxor %xmm0, %xmm0
movq 0x48(%rsp), %r13
movdqu %xmm0, 0x20(%r13)
movdqu %xmm0, 0x10(%r13)
movdqu %xmm0, (%r13)
movq 0x50(%rsp), %r15
movq 0x8(%r15), %rax
subq (%r15), %rax
sarq $0x2, %rax
movq 0x10(%rsp), %rdx
movq 0x8(%rdx), %rcx
subq (%rdx), %rcx
sarq $0x2, %rcx
addq %rax, %rcx
je 0x2c924
leaq 0x18(%r13), %r14
movl $0x1, %ebx
xorl %eax, %eax
leaq 0x44(%rsp), %r12
movq 0xc8(%rsp), %rcx
cmpl $0x0, (%rcx,%rax,4)
je 0x2c8f9
movq 0x28(%rsp), %rcx
leaq (%rax,%rax,2), %rax
movl 0x8(%rcx,%rax,4), %ecx
movl %ecx, %eax
shrl %eax
testb $0x1, %cl
jne 0x2c8c7
movl %eax, 0x44(%rsp)
movq 0x8(%r13), %rsi
cmpq 0x10(%r13), %rsi
je 0x2c8e1
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r13)
jmp 0x2c8f9
movl %eax, 0x44(%rsp)
movq 0x20(%r13), %rsi
cmpq 0x28(%r13), %rsi
je 0x2c8ee
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%r13)
jmp 0x2c8f9
movq %r13, %rdi
movq %r12, %rdx
callq 0x1ffb8
jmp 0x2c8f9
movq %r14, %rdi
movq %r12, %rdx
callq 0x1ffb8
movl %ebx, %eax
movq 0x8(%r15), %rcx
subq (%r15), %rcx
sarq $0x2, %rcx
movq 0x10(%rsp), %rsi
movq 0x8(%rsi), %rdx
subq (%rsi), %rdx
sarq $0x2, %rdx
addq %rcx, %rdx
incl %ebx
cmpq %rax, %rdx
ja 0x2c889
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x2c941
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0xe0(%rsp), %rdi
callq 0x2df5e
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x2c96b
movq 0xa8(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x78(%rsp), %rdi
callq 0x8f5e
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x2c992
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2c9a9
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %r13, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2c9fd
jmp 0x2c9fd
jmp 0x2ca25
jmp 0x2ca0f
jmp 0x2ca53
jmp 0x2c9cd
movq %rax, %r14
movq 0x48(%rsp), %rdi
callq 0x1f0aa
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x2ca00
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0x2ca00
jmp 0x2ca16
jmp 0x2ca16
movq %rax, %r14
leaq 0xe0(%rsp), %rdi
callq 0x2df5e
jmp 0x2ca28
movq %rax, %r14
jmp 0x2ca45
jmp 0x2ca16
movq %rax, %r14
movq 0x48(%rsp), %rdi
callq 0x1f0aa
jmp 0x2ca56
movq %rax, %r14
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x2ca45
movq 0xa8(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x78(%rsp), %rdi
callq 0x8f5e
jmp 0x2ca56
jmp 0x2ca53
movq %rax, %r14
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x2ca73
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2ca8a
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %r14, %rdi
callq 0x34a0