// File: /workspace/github_cpp_makefile_star2_O2/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 $0xd8, %rsp
movl %r8d, 0x50(%rsp)
movq %rsi, %r12
movq %rdi, 0x18(%rsp)
movq 0x8(%rdx), %rax
movq %rdx, 0x20(%rsp)
subq (%rdx), %rax
sarq $0x2, %rax
movq 0x8(%rcx), %rsi
movq %rcx, 0x30(%rsp)
subq (%rcx), %rsi
sarq $0x2, %rsi
addq %rax, %rsi
leaq 0x38(%rsp), %rdi
leaq 0x90(%rsp), %rbx
movq %rbx, %rdx
callq 0x2622c
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rbx)
movaps %xmm0, (%rbx)
incl 0x30(%r12)
leaq 0x18(%r12), %rax
movq %rax, 0x8(%rsp)
leaq 0x38(%r12), %rax
movq %rax, 0x10(%rsp)
xorl %r15d, %r15d
xorl %edx, %edx
xorl %eax, %eax
xorl %r14d, %r14d
movq %rax, (%rsp)
movl %edx, %edx
movq 0x20(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %rbp
movq %rbp, %rbx
subq %r13, %rbx
movq %rbx, %rax
sarq $0x2, %rax
cmpq %rdx, %rax
jbe 0x249d5
movq 0x68(%r12), %rax
movslq (%r13,%rdx,4), %rcx
movq (%rax), %rax
imulq $0x28, %rcx, %rcx
movq 0x8(%rax,%rcx), %rsi
subq (%rax,%rcx), %rsi
cmpq $0x4, %rsi
je 0x24c5a
shrq $0x2, %rsi
movq (%rsp), %r13
addl %r13d, %esi
movq %r12, %rdi
movq %rdx, %rbx
callq 0x237a8
movl %r13d, %ebp
leaq (,%rbp,4), %rdi
addq 0x58(%r12), %rdi
movq 0x68(%r12), %rax
movq 0x20(%rsp), %rcx
movq (%rcx), %rcx
movslq (%rcx,%rbx,4), %rcx
movq (%rax), %rax
imulq $0x28, %rcx, %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
subq %rsi, %rdx
callq 0x3250
movq 0x38(%rsp), %rcx
imulq $0xc, %rbx, %r13
leaq (%rcx,%r13), %rdx
movq (%rsp), %r9
movl %r9d, (%rcx,%r13)
movq 0x68(%r12), %rax
movq 0x20(%rsp), %rsi
movq (%rsi), %rdi
movslq (%rdi,%rbx,4), %rsi
movq (%rax), %rax
imulq $0x28, %rsi, %r8
movq 0x8(%rax,%r8), %rsi
subq (%rax,%r8), %rsi
shrq $0x2, %rsi
addl %r9d, %esi
movl %esi, 0x4(%rcx,%r13)
movq %rbx, 0x70(%rsp)
movl (%rdi,%rbx,4), %eax
addl %eax, %eax
movl %eax, 0x8(%rcx,%r13)
movq 0x58(%r12), %rax
movq %rbp, %rdi
cmpq %rsi, %rdi
jae 0x248bb
movl (%rax,%rdi,4), %r8d
movl %r8d, %r9d
sarl %r9d
incq %rdi
cmpl 0x50(%rsp), %r9d
jne 0x24886
decl %esi
movl (%rax,%rsi,4), %r9d
movl %r9d, -0x4(%rax,%rdi,4)
movl %r8d, (%rax,%rsi,4)
movl (%rdx), %ebp
movl 0x4(%rdx), %esi
movl %ebp, %edi
movq (%rsp), %r9
jmp 0x248c2
movq (%rsp), %r9
movl %r9d, %edi
leal -0x1(%rsi), %r8d
movl %r8d, 0x4(%rdx)
addl %esi, %r9d
decl %r9d
subl %edi, %r9d
movq %r9, (%rsp)
movl 0x4(%rcx,%r13), %ecx
cmpq %rcx, %rbp
jae 0x249c5
movq (%r12), %rcx
movq 0x8(%r12), %rsi
subq %rcx, %rsi
shrq $0x2, %rsi
movl (%rax,%rbp,4), %edx
cmpl %esi, %edx
jl 0x2492c
movslq %edx, %rsi
incq %rsi
movq %r12, %rdi
callq 0x68c2
movq 0x58(%r12), %rax
movslq (%rax,%rbp,4), %rsi
incq %rsi
movq 0x8(%rsp), %rdi
callq 0x68c2
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 0x2494e
movq 0x8(%rsp), %rcx
movq (%rcx), %rsi
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
movl %r14d, %ebx
jmp 0x2499d
movl %esi, (%rcx,%rdx,4)
movq 0x38(%r12), %rcx
movq 0x40(%r12), %rdx
subq %rcx, %rdx
shrq $0x2, %rdx
leal 0x1(%r14), %ebx
cmpl %edx, %r14d
jl 0x24982
movslq %ebx, %rsi
movq 0x10(%rsp), %rdi
callq 0x68c2
movq 0x38(%r12), %rcx
movq 0x58(%r12), %rax
movslq %r14d, %rdx
andl $0x0, (%rcx,%rdx,4)
movslq (%rax,%rbp,4), %rdx
movq 0x8(%rsp), %rsi
movq (%rsi), %rsi
movl %r14d, (%rsi,%rdx,4)
movslq (%rax,%rbp,4), %rdx
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, %r15d
cmovlel %ecx, %r15d
incq %rbp
movq 0x38(%rsp), %rcx
movl %ebx, %r14d
jmp 0x248d7
movq 0x70(%rsp), %rdx
incl %edx
movq (%rsp), %rax
jmp 0x24792
shrq $0x2, %rbx
movl %ebx, %ebx
movq %rbp, %rax
subq %r13, %rax
sarq $0x2, %rax
movq 0x30(%rsp), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
addq %rax, %rdx
cmpq %rbx, %rdx
jbe 0x24cc9
movq 0x68(%r12), %rdx
movq %rbx, %rsi
subq %rax, %rsi
movslq (%rcx,%rsi,4), %rax
movq (%rdx), %rcx
imulq $0x28, %rax, %rax
movq 0x8(%rcx,%rax), %rsi
subq (%rcx,%rax), %rsi
cmpq $0x4, %rsi
je 0x251da
shrq $0x2, %rsi
movq (%rsp), %r13
addl %r13d, %esi
movq %r12, %rdi
callq 0x237a8
movl %r13d, %ebp
leaq (,%rbp,4), %rdi
addq 0x58(%r12), %rdi
movq 0x68(%r12), %rax
movq 0x20(%rsp), %rdx
movq 0x8(%rdx), %rcx
subq (%rdx), %rcx
shrq $0x2, %rcx
movq %rbx, %rdx
subq %rcx, %rdx
movq 0x30(%rsp), %rcx
movq (%rcx), %rcx
movslq (%rcx,%rdx,4), %rcx
movq (%rax), %rax
imulq $0x28, %rcx, %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
subq %rsi, %rdx
callq 0x3250
movq 0x38(%rsp), %rax
imulq $0xc, %rbx, %r13
leaq (%rax,%r13), %rcx
movq (%rsp), %r10
movl %r10d, (%rax,%r13)
movq 0x68(%r12), %rdx
movq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rsi
subq (%rdi), %rsi
shrq $0x2, %rsi
movq %rbx, 0x70(%rsp)
subq %rsi, %rbx
movq 0x30(%rsp), %rsi
movq (%rsi), %rsi
movslq (%rsi,%rbx,4), %r8
movq (%rdx), %r9
imulq $0x28, %r8, %r8
movq 0x8(%r9,%r8), %rdx
subq (%r9,%r8), %rdx
shrq $0x2, %rdx
addl %r10d, %edx
movl %edx, 0x4(%rax,%r13)
movl (%rsi,%rbx,4), %esi
leal 0x1(,%rsi,2), %esi
movl %esi, 0x8(%rax,%r13)
movq 0x58(%r12), %rsi
movq %rbp, %rdi
cmpq %rdx, %rdi
jae 0x24b35
movl (%rsi,%rdi,4), %r8d
movl %r8d, %r9d
sarl %r9d
incq %rdi
cmpl 0x50(%rsp), %r9d
jne 0x24b00
decl %edx
movl (%rsi,%rdx,4), %r9d
movl %r9d, -0x4(%rsi,%rdi,4)
movl %r8d, (%rsi,%rdx,4)
movl (%rcx), %ebp
movl 0x4(%rcx), %edx
movl %ebp, %esi
movq (%rsp), %r8
jmp 0x24b3c
movq (%rsp), %r8
movl %r8d, %esi
leal -0x1(%rdx), %edi
movl %edi, 0x4(%rcx)
addl %edx, %r8d
decl %r8d
subl %esi, %r8d
movq %r8, (%rsp)
movl 0x4(%rax,%r13), %eax
cmpq %rax, %rbp
jae 0x24c42
movq (%r12), %rcx
movq 0x8(%r12), %rsi
subq %rcx, %rsi
shrq $0x2, %rsi
movq 0x58(%r12), %rax
movl (%rax,%rbp,4), %edx
cmpl %esi, %edx
jl 0x24ba9
movslq %edx, %rsi
incq %rsi
movq %r12, %rdi
callq 0x68c2
movq 0x58(%r12), %rax
movslq (%rax,%rbp,4), %rsi
incq %rsi
movq 0x8(%rsp), %rdi
callq 0x68c2
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 0x24bcb
movq 0x8(%rsp), %rcx
movq (%rcx), %rsi
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
movl %r14d, %ebx
jmp 0x24c1a
movl %esi, (%rcx,%rdx,4)
movq 0x38(%r12), %rcx
movq 0x40(%r12), %rdx
subq %rcx, %rdx
shrq $0x2, %rdx
leal 0x1(%r14), %ebx
cmpl %edx, %r14d
jl 0x24bff
movslq %ebx, %rsi
movq 0x10(%rsp), %rdi
callq 0x68c2
movq 0x38(%r12), %rcx
movq 0x58(%r12), %rax
movslq %r14d, %rdx
andl $0x0, (%rcx,%rdx,4)
movslq (%rax,%rbp,4), %rdx
movq 0x8(%rsp), %rsi
movq (%rsi), %rsi
movl %r14d, (%rsi,%rdx,4)
movslq (%rax,%rbp,4), %rdx
movslq (%rsi,%rdx,4), %rdx
movl %edx, (%rax,%rbp,4)
incl (%rcx,%rdx,4)
movslq (%rax,%rbp,4), %rax
movl (%rcx,%rax,4), %eax
cmpl %eax, %r15d
cmovlel %eax, %r15d
incq %rbp
movq 0x38(%rsp), %rax
movl %ebx, %r14d
jmp 0x24b4f
movq 0x70(%rsp), %rbx
incl %ebx
movq 0x20(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %rbp
jmp 0x249d9
xorps %xmm0, %xmm0
movq 0x18(%rsp), %r14
movups %xmm0, 0x20(%r14)
movups %xmm0, 0x10(%r14)
movups %xmm0, (%r14)
leaq 0x58(%rsp), %rbx
cmpq %rbp, %r13
je 0x24c93
movl (%r13), %eax
movl %eax, 0x58(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x68a4
addq $0x4, %r13
jmp 0x24c75
movq 0x30(%rsp), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
leaq 0x18(%r14), %rbx
leaq 0x58(%rsp), %r14
cmpq %r12, %r15
je 0x251ac
movl (%r15), %eax
movl %eax, 0x58(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x68a4
addq $0x4, %r15
jmp 0x24ca8
leal 0x1(%r15), %esi
leaq 0x58(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x19232
xorl %eax, %eax
leaq 0x78(%rsp), %rbx
movl %eax, 0x78(%rsp)
cmpl %r14d, %eax
jge 0x24d13
cltq
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
movslq (%rcx,%rax,4), %rax
imulq $0x18, %rax, %rdi
addq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0x68a4
movl 0x78(%rsp), %eax
incl %eax
jmp 0x24ce3
movslq %r14d, %rbx
leaq 0x78(%rsp), %rdi
leaq 0xc0(%rsp), %rdx
movq %rbx, %rsi
callq 0x2627e
movq 0x58(%rsp), %rax
movl %r15d, %ecx
xorl %edx, %edx
xorl %esi, %esi
cmpq %rcx, %rdx
ja 0x24d67
imulq $0x18, %rdx, %r8
movq (%rax,%r8), %rdi
movq 0x8(%rax,%r8), %r8
movq 0x78(%rsp), %r9
cmpq %r8, %rdi
je 0x24d62
movslq (%rdi), %r10
movl %esi, (%r9,%r10,4)
incl %esi
addq $0x4, %rdi
jmp 0x24d4e
incq %rdx
jmp 0x24d37
movq %rbx, (%rsp)
xorl %ebx, %ebx
pushq $0xc
popq %r13
movl %ebx, %ebx
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
subq %rcx, %rax
cqto
idivq %r13
cmpq %rbx, %rax
jbe 0x24dcf
imulq $0xc, %rbx, %rdx
leaq (%rcx,%rdx), %rax
movl (%rcx,%rdx), %ecx
movq 0x58(%r12), %rdx
movq 0x78(%rsp), %rsi
movl 0x4(%rax), %r8d
cmpq %r8, %rcx
jae 0x24db7
movslq (%rdx,%rcx,4), %rdi
movl (%rsi,%rdi,4), %edi
movl %edi, (%rdx,%rcx,4)
incq %rcx
jmp 0x24d9f
movq 0x58(%r12), %rcx
movl (%rax), %eax
leaq (%rcx,%rax,4), %rdi
leaq (%rcx,%r8,4), %rsi
callq 0x2659f
incl %ebx
jmp 0x24d71
leaq 0xc0(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
movq (%rsp), %rsi
callq 0x262d0
xorl %ebx, %ebx
movl %ebx, %ebx
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
subq %rcx, %rax
cqto
idivq %r13
cmpq %rbx, %rax
jbe 0x24e2c
movq 0x58(%r12), %rax
imulq $0xc, %rbx, %rdx
leaq (%rcx,%rdx), %rsi
movl (%rcx,%rdx), %ecx
movslq (%rax,%rcx,4), %rax
imulq $0x18, %rax, %rdi
addq 0xc0(%rsp), %rdi
callq 0x26322
incl %ebx
jmp 0x24dea
xorl %edx, %edx
testl %r14d, %r14d
movl $0x0, %eax
cmovgl %r14d, %eax
movq %rax, 0x50(%rsp)
xorl %r15d, %r15d
cmpq 0x50(%rsp), %rdx
je 0x24f3f
movq 0xc0(%rsp), %rax
movq %rdx, 0x8(%rsp)
imulq $0x18, %rdx, %rbp
movq (%rax,%rbp), %rdi
movq 0x8(%rax,%rbp), %r13
cmpq %r13, %rdi
je 0x24ee0
movq %r13, %rbx
subq %rdi, %rbx
movq %rbx, %rax
cqto
pushq $0xc
popq %rcx
idivq %rcx
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rdi, 0x10(%rsp)
movq %r13, %rsi
movq %r12, %rcx
callq 0x25c8d
cmpq $0xc1, %rbx
jl 0x24ed0
movq 0x10(%rsp), %rdi
leaq 0xc0(%rdi), %rbx
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2612b
cmpq %r13, %rbx
je 0x24ee0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x261dc
addq $0xc, %rbx
jmp 0x24eba
movq 0x10(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x2612b
xorl %esi, %esi
pushq $0xc
popq %r13
movl %esi, %ecx
movq 0xc0(%rsp), %rax
movq (%rax,%rbp), %rdi
movq 0x8(%rax,%rbp), %rax
subq %rdi, %rax
cqto
idivq %r13
cmpq %rcx, %rax
jbe 0x24f2f
addl %r15d, %esi
imulq $0xc, %rcx, %rax
movl %esi, %edx
movq 0x38(%rsp), %rsi
imulq $0xc, %rdx, %rdx
movl 0x8(%rdi,%rax), %r8d
movl %r8d, 0x8(%rsi,%rdx)
movq (%rdi,%rax), %rax
movq %rax, (%rsi,%rdx)
leal 0x1(%rcx), %esi
jmp 0x24ee6
movq 0x8(%rsp), %rdx
incq %rdx
addl %ecx, %r15d
jmp 0x24e42
incl %r14d
movslq %r14d, %rsi
leaq 0x90(%rsp), %rdi
callq 0x68c2
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
subq %rcx, %rax
cqto
idivq %r13
movq 0x58(%r12), %rsi
xorl %edx, %edx
xorl %edi, %edi
movq (%rsp), %r11
movl %edi, %r8d
cmpq %r8, %rax
jbe 0x24fc6
testl %edi, %edi
je 0x24f9b
imulq $0xc, %r8, %r9
movl (%rcx,%r9), %r9d
movl (%rsi,%r9,4), %r9d
leal -0x1(%rdi), %r10d
imulq $0xc, %r10, %r10
movl (%rcx,%r10), %r10d
cmpl (%rsi,%r10,4), %r9d
jle 0x24fc2
imulq $0xc, %r8, %r8
addq %rcx, %r8
movq 0x90(%rsp), %r9
movslq %edx, %rdx
movl (%r8), %r10d
movslq (%rsi,%r10,4), %r10
cmpq %r10, %rdx
jg 0x24fc2
movl %edi, (%r9,%rdx,4)
incq %rdx
jmp 0x24fad
incl %edi
jmp 0x24f71
movslq %edx, %rcx
movq 0x90(%rsp), %rdx
cmpq %r11, %rcx
jg 0x24fde
movl %eax, (%rdx,%rcx,4)
incq %rcx
jmp 0x24fd1
leaq 0xa8(%rsp), %rdi
leaq 0x2c(%rsp), %rdx
movq %rax, %rsi
callq 0x6852
movq 0x38(%rsp), %r14
movq 0x40(%rsp), %rax
subq %r14, %rax
cqto
idivq %r13
movq %rax, %rbx
pushq $0x1
popq %rbp
xorl %r13d, %r13d
movq 0xa8(%rsp), %rax
movq %rax, 0x8(%rsp)
movl %ebp, %r15d
cmpq %r15, %rbx
jbe 0x25077
movl %r13d, %eax
imulq $0xc, %rax, %rax
movl 0x4(%r14,%rax), %esi
subl (%r14,%rax), %esi
imulq $0xc, %r15, %rcx
movl 0x4(%r14,%rcx), %edi
subl (%r14,%rcx), %edi
movl %ebp, %edx
cmpl %edi, %esi
ja 0x25070
addq %r14, %rax
addq %r14, %rcx
movq (%rax), %rsi
movq (%rcx), %rcx
movq %r12, %rdi
callq 0x23812
movl %ebp, %edx
testb %al, %al
je 0x25070
movq 0x8(%rsp), %rax
movl $0x1, (%rax,%r15,4)
movl %r13d, %edx
incl %ebp
movl %edx, %r13d
jmp 0x2501b
movq 0xa8(%rsp), %r15
leal -0x1(%rbx), %eax
movl %eax, 0x8(%rsp)
xorl %ecx, %ecx
leal 0x1(%rcx), %r13d
cmpq %r13, %rbx
jbe 0x250e7
movl %ecx, %ebp
cmpl $0x0, (%r15,%rbp,4)
movl %r13d, %ecx
jne 0x25088
imulq $0xc, %rbp, %rax
movq (%r14,%rax), %r8
movl 0x8(%r14,%rax), %r9d
subq $0x8, %rsp
movq %r12, %rdi
leaq 0x40(%rsp), %rsi
movl %r13d, %edx
movl 0x10(%rsp), %ecx
leaq 0x98(%rsp), %rax
pushq %rax
pushq $0x0
pushq $0x0
callq 0x23848
addq $0x20, %rsp
movl %r13d, %ecx
testb %al, %al
je 0x25088
movl $0x1, (%r15,%rbp,4)
movl %r13d, %ecx
jmp 0x25088
xorps %xmm0, %xmm0
movq 0x18(%rsp), %r15
movups %xmm0, 0x20(%r15)
movups %xmm0, 0x10(%r15)
movups %xmm0, (%r15)
leaq 0x18(%r15), %rbx
xorl %r14d, %r14d
leaq 0x2c(%rsp), %r12
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
movl %r14d, %r14d
movq 0x30(%rsp), %rdx
movq 0x8(%rdx), %rcx
subq (%rdx), %rcx
sarq $0x2, %rax
sarq $0x2, %rcx
addq %rax, %rcx
cmpq %r14, %rcx
jbe 0x2517e
movq 0xa8(%rsp), %rax
cmpl $0x0, (%rax,%r14,4)
je 0x25179
movq 0x38(%rsp), %rax
imulq $0xc, %r14, %rcx
movl 0x8(%rax,%rcx), %ecx
movl %ecx, %eax
shrl %eax
testb $0x1, %cl
jne 0x2516a
movl %eax, 0x2c(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x19ed4
jmp 0x25179
movl %eax, 0x2c(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x19ed4
incl %r14d
jmp 0x25109
leaq 0xa8(%rsp), %rdi
callq 0x7512
leaq 0xc0(%rsp), %rdi
callq 0x26346
leaq 0x78(%rsp), %rdi
callq 0x264c8
leaq 0x58(%rsp), %rdi
callq 0x6aa2
leaq 0x90(%rsp), %rdi
callq 0x7512
leaq 0x38(%rsp), %rdi
callq 0x2639a
movq 0x18(%rsp), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorps %xmm0, %xmm0
movq 0x18(%rsp), %r14
movups %xmm0, 0x20(%r14)
movups %xmm0, 0x10(%r14)
movups %xmm0, (%r14)
leaq 0x58(%rsp), %rbx
cmpq %rbp, %r13
je 0x25213
movl (%r13), %eax
movl %eax, 0x58(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x68a4
addq $0x4, %r13
jmp 0x251f5
movq 0x30(%rsp), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
leaq 0x18(%r14), %rbx
leaq 0x58(%rsp), %r14
cmpq %r12, %r15
je 0x251ac
movl (%r15), %eax
movl %eax, 0x58(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x68a4
addq $0x4, %r15
jmp 0x25228
jmp 0x25275
jmp 0x25275
jmp 0x25287
jmp 0x25296
jmp 0x252b8
jmp 0x25255
movq %rax, %rbx
movq 0x18(%rsp), %rdi
callq 0x18fc2
leaq 0xa8(%rsp), %rdi
callq 0x7512
jmp 0x25278
jmp 0x252a7
jmp 0x252a7
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x26346
jmp 0x2528a
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x264c8
jmp 0x25299
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x6aa2
jmp 0x252bb
jmp 0x252a7
movq %rax, %rbx
movq 0x18(%rsp), %rdi
callq 0x18fc2
jmp 0x252bb
jmp 0x252b8
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x7512
leaq 0x38(%rsp), %rdi
callq 0x2639a
movq %rbx, %rdi
callq 0x3490