// File: /workspace/github_cpp_makefile_star2_O2/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 $0x558, %rsp            # imm = 0x558
callq 0x6ea5
leaq 0x2e8(%rsp), %rbx
movl $0x3f800000, -0x8(%rbx) # imm = 0x3F800000
leaq 0xca8f(%rip), %r15      # 0x14815
leaq 0x70(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5110
movb $0x0, 0x20(%rbx)
leaq 0x310(%rsp), %r14
movl $0x3fc00000, (%r14)     # imm = 0x3FC00000
leaq 0x318(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movq %r15, %rsi
callq 0x5110
leaq 0x340(%rsp), %r14
movb $0x0, -0x8(%r14)
movl $0x3fc00000, (%r14)     # imm = 0x3FC00000
leaq 0x348(%rsp), %rdi
leaq 0xca34(%rip), %rsi      # 0x14815
leaq 0x10(%rsp), %rdx
callq 0x5110
leaq 0x370(%rsp), %r14
movb $0x0, -0x8(%r14)
movl $0x40000000, (%r14)     # imm = 0x40000000
leaq 0x378(%rsp), %rdi
leaq 0xca07(%rip), %rsi      # 0x14815
leaq 0x50(%rsp), %rdx
callq 0x5110
leaq 0x3a0(%rsp), %r14
movb $0x0, -0x8(%r14)
andl $0x0, (%r14)
leaq 0x3a8(%rsp), %rdi
leaq 0xe284(%rip), %rsi      # 0x160bc
movq %rsp, %rdx
callq 0x5110
leaq 0x3d0(%rsp), %r14
movb $0x0, -0x8(%r14)
movl $0x40133333, (%r14)     # imm = 0x40133333
leaq 0x3d8(%rsp), %rdi
leaq 0xc9b2(%rip), %rsi      # 0x14815
leaq 0x8(%rsp), %rdx
callq 0x5110
leaq 0x400(%rsp), %r14
movb $0x0, -0x8(%r14)
andl $0x0, (%r14)
leaq 0x408(%rsp), %rdi
leaq 0xe22f(%rip), %rsi      # 0x160bc
leaq 0xe(%rsp), %rdx
callq 0x5110
leaq 0x430(%rsp), %r14
movb $0x0, -0x8(%r14)
andl $0x0, (%r14)
leaq 0x438(%rsp), %rdi
leaq 0xe205(%rip), %rsi      # 0x160bc
leaq 0xd(%rsp), %rdx
callq 0x5110
leaq 0x460(%rsp), %r14
movb $0x0, -0x8(%r14)
andl $0x0, (%r14)
leaq 0x468(%rsp), %rdi
leaq 0xe1db(%rip), %rsi      # 0x160bc
leaq 0xc(%rsp), %rdx
callq 0x5110
leaq 0x490(%rsp), %r14
movb $0x0, -0x8(%r14)
andl $0x0, (%r14)
leaq 0x498(%rsp), %rdi
leaq 0xe1b1(%rip), %rsi      # 0x160bc
leaq 0xb(%rsp), %rdx
callq 0x5110
leaq 0x4c0(%rsp), %r14
movb $0x0, -0x8(%r14)
andl $0x0, (%r14)
leaq 0x4c8(%rsp), %rdi
leaq 0xe187(%rip), %rsi      # 0x160bc
leaq 0xa(%rsp), %rdx
callq 0x5110
leaq 0x4f0(%rsp), %r14
movb $0x0, -0x8(%r14)
andl $0x0, (%r14)
leaq 0x4f8(%rsp), %rdi
leaq 0xe15d(%rip), %rsi      # 0x160bc
leaq 0x9(%rsp), %rdx
callq 0x5110
xorl %eax, %eax
leaq 0x538(%rsp), %rcx
movb %al, -0x20(%rcx)
andl $0x0, -0x18(%rcx)
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movb %al, (%rcx)
movb %al, 0x10(%rcx)
leaq 0x550(%rsp), %rdx
leaq 0x70(%rsp), %rdi
leaq 0x2e0(%rsp), %rsi
leaq 0x30(%rsp), %rcx
callq 0x10ffe
movq 0x63352(%rip), %rdi     # 0x6b300
leaq 0x70(%rsp), %r14
movq %r14, %rsi
callq 0x11e12
movq %r14, %rdi
callq 0x10e74
movl $0x40000000, (%r14)     # imm = 0x40000000
leaq 0x78(%rsp), %rdi
leaq 0xc83f(%rip), %rsi      # 0x14815
leaq 0x30(%rsp), %rdx
callq 0x5110
leaq 0xa0(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x40400000, (%r15)     # imm = 0x40400000
leaq 0xa8(%rsp), %rdi
leaq 0xc812(%rip), %rsi      # 0x14815
leaq 0x10(%rsp), %rdx
callq 0x5110
leaq 0xd0(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x40600000, (%r15)     # imm = 0x40600000
leaq 0xd8(%rsp), %rdi
leaq 0xc7e5(%rip), %rsi      # 0x14815
leaq 0x50(%rsp), %rdx
callq 0x5110
leaq 0x100(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x40400000, (%r15)     # imm = 0x40400000
leaq 0x108(%rsp), %rdi
leaq 0xc7b8(%rip), %rsi      # 0x14815
movq %rsp, %rdx
callq 0x5110
leaq 0x130(%rsp), %r15
movb $0x0, -0x8(%r15)
andl $0x0, (%r15)
leaq 0x138(%rsp), %rdi
leaq 0xe037(%rip), %rsi      # 0x160bc
leaq 0x8(%rsp), %rdx
callq 0x5110
leaq 0x160(%rsp), %r15
movb $0x0, -0x8(%r15)
movl $0x40533333, (%r15)     # imm = 0x40533333
leaq 0x168(%rsp), %rdi
leaq 0xc763(%rip), %rsi      # 0x14815
leaq 0xe(%rsp), %rdx
callq 0x5110
leaq 0x190(%rsp), %r15
movb $0x0, -0x8(%r15)
andl $0x0, (%r15)
leaq 0x198(%rsp), %rdi
leaq 0xdfe0(%rip), %rsi      # 0x160bc
leaq 0xd(%rsp), %rdx
callq 0x5110
leaq 0x1c0(%rsp), %r15
movb $0x0, -0x8(%r15)
andl $0x0, (%r15)
leaq 0x1c8(%rsp), %rdi
leaq 0xdfb6(%rip), %rsi      # 0x160bc
leaq 0xc(%rsp), %rdx
callq 0x5110
leaq 0x1f0(%rsp), %r15
movb $0x0, -0x8(%r15)
andl $0x0, (%r15)
leaq 0x1f8(%rsp), %rdi
leaq 0xdf8c(%rip), %rsi      # 0x160bc
leaq 0xb(%rsp), %rdx
callq 0x5110
leaq 0x220(%rsp), %r15
movb $0x0, -0x8(%r15)
andl $0x0, (%r15)
leaq 0x228(%rsp), %rdi
leaq 0xdf62(%rip), %rsi      # 0x160bc
leaq 0xa(%rsp), %rdx
callq 0x5110
leaq 0x250(%rsp), %r15
movb $0x0, -0x8(%r15)
andl $0x0, (%r15)
leaq 0x258(%rsp), %rdi
leaq 0xdf38(%rip), %rsi      # 0x160bc
leaq 0x9(%rsp), %rdx
callq 0x5110
leaq 0x280(%rsp), %r15
movb $0x0, -0x8(%r15)
andl $0x0, (%r15)
leaq 0x288(%rsp), %rdi
leaq 0xdf0e(%rip), %rsi      # 0x160bc
leaq 0xf(%rsp), %rdx
callq 0x5110
xorl %eax, %eax
leaq 0x2c8(%rsp), %rcx
movb %al, -0x20(%rcx)
andl $0x0, -0x18(%rcx)
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movb %al, (%rcx)
movb %al, 0x10(%rcx)
leaq 0x2e0(%rsp), %rdx
leaq 0x30(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0x10(%rsp), %rcx
callq 0x10ffe
movq 0x6311e(%rip), %rdi     # 0x6b318
leaq 0x30(%rsp), %r15
movq %r15, %rsi
callq 0x11e12
movq %r15, %rdi
callq 0x10e74
pushq $0x1
popq %r14
leaq 0x10(%rsp), %rbx
cmpq $0x8, %r14
je 0x8ef4
movl $0x150, %edi            # imm = 0x150
callq 0x5230
movq %rax, %r12
movl $0x150, %edx            # imm = 0x150
movq %rax, %rdi
xorl %esi, %esi
callq 0x5180
movq %r12, %rdi
callq 0x10f24
movq %r12, (%rsp)
xorl %eax, %eax
movb %al, 0x49(%r12)
andl $0x0, 0x45(%r12)
movl %r14d, (%r12)
movb %al, 0x44(%r12)
andl $0x0, 0x40(%r12)
callq 0x5080
leal -0x5(%r14), %ecx
cltd
pushq $0x3
popq %rsi
idivl %esi
movl %edx, %r12d
cmpl $0x3, %ecx
cmovbl %ecx, %r12d
movq %r15, %rdi
callq 0x6d2a
movq (%rsp), %rdi
movl $0xb0, %eax
addq %rax, %rdi
movq %r15, %rsi
callq 0x52e0
movq %r15, %rdi
callq 0x5418
movb $0x1, %al
pushq $0x1
popq %rbp
cmpq %r14, %rbp
jne 0x82b8
pushq $0x1
popq %rbp
testb $0x1, %al
movb $0x1, %al
je 0x82a8
jmp 0x8300
movq 0x63131(%rip), %rcx     # 0x6b3f0
movq (%rcx,%rbp,8), %rcx
movb 0x24(%rcx), %cl
movq (%rsp), %rdx
movq 0xb0(%rdx), %rdx
cmpb (%rdx), %cl
jne 0x82fb
movq %r15, %rdi
callq 0x6d2a
movq (%rsp), %rdi
movl $0xb0, %eax
addq %rax, %rdi
movq %r15, %rsi
callq 0x52e0
movq %r15, %rdi
callq 0x5418
xorl %eax, %eax
incq %rbp
jmp 0x82a8
movq %r15, %rdi
callq 0x6d2a
movq (%rsp), %rdi
movl $0xd0, %ebp
addq %rbp, %rdi
movq %r15, %rsi
callq 0x52e0
movq %r15, %rdi
callq 0x5418
movq (%rsp), %rsi
movl $0xb0, %eax
addq %rax, %rsi
movq %rbx, %r13
movq %rbx, %rdi
leaq 0xc755(%rip), %rdx      # 0x14a92
callq 0x11030
movq (%rsp), %rdx
addq %rbp, %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0x10ce6
movq (%rsp), %rdi
movl $0xf0, %eax
addq %rax, %rdi
movq %r15, %rsi
callq 0x52e0
movq %r15, %rdi
callq 0x5418
movq %r13, %rdi
callq 0x5418
movq (%rsp), %rax
movq 0xf0(%rax), %rcx
movb (%rcx), %cl
movb %cl, 0x24(%rax)
cmpl $0x3, %r12d
leaq 0x50(%rsp), %rbp
jae 0x83a3
movl %r12d, %ecx
leaq 0xc197(%rip), %rdx      # 0x14534
movl (%rdx,%rcx,4), %ecx
movl %ecx, 0x28(%rax)
movl %r12d, 0x38(%rax)
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
andq $0x0, 0x38(%rsp)
xorl %ecx, %ecx
movb %cl, 0x40(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movb %cl, 0x20(%rsp)
movq %rbp, %rdi
callq 0x6d2a
movq (%rsp), %rdi
movl $0x130, %eax            # imm = 0x130
addq %rax, %rdi
movq %rbp, %rsi
callq 0x52e0
movq %rbp, %rdi
callq 0x5418
testl %r12d, %r12d
je 0x8646
cmpl $0x1, %r12d
je 0x8526
cmpl $0x2, %r12d
jne 0x8e61
movq (%rsp), %rdi
movl $0x110, %eax            # imm = 0x110
addq %rax, %rdi
leaq 0xc6bd(%rip), %rsi      # 0x14ae2
callq 0x53f0
callq 0x5080
cltd
pushq $0x8
popq %rcx
idivl %ecx
addl $0x8, %edx
movq (%rsp), %rax
movl %edx, 0xc(%rax)
callq 0x5080
cltd
pushq $0xa
popq %rcx
idivl %ecx
addl $0x14, %edx
movq (%rsp), %rax
movl %edx, 0x4(%rax)
callq 0x5080
cltd
pushq $0x7
popq %rcx
idivl %ecx
addl $0x5, %edx
movq (%rsp), %rax
movl %edx, 0x8(%rax)
callq 0x5080
cltd
pushq $0x10
popq %rcx
idivl %ecx
addl $0x9, %edx
movq (%rsp), %rax
movl %edx, 0x3c(%rax)
callq 0x5080
cltd
pushq $0xc
popq %rcx
idivl %ecx
movl %edx, %ecx
movl 0x15e7b(%rip), %eax     # 0x1e30c
cltd
pushq $0x5
popq %rsi
idivl %esi
addl $0x3, %eax
xorl %edx, %edx
cmpl %eax, %ecx
jge 0x84ae
callq 0x5080
cltd
pushq $0x1e
popq %rcx
idivl %ecx
addl $0x14, %edx
movq (%rsp), %rax
movl %edx, 0x20(%rax)
callq 0x5080
cltd
pushq $0x7
popq %rcx
idivl %ecx
cmpl $0x6, %edx
ja 0x84e2
movl %edx, %eax
leaq 0xc0da(%rip), %rcx      # 0x145a8
movl (%rcx,%rax,4), %ebp
callq 0x5080
cltd
idivl %ebp
addl %ebp, %edx
movq (%rsp), %rax
movl %edx, 0x10(%rax)
callq 0x5080
cltd
pushq $0x7
popq %rcx
idivl %ecx
movl %edx, %r12d
callq 0x5080
movq (%rsp), %rcx
cltd
cmpl $0x3, %r12d
jg 0x8830
pushq $0xf
popq %rsi
idivl %esi
cvtsi2ss %edx, %xmm0
movss 0xbb03(%rip), %xmm1     # 0x14018
mulss %xmm1, %xmm0
addss 0xbb13(%rip), %xmm0     # 0x14034
jmp 0x8851
movq (%rsp), %rdi
movl $0x110, %eax            # imm = 0x110
addq %rax, %rdi
leaq 0xc589(%rip), %rsi      # 0x14ac2
callq 0x53f0
callq 0x5080
cltd
pushq $0x6
popq %r12
idivl %r12d
addl $0x4, %edx
movq (%rsp), %rax
movl %edx, 0xc(%rax)
callq 0x5080
cltd
idivl %r12d
addl $0xa, %edx
movq (%rsp), %rax
movl %edx, 0x4(%rax)
callq 0x5080
cltd
pushq $0x4
popq %rcx
idivl %ecx
addl $0x4, %edx
movq (%rsp), %rax
movl %edx, 0x8(%rax)
callq 0x5080
cltd
pushq $0x8
popq %rcx
idivl %ecx
addl $0x6, %edx
movq (%rsp), %rax
movl %edx, 0x3c(%rax)
callq 0x5080
cltd
pushq $0xc
popq %rcx
idivl %ecx
movl %edx, %ecx
movl 0x15d67(%rip), %eax     # 0x1e30c
addl $-0x3, %eax
cltd
pushq $0x3
popq %rsi
idivl %esi
addl $0x2, %eax
xorl %edx, %edx
cmpl %eax, %ecx
jge 0x85c5
callq 0x5080
cltd
pushq $0x1e
popq %rcx
idivl %ecx
addl $0x14, %edx
movq (%rsp), %rax
movl %edx, 0x20(%rax)
callq 0x5080
cltd
pushq $0x7
popq %rcx
idivl %ecx
cmpl $0x6, %edx
ja 0x85fe
movl %edx, %eax
leaq 0xbfa7(%rip), %rcx      # 0x1458c
movl (%rcx,%rax,4), %ebp
callq 0x5080
cltd
idivl %ebp
addl %ebp, %edx
leaq 0x50(%rsp), %rbp
movq (%rsp), %rax
movl %edx, 0x10(%rax)
callq 0x5080
cltd
pushq $0x7
popq %rcx
idivl %ecx
movl %edx, %r12d
callq 0x5080
movq (%rsp), %rcx
cltd
cmpl $0x2, %r12d
jg 0x8753
pushq $0x14
popq %rsi
idivl %esi
cvtsi2ss %edx, %xmm0
mulss 0xba0f(%rip), %xmm0     # 0x14040
addss 0xba0b(%rip), %xmm0     # 0x14044
movss 0xba07(%rip), %xmm1     # 0x14048
jmp 0x8774
movq (%rsp), %rdi
movl $0x110, %eax            # imm = 0x110
addq %rax, %rdi
leaq 0xc43b(%rip), %rsi      # 0x14a94
callq 0x53f0
callq 0x5080
cltd
pushq $0x2
popq %rbp
idivl %ebp
addl $0x2, %edx
movq (%rsp), %rax
movl %edx, 0xc(%rax)
callq 0x5080
cltd
pushq $0x4
popq %r12
idivl %r12d
addl $0x4, %edx
movq (%rsp), %rax
movl %edx, 0x4(%rax)
callq 0x5080
cltd
idivl %ebp
incl %edx
movq (%rsp), %rax
movl %edx, 0x8(%rax)
callq 0x5080
cltd
idivl %r12d
addl $0x3, %edx
movq (%rsp), %rax
movl %edx, 0x3c(%rax)
callq 0x5080
cltd
pushq $0xc
popq %rcx
idivl %ecx
movl %edx, %ecx
movl 0x15c4b(%rip), %eax     # 0x1e30c
cltd
pushq $0x3
popq %rsi
idivl %esi
xorl %edx, %edx
cmpl %eax, %ecx
jg 0x86db
callq 0x5080
cltd
pushq $0x14
popq %rcx
idivl %ecx
addl $0xa, %edx
movq (%rsp), %rax
movl %edx, 0x20(%rax)
callq 0x5080
cltd
pushq $0x7
popq %rcx
idivl %ecx
cmpl $0x6, %edx
ja 0x870f
movl %edx, %eax
leaq 0xbe75(%rip), %rcx      # 0x14570
movl (%rcx,%rax,4), %ebp
callq 0x5080
cltd
idivl %ebp
addl %ebp, %edx
movq (%rsp), %rax
movl %edx, 0x10(%rax)
callq 0x5080
cltd
pushq $0x7
popq %rcx
idivl %ecx
movl %edx, %r12d
callq 0x5080
cltd
cmpl $0x1, %r12d
jg 0x87bc
pushq $0xa
popq %rcx
idivl %ecx
cvtsi2ss %edx, %xmm0
divss 0xb91a(%rip), %xmm0     # 0x14058
addss 0xb8ce(%rip), %xmm0     # 0x14014
movss 0xb90e(%rip), %xmm1     # 0x1405c
jmp 0x87df
pushq $0xa
popq %rsi
idivl %esi
cvtsi2ss %edx, %xmm0
mulss 0xb8b4(%rip), %xmm0     # 0x14018
addss 0xb8cc(%rip), %xmm0     # 0x14038
movss 0xb8c8(%rip), %xmm1     # 0x1403c
movss %xmm0, 0x18(%rcx)
movss %xmm1, 0x1c(%rcx)
callq 0x5080
cltd
pushq $0x7
popq %rcx
idivl %ecx
cmpl $0x6, %edx
ja 0x88f0
pushq $0x7
popq %rax
btl %edx, %eax
jb 0x889a
pushq $0x18
popq %rax
btl %edx, %eax
jae 0x88d2
callq 0x5c5a
addss 0xb85d(%rip), %xmm0     # 0x14014
jmp 0x88e7
movl $0x12c, %ecx            # imm = 0x12C
idivl %ecx
cvtsi2ss %edx, %xmm0
mulss 0xb87d(%rip), %xmm0     # 0x1404c
addss 0xb879(%rip), %xmm0     # 0x14050
movss 0xb875(%rip), %xmm1     # 0x14054
movq (%rsp), %rax
movss %xmm0, 0x18(%rax)
movss %xmm1, 0x1c(%rax)
callq 0x5080
cltd
pushq $0x7
popq %rcx
idivl %ecx
cmpl $0x6, %edx
ja 0x8b06
pushq $0x1c
popq %rax
btl %edx, %eax
jb 0x88ae
pushq $0x3
popq %rax
btl %edx, %eax
jae 0x8ae8
callq 0x5080
cltd
pushq $0x4
popq %rcx
idivl %ecx
addl $0x8, %edx
cvtsi2ss %edx, %xmm0
jmp 0x8afd
pushq $0x64
popq %rsi
idivl %esi
cvtsi2ss %edx, %xmm0
mulss 0xb7eb(%rip), %xmm0     # 0x1402c
addss 0xb7e7(%rip), %xmm0     # 0x14030
movss 0xb7c3(%rip), %xmm1     # 0x14014
movss %xmm0, 0x18(%rcx)
movss %xmm1, 0x1c(%rcx)
callq 0x5080
cltd
pushq $0x7
popq %rcx
idivl %ecx
cmpl $0x6, %edx
ja 0x8cd0
pushq $0x1c
popq %rax
btl %edx, %eax
jb 0x88c0
pushq $0x3
popq %rax
btl %edx, %eax
jae 0x8cb2
callq 0x5080
cltd
pushq $0x4
popq %rcx
idivl %ecx
addl $0x8, %edx
cvtsi2ss %edx, %xmm0
jmp 0x8cc7
callq 0x5080
cltd
pushq $0x4
popq %rcx
idivl %ecx
addl $0x8, %edx
cvtsi2ss %edx, %xmm0
jmp 0x88e7
callq 0x5c5a
addss 0xb759(%rip), %xmm0     # 0x14014
jmp 0x8afd
callq 0x5c5a
addss 0xb747(%rip), %xmm0     # 0x14014
jmp 0x8cc7
callq 0x5c5a
addss 0xb735(%rip), %xmm0     # 0x14014
mulss 0xb731(%rip), %xmm0     # 0x14018
movq (%rsp), %rax
movss %xmm0, 0x14(%rax)
callq 0x5080
cltd
pushq $0x4
popq %rcx
idivl %ecx
addl $0x8, %edx
movq (%rsp), %rax
movl %edx, 0x2c(%rax)
callq 0x5080
cltd
pushq $0xa
popq %rcx
idivl %ecx
pushq $0x5
popq %rax
movq %rax, %r13
addl %edx, %eax
movq (%rsp), %rcx
imull 0x2c(%rcx), %eax
cltd
idivl %r13d
movl %eax, %r12d
callq 0x5080
cltd
pushq $0x4
popq %rcx
idivl %ecx
addl %r12d, %edx
movq (%rsp), %rax
movl %edx, 0x30(%rax)
callq 0x5080
cltd
idivl %r13d
movl %edx, %r12d
addl $0x7, %r12d
movq (%rsp), %rax
imull 0x30(%rax), %r12d
callq 0x5080
movq (%rsp), %rcx
movl 0x30(%rcx), %esi
addl %esi, %esi
cltd
idivl %esi
addl %r12d, %edx
shll $0x2, %edx
movl %edx, 0x34(%rcx)
movq %rbp, %rdi
leaq 0x2e0(%rsp), %rsi
leaq 0x550(%rsp), %rdx
leaq 0x8(%rsp), %rcx
callq 0x10ffe
imulq $0x18, %r14, %r12
movq 0x62969(%rip), %rdi     # 0x6b300
addq %r12, %rdi
movq %rbp, %rsi
callq 0x11e12
movq %rbp, %rdi
callq 0x10e74
callq 0x5080
cltd
pushq $0x3
popq %rcx
idivl %ecx
cmpl $0x3, %edx
jae 0x89d2
movl %edx, %eax
leaq 0xbb95(%rip), %rcx      # 0x14558
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
movq %r15, %rdi
callq 0x53f0
callq 0x5080
cltd
pushq $0x2
popq %rcx
idivl %ecx
leaq 0xbfb7(%rip), %rsi      # 0x1499b
testl %edx, %edx
je 0x89f4
cmpl $0x1, %edx
jne 0x89fc
leaq 0xc6a6(%rip), %rsi      # 0x1509a
movq %rbx, %rdi
callq 0x53f0
movq %rbp, %rdi
leaq 0x2e0(%rsp), %rsi
leaq 0x550(%rsp), %rdx
leaq 0x8(%rsp), %r13
movq %r13, %rcx
callq 0x10ffe
movq 0x628dd(%rip), %rdi     # 0x6b300
addq %r12, %rdi
movq %rbp, %rsi
callq 0x11e12
movq %rbp, %rdi
callq 0x10e74
movq %rbp, %rdi
leaq 0x70(%rsp), %rsi
leaq 0x2e0(%rsp), %rdx
movq %r13, %rcx
callq 0x10ffe
movq 0x628c3(%rip), %rdi     # 0x6b318
addq %r12, %rdi
movq %rbp, %rsi
callq 0x11e12
movq %rbp, %rdi
callq 0x10e74
pushq $0x8
popq %rbp
cmpq $0x278, %rbp            # imm = 0x278
je 0x8e61
movq 0x62881(%rip), %rax     # 0x6b300
movq (%rax,%r12), %rdi
addq %rbp, %rdi
movq %r15, %rsi
callq 0x5170
movq 0x6286b(%rip), %rax     # 0x6b300
movq (%rax,%r12), %rax
movss -0x8(%rax,%rbp), %xmm0
addss 0xb575(%rip), %xmm0     # 0x1401c
movss %xmm0, -0x8(%rax,%rbp)
movq 0x62864(%rip), %rax     # 0x6b318
movq (%rax,%r12), %rdi
addq %rbp, %rdi
movq %rbx, %rsi
callq 0x5170
movq 0x6284e(%rip), %rax     # 0x6b318
movq (%rax,%r12), %rax
movss -0x8(%rax,%rbp), %xmm0
addss 0xb544(%rip), %xmm0     # 0x14020
movss %xmm0, -0x8(%rax,%rbp)
addq $0x30, %rbp
jmp 0x8a6b
callq 0x5c5a
addss 0xb51f(%rip), %xmm0     # 0x14014
mulss 0xb51b(%rip), %xmm0     # 0x14018
movq (%rsp), %rax
movss %xmm0, 0x14(%rax)
callq 0x5080
cltd
pushq $0x7
popq %rcx
idivl %ecx
addl $0x9, %edx
movq (%rsp), %rax
movl %edx, 0x2c(%rax)
movl %edx, %eax
shrb %al
addb %dl, %al
movzbl %al, %ebp
callq 0x5080
cltd
pushq $0x3
popq %r13
idivl %r13d
addl %ebp, %edx
movq (%rsp), %rax
movl %edx, 0x30(%rax)
callq 0x5080
cltd
pushq $0x4
popq %rcx
idivl %ecx
movl %edx, %r12d
addl $0x6, %r12d
movq (%rsp), %rax
imull 0x30(%rax), %r12d
callq 0x5080
movq (%rsp), %rcx
movl 0x30(%rcx), %esi
addl %esi, %esi
cltd
idivl %esi
addl %r12d, %edx
leal (%rdx,%rdx,4), %eax
movl %eax, 0x34(%rcx)
callq 0x5080
cltd
idivl %r13d
cmpl $0x2, %edx
leaq 0x50(%rsp), %rbp
ja 0x8b9a
movl %edx, %eax
leaq 0xb9b5(%rip), %rcx      # 0x14540
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
movq %r15, %rdi
callq 0x53f0
callq 0x5080
cltd
pushq $0x3
popq %rcx
idivl %ecx
cmpl $0x2, %edx
ja 0x8bc2
movl %edx, %eax
leaq 0xb999(%rip), %rcx      # 0x1454c
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
movq %rbx, %rdi
callq 0x53f0
movq %rbp, %rdi
leaq 0x2e0(%rsp), %rsi
leaq 0x550(%rsp), %rdx
leaq 0x8(%rsp), %r13
movq %r13, %rcx
callq 0x10ffe
imulq $0x18, %r14, %r12
movq 0x62713(%rip), %rdi     # 0x6b300
addq %r12, %rdi
movq %rbp, %rsi
callq 0x11e12
movq %rbp, %rdi
callq 0x10e74
movq %rbp, %rdi
leaq 0x70(%rsp), %rsi
leaq 0x2e0(%rsp), %rdx
movq %r13, %rcx
callq 0x10ffe
movq 0x626f9(%rip), %rdi     # 0x6b318
addq %r12, %rdi
movq %rbp, %rsi
callq 0x11e12
movq %rbp, %rdi
callq 0x10e74
pushq $0x8
popq %rbp
cmpq $0x278, %rbp            # imm = 0x278
je 0x8e61
movq 0x626b7(%rip), %rax     # 0x6b300
movq (%rax,%r12), %rdi
addq %rbp, %rdi
movq %r15, %rsi
callq 0x5170
movq 0x626a1(%rip), %rax     # 0x6b300
movq (%rax,%r12), %rax
movss -0x8(%rax,%rbp), %xmm0
addss 0xb39b(%rip), %xmm0     # 0x1400c
movss %xmm0, -0x8(%rax,%rbp)
movq 0x6269a(%rip), %rax     # 0x6b318
movq (%rax,%r12), %rdi
addq %rbp, %rdi
movq %rbx, %rsi
callq 0x5170
movq 0x62684(%rip), %rax     # 0x6b318
movq (%rax,%r12), %rax
movss -0x8(%rax,%rbp), %xmm0
addss 0xb36a(%rip), %xmm0     # 0x14010
movss %xmm0, -0x8(%rax,%rbp)
addq $0x30, %rbp
jmp 0x8c35
callq 0x5c5a
addss 0xb355(%rip), %xmm0     # 0x14014
mulss 0xb351(%rip), %xmm0     # 0x14018
movq (%rsp), %rax
movss %xmm0, 0x14(%rax)
callq 0x5080
cltd
pushq $0x3
popq %rbp
idivl %ebp
movl %edx, %r12d
leal 0x6(%r12), %eax
movq (%rsp), %rcx
movl %eax, 0x2c(%rcx)
callq 0x5080
cltd
pushq $0x6
popq %rcx
idivl %ecx
leal (%rdx,%r12), %eax
addl $0x6, %eax
movq (%rsp), %rcx
movl %eax, 0x30(%rcx)
callq 0x5080
cltd
pushq $0x4
popq %rcx
idivl %ecx
movl %edx, %r12d
addl $0x5, %r12d
movq (%rsp), %rax
imull 0x30(%rax), %r12d
callq 0x5080
movq (%rsp), %rcx
movl 0x30(%rcx), %esi
addl %esi, %esi
cltd
idivl %esi
addl %r12d, %edx
addl %edx, %edx
movl %edx, 0x34(%rcx)
callq 0x5080
cltd
idivl %ebp
cmpl $0x2, %edx
leaq 0x50(%rsp), %rbp
ja 0x8d61
movl %edx, %eax
leaq 0xb812(%rip), %rcx      # 0x14564
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
movq %r15, %rdi
callq 0x53f0
callq 0x5080
movq %rbx, %rdi
leaq 0xbd19(%rip), %rsi      # 0x14a89
callq 0x53f0
movq %rbp, %rdi
leaq 0x2e0(%rsp), %rsi
leaq 0x550(%rsp), %rdx
leaq 0x8(%rsp), %r13
movq %r13, %rcx
callq 0x10ffe
imulq $0x18, %r14, %r12
movq 0x62560(%rip), %rdi     # 0x6b300
addq %r12, %rdi
movq %rbp, %rsi
callq 0x11e12
movq %rbp, %rdi
callq 0x10e74
movq %rbp, %rdi
leaq 0x70(%rsp), %rsi
leaq 0x2e0(%rsp), %rdx
movq %r13, %rcx
callq 0x10ffe
movq 0x62546(%rip), %rdi     # 0x6b318
addq %r12, %rdi
movq %rbp, %rsi
callq 0x11e12
movq %rbp, %rdi
callq 0x10e74
pushq $0x8
popq %rbp
cmpq $0x278, %rbp            # imm = 0x278
je 0x8e61
movq 0x62508(%rip), %rax     # 0x6b300
movq (%rax,%r12), %rdi
addq %rbp, %rdi
movq %r15, %rsi
callq 0x5170
movq 0x624f2(%rip), %rax     # 0x6b300
movq (%rax,%r12), %rax
movss -0x8(%rax,%rbp), %xmm0
addss 0xb204(%rip), %xmm0     # 0x14024
movss %xmm0, -0x8(%rax,%rbp)
movq 0x624eb(%rip), %rax     # 0x6b318
movq (%rax,%r12), %rdi
addq %rbp, %rdi
movq %rbx, %rsi
callq 0x5170
movq 0x624d5(%rip), %rax     # 0x6b318
movq (%rax,%r12), %rax
movss -0x8(%rax,%rbp), %xmm0
addss 0xb1d3(%rip), %xmm0     # 0x14028
movss %xmm0, -0x8(%rax,%rbp)
addq $0x30, %rbp
jmp 0x8de8
movl 0x154a5(%rip), %ecx     # 0x1e30c
addl $-0x5, %ecx
movl %ecx, %eax
cltd
pushq $0x3
popq %rsi
idivl %esi
movl %eax, %esi
movq (%rsp), %rdi
addl %eax, 0x2c(%rdi)
movl %ecx, %eax
cltd
pushq $0x2
popq %r8
idivl %r8d
addl %eax, 0x30(%rdi)
addl %eax, 0xc(%rdi)
cvtsi2ss %ecx, %xmm0
divss 0xb1c9(%rip), %xmm0     # 0x14060
addss 0x18(%rdi), %xmm0
movss %xmm0, 0x18(%rdi)
addl %esi, 0x4(%rdi)
movl %ecx, %eax
cltd
pushq $0x4
popq %rcx
idivl %ecx
addl %eax, 0x10(%rdi)
callq 0x5080
cltd
pushq $0xa
popq %rcx
idivl %ecx
movl 0x1544c(%rip), %eax     # 0x1e30c
cmpl %eax, %edx
jle 0x8ecd
addl %eax, %eax
movq (%rsp), %rcx
addl %eax, 0x20(%rcx)
leaq 0x6251c(%rip), %rdi     # 0x6b3f0
movq %rsp, %rsi
callq 0x10fe0
movq %rbx, %rdi
callq 0x5418
movq %r15, %rdi
callq 0x5418
incq %r14
jmp 0x8218
movl $0x248, %ebx            # imm = 0x248
leaq (%rsp,%rbx), %rdi
addq $0x70, %rdi
callq 0x5418
addq $-0x30, %rbx
cmpq $-0x28, %rbx
jne 0x8ef9
movl $0x248, %ebx            # imm = 0x248
leaq (%rsp,%rbx), %rdi
addq $0x2e0, %rdi            # imm = 0x2E0
callq 0x5418
addq $-0x30, %rbx
cmpq $-0x28, %rbx
jne 0x8f15
addq $0x558, %rsp            # imm = 0x558
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9001
jmp 0x8f5a
jmp 0x8f5a
jmp 0x8f5a
jmp 0x8f5a
jmp 0x8f5a
jmp 0x8f5a
jmp 0x8f5a
jmp 0x8f5a
jmp 0x8f5a
jmp 0x8f5a
movq %rax, %rbx
leaq -0x30(%r15), %r12
addq $-0x28, %r15
movq %r15, %rdi
callq 0x5418
movq %r12, %r15
cmpq %r14, %r12
jne 0x8f5d
jmp 0x9021
jmp 0x8f7c
movq %rax, %rbx
jmp 0x9021
jmp 0x8f98
jmp 0x8f98
jmp 0x8f98
jmp 0x8f98
jmp 0x8f98
jmp 0x8f98
jmp 0x8f98
jmp 0x8f98
jmp 0x8f98
jmp 0x8f98
movq %rax, %rbx
leaq 0x2e0(%rsp), %r15
leaq -0x30(%r14), %r12
addq $-0x28, %r14
movq %r14, %rdi
callq 0x5418
movq %r12, %r14
cmpq %r15, %r12
jne 0x8fa3
jmp 0x9041
jmp 0x8fe8
jmp 0x8fe8
jmp 0x8fe8
jmp 0x8fe8
jmp 0x8fe8
jmp 0x8fe8
jmp 0x8fe8
jmp 0x9001
jmp 0x9001
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x8ffa
jmp 0x8fe8
jmp 0x9001
jmp 0x9001
jmp 0x8fe8
jmp 0x8fe8
jmp 0x8fe8
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5418
leaq 0x30(%rsp), %rdi
callq 0x5418
jmp 0x9004
movq %rax, %rbx
movl $0x248, %r14d           # imm = 0x248
leaq (%rsp,%r14), %rdi
addq $0x70, %rdi
callq 0x5418
addq $-0x30, %r14
cmpq $-0x28, %r14
jne 0x900a
movl $0x248, %r14d           # imm = 0x248
leaq (%rsp,%r14), %rdi
addq $0x2e0, %rdi            # imm = 0x2E0
callq 0x5418
addq $-0x30, %r14
cmpq $-0x28, %r14
jne 0x9027
movq %rbx, %rdi
callq 0x53c0