// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: init_species()
void init_species()
{
	init_human_sp();
	noise wn[TERRAIN_TYPES] = {{1.0,"footsteps",false},{1.5,"footsteps",false},{1.5f,"footsteps",false},{2.0,"footsteps",false},{0.0,"",false},
	{2.3f,"footsteps",false},{0.0,"",false},{0.0,"",false},{0.0,"",false},{0.0,"",false},{0.0,"",false},{0.0,"",false}};
	walk_noise[0] = std::vector<noise>(wn,wn+TERRAIN_TYPES);
	//delete [] wn;
	noise rn[TERRAIN_TYPES] = {{2.0,"footsteps",false},{3.0,"footsteps",false},{3.5f,"footsteps",false},{3.0,"footsteps",false},{0.0,"",false},
	{3.3f,"footsteps",false},{0.0,"",false},{0.0,"",false},{0.0,"",false},{0.0,"",false},{0.0,"",false},{0.0,"",false}};
	run_noise[0] = std::vector<noise>(rn,rn+TERRAIN_TYPES);
	//delete [] rn;
	for (int spsp=1; spsp<ZOO_SIZE+1; spsp++)
	{
		species* alien = new species();
		alien->damage_known = false;
		alien->health_known = false;
		alien->size_known = false;
		alien->walk_known = false;
		alien->run_known = false;
		alien->id = spsp;
		alien->crit_known = false;
		alien->body_sections_tried = 0;
		int size = rand()%3;
		if(spsp == ZOO_SIZE) size = 2;
		else if(spsp==ZOO_SIZE - 1) size = 1;
		else if(spsp==ZOO_SIZE - 2) size = 0;
		alien->syl1 = random_syllable();
		while(true)
		{
			bool ok_name = true;
			for (int spspsp = 1; spspsp < spsp; spspsp++)
			{
				if(zoo[spspsp]->ch == alien->syl1[0])
				{
					ok_name = false;
					alien->syl1 = random_syllable();
				}
			}
			if(ok_name) break;
		}
		alien->syl2 = random_syllable();
		alien->name = alien->syl1+"-"+alien->syl2;
		alien->ch = alien->name[0];
		/*alien->colour = rand()%6+1;
		while(alien->colour == COLOR_GREEN)
		{
			alien->colour = rand()%6+1;
		}*/
		if(size == 0) alien->colour = COLOR_MAGENTA;
		if(size == 1) alien->colour = COLOR_CYAN;
		if(size == 2) alien->colour = COLOR_YELLOW;

		alien->size = size;
		std::string walk_str;
		std::string run_str;
		float extra_noise;
		alien->crit_part_name = random_syllable();
		switch(size)
		{
		case 0:
			alien->description = "A small alien.";
			alien->damage = rand()%2+2;
			alien->min_health = 4+rand()%4;
			alien->health_range = rand()%2+1;
			alien->body_sections = 3+rand()%4;

			if(rand()%12<1+difficulty/3)
			{ alien->psychic_range = rand()%20+10; }
			else
			{
				alien->psychic_range = 0;
			}

			switch(rand()%7)
			{
			case 0:
				alien->vis_range = rand()%6+6; break;
			case 1: case 2: case 3:
				alien->vis_range = rand()%4+4; break;
			case 4: case 5: case 6:
				alien->vis_range = rand()%3+3; break;
			}

			if(rand()%7 < 2){
				alien->hearing_thres = 1.0f+((float)(rand()%10))/3;
				alien->hearing_adapt = 0.3f;
			}
			else
			{
				alien->hearing_thres = -4.0f+(float)(rand()%300)*0.01f;
				alien->hearing_adapt = 1.5f;
			}

			switch(rand()%7)
			{
			case 0: case 1:
				alien->smell_clarity = (float)(rand()%4) +8.0f; break;
			case 2: case 3: case 4:
				alien->smell_clarity = randfloat()+1.0f; break;
			case 5: case 6:
				alien->smell_clarity = 0.1f*(randfloat()+1.0f); break;
			}

			alien->walk_energy = rand()%7+9;
			alien->run_energy = (3*alien->walk_energy)/2 + rand()%3;
			alien->stamina = 5*((rand()%4+6)*alien->run_energy + rand()%(2*alien->run_energy));

			switch(rand()%3)
			{
			case 0:
				walk_str = "scuttling"; break;
			case 1:
				walk_str = "scampering"; break;
			case 2:
				walk_str = "pattering"; break;
			}
			switch(rand()%3)
			{
			case 0:
				run_str = "scuttling"; break;
			case 1:
				run_str = "scampering"; break;
			case 2:
				run_str = "fluttering";
			}
			extra_noise = 7.0f;
			walk_noise[spsp] = std::vector<noise>(wn,wn+TERRAIN_TYPES);
			run_noise[spsp] = std::vector<noise>(rn,rn+TERRAIN_TYPES);
			for(int i=0;i<TERRAIN_TYPES;i++)
			{
				walk_noise[spsp][i].describe = walk_str;
				walk_noise[spsp][i].volume +=extra_noise;
				run_noise[spsp][i].describe = run_str;
				run_noise[spsp][i].volume +=extra_noise*1.6f;
			}
			break;
		case 1:
			alien->description = "A medium-sized alien.";
			alien->damage = rand()%6+4;
			alien->min_health = 10+rand()%6;
			alien->health_range = rand()%4+4;
			alien->body_sections = 6+rand()%8;

			if(rand()%12<2+(difficulty-3)/3)
			{ alien->psychic_range = rand()%30+20; }
			else
			{
				alien->psychic_range = 0;
			}

			switch(rand()%7)
			{
			case 0: case 1: case 2:
				alien->vis_range = rand()%6+6; break;
			case 3: case 4: case 5:
				alien->vis_range = rand()%4+4; break;
			case 6:
				alien->vis_range = rand()%2+2; break;
			}

			if(rand()%7 < 3)
			{
				alien->hearing_thres = 2.0f+0.05f*(rand()%20);
				alien->hearing_adapt = 0.25f;
			}
			else
			{
				alien->hearing_thres = -2.0f+0.1f*(rand()%10);
				alien->hearing_adapt = 0.7f;
			}

			switch(rand()%7)
			{
			case 0: case 1: case 2:
				alien->smell_clarity = (float)(rand()%4) +8.0f; break;
			case 3: case 4:
				alien->smell_clarity = randfloat()+1.0f; break;
			case 5: case 6:
				alien->smell_clarity = 0.1f*(randfloat()+1.0f); break;
			}

			alien->walk_energy = rand()%4+8;
			alien->run_energy = ((rand()%10+5)*alien->walk_energy)/5 + rand()%4;
			alien->stamina = 4*((rand()%5+7)*alien->run_energy + rand()%(2*alien->run_energy));
						walk_noise[spsp] = std::vector<noise>(wn,wn+TERRAIN_TYPES);

			switch(rand()%3)
			{
			case 0:
				walk_str = "footsteps"; break;
			case 1:
				walk_str = "cantering"; break;
			case 2:
				walk_str = "trotting"; break;
			}
			switch(rand()%2)
			{
			case 0:
				run_str = "galloping"; break;
			case 1: 
				run_str = "running"; break;
			}
			extra_noise = 9.0f;
			walk_noise[spsp] = std::vector<noise>(wn,wn+TERRAIN_TYPES);
			run_noise[spsp] = std::vector<noise>(rn,rn+TERRAIN_TYPES);
			for(int i=0;i<TERRAIN_TYPES;i++)
			{
				walk_noise[spsp][i].describe = walk_str;
				walk_noise[spsp][i].volume +=extra_noise;
				run_noise[spsp][i].describe = run_str;
				run_noise[spsp][i].volume +=extra_noise*1.6f;
			}
			break;
		case 2:
			alien->description = "A huge alien.";
			alien->damage = rand()%8+8;
			alien->min_health = 20+rand()%10;
			alien->health_range = rand()%7+5;
			alien->body_sections = 9+rand()%16;

			if(rand()%12<3+(difficulty/5))
			{ alien->psychic_range = rand()%30+20; }
			else
			{
				alien->psychic_range = 0;
			}

			switch(rand()%7)
			{
			case 0: case 1: case 2: case 3:
				alien->vis_range = rand()%6+6; break;
			case 4: case 5:
				alien->vis_range = rand()%4+4; break;
			case 6:
				alien->vis_range = rand()%2+2; break;
			}

			if(rand()%7 < 4)
			{
				alien->hearing_thres = 2.5f+0.1f*(rand()%15);
				alien->hearing_adapt = 0.1f;

			}
			else
			{
				alien->hearing_thres = -5.0f+0.03f*(rand()%100);
				alien->hearing_adapt = 1.0f;

			}

			switch(rand()%7)
			{
			case 0: case 1:
				alien->smell_clarity = (float)(rand()%4) +8.0f; break;
			case 2: case 3: case 4:
				alien->smell_clarity = randfloat()+1.0f; break;
			case 5: case 6:
				alien->smell_clarity = 0.1f*(randfloat()+1.0f); break;
			}

			alien->walk_energy = rand()%3+6;
			alien->run_energy = alien->walk_energy + rand()%6;
			alien->stamina = 2*((rand()%4+5)*alien->run_energy + rand()%(2*alien->run_energy));
			switch(rand()%3)
			{
			case 0:
				walk_str = "thumping"; break;
			case 1:
				walk_str = "pounding"; break;
			case 2:
				walk_str = "crashing"; break;
			}
			switch(rand()%1)
			{
			case 0:
				run_str = "charging"; break;
			}
			extra_noise = 11.5f;
			walk_noise[spsp] = std::vector<noise>(wn,wn+TERRAIN_TYPES);
			run_noise[spsp] = std::vector<noise>(rn,rn+TERRAIN_TYPES);
			for(int i=0;i<TERRAIN_TYPES;i++)
			{
				walk_noise[spsp][i].describe = walk_str;
				walk_noise[spsp][i].volume +=extra_noise;
				run_noise[spsp][i].describe = run_str;
				run_noise[spsp][i].volume +=extra_noise*1.6f;
			}
		}
		/*char buf[1000] = "";
		sprintf(buf,"A %s is a %s creature %s.",
			alien->name.c_str(),
			(std::string(alien->psychic_range?"psychic":"")+std::string(alien->psychic_range&&alien->sees?", ":"")+std::string(alien->sees?"sighted":"")).c_str(),
			(std::string(alien->smells||alien->hears?"with good ":"")+std::string(alien->hears?"hearing":"")+
			 std::string(alien->hears&&alien->smells?" and ":"")+std::string(alien->smells?"sense of smell":"")).c_str());
		alien->description = std::string(buf);*/
		alien->walk_energy += (difficulty-5)/3;
		alien->run_energy += (difficulty-5)/2;
		alien->damage += (difficulty - 5)/2;
		alien->hearing_thres -= (float)(difficulty-5)/3.0f;
		alien->min_health += (difficulty-5)/3;
		alien->vis_range += (difficulty-5)/4;
		if(rand()%10 > difficulty) alien->psychic_range += 2*difficulty;
		zoo.push_back(alien);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x578, %rsp            # imm = 0x578
callq 0x7b5f
leaq 0x98(%rsp), %rdi
movl $0x3f800000, -0x8(%rdi) # imm = 0x3F800000
leaq 0xa8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf67c(%rip), %rbx      # 0x188bc
leaq 0xf67e(%rip), %r14      # 0x188c5
movq %rbx, %rsi
movq %r14, %rdx
callq 0x15b1a
movb $0x0, 0x10(%r15)
leaq 0xc0(%rsp), %r15
movl $0x3fc00000, (%r15)     # imm = 0x3FC00000
leaq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rbx, %rsi
movq %r14, %rdx
callq 0x15b1a
leaq 0xf0(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x3fc00000, (%r15)     # imm = 0x3FC00000
leaq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xf608(%rip), %rsi      # 0x188bc
leaq 0xf60a(%rip), %rdx      # 0x188c5
callq 0x15b1a
leaq 0x120(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x40000000, (%r15)     # imm = 0x40000000
leaq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xf5cd(%rip), %rsi      # 0x188bc
leaq 0xf5cf(%rip), %rdx      # 0x188c5
callq 0x15b1a
leaq 0x150(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10e39(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x180(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x40133333, (%r15)     # imm = 0x40133333
leaq 0x188(%rsp), %rdi
leaq 0x198(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xf55b(%rip), %rsi      # 0x188bc
leaq 0xf55d(%rip), %rdx      # 0x188c5
callq 0x15b1a
leaq 0x1b0(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10dc7(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x1e0(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x1e8(%rsp), %rdi
leaq 0x1f8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10d90(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x210(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x218(%rsp), %rdi
leaq 0x228(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10d59(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x240(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x248(%rsp), %rdi
leaq 0x258(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10d22(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x270(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x278(%rsp), %rdi
leaq 0x288(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10ceb(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x2a0(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x2a8(%rsp), %rdi
leaq 0x2b8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10cb4(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
xorl %eax, %eax
leaq 0x2e8(%rsp), %r13
movb %al, -0x20(%r13)
movl $0x0, -0x18(%r13)
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb %al, (%r13)
movb %al, 0x10(%r13)
leaq 0x300(%rsp), %rdx
leaq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x50(%rsp), %rcx
callq 0x1596a
movq 0x64df9(%rip), %rax     # 0x6e300
movq 0x10(%rax), %rcx
leaq 0x10(%rsp), %rbx
movaps (%rbx), %xmm0
movups (%rax), %xmm1
movups %xmm0, (%rax)
movq 0x10(%rbx), %rdx
movq %rdx, 0x10(%rax)
leaq 0x300(%rsp), %r14
movaps %xmm1, (%r14)
movq %rcx, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %r14, %rdi
callq 0x158d2
movq %rbx, %rdi
callq 0x158d2
movl $0x40000000, (%r14)     # imm = 0x40000000
leaq 0x308(%rsp), %rdi
leaq 0x318(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xf34b(%rip), %rsi      # 0x188bc
leaq 0xf34d(%rip), %rdx      # 0x188c5
callq 0x15b1a
leaq 0x330(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x40400000, (%r15)     # imm = 0x40400000
leaq 0x338(%rsp), %rdi
leaq 0x348(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xf310(%rip), %rsi      # 0x188bc
leaq 0xf312(%rip), %rdx      # 0x188c5
callq 0x15b1a
leaq 0x360(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x40600000, (%r15)     # imm = 0x40600000
leaq 0x368(%rsp), %rdi
leaq 0x378(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xf2d5(%rip), %rsi      # 0x188bc
leaq 0xf2d7(%rip), %rdx      # 0x188c5
callq 0x15b1a
leaq 0x390(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x40400000, (%r15)     # imm = 0x40400000
leaq 0x398(%rsp), %rdi
leaq 0x3a8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xf29a(%rip), %rsi      # 0x188bc
leaq 0xf29c(%rip), %rdx      # 0x188c5
callq 0x15b1a
leaq 0x3c0(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x3c8(%rsp), %rdi
leaq 0x3d8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10b06(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x3f0(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x40533333, (%r15)     # imm = 0x40533333
leaq 0x3f8(%rsp), %rdi
leaq 0x408(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xf228(%rip), %rsi      # 0x188bc
leaq 0xf22a(%rip), %rdx      # 0x188c5
callq 0x15b1a
leaq 0x420(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x428(%rsp), %rdi
leaq 0x438(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10a94(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x450(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x458(%rsp), %rdi
leaq 0x468(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10a5d(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x480(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x488(%rsp), %rdi
leaq 0x498(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10a26(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x4b0(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x4b8(%rsp), %rdi
leaq 0x4c8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x109ef(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x4e0(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x4e8(%rsp), %rdi
leaq 0x4f8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x109b8(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
leaq 0x510(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x0, (%r15)
leaq 0x518(%rsp), %rdi
leaq 0x528(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10981(%rip), %rdx     # 0x1a163
movq %rdx, %rsi
callq 0x15b1a
xorl %eax, %eax
leaq 0x558(%rsp), %r14
movb %al, -0x20(%r14)
movl $0x0, -0x18(%r14)
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb %al, (%r14)
movb %al, 0x10(%r14)
leaq 0x570(%rsp), %rdx
leaq 0x50(%rsp), %rdi
leaq 0x300(%rsp), %rsi
leaq 0x70(%rsp), %rcx
callq 0x1596a
movq 0x64adf(%rip), %rax     # 0x6e318
movq 0x10(%rax), %rcx
leaq 0x50(%rsp), %rbx
movaps (%rbx), %xmm0
movups (%rax), %xmm1
movups %xmm0, (%rax)
movq 0x10(%rbx), %rdx
movq %rdx, 0x10(%rax)
leaq 0x10(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rcx, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x158d2
movq %rbx, %rdi
callq 0x158d2
leaq 0x20(%rsp), %rbx
movl $0x1, %ebp
movq %rbx, %r12
movl $0x150, %edi            # imm = 0x150
callq 0x5250
movq %rax, %rbx
movl $0x150, %edx            # imm = 0x150
movq %rax, %rdi
xorl %esi, %esi
callq 0x5180
leaq 0x68(%rbx), %rax
movq %rax, 0x58(%rbx)
xorl %ecx, %ecx
movb %cl, 0x68(%rbx)
leaq 0x98(%rbx), %rax
movq %rax, 0x88(%rbx)
movb %cl, 0x98(%rbx)
leaq 0xc0(%rbx), %rax
movq %rax, 0xb0(%rbx)
movb %cl, 0xc0(%rbx)
leaq 0xe0(%rbx), %rax
movq %rax, 0xd0(%rbx)
movb %cl, 0xe0(%rbx)
leaq 0x100(%rbx), %rax
movq %rax, 0xf0(%rbx)
movb %cl, 0x100(%rbx)
leaq 0x120(%rbx), %rax
movq %rax, 0x110(%rbx)
movb %cl, 0x120(%rbx)
movq %rbx, %rax
addq $0x140, %rax            # imm = 0x140
movq %rax, 0x130(%rbx)
movb %cl, 0x140(%rbx)
movq %rbx, (%rsp)
movb %cl, 0x49(%rbx)
movl %ecx, 0x45(%rbx)
movl %ebp, (%rbx)
movl %ecx, 0x40(%rbx)
callq 0x5070
leal -0x5(%rbp), %ecx
movslq %eax, %rbx
imulq $0x55555556, %rbx, %rax # imm = 0x55555556
movq %rax, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rax
addl %edx, %eax
leal (%rax,%rax,2), %eax
subl %eax, %ebx
cmpl $0x3, %ecx
cmovbl %ecx, %ebx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x7722
movq (%rsp), %rdi
movl $0xb0, %eax
addq %rax, %rdi
movq %r15, %rsi
callq 0x5300
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x9993
callq 0x5230
cmpq $0x2, %rbp
leaq 0x10(%rsp), %rdi
jb 0x9a33
movb $0x1, %al
movl $0x1, %r15d
movl %r15d, %ecx
movq 0x64a3c(%rip), %rdx     # 0x6e3f0
movq (%rdx,%rcx,8), %rcx
movb 0x24(%rcx), %cl
movq (%rsp), %rdx
movq 0xb0(%rdx), %rdx
cmpb (%rdx), %cl
jne 0x9a13
movq %rdi, %r12
callq 0x7722
movq (%rsp), %rdi
movl $0xb0, %eax
addq %rax, %rdi
movq %r12, %rsi
callq 0x5300
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x99fa
callq 0x5230
incl %r15d
cmpq %r15, %rbp
setbe %al
movl $0x1, %ecx
cmovbel %ecx, %r15d
leaq 0x10(%rsp), %rdi
jmp 0x99aa
incl %r15d
cmpq %r15, %rbp
setbe %cl
movl $0x1, %edx
cmovbel %edx, %r15d
movl %ecx, %edx
orb %al, %dl
testb %al, %cl
movl %edx, %eax
je 0x99aa
movq %rdi, %r15
callq 0x7722
movq (%rsp), %rdi
movl $0xd0, %eax
addq %rax, %rdi
movq %r15, %rsi
callq 0x5300
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %r15
cmpq %r15, %rdi
je 0x9a63
callq 0x5230
movq (%rsp), %rax
leaq 0x60(%rsp), %rcx
movq %rcx, 0x50(%rsp)
movq 0xb0(%rax), %rsi
movq 0xb8(%rax), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %r15
movq %r15, %rdi
callq 0x15f56
movq %r15, %rdi
leaq 0xf0a0(%rip), %rsi      # 0x18b39
callq 0x5410
movq (%rsp), %rax
movq 0xd0(%rax), %rsi
movq 0xd8(%rax), %rdx
movq %r15, %rdi
callq 0x50c0
leaq 0x20(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x10(%rsp), %rsi
je 0x9ae5
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x9aeb
movups (%rcx), %xmm0
movups %xmm0, (%rdi)
movq %rdi, %r15
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
movl $0xf0, %eax
addq %rax, %rdi
callq 0x5300
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x9b26
callq 0x5230
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x9b3a
callq 0x5230
movq (%rsp), %rax
movq 0xf0(%rax), %rcx
movb (%rcx), %cl
movb %cl, 0x24(%rax)
cmpl $0x3, %ebx
jae 0x9b5e
movl %ebx, %ecx
leaq 0xea3c(%rip), %rdx      # 0x18594
movl (%rdx,%rcx,4), %ecx
movl %ecx, 0x28(%rax)
movl %ebx, 0x38(%rax)
movq %r15, 0x10(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x18(%rsp)
movb %cl, 0x20(%rsp)
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq %rcx, 0x58(%rsp)
movb %cl, 0x60(%rsp)
leaq 0x70(%rsp), %r12
movq %r12, %rdi
callq 0x7722
movq (%rsp), %rdi
movl $0x130, %eax            # imm = 0x130
addq %rax, %rdi
movq %r12, %rsi
callq 0x5300
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x9bbc
callq 0x5230
testl %ebx, %ebx
je 0x9fe0
cmpl $0x1, %ebx
je 0x9ddd
cmpl $0x2, %ebx
jne 0xad51
movq (%rsp), %rdi
movq 0x118(%rdi), %rdx
addq $0x110, %rdi            # imm = 0x110
movl $0xd, %r8d
xorl %esi, %esi
leaq 0xef92(%rip), %rcx      # 0x18b89
callq 0x5380
callq 0x5070
leal 0x7(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x8, %ecx
negl %ecx
addl %ecx, %eax
addl $0x8, %eax
movq (%rsp), %rcx
movl %eax, 0xc(%rcx)
callq 0x5070
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
sarl $0x2, %ecx
addl %edx, %ecx
addl %ecx, %ecx
leal (%rcx,%rcx,4), %ecx
negl %ecx
addl %ecx, %eax
addl $0x14, %eax
movq (%rsp), %rcx
movl %eax, 0x4(%rcx)
callq 0x5070
cltq
imulq $-0x6db6db6d, %rax, %rcx # imm = 0x92492493
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x2, %ecx
addl %edx, %ecx
leal (,%rcx,8), %edx
subl %edx, %ecx
addl %ecx, %eax
addl $0x5, %eax
movq (%rsp), %rcx
movl %eax, 0x8(%rcx)
callq 0x5070
leal 0xf(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x10, %ecx
negl %ecx
addl %ecx, %eax
addl $0x9, %eax
movq (%rsp), %rcx
movl %eax, 0x3c(%rcx)
callq 0x5070
movslq %eax, %rcx
imulq $0x2aaaaaab, %rcx, %rax # imm = 0x2AAAAAAB
movq %rax, %rdx
shrq $0x3f, %rdx
shrq $0x21, %rax
addl %edx, %eax
shll $0x2, %eax
leal (%rax,%rax,2), %eax
subl %eax, %ecx
movslq 0x17645(%rip), %rax     # 0x2130c
imulq $0x66666667, %rax, %rax # imm = 0x66666667
movq %rax, %rdx
sarq $0x21, %rdx
shrq $0x3f, %rax
addl %eax, %edx
addl $0x3, %edx
xorl %eax, %eax
cmpl %edx, %ecx
jge 0x9d10
callq 0x5070
cltq
imulq $-0x77777777, %rax, %rcx # imm = 0x88888889
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x4, %ecx
addl %edx, %ecx
movl %ecx, %edx
shll $0x5, %edx
addl %ecx, %ecx
subl %edx, %ecx
addl %ecx, %eax
addl $0x14, %eax
movq (%rsp), %rcx
movl %eax, 0x20(%rcx)
callq 0x5070
movslq %eax, %rcx
imulq $-0x6db6db6d, %rcx, %rax # imm = 0x92492493
shrq $0x20, %rax
addl %ecx, %eax
movl %eax, %edx
shrl $0x1f, %edx
sarl $0x2, %eax
addl %edx, %eax
leal (,%rax,8), %edx
subl %edx, %eax
addl %ecx, %eax
cmpl $0x6, %eax
ja 0x9d63
movl %eax, %eax
leaq 0xe90d(%rip), %rcx      # 0x1865c
movl (%rcx,%rax,4), %ebx
callq 0x5070
cltd
idivl %ebx
addl %ebx, %edx
movq (%rsp), %rax
movl %edx, 0x10(%rax)
callq 0x5070
cltq
imulq $-0x6db6db6d, %rax, %rbx # imm = 0x92492493
shrq $0x20, %rbx
addl %eax, %ebx
movl %ebx, %ecx
shrl $0x1f, %ecx
sarl $0x2, %ebx
addl %ecx, %ebx
leal (,%rbx,8), %ecx
subl %ecx, %ebx
addl %eax, %ebx
callq 0x5070
movq (%rsp), %rcx
cmpl $0x3, %ebx
jg 0xa30b
movslq %eax, %rdx
imulq $-0x77777777, %rdx, %rdx # imm = 0x88888889
shrq $0x20, %rdx
addl %eax, %edx
movl %edx, %esi
shrl $0x1f, %esi
sarl $0x3, %edx
addl %esi, %edx
leal (%rdx,%rdx,4), %edx
leal (%rdx,%rdx,2), %edx
subl %edx, %eax
cvtsi2ss %eax, %xmm0
movss 0xe24c(%rip), %xmm1     # 0x18018
mulss %xmm1, %xmm0
addss 0xe25c(%rip), %xmm0     # 0x18034
jmp 0xa342
movq (%rsp), %rdi
movq 0x118(%rdi), %rdx
addq $0x110, %rdi            # imm = 0x110
movl $0x15, %r8d
xorl %esi, %esi
leaq 0xed6b(%rip), %rcx      # 0x18b69
callq 0x5380
callq 0x5070
cltq
imulq $0x2aaaaaab, %rax, %rcx # imm = 0x2AAAAAAB
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
addl %ecx, %ecx
leal (%rcx,%rcx,2), %ecx
negl %ecx
addl %ecx, %eax
addl $0x4, %eax
movq (%rsp), %rcx
movl %eax, 0xc(%rcx)
callq 0x5070
cltq
imulq $0x2aaaaaab, %rax, %rcx # imm = 0x2AAAAAAB
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
addl %ecx, %ecx
leal (%rcx,%rcx,2), %ecx
negl %ecx
addl %ecx, %eax
addl $0xa, %eax
movq (%rsp), %rcx
movl %eax, 0x4(%rcx)
callq 0x5070
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x4, %ecx
negl %ecx
addl %ecx, %eax
addl $0x4, %eax
movq (%rsp), %rcx
movl %eax, 0x8(%rcx)
callq 0x5070
leal 0x7(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x8, %ecx
negl %ecx
addl %ecx, %eax
addl $0x6, %eax
movq (%rsp), %rcx
movl %eax, 0x3c(%rcx)
callq 0x5070
cltq
imulq $0x2aaaaaab, %rax, %rcx # imm = 0x2AAAAAAB
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x21, %rcx
addl %edx, %ecx
shll $0x2, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
movl 0x17448(%rip), %ecx     # 0x2130c
addl $-0x3, %ecx
movslq %ecx, %rcx
imulq $0x55555556, %rcx, %rcx # imm = 0x55555556
movq %rcx, %rdx
shrq $0x20, %rdx
shrq $0x3f, %rcx
addl %ecx, %edx
addl $0x2, %edx
xorl %ecx, %ecx
cmpl %edx, %eax
jge 0x9f13
callq 0x5070
cltq
imulq $-0x77777777, %rax, %rcx # imm = 0x88888889
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x4, %ecx
addl %edx, %ecx
movl %ecx, %edx
shll $0x5, %edx
addl %ecx, %ecx
subl %edx, %ecx
addl %eax, %ecx
addl $0x14, %ecx
movq (%rsp), %rax
movl %ecx, 0x20(%rax)
callq 0x5070
movslq %eax, %rcx
imulq $-0x6db6db6d, %rcx, %rax # imm = 0x92492493
shrq $0x20, %rax
addl %ecx, %eax
movl %eax, %edx
shrl $0x1f, %edx
sarl $0x2, %eax
addl %edx, %eax
leal (,%rax,8), %edx
subl %edx, %eax
addl %ecx, %eax
cmpl $0x6, %eax
ja 0x9f66
movl %eax, %eax
leaq 0xe6ee(%rip), %rcx      # 0x18640
movl (%rcx,%rax,4), %ebx
callq 0x5070
cltd
idivl %ebx
addl %ebx, %edx
movq (%rsp), %rax
movl %edx, 0x10(%rax)
callq 0x5070
cltq
imulq $-0x6db6db6d, %rax, %rbx # imm = 0x92492493
shrq $0x20, %rbx
addl %eax, %ebx
movl %ebx, %ecx
shrl $0x1f, %ecx
sarl $0x2, %ebx
addl %ecx, %ebx
leal (,%rbx,8), %ecx
subl %ecx, %ebx
addl %eax, %ebx
callq 0x5070
movq (%rsp), %rcx
cltq
imulq $0x66666667, %rax, %rdx # imm = 0x66666667
movq %rdx, %rsi
shrq $0x3f, %rsi
cmpl $0x2, %ebx
jg 0xa1b0
sarq $0x23, %rdx
addl %esi, %edx
shll $0x2, %edx
leal (%rdx,%rdx,4), %edx
subl %edx, %eax
cvtsi2ss %eax, %xmm0
mulss 0xe075(%rip), %xmm0     # 0x18040
addss 0xe071(%rip), %xmm0     # 0x18044
movss 0xe06d(%rip), %xmm1     # 0x18048
jmp 0xa1d9
movq (%rsp), %rdi
movq 0x118(%rdi), %rdx
addq $0x110, %rdi            # imm = 0x110
movl $0xe, %r8d
xorl %esi, %esi
leaq 0xeb3a(%rip), %rcx      # 0x18b3b
callq 0x5380
callq 0x5070
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
andl $-0x2, %ecx
negl %ecx
addl %ecx, %eax
addl $0x2, %eax
movq (%rsp), %rcx
movl %eax, 0xc(%rcx)
callq 0x5070
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x4, %ecx
negl %ecx
addl %ecx, %eax
addl $0x4, %eax
movq (%rsp), %rcx
movl %eax, 0x4(%rcx)
callq 0x5070
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
andl $-0x2, %ecx
negl %ecx
addl %ecx, %eax
incl %eax
movq (%rsp), %rcx
movl %eax, 0x8(%rcx)
callq 0x5070
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x4, %ecx
negl %ecx
addl %ecx, %eax
addl $0x3, %eax
movq (%rsp), %rcx
movl %eax, 0x3c(%rcx)
callq 0x5070
movslq %eax, %rcx
imulq $0x2aaaaaab, %rcx, %rax # imm = 0x2AAAAAAB
movq %rax, %rdx
shrq $0x3f, %rdx
shrq $0x21, %rax
addl %edx, %eax
shll $0x2, %eax
leal (%rax,%rax,2), %eax
subl %eax, %ecx
movslq 0x17266(%rip), %rax     # 0x2130c
imulq $0x55555556, %rax, %rdx # imm = 0x55555556
movq %rdx, %rax
shrq $0x3f, %rax
shrq $0x20, %rdx
addl %eax, %edx
xorl %eax, %eax
cmpl %edx, %ecx
jg 0xa0e8
callq 0x5070
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x23, %rcx
addl %edx, %ecx
shll $0x2, %ecx
leal (%rcx,%rcx,4), %ecx
negl %ecx
addl %ecx, %eax
addl $0xa, %eax
movq (%rsp), %rcx
movl %eax, 0x20(%rcx)
callq 0x5070
movslq %eax, %rcx
imulq $-0x6db6db6d, %rcx, %rax # imm = 0x92492493
shrq $0x20, %rax
addl %ecx, %eax
movl %eax, %edx
shrl $0x1f, %edx
sarl $0x2, %eax
addl %edx, %eax
leal (,%rax,8), %edx
subl %edx, %eax
addl %ecx, %eax
cmpl $0x6, %eax
ja 0xa13b
movl %eax, %eax
leaq 0xe4fd(%rip), %rcx      # 0x18624
movl (%rcx,%rax,4), %ebx
callq 0x5070
cltd
idivl %ebx
addl %ebx, %edx
movq (%rsp), %rax
movl %edx, 0x10(%rax)
callq 0x5070
cltq
imulq $-0x6db6db6d, %rax, %rbx # imm = 0x92492493
shrq $0x20, %rbx
addl %eax, %ebx
movl %ebx, %ecx
shrl $0x1f, %ecx
sarl $0x2, %ebx
addl %ecx, %ebx
leal (,%rbx,8), %ecx
subl %ecx, %ebx
addl %eax, %ebx
callq 0x5070
cltq
cmpl $0x1, %ebx
jg 0xa253
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x22, %rcx
addl %edx, %ecx
addl %ecx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cvtsi2ss %eax, %xmm0
divss 0xdebd(%rip), %xmm0     # 0x18058
addss 0xde71(%rip), %xmm0     # 0x18014
movss 0xdeb1(%rip), %xmm1     # 0x1805c
jmp 0xa28b
sarq $0x22, %rdx
addl %esi, %edx
addl %edx, %edx
leal (%rdx,%rdx,4), %edx
subl %edx, %eax
cvtsi2ss %eax, %xmm0
mulss 0xde4f(%rip), %xmm0     # 0x18018
addss 0xde67(%rip), %xmm0     # 0x18038
movss 0xde63(%rip), %xmm1     # 0x1803c
movss %xmm0, 0x18(%rcx)
movss %xmm1, 0x1c(%rcx)
callq 0x5070
movslq %eax, %rcx
imulq $-0x6db6db6d, %rcx, %rax # imm = 0x92492493
shrq $0x20, %rax
addl %ecx, %eax
movl %eax, %edx
shrl $0x1f, %edx
sarl $0x2, %eax
addl %edx, %eax
leal (,%rax,8), %edx
subl %edx, %eax
addl %ecx, %eax
cmpl $0x6, %eax
ja 0xa449
movl $0x7, %ecx
btl %eax, %ecx
jb 0xa3ba
movl $0x18, %ecx
btl %eax, %ecx
jae 0xa41c
callq 0x5070
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss 0xddbe(%rip), %xmm0     # 0x18004
addss 0xddc6(%rip), %xmm0     # 0x18014
jmp 0xa440
imulq $0x1b4e81b5, %rax, %rcx # imm = 0x1B4E81B5
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x12c, %ecx, %ecx      # imm = 0x12C
subl %ecx, %eax
cvtsi2ss %eax, %xmm0
mulss 0xddd1(%rip), %xmm0     # 0x1804c
addss 0xddcd(%rip), %xmm0     # 0x18050
movss 0xddc9(%rip), %xmm1     # 0x18054
movq (%rsp), %rax
movss %xmm0, 0x18(%rax)
movss %xmm1, 0x1c(%rax)
callq 0x5070
movslq %eax, %rcx
imulq $-0x6db6db6d, %rcx, %rax # imm = 0x92492493
shrq $0x20, %rax
addl %ecx, %eax
movl %eax, %edx
shrl $0x1f, %edx
sarl $0x2, %eax
addl %edx, %eax
leal (,%rax,8), %edx
subl %edx, %eax
addl %ecx, %eax
cmpl $0x6, %eax
ja 0xa7d1
movl $0x1c, %ecx
btl %eax, %ecx
jb 0xa3da
movl $0x3, %ecx
btl %eax, %ecx
jae 0xa7a4
callq 0x5070
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x4, %ecx
negl %ecx
addl %ecx, %eax
addl $0x8, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
jmp 0xa7c8
cltq
imulq $0x51eb851f, %rax, %rdx # imm = 0x51EB851F
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x25, %rdx
addl %esi, %edx
imull $0x64, %edx, %edx
subl %edx, %eax
cvtsi2ss %eax, %xmm0
mulss 0xdcfa(%rip), %xmm0     # 0x1802c
addss 0xdcf6(%rip), %xmm0     # 0x18030
movss 0xdcd2(%rip), %xmm1     # 0x18014
movss %xmm0, 0x18(%rcx)
movss %xmm1, 0x1c(%rcx)
callq 0x5070
movslq %eax, %rcx
imulq $-0x6db6db6d, %rcx, %rax # imm = 0x92492493
shrq $0x20, %rax
addl %ecx, %eax
movl %eax, %edx
shrl $0x1f, %edx
sarl $0x2, %eax
addl %edx, %eax
leal (,%rax,8), %edx
subl %edx, %eax
addl %ecx, %eax
cmpl $0x6, %eax
ja 0xaac9
movl $0x1c, %ecx
btl %eax, %ecx
jb 0xa3fb
movl $0x3, %ecx
btl %eax, %ecx
jae 0xaa9c
callq 0x5070
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x4, %ecx
negl %ecx
addl %ecx, %eax
addl $0x8, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
jmp 0xaac0
callq 0x5070
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x4, %ecx
negl %ecx
addl %ecx, %eax
addl $0x8, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
jmp 0xa440
callq 0x5070
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss 0xdc16(%rip), %xmm0     # 0x18004
addss 0xdc1e(%rip), %xmm0     # 0x18014
jmp 0xa7c8
callq 0x5070
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss 0xdbf5(%rip), %xmm0     # 0x18004
addss 0xdbfd(%rip), %xmm0     # 0x18014
jmp 0xaac0
callq 0x5070
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss 0xdbd4(%rip), %xmm0     # 0x18004
addss 0xdbdc(%rip), %xmm0     # 0x18014
mulss 0xdbd8(%rip), %xmm0     # 0x18018
movq (%rsp), %rax
movss %xmm0, 0x14(%rax)
callq 0x5070
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x4, %ecx
negl %ecx
addl %ecx, %eax
addl $0x8, %eax
movq (%rsp), %rcx
movl %eax, 0x2c(%rcx)
callq 0x5070
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x22, %rcx
addl %edx, %ecx
addl %ecx, %ecx
leal (%rcx,%rcx,4), %ecx
negl %ecx
addl %ecx, %eax
addl $0x5, %eax
movq (%rsp), %rcx
imull 0x2c(%rcx), %eax
cltq
imulq $0x66666667, %rax, %rbx # imm = 0x66666667
movq %rbx, %rax
shrq $0x3f, %rax
sarq $0x21, %rbx
addl %eax, %ebx
callq 0x5070
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x4, %ecx
subl %ecx, %eax
addl %ebx, %eax
movq (%rsp), %rcx
movl %eax, 0x30(%rcx)
callq 0x5070
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
negl %ecx
leal (%rax,%rcx), %ebx
addl $0x7, %ebx
movq (%rsp), %rax
imull 0x30(%rax), %ebx
callq 0x5070
movq (%rsp), %rcx
movl 0x30(%rcx), %esi
addl %esi, %esi
cltd
idivl %esi
addl %ebx, %edx
shll $0x2, %edx
movl %edx, 0x34(%rcx)
leaq 0x30(%rsp), %r15
movq %r15, %rdi
leaq 0x90(%rsp), %rsi
leaq 0x300(%rsp), %rdx
leaq 0xf(%rsp), %rcx
callq 0x1596a
movq 0x63dc9(%rip), %rax     # 0x6e300
leaq (,%rbp,2), %rbx
addq %rbp, %rbx
movq 0x10(%rax,%rbx,8), %rcx
movaps 0x30(%rsp), %xmm0
movups (%rax,%rbx,8), %xmm1
movups %xmm0, (%rax,%rbx,8)
movq 0x40(%rsp), %rdx
movq %rdx, 0x10(%rax,%rbx,8)
movaps %xmm1, 0x70(%rsp)
movq %rcx, 0x80(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x158d2
movq %r15, %rdi
callq 0x158d2
callq 0x5070
cltq
imulq $0x55555556, %rax, %rcx # imm = 0x55555556
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
cmpl $0x3, %eax
jae 0xa5df
movl %eax, %eax
leaq 0xe034(%rip), %rdx      # 0x185f0
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0xe036(%rip), %rdx      # 0x18600
movq (%rdx,%rax,8), %r8
movq 0x18(%rsp), %rdx
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x5380
callq 0x5070
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
andl $-0x2, %ecx
subl %ecx, %eax
je 0xa606
cmpl $0x1, %eax
jne 0xa624
movl $0x7, %r8d
leaq 0xeb3d(%rip), %rcx      # 0x19141
jmp 0xa613
movl $0x9, %r8d
leaq 0xe42f(%rip), %rcx      # 0x18a42
movq 0x58(%rsp), %rdx
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
callq 0x5380
leaq 0x30(%rsp), %r15
movq %r15, %rdi
leaq 0x90(%rsp), %rsi
leaq 0x300(%rsp), %rdx
leaq 0xf(%rsp), %r12
movq %r12, %rcx
callq 0x1596a
movq 0x63cb0(%rip), %rax     # 0x6e300
movq 0x10(%rax,%rbx,8), %rcx
movaps 0x30(%rsp), %xmm0
movups (%rax,%rbx,8), %xmm1
movups %xmm0, (%rax,%rbx,8)
movq 0x40(%rsp), %rdx
movq %rdx, 0x10(%rax,%rbx,8)
movaps %xmm1, 0x70(%rsp)
movq %rcx, 0x80(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x158d2
movq %r15, %rdi
callq 0x158d2
movq %r15, %rdi
leaq 0x300(%rsp), %rsi
leaq 0x570(%rsp), %rdx
movq %r12, %rcx
callq 0x1596a
movq 0x63c5a(%rip), %rax     # 0x6e318
movq 0x10(%rax,%rbx,8), %rcx
movaps 0x30(%rsp), %xmm0
movups (%rax,%rbx,8), %xmm1
movups %xmm0, (%rax,%rbx,8)
movq 0x40(%rsp), %rdx
movq %rdx, 0x10(%rax,%rbx,8)
movaps %xmm1, 0x70(%rsp)
movq %rcx, 0x80(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x158d2
movq %r15, %rdi
callq 0x158d2
movl $0x8, %r15d
movq 0x63be9(%rip), %rax     # 0x6e300
movq (%rax,%rbx,8), %rdi
addq %r15, %rdi
leaq 0x10(%rsp), %rsi
callq 0x5170
movq 0x63bd1(%rip), %rax     # 0x6e300
leaq (,%rbp,8), %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx), %rax
movss -0x8(%rax,%r15), %xmm0
addss 0xd8ce(%rip), %xmm0     # 0x1801c
movss %xmm0, -0x8(%rax,%r15)
movq 0x63bbc(%rip), %rax     # 0x6e318
movq (%rax,%rcx), %rdi
addq %r15, %rdi
leaq 0x50(%rsp), %rsi
callq 0x5170
movq 0x63ba4(%rip), %rax     # 0x6e318
movq (%rax,%rbx,8), %rax
movss -0x8(%rax,%r15), %xmm0
addss 0xd899(%rip), %xmm0     # 0x18020
movss %xmm0, -0x8(%rax,%r15)
addq $0x30, %r15
cmpq $0x278, %r15            # imm = 0x278
jne 0xa710
jmp 0xad51
callq 0x5070
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss 0xd84c(%rip), %xmm0     # 0x18004
addss 0xd854(%rip), %xmm0     # 0x18014
mulss 0xd850(%rip), %xmm0     # 0x18018
movq (%rsp), %rax
movss %xmm0, 0x14(%rax)
callq 0x5070
cltq
imulq $-0x6db6db6d, %rax, %rcx # imm = 0x92492493
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x2, %ecx
addl %edx, %ecx
leal (,%rcx,8), %edx
subl %edx, %ecx
addl %ecx, %eax
addl $0x9, %eax
movq (%rsp), %rcx
movl %eax, 0x2c(%rcx)
movl %eax, %ecx
shrb %cl
addb %al, %cl
movzbl %cl, %ebx
callq 0x5070
cltq
imulq $0x55555556, %rax, %rcx # imm = 0x55555556
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
addl %ebx, %eax
movq (%rsp), %rcx
movl %eax, 0x30(%rcx)
callq 0x5070
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x4, %ecx
negl %ecx
leal (%rax,%rcx), %ebx
addl $0x6, %ebx
movq (%rsp), %rax
imull 0x30(%rax), %ebx
callq 0x5070
movq (%rsp), %rcx
movl 0x30(%rcx), %esi
addl %esi, %esi
cltd
idivl %esi
addl %ebx, %edx
leal (%rdx,%rdx,4), %eax
movl %eax, 0x34(%rcx)
callq 0x5070
cltq
imulq $0x55555556, %rax, %rcx # imm = 0x55555556
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
cmpl $0x2, %eax
ja 0xa8c0
movl %eax, %eax
leaq 0xdd03(%rip), %rdx      # 0x185a0
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0xdd05(%rip), %rdx      # 0x185b0
movq (%rdx,%rax,8), %r8
movq 0x18(%rsp), %rdx
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x5380
callq 0x5070
cltq
imulq $0x55555556, %rax, %rcx # imm = 0x55555556
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
cmpl $0x2, %eax
ja 0xa911
movl %eax, %eax
leaq 0xdcda(%rip), %rdx      # 0x185c8
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0xdcdc(%rip), %rdx      # 0x185d8
movq (%rdx,%rax,8), %r8
movq 0x58(%rsp), %rdx
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
callq 0x5380
leaq 0x30(%rsp), %r15
movq %r15, %rdi
leaq 0x90(%rsp), %rsi
leaq 0x300(%rsp), %rdx
leaq 0xf(%rsp), %r12
movq %r12, %rcx
callq 0x1596a
movq 0x639c3(%rip), %rax     # 0x6e300
leaq (,%rbp,2), %rbx
addq %rbp, %rbx
movq 0x10(%rax,%rbx,8), %rcx
movaps 0x30(%rsp), %xmm0
movups (%rax,%rbx,8), %xmm1
movups %xmm0, (%rax,%rbx,8)
movq 0x40(%rsp), %rdx
movq %rdx, 0x10(%rax,%rbx,8)
movaps %xmm1, 0x70(%rsp)
movq %rcx, 0x80(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x158d2
movq %r15, %rdi
callq 0x158d2
movq %r15, %rdi
leaq 0x300(%rsp), %rsi
leaq 0x570(%rsp), %rdx
movq %r12, %rcx
callq 0x1596a
movq 0x63962(%rip), %rax     # 0x6e318
movq 0x10(%rax,%rbx,8), %rcx
movaps 0x30(%rsp), %xmm0
movups (%rax,%rbx,8), %xmm1
movups %xmm0, (%rax,%rbx,8)
movq 0x40(%rsp), %rdx
movq %rdx, 0x10(%rax,%rbx,8)
movaps %xmm1, 0x70(%rsp)
movq %rcx, 0x80(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x158d2
movq %r15, %rdi
callq 0x158d2
movl $0x8, %r15d
movq 0x638f1(%rip), %rax     # 0x6e300
movq (%rax,%rbx,8), %rdi
addq %r15, %rdi
leaq 0x10(%rsp), %rsi
callq 0x5170
movq 0x638d9(%rip), %rax     # 0x6e300
leaq (,%rbp,8), %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx), %rax
movss -0x8(%rax,%r15), %xmm0
addss 0xd5c6(%rip), %xmm0     # 0x1800c
movss %xmm0, -0x8(%rax,%r15)
movq 0x638c4(%rip), %rax     # 0x6e318
movq (%rax,%rcx), %rdi
addq %r15, %rdi
leaq 0x50(%rsp), %rsi
callq 0x5170
movq 0x638ac(%rip), %rax     # 0x6e318
movq (%rax,%rbx,8), %rax
movss -0x8(%rax,%r15), %xmm0
addss 0xd591(%rip), %xmm0     # 0x18010
movss %xmm0, -0x8(%rax,%r15)
addq $0x30, %r15
cmpq $0x278, %r15            # imm = 0x278
jne 0xaa08
jmp 0xad51
callq 0x5070
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss 0xd554(%rip), %xmm0     # 0x18004
addss 0xd55c(%rip), %xmm0     # 0x18014
mulss 0xd558(%rip), %xmm0     # 0x18018
movq (%rsp), %rax
movss %xmm0, 0x14(%rax)
callq 0x5070
cltq
imulq $0x55555556, %rax, %rcx # imm = 0x55555556
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
negl %ecx
leal (%rax,%rcx), %ebx
addl $0x6, %ebx
movq (%rsp), %rax
movl %ebx, 0x2c(%rax)
callq 0x5070
cltq
imulq $0x2aaaaaab, %rax, %rcx # imm = 0x2AAAAAAB
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
addl %ecx, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
addl %ebx, %eax
movq (%rsp), %rcx
movl %eax, 0x30(%rcx)
callq 0x5070
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $0x7ffffffc, %ecx       # imm = 0x7FFFFFFC
negl %ecx
leal (%rax,%rcx), %ebx
addl $0x5, %ebx
movq (%rsp), %rax
imull 0x30(%rax), %ebx
callq 0x5070
movq (%rsp), %rcx
movl 0x30(%rcx), %esi
addl %esi, %esi
cltd
idivl %esi
addl %ebx, %edx
addl %edx, %edx
movl %edx, 0x34(%rcx)
callq 0x5070
cltq
imulq $0x55555556, %rax, %rcx # imm = 0x55555556
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
cmpl $0x2, %eax
ja 0xaba8
movl %eax, %eax
leaq 0xda8e(%rip), %rdx      # 0x18618
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
movq 0x18(%rsp), %rdx
movl $0x8, %r8d
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x5380
callq 0x5070
movq 0x58(%rsp), %rdx
movl $0x8, %r8d
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
leaq 0xdf6a(%rip), %rcx      # 0x18b30
callq 0x5380
leaq 0x30(%rsp), %r15
movq %r15, %rdi
leaq 0x90(%rsp), %rsi
leaq 0x300(%rsp), %rdx
leaq 0xf(%rsp), %r12
movq %r12, %rcx
callq 0x1596a
movq 0x63709(%rip), %rax     # 0x6e300
leaq (,%rbp,2), %rbx
addq %rbp, %rbx
movq 0x10(%rax,%rbx,8), %rcx
movaps 0x30(%rsp), %xmm0
movups (%rax,%rbx,8), %xmm1
movups %xmm0, (%rax,%rbx,8)
movq 0x40(%rsp), %rdx
movq %rdx, 0x10(%rax,%rbx,8)
movaps %xmm1, 0x70(%rsp)
movq %rcx, 0x80(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x158d2
movq %r15, %rdi
callq 0x158d2
movq %r15, %rdi
leaq 0x300(%rsp), %rsi
leaq 0x570(%rsp), %rdx
movq %r12, %rcx
callq 0x1596a
movq 0x636a8(%rip), %rax     # 0x6e318
movq 0x10(%rax,%rbx,8), %rcx
movaps 0x30(%rsp), %xmm0
movups (%rax,%rbx,8), %xmm1
movups %xmm0, (%rax,%rbx,8)
movq 0x40(%rsp), %rdx
movq %rdx, 0x10(%rax,%rbx,8)
movaps %xmm1, 0x70(%rsp)
movq %rcx, 0x80(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x158d2
movq %r15, %rdi
callq 0x158d2
movl $0x8, %r15d
movq 0x63637(%rip), %rax     # 0x6e300
movq (%rax,%rbx,8), %rdi
addq %r15, %rdi
leaq 0x10(%rsp), %rsi
callq 0x5170
movq 0x6361f(%rip), %rax     # 0x6e300
leaq (,%rbp,8), %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx), %rax
movss -0x8(%rax,%r15), %xmm0
addss 0xd324(%rip), %xmm0     # 0x18024
movss %xmm0, -0x8(%rax,%r15)
movq 0x6360a(%rip), %rax     # 0x6e318
movq (%rax,%rcx), %rdi
addq %r15, %rdi
leaq 0x50(%rsp), %rsi
callq 0x5170
movq 0x635f2(%rip), %rax     # 0x6e318
movq (%rax,%rbx,8), %rax
movss -0x8(%rax,%r15), %xmm0
addss 0xd2ef(%rip), %xmm0     # 0x18028
movss %xmm0, -0x8(%rax,%r15)
addq $0x30, %r15
cmpq $0x278, %r15            # imm = 0x278
jne 0xacc2
movl 0x165b5(%rip), %eax     # 0x2130c
leal -0x5(%rax), %ecx
movslq %ecx, %rcx
imulq $0x55555556, %rcx, %rdx # imm = 0x55555556
movq %rdx, %rsi
shrq $0x3f, %rsi
shrq $0x20, %rdx
addl %esi, %edx
movq (%rsp), %rsi
addl %edx, 0x2c(%rsi)
movl %ecx, %edi
shrl $0x1f, %edi
addl %eax, %edi
addl $-0x5, %edi
sarl %edi
addl %edi, 0x30(%rsi)
addl %edi, 0xc(%rsi)
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
divss 0xd2c7(%rip), %xmm0     # 0x18060
addss 0x18(%rsi), %xmm0
movss %xmm0, 0x18(%rsi)
addl %edx, 0x4(%rsi)
addl $-0x2, %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
sarl $0x2, %eax
addl %eax, 0x10(%rsi)
callq 0x5070
movslq %eax, %rcx
imulq $0x66666667, %rcx, %rax # imm = 0x66666667
movq %rax, %rdx
shrq $0x3f, %rdx
sarq $0x22, %rax
addl %edx, %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
subl %eax, %ecx
movl 0x1652f(%rip), %eax     # 0x2130c
cmpl %eax, %ecx
jle 0xadea
addl %eax, %eax
movq (%rsp), %rcx
addl %eax, 0x20(%rcx)
movq 0x63607(%rip), %rsi     # 0x6e3f8
cmpq 0x63608(%rip), %rsi     # 0x6e400
je 0xae0b
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x635ef(%rip)     # 0x6e3f8
jmp 0xae1a
leaq 0x635de(%rip), %rdi     # 0x6e3f0
movq %rsp, %rdx
callq 0x16212
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xae2e
callq 0x5230
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rbx
cmpq %rbx, %rdi
je 0xae42
callq 0x5230
incq %rbp
cmpq $0x8, %rbp
jne 0x9884
leaq 0x558(%rsp), %rbx
xorl %r14d, %r14d
movq 0x548(%rsp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0xae70
callq 0x5230
addq $-0x30, %r14
cmpq $-0x270, %r14           # imm = 0xFD90
jne 0xae5a
leaq 0x2e8(%rsp), %rbx
xorl %r14d, %r14d
movq 0x2d8(%rsp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0xae9e
callq 0x5230
addq $-0x30, %r14
cmpq $-0x270, %r14           # imm = 0xFD90
jne 0xae88
addq $0x578, %rsp            # imm = 0x578
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xafa6
jmp 0xaed6
jmp 0xaed6
jmp 0xaed6
jmp 0xaed6
jmp 0xaed6
jmp 0xaed6
jmp 0xaed6
jmp 0xaed6
jmp 0xaed6
jmp 0xaed6
movq %rax, %rbx
movq -0x28(%r15), %rdi
leaq -0x18(%r15), %rax
cmpq %rdi, %rax
je 0xaeeb
callq 0x5230
addq $-0x30, %r15
cmpq %r14, %r15
jne 0xaed9
jmp 0xafc8
jmp 0xaefb
movq %rax, %rbx
jmp 0xafc8
jmp 0xaf17
jmp 0xaf17
jmp 0xaf17
jmp 0xaf17
jmp 0xaf17
jmp 0xaf17
jmp 0xaf17
jmp 0xaf17
jmp 0xaf17
jmp 0xaf17
movq %rax, %rbx
leaq 0x90(%rsp), %r14
movq -0x28(%r15), %rdi
leaq -0x18(%r15), %rax
cmpq %rdi, %rax
je 0xaf34
callq 0x5230
addq $-0x30, %r15
cmpq %r14, %r15
jne 0xaf22
jmp 0xafe7
jmp 0xaf79
jmp 0xaf79
jmp 0xaf79
jmp 0xaf79
jmp 0xaf79
jmp 0xaf79
jmp 0xaf79
jmp 0xafa6
jmp 0xafa6
jmp 0xaf56
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
jne 0xaf9f
jmp 0xafa9
movq %rax, %rbx
jmp 0xaf81
jmp 0xafa6
jmp 0xafa6
jmp 0xaf79
jmp 0xaf79
jmp 0xaf79
movq %rax, %rbx
leaq 0x20(%rsp), %r15
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xaf95
callq 0x5230
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0xafa9
callq 0x5230
jmp 0xafa9
movq %rax, %rbx
movq $-0x270, %r15           # imm = 0xFD90
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0xafbe
callq 0x5230
addq $-0x30, %r14
addq $0x30, %r15
jne 0xafb0
movq $-0x270, %r14           # imm = 0xFD90
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0xafdd
callq 0x5230
addq $-0x30, %r13
addq $0x30, %r14
jne 0xafcf
movq %rbx, %rdi
callq 0x53d0