// File: /workspace/github_cpp_makefile_star2_O2/richardposner[P]BioNetFit2/src/code/Swarm.cpp
// Function: Swarm::generateTopology(unsigned int)
vector<vector<unsigned int> > Swarm::generateTopology(unsigned int populationSize) {
	Timer tmr;

	vector<vector<unsigned int> > allParticles (populationSize + 1);

	if (options.fitType == "pso" || options.fitType == "de") {

		if (options.verbosity >= 3) {
			cout << "Generating initial particles with a " << options.topology << " topology" << endl;
		}

		if (options.topology == "fullyconnected") {
			for (unsigned int p = 1; p <= populationSize; ++p) {
				vector<unsigned int> connections;
				for (unsigned int c = 1; c <= populationSize; ++c) {
					if (c != p) {
						connections.push_back(c);
					}
				}
				allParticles[p] = connections;
			}
		}
		else if (options.topology == "ring") {

			// Connect the first particle manually
			unsigned int firstConnection[] = {2, populationSize};
			allParticles[1] = vector<unsigned int> (firstConnection, firstConnection + sizeof(firstConnection) / sizeof(firstConnection[0]));

			vector<unsigned int> connections;
			for (unsigned int p = 2; p <= populationSize - 1; ++p) {

				connections.clear();
				// Connect to particle before, and particle after
				connections.push_back(p-1);
				connections.push_back(p+1);
				allParticles[p] = connections;

			}

			// Connect the last particle manually
			unsigned int lastConnection[] = {populationSize - 1, 1};
			allParticles[populationSize] = vector<unsigned int> (lastConnection, lastConnection + sizeof(lastConnection) / sizeof(lastConnection[0]));
		}
		else if (options.topology == "star") {
			vector<unsigned int> connections;

			// First connect the central particle to all others
			for (unsigned int c = 2; c <= populationSize; ++c) {
				connections.push_back(c);
			}
			allParticles[1] = connections;

			// Then connect all particles to the central particles
			for (unsigned int p = 2; p <= populationSize; ++p) {
				connections.clear();
				connections.push_back(1);
				allParticles[p] = connections;
			}
		}
		else if (options.topology == "mesh") {

			unsigned int desiredArea = populationSize;
			unsigned int divisor = ceil(sqrt(desiredArea));
			if (divisor != 0) {
			  while(desiredArea % divisor != 0) {
				  ++divisor;
			  }
			}
			unsigned int length = divisor;
			unsigned int width = desiredArea / divisor;

			// Construct a matrix of dimension length x width
			// and fill it with particles
			int p = 0;
			vector<vector<unsigned int> > matrix(length, vector<unsigned int>(width));
			for (unsigned int x = 0; x < length; ++x) {
				for (unsigned int y = 0; y < width; ++y) {
					matrix[x][y] = ++p;
				}
			}

			// Make our connections
			vector<unsigned int> connections;
			for (unsigned int x = 0; x < length; ++x) {
				for (unsigned int y = 0; y < width; ++y) {
					connections.clear();
					p = matrix[x][y];

					// If we're on the left bound
					if (x == 0) {
						// Add the particle to the right of us
						connections.push_back(matrix[x+1][y]);
					}
					// If we're on the right bound
					else if (x == length - 1) {
						// Add the particle to the left of us
						connections.push_back(matrix[x-1][y]);
					}
					// If we're in a center
					else {
						// Add the particles on either side of us
						connections.push_back(matrix[x-1][y]);
						connections.push_back(matrix[x+1][y]);
					}

					if (y == 0) {
						connections.push_back(matrix[x][y+1]);
					}
					else if (y == width - 1) {
						connections.push_back(matrix[x][y-1]);
					}
					else {
						connections.push_back(matrix[x][y-1]);
						connections.push_back(matrix[x][y+1]);
					}
					allParticles[p] = connections;
				}
			}
		}
		else if (options.topology == "toroidal") {
			unsigned int desiredArea = populationSize;
			unsigned int divisor = ceil(sqrt(desiredArea));
			if (divisor != 0) {
			  while(desiredArea % divisor != 0) {
				  ++divisor;
			  }
			}
			unsigned int length = divisor;
			unsigned int width = desiredArea / divisor;

			// Construct a matrix of dimensions length x width
			// and fill it with particles
			unsigned int p = 0;
			vector<vector<unsigned int> > matrix(length, vector<unsigned int>(width));
			for (unsigned int x = 0; x < length; ++x) {
				for (unsigned int y = 0; y < width; ++y) {
					matrix[x][y] = ++p;
				}
			}

			// Make our connections
			vector<unsigned int> connections;
			for (unsigned int x = 0; x < length; ++x) {
				for (unsigned int y = 0; y < width; ++y) {
					connections.clear();
					p = matrix[x][y];

					if (x == 0) {
						connections.push_back(matrix[x+1][y]);
						connections.push_back(matrix[length-1][y]);
					}
					else if (x == (length - 1)) {
						connections.push_back(matrix[x-1][y]);
						connections.push_back(matrix[0][y]);
					}
					else {
						connections.push_back(matrix[x-1][y]);
						connections.push_back(matrix[x+1][y]);
					}

					if (y == 0) {
						connections.push_back(matrix[x][y+1]);
						connections.push_back(matrix[x][width-1]);
					}
					else if (y == (width - 1)) {
						connections.push_back(matrix[x][y-1]);
						connections.push_back(matrix[x][0]);
					}
					else {
						connections.push_back(matrix[x][y-1]);
						connections.push_back(matrix[x][y+1]);
					}
					allParticles[p] = connections;
				}
			}
		}
		else if (options.topology == "tree") {
			unsigned int usedParticles = 1;
			unsigned int numLevels = 1;
			unsigned int previousLevel = 1;
			unsigned int currentLevel;

			// Determine number of levels in tree
			while (usedParticles < populationSize) {
				currentLevel = previousLevel*2;
				usedParticles += currentLevel;
				previousLevel = currentLevel;
				++numLevels;
			}

			vector<vector<unsigned int> > tree(numLevels, vector<unsigned int>());
			usedParticles = 1;
			currentLevel = 1;
			unsigned int currentParticle = 2;
			bool doneFilling = false;

			// Construct tree and fill it with particles
			tree[0].push_back(1);

			// For each level in tree
			for (unsigned int level = 1; level <= numLevels; ++level) {
				// Current level's particle count is double that of previous level
				currentLevel = currentLevel * 2;

				// For each slot in current level
				for (unsigned int i = 0; i < currentLevel; ++i) {
					// Fill slot with particle
					tree[level].push_back(currentParticle);
					++currentParticle;

					// Make sure we're not filling past our swarm size
					if (currentParticle == populationSize + 1) {
						doneFilling = true;
						break;
					}
				}
				if (doneFilling) {
					break;
				}
			}

			// For each level in tree
			for (unsigned int level = 1; level < numLevels; ++level) {
				int prevGroupCounter = 0;
				int particleCounter = 0;

				// For each particle in level
				for (unsigned int p = 0; p < tree[level].size(); ++p) {

					// Connect current particle (p) with proper particle in last level
					allParticles[tree[level][p]].push_back(tree[level-1][prevGroupCounter]);

					// Connect particle in last level to current particle (p)
					allParticles[tree[level-1][prevGroupCounter]].push_back(tree[level][p]);

					// If our particle counter reaches two, we're in a new pair in (or new particle
					// in previous level)
					if (++particleCounter == 2) {
						particleCounter = 0;
						++prevGroupCounter;
					}
				}
			}
		}
		else {
			outputError("Error: BioNetFit did not recognize your specified topology of: " + options.topology);
		}
	}

	/*
	int p = 0;
	for (auto o = allParticles.begin(); o != allParticles.end(); ++o) {
		cout << p << " is connected to:" << endl;
		for (auto i = (*o).begin(); i != (*o).end(); ++i) {
			cout << *i << endl;
		}
		++p;
	}
	 */

	double t = tmr.elapsed();
	if (options.verbosity >= 3) {
		cout << "Particle creation took " << t << " seconds" << endl;
	}

	return allParticles;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
callq 0x280b0
movq %rax, 0xa0(%rsp)
leal 0x1(%r15), %esi
movq %rsp, %rdx
movq %rbx, 0x40(%rsp)
movq %rbx, %rdi
callq 0x862f0
movq %r14, 0x88(%rsp)
leaq 0x14e0(%r14), %r12
leaq 0x69b9b(%rip), %rsi     # 0xdd0d2
movq %r12, %rdi
callq 0x3357b
testb %al, %al
jne 0x7355a
leaq 0x98f11(%rip), %rsi     # 0x10c45b
movq %r12, %rdi
callq 0x3357b
testb %al, %al
je 0x73e16
movq 0x88(%rsp), %r14
cmpl $0x3, 0x1614(%r14)
jb 0x735a5
movq 0xf2a25(%rip), %rdi     # 0x165f98
leaq 0x69a0e(%rip), %rsi     # 0xdcf88
callq 0x289f0
leaq 0x16b8(%r14), %rsi
movq %rax, %rdi
callq 0x28910
leaq 0x6b48a(%rip), %rsi     # 0xdea1f
movq %rax, %rdi
callq 0x289f0
movq %rax, %rdi
callq 0x284a0
leaq 0x16b8(%r14), %r12
leaq 0x68fbb(%rip), %rsi     # 0xdc56e
movq %r12, %rdi
callq 0x3357b
testb %al, %al
je 0x7362a
pushq $0x1
popq %rbx
movq %rsp, %r12
leaq 0x20(%rsp), %r13
movl %ebx, %ebp
cmpl %r15d, %ebp
ja 0x73e16
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movl %ebx, %eax
movl %eax, 0x20(%rsp)
cmpl %r15d, %eax
ja 0x73608
cmpl %ebp, %eax
movl %ebp, %eax
je 0x73604
movq %r12, %rdi
movq %r13, %rsi
callq 0x5a59e
movl 0x20(%rsp), %eax
incl %eax
jmp 0x735e6
movl %ebp, %eax
imulq $0x18, %rax, %rdi
movq 0x40(%rsp), %rax
addq (%rax), %rdi
movq %r12, %rsi
callq 0x86342
movq %r12, %rdi
callq 0x5b268
incl %ebp
jmp 0x735cc
leaq 0x9a18a(%rip), %rsi     # 0x10d7bb
movq %r12, %rdi
callq 0x3357b
movl %r15d, %ebx
testb %al, %al
je 0x736fb
leaq 0x68(%rsp), %rdx
movl $0x2, -0x8(%rdx)
movl %r15d, -0x4(%rdx)
movq %rsp, %rdi
leaq 0x60(%rsp), %rsi
leaq 0x20(%rsp), %rcx
callq 0x8640c
movq 0x40(%rsp), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movq %rsp, %r12
movq %r12, %rsi
callq 0x8f082
movq %r12, %rdi
callq 0x5b268
xorpd %xmm0, %xmm0
andq $0x0, 0x10(%r12)
movapd %xmm0, (%r12)
decl %r15d
pushq $0x2
popq %r14
leaq 0x20(%rsp), %r13
cmpl %r15d, %r14d
ja 0x7374d
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x736ba
movq %rax, 0x8(%rsp)
leal -0x1(%r14), %ebp
movl %ebp, 0x20(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x8ed06
addl $0x2, %ebp
movl %ebp, 0x20(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x8ed06
movl %r14d, %eax
imulq $0x18, %rax, %rdi
movq 0x40(%rsp), %rax
addq (%rax), %rdi
movq %r12, %rsi
callq 0x86342
movl %ebp, %r14d
jmp 0x736a1
leaq 0x698ab(%rip), %rsi     # 0xdcfad
movq %r12, %rdi
callq 0x3357b
testb %al, %al
je 0x737a5
movq %rsp, %r12
andq $0x0, 0x10(%r12)
xorpd %xmm0, %xmm0
movapd %xmm0, (%r12)
pushq $0x2
popq %rax
leaq 0x20(%rsp), %r13
movl %eax, 0x20(%rsp)
cmpl %r15d, %eax
ja 0x737eb
movq %r12, %rdi
movq %r13, %rsi
callq 0x5a59e
movl 0x20(%rsp), %eax
incl %eax
jmp 0x7372d
leaq 0x88(%rsp), %rdx
movl %r15d, -0x8(%rdx)
movl $0x1, -0x4(%rdx)
leaq 0x20(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x4f(%rsp), %rcx
callq 0x8640c
imulq $0x18, %rbx, %rdi
movq 0x40(%rsp), %rax
addq (%rax), %rdi
leaq 0x20(%rsp), %r15
movq %r15, %rsi
callq 0x8f082
movq %r15, %rdi
callq 0x5b268
movq %rsp, %rdi
callq 0x5b268
jmp 0x73e16
leaq 0x69806(%rip), %rsi     # 0xdcfb2
movq %r12, %rdi
callq 0x3357b
testb %al, %al
je 0x7384c
cvtsi2sd %rbx, %xmm0
sqrtsd %xmm0, %xmm0
callq 0x28170
cvttsd2si %xmm0, %rbx
testl %ebx, %ebx
je 0x73a19
movl %r15d, %eax
xorl %edx, %edx
divl %ebx
incl %ebx
testl %edx, %edx
jne 0x737d7
decl %ebx
jmp 0x73a1b
movq 0x40(%rsp), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movq %rsp, %rsi
callq 0x86342
pushq $0x2
popq %rbx
movq %rsp, %r12
leaq 0x20(%rsp), %r13
cmpl %r15d, %ebx
ja 0x73798
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x7381f
movq %rax, 0x8(%rsp)
movl $0x1, 0x20(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x8ed06
movl %ebx, %eax
imulq $0x18, %rax, %rdi
movq 0x40(%rsp), %rax
addq (%rax), %rdi
movq %r12, %rsi
callq 0x86342
incl %ebx
jmp 0x7380a
leaq 0x69764(%rip), %rsi     # 0xdcfb7
movq %r12, %rdi
callq 0x3357b
testb %al, %al
je 0x7388e
cvtsi2sd %rbx, %xmm0
sqrtsd %xmm0, %xmm0
callq 0x28170
cvttsd2si %xmm0, %rbx
testl %ebx, %ebx
je 0x73bda
movl %r15d, %eax
xorl %edx, %edx
divl %ebx
incl %ebx
testl %edx, %edx
jne 0x7387a
decl %ebx
jmp 0x73bdc
leaq 0x6972b(%rip), %rsi     # 0xdcfc0
movq %r12, %rdi
callq 0x3357b
testb %al, %al
je 0x73e89
pushq $0x1
popq %rax
movl %eax, %ebx
movl %eax, %ecx
cmpl %r15d, %eax
jae 0x738ba
leal (%rax,%rcx,2), %eax
addl %ecx, %ecx
incl %ebx
jmp 0x738ac
movl %ebx, %esi
xorpd %xmm0, %xmm0
leaq 0x20(%rsp), %rdx
movapd %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
movq %rsp, %rdi
leaq 0x60(%rsp), %rcx
movq %rsi, 0x50(%rsp)
callq 0x86490
leaq 0x20(%rsp), %r13
movq %r13, %rdi
callq 0x5b268
movl $0x2, (%r13)
movq (%rsp), %rdi
leaq 0x60(%rsp), %rsi
movl $0x1, (%rsi)
callq 0x8ed06
pushq $0x1
popq %rax
leaq 0x20(%rsp), %r13
movl %eax, 0x38(%rsp)
cmpl %ebx, %eax
ja 0x73961
movl %eax, %ebp
movl %eax, %eax
movl 0x38(%rsp), %edx
movl %edx, %ecx
addl %edx, %edx
movl %edx, 0x38(%rsp)
leal 0x1(,%rcx,2), %r12d
imulq $0x18, %rax, %r14
decl %r12d
je 0x7395b
movq (%rsp), %rdi
addq %r14, %rdi
movq %r13, %rsi
callq 0x5a59e
movl 0x20(%rsp), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x20(%rsp)
cmpl %r15d, %eax
jne 0x73935
jmp 0x73961
movl %ebp, %eax
incl %eax
jmp 0x73915
pushq $0x1
popq %rcx
movq 0x40(%rsp), %r15
cmpq 0x50(%rsp), %rcx
jae 0x73e0e
leaq -0x1(%rcx), %rax
xorl %esi, %esi
movq %rcx, 0x58(%rsp)
imulq $0x18, %rcx, %rcx
movq %rcx, 0x38(%rsp)
imulq $0x18, %rax, %rbp
xorl %r13d, %r13d
xorl %r12d, %r12d
movl %r12d, %r12d
movq (%rsp), %rax
movq 0x38(%rsp), %rdx
movq (%rax,%rdx), %rcx
movq 0x8(%rax,%rdx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %r12, %rdx
jbe 0x73a0c
movl (%rcx,%r12,4), %ecx
imulq $0x18, %rcx, %rdi
addq (%r15), %rdi
movl %esi, %r14d
movslq %esi, %rbx
leaq (,%rbx,4), %rsi
addq (%rax,%rbp), %rsi
callq 0x5a59e
movq (%rsp), %rax
movq (%rax,%rbp), %rcx
movl (%rcx,%rbx,4), %ecx
imulq $0x18, %rcx, %rdi
addq (%r15), %rdi
leaq (,%r12,4), %rsi
movq 0x38(%rsp), %rcx
addq (%rax,%rcx), %rsi
callq 0x5a59e
movl %r14d, %esi
addl %r13d, %esi
xorl $0x1, %r13d
incl %r12d
jmp 0x73992
movq 0x58(%rsp), %rcx
incq %rcx
jmp 0x73969
xorl %ebx, %ebx
movl %r15d, %eax
xorl %edx, %edx
divl %ebx
movl %eax, %r15d
leaq 0x20(%rsp), %rdi
leaq 0x60(%rsp), %rdx
movq %r15, %rsi
callq 0x8643e
movl %ebx, %r14d
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
leaq 0x80(%rsp), %rcx
movq %r14, %rsi
callq 0x86490
leaq 0x20(%rsp), %rdi
callq 0x5b268
xorl %eax, %eax
xorl %ecx, %ecx
cmpq %r14, %rax
je 0x73a90
imulq $0x18, %rax, %rdx
addq (%rsp), %rdx
movl %ecx, %edi
xorl %esi, %esi
cmpq %r15, %rsi
jae 0x73a89
leal (%rdi,%rsi), %r8d
incl %r8d
movq (%rdx), %r9
movl %r8d, (%r9,%rsi,4)
incq %rsi
jmp 0x73a71
incq %rax
addl %esi, %ecx
jmp 0x73a60
xorpd %xmm0, %xmm0
leaq 0x20(%rsp), %r13
andq $0x0, 0x10(%r13)
movapd %xmm0, (%r13)
decl %ebx
movq %rbx, 0x58(%rsp)
leal -0x1(%r15), %eax
xorl %ebx, %ebx
movq %r14, 0x68(%rsp)
movq %rax, 0x50(%rsp)
cmpq %r14, %rbx
je 0x73e04
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addl %ebx, %eax
leaq 0x1(%rbx), %rcx
imulq $0x18, %rbx, %r12
imulq $0x18, %rax, %rax
movq %rax, 0x38(%rsp)
movq %rcx, 0x70(%rsp)
imulq $0x18, %rcx, %rax
movq %rax, 0x78(%rsp)
xorl %ebp, %ebp
cmpq %r15, %rbp
jae 0x73bcb
movq 0x20(%rsp), %rax
cmpq %rax, 0x28(%rsp)
je 0x73b06
movq %rax, 0x28(%rsp)
movq (%rsp), %rax
movq (%rax,%r12), %rcx
movslq (%rcx,%rbp,4), %r14
testq %rbx, %rbx
je 0x73b42
leaq (,%rbp,4), %rsi
movq 0x38(%rsp), %rcx
addq (%rax,%rcx), %rsi
cmpq 0x58(%rsp), %rbx
je 0x73b51
movq %r13, %rdi
callq 0x5a59e
movq (%rsp), %rax
addq 0x78(%rsp), %rax
jmp 0x73b46
addq $0x18, %rax
leaq (,%rbp,4), %rsi
addq (%rax), %rsi
movq %r13, %rdi
callq 0x5a59e
testq %rbp, %rbp
je 0x73b7a
movq (%rsp), %rax
movq (%rax,%r12), %rax
movq 0x50(%rsp), %rcx
cmpq %rcx, %rbp
jne 0x73b88
leaq (%rax,%rcx,4), %rsi
addq $-0x4, %rsi
jmp 0x73ba7
movq (%rsp), %rax
movq (%rax,%r12), %rsi
addq $0x4, %rsi
jmp 0x73ba7
leaq (%rax,%rbp,4), %rsi
addq $-0x4, %rsi
movq %r13, %rdi
callq 0x5a59e
movq (%rsp), %rax
leal 0x1(%rbp), %esi
shlq $0x2, %rsi
addq (%rax,%r12), %rsi
movq %r13, %rdi
callq 0x5a59e
imulq $0x18, %r14, %rdi
movq 0x40(%rsp), %rax
addq (%rax), %rdi
movq %r13, %rsi
callq 0x86342
incq %rbp
jmp 0x73aec
movq 0x70(%rsp), %rbx
movq 0x68(%rsp), %r14
jmp 0x73abb
xorl %ebx, %ebx
movl %r15d, %eax
xorl %edx, %edx
divl %ebx
movl %eax, %r15d
leaq 0x20(%rsp), %rdi
leaq 0x60(%rsp), %rdx
movq %r15, %rsi
callq 0x8643e
movl %ebx, %r14d
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
leaq 0x80(%rsp), %rcx
movq %r14, %rsi
callq 0x86490
leaq 0x20(%rsp), %rdi
callq 0x5b268
xorl %eax, %eax
xorl %ecx, %ecx
cmpq %r14, %rax
je 0x73c51
imulq $0x18, %rax, %rdx
addq (%rsp), %rdx
movl %ecx, %edi
xorl %esi, %esi
cmpq %r15, %rsi
jae 0x73c4a
leal (%rdi,%rsi), %r8d
incl %r8d
movq (%rdx), %r9
movl %r8d, (%r9,%rsi,4)
incq %rsi
jmp 0x73c32
incq %rax
addl %esi, %ecx
jmp 0x73c21
xorpd %xmm0, %xmm0
leaq 0x20(%rsp), %r13
movapd %xmm0, (%r13)
andq $0x0, 0x10(%r13)
decl %ebx
leal -0x1(%r15), %eax
xorl %r12d, %r12d
movq %rbx, 0x58(%rsp)
imulq $0x18, %rbx, %rcx
movq %rcx, 0x78(%rsp)
leaq (,%rax,4), %rcx
movq %rcx, 0x70(%rsp)
movq %r14, 0x90(%rsp)
movq %rax, 0x50(%rsp)
cmpq %r14, %r12
je 0x73e04
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addl %r12d, %eax
leaq 0x1(%r12), %rcx
imulq $0x18, %r12, %rbp
imulq $0x18, %rax, %rax
movq %rax, 0x38(%rsp)
movq %rcx, 0x98(%rsp)
imulq $0x18, %rcx, %rax
movq %rax, 0x68(%rsp)
xorl %ebx, %ebx
cmpq %r15, %rbx
jae 0x73def
movq 0x20(%rsp), %rax
cmpq %rax, 0x28(%rsp)
je 0x73ce6
movq %rax, 0x28(%rsp)
movq (%rsp), %rax
movq (%rax,%rbp), %rcx
movl (%rcx,%rbx,4), %r14d
leaq (,%rbx,4), %rsi
testq %r12, %r12
je 0x73d1d
movq 0x38(%rsp), %rcx
addq (%rax,%rcx), %rsi
cmpq 0x58(%rsp), %r12
jne 0x73d34
movq %r13, %rdi
callq 0x5a59e
movq (%rsp), %rax
jmp 0x73d45
addq 0x18(%rax), %rsi
movq %r13, %rdi
callq 0x5a59e
movq (%rsp), %rax
addq 0x78(%rsp), %rax
jmp 0x73d45
movq %r13, %rdi
callq 0x5a59e
movq (%rsp), %rax
addq 0x68(%rsp), %rax
leaq (,%rbx,4), %rsi
addq (%rax), %rsi
movq %r13, %rdi
callq 0x5a59e
testq %rbx, %rbx
je 0x73d89
movq (%rsp), %rax
movq (%rax,%rbp), %rax
movq 0x50(%rsp), %rcx
cmpq %rcx, %rbx
jne 0x73dac
leaq (%rax,%rcx,4), %rsi
addq $-0x4, %rsi
movq %r13, %rdi
callq 0x5a59e
movq (%rsp), %rax
movq (%rax,%rbp), %rsi
jmp 0x73dcb
movq (%rsp), %rax
movq (%rax,%rbp), %rsi
addq $0x4, %rsi
movq %r13, %rdi
callq 0x5a59e
movq (%rsp), %rax
movq (%rax,%rbp), %rsi
addq 0x70(%rsp), %rsi
jmp 0x73dcb
leaq (%rax,%rbx,4), %rsi
addq $-0x4, %rsi
movq %r13, %rdi
callq 0x5a59e
movq (%rsp), %rax
leal 0x1(%rbx), %esi
shlq $0x2, %rsi
addq (%rax,%rbp), %rsi
movq %r13, %rdi
callq 0x5a59e
imulq $0x18, %r14, %rdi
movq 0x40(%rsp), %rax
addq (%rax), %rdi
movq %r13, %rsi
callq 0x86342
incq %rbx
jmp 0x73ccc
movq 0x98(%rsp), %r12
movq 0x90(%rsp), %r14
jmp 0x73c96
leaq 0x20(%rsp), %rdi
callq 0x5b268
movq %rsp, %rdi
callq 0x85c60
leaq 0xa0(%rsp), %rdi
callq 0x864e6
movsd %xmm0, 0x38(%rsp)
movq 0x88(%rsp), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x73e72
movq 0xf2157(%rip), %rdi     # 0x165f98
leaq 0x691bd(%rip), %rsi     # 0xdd005
callq 0x289f0
movq %rax, %rdi
movsd 0x38(%rsp), %xmm0
callq 0x290f0
leaq 0x691bb(%rip), %rsi     # 0xdd01d
movq %rax, %rdi
callq 0x289f0
movq %rax, %rdi
callq 0x284a0
movq 0x40(%rsp), %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x69135(%rip), %rsi     # 0xdcfc5
leaq 0xa8(%rsp), %rdi
movq %r12, %rdx
callq 0x3338b
leaq 0xa8(%rsp), %rsi
movq %r14, %rdi
callq 0x6aed2
movq %rax, %r14
leaq 0xa8(%rsp), %rdi
callq 0x295a0
jmp 0x73f1c
jmp 0x73ef3
jmp 0x73eca
jmp 0x73eca
jmp 0x73ee6
movq %rax, %r14
leaq 0x20(%rsp), %rdi
jmp 0x73f17
jmp 0x73ee6
jmp 0x73f11
jmp 0x73f11
jmp 0x73ee6
jmp 0x73ef3
jmp 0x73ee6
jmp 0x73f11
jmp 0x73f11
jmp 0x73f11
movq %rax, %r14
jmp 0x73f1c
jmp 0x73f11
jmp 0x73f11
jmp 0x73f11
jmp 0x73f11
movq %rax, %r14
jmp 0x73f07
jmp 0x73efa
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x5b268
movq %rsp, %rdi
callq 0x85c60
jmp 0x73f1c
movq %rax, %r14
movq %rsp, %rdi
callq 0x5b268
movq 0x40(%rsp), %rdi
callq 0x85c60
movq %r14, %rdi
callq 0x292f0