// File: /workspace/github_c_makefile_star2_O0/S01den[P]Lost_CavernRL/ennemy.c
// Function: iaCore
void iaCore(Ennemy ennemies[], Player *player, Map map[LONGUEUR][LARGEUR], int *nbrEnnmies, char messagePrint[], int *colorPrint, Armor *armor, WINDOW *win_msg, int *source)
{
// this is a ratio-based IA
// do enemies who can teleport themselves and enemies who can infect the player
	int degats = 0;
	int i = 0;
	int action = 0;

	for(i = 0; i < *nbrEnnmies; i++)
	{
		if(map[ennemies[i].x][ennemies[i].y].effect == 2) // if the enemy is in a radioactive zone
		{
			ennemies[i].life--;
		}
		else if(map[ennemies[i].x][ennemies[i].y].effect == 1 || map[ennemies[i].x][ennemies[i].y].effect == 3) // if the enemy is in a fire zone
		{
			ennemies[i].life-=4;
			ennemies[i].effect = 1;
		}

		if(ennemies[i].effect == 1)
		{
			ennemies[i].life -= 5;
			if(rand()%10 == 0)
			{
				ennemies[i].effect = 0;
			}
		}

		if(map[ennemies[i].x][ennemies[i].y].trap == 1)
		{
			ennemies[i].life -= 5;
			map[ennemies[i].x][ennemies[i].y].trap = 0;
			map[ennemies[i].x][ennemies[i].y].content = FLOOR;
		}
		else if(map[ennemies[i].x][ennemies[i].y].trap == 2)
		{
			ennemies[i].effect = 2;
			map[ennemies[i].x][ennemies[i].y].trap = 0;
			map[ennemies[i].x][ennemies[i].y].content = FLOOR;
			if(rand()%5 == 0)
			{
				ennemies[i].effect = 0;
			}
		}
		else if(map[ennemies[i].x][ennemies[i].y].trap == 3)
		{
			map[ennemies[i].x][ennemies[i].y].trap = 0;
			map[ennemies[i].x][ennemies[i].y].content = FLOOR;
			map[ennemies[i].x][ennemies[i].y+1].effect = 1;
			map[ennemies[i].x][ennemies[i].y-1].effect = 1;
			map[ennemies[i].x+1][ennemies[i].y].effect = 1;
			map[ennemies[i].x-1][ennemies[i].y].effect = 1;	
		}
		
		if(ennemies[i].life > 0 && ennemies[i].effect != 2)
		{
			switch(ennemies[i].type)
			{
				case 1: // droid
					if(ennemies[i].boss == 3)
					{
						action = rand()%100+1;
						if(action <= 10)
						{
							snprintf(messagePrint,100,"YOU CAN'T WIN THIS GAME!");
							player->life -= rand()%5+1;
							player->state = rand()%3+1;
							popUpArchitect();
						}
						else if(action > 10 && action <= 30)
						{
							map[player->x+1][player->y].content = WALL;
							map[player->x+1][player->y].resistance = 10;
							map[player->x-1][player->y].content = WALL;
							map[player->x-1][player->y].resistance = 10;
							map[player->x][player->y+1].content = WALL;
							map[player->x][player->y+1].resistance = 10;
							map[player->x][player->y-1].content = WALL;
							map[player->x][player->y-1].resistance = 10;
						}
						else if(action > 30 && action <= 40)
						{
							int n = 0;
							for(n = 0; n < LARGEUR; n++)
							{
								map[ennemies[i].x+1][n].content = WALL;
								map[ennemies[i].x+1][n].resistance = 5;
								map[ennemies[i].x+2][n].effect = 1;
							}
						}
						else if(action > 40 && action <= 60)
						{
							int n = 0;
							for(n = 0; n < LONGUEUR; n++)
							{
								map[n][player->y-1].effect = 1;
								map[n][player->y+1].effect = 1;
							}				
						}
						else if(action > 60 && action <= 70)
						{
							int n = 0;
							int m = 0;
							int col = rand()%LARGEUR;
							for(m = col; m < LARGEUR; m++)
							{
								for(n = 0; n < LONGUEUR; n++)
								{
									if(player->x == n && player->y == m)
									{
										player->life -= 10;
									}
									else
									{
										map[n][m].content = WALL;
										map[n][m].resistance = 5;
									}
								}	
							}
						}
						else if(action > 70 && action <= 95)
						{
							moveRand(ennemies,map,i);
						}
						else
						{
							map[rand()%LONGUEUR][rand()%LARGEUR].effect = 3;
						}
					}
					else
					{
						if(ennemies[i].seen == 0)
						{
							moveRand(ennemies,map,i);
						}
						else
						{
							action = rand()%10;
							if(action > 7 || (ennemies[i].life <= 15 && action > 4)) 
							{
								wclear(win_msg);
								repair(ennemies,i, colorPrint, messagePrint);
							}
							else if(action == 0)
							{
								moveRand(ennemies,map,i);
							}
							else
							{
								if(abs(player->x-ennemies[i].x) <= 1 && abs(player->y-ennemies[i].y) <= 1)
								{
									//melee
									if(rand()%101 <= ennemies[i].efficiency)
									{
										int degats = ennemies[i].strength*2 + rand()%3+1 - abs(armor->resistance);
										if(degats > 0)
										{
											armor->state -= degats/3;
											player->life -= degats/2;
											wclear(win_msg);
											*colorPrint = 197; // RED LIKE BLOOOOOOOD
											snprintf(messagePrint,100,"%s HITS YOU WITH HIS ROTATIVE BLADE (-%d LP)",ennemies[i].name,degats/2); 
											*source = 7;
										}
									}
									else
									{
										wclear(win_msg);
										*colorPrint = 47;
										snprintf(messagePrint,100,"%s MISSED YOU !",ennemies[i].name);
									}
								}
								else
								{
									if(ennemies[i].haveBlaster != 1)
									{
										if(abs(player->x - ennemies[i].x) > abs(player->y-ennemies[i].y))
										{
											if(player->x > ennemies[i].x)
											{
												if(map[ennemies[i].x+1][ennemies[i].y].content != WALL && map[ennemies[i].x+1][ennemies[i].y].content != DOOR)
													ennemies[i].x++;
											}
											else
											{
												if(map[ennemies[i].x-1][ennemies[i].y].content != WALL && map[ennemies[i].x-1][ennemies[i].y].content != DOOR)
													ennemies[i].x--;
											}
										}
										else
										{
											if(player->y > ennemies[i].y)
											{
												if(map[ennemies[i].x][ennemies[i].y+1].content != WALL && map[ennemies[i].x][ennemies[i].y+1].content != DOOR)
													ennemies[i].y++;
											}
											else
											{
												if(map[ennemies[i].x][ennemies[i].y-1].content != WALL && map[ennemies[i].x][ennemies[i].y-1].content != DOOR)
													ennemies[i].y--;
											}
										}
									}
									else
									{
										if(rand()%101 <= ennemies[i].efficiency)
										{
											degats = blastHit(ennemies[i],player,armor,map);
											if(degats > 0)
											{
												wclear(win_msg);
												*colorPrint = 197; // RED LIKE BLOOOOOOOD
												snprintf(messagePrint,100,"%s HITS YOU WITH HIS HIS BLASTER (-%d LP)",ennemies[i].name,degats/2);	
												*source = 7;			
											}
										}
										else
										{
											wclear(win_msg);
											*colorPrint = 47;
											snprintf(messagePrint,100,"%s MISSED YOU !",ennemies[i].name);
										}
									}
								}
							}
						}
					}
				break;

				case 2: // sentry
					action = rand()%10;
					if(ennemies[i].seen == 0)
					{
						if(rand()%75 == 0)
						{
							ennemies[i].life++;
						}
					}
					else
					{
						if(ennemies[i].boss != 0)
						{
							if(action <= 6)
							{
								if(rand()%101 <= ennemies[i].efficiency)
								{
									degats = blastHit(ennemies[i],player,armor,map);
									if(degats > 0)
									{
										wclear(win_msg);
										*colorPrint = 197; // RED LIKE BLOOOOOOOD
										snprintf(messagePrint,100,"%s HITS YOU WITH HIS HIS LASER-CANON (-%d LP)",ennemies[i].name,degats/2);
										*source = 8;		
									}
								}
								else
								{
									wclear(win_msg);
									*colorPrint = 47;
									snprintf(messagePrint,100,"%s MISSED YOU !",ennemies[i].name);
								}			
							}
							else if(action == 7)
							{
								int xBomb = rand()%5-2;
								int yBomb = rand()%5-2;
								wclear(win_msg);
								*colorPrint = 197; // RED LIKE BLOOOOOOOD
								snprintf(messagePrint,100,"%s THROWS A BOMB NEAR YOU !",ennemies[i].name);
								map[player->x+xBomb][player->y+yBomb].content = BOMB;
								map[player->x+xBomb][player->y+yBomb].resistance = 4;
							}
							else if(action == 8)
							{
								wclear(win_msg);
								*colorPrint = 47;
								snprintf(messagePrint,100,"********** BUG ! CORE DUMPED ! **********");					
							}
							else
							{
								*colorPrint = 197; // RED LIKE BLOOOOOOOD
								snprintf(messagePrint,100,"*** FIRE MODULE ACTIVATED ! ***");
								map[player->x+rand()%5-2][player->y+rand()%5-2].effect = 1;
							}

						}
						else
						{
							if(action <= 7)
							{
								if(rand()%101 <= ennemies[i].efficiency)
								{
									degats = blastHit(ennemies[i],player,armor,map);
									if(degats > 0)
									{
										wclear(win_msg);
										*colorPrint = 197; // RED LIKE BLOOOOOOOD
										snprintf(messagePrint,100,"%s HITS YOU WITH HIS HIS LASER-CANON (-%d LP)",ennemies[i].name,degats/2);	
										*source = 8;			
									}
								}
								else
								{
									wclear(win_msg);
									*colorPrint = 47;
									snprintf(messagePrint,100,"%s MISSED YOU !",ennemies[i].name);
								}			
							}
							else
							{
								wclear(win_msg);
								repair(ennemies,i, colorPrint, messagePrint);
							}
						}
					}

				break;

			case 3:
					if(ennemies[i].boss == 1) // BOSS 1: ALTHORUS THE GUARDIAN
					{
						if(abs(player->x-ennemies[i].x) <= 2 && abs(player->y-ennemies[i].y) <= 2 && rand()%6 == 0)
						{
							int sign = 1;
							if(player->x > ennemies[i].x)
								sign = 1;
							else
								sign = -1;
							int turns = 0;
							while(turns < 4 && map[player->x][player->y].content != WALL)
							{
								player->x+=sign;
								turns++;
							}
							if(map[player->x][player->y].content == WALL)
							{
								player->life -= 10;
								armor->state -= 10;
								map[player->x][player->y].content = FLOOR;
							}
						}
						else if(abs(player->x-ennemies[i].x) <= 5 && abs(player->y-ennemies[i].y) <= 5 && (*nbrEnnmies)+1 < ENEMIES_MAX && rand()%10 == 1)
						{
							(*nbrEnnmies)++;
							ennemies[i+(*nbrEnnmies)].x = player->x + rand()%1-3;
							ennemies[i+(*nbrEnnmies)].y = player->y + rand()%1-3;
							ennemies[i+(*nbrEnnmies)].type = 3;
							ennemies[i+(*nbrEnnmies)].boss = 0;
							ennemies[i+(*nbrEnnmies)].life = 30;
							ennemies[i+(*nbrEnnmies)].strength = rand()%3+4;
							ennemies[i+(*nbrEnnmies)].seen = 0;
							ennemies[i+(*nbrEnnmies)].agility = 3;
							ennemies[i+(*nbrEnnmies)].haveBlaster = 0;
							ennemies[i+(*nbrEnnmies)].name = "MINI-GUARDIAN";	
						}
						else
						{
							if(abs(player->x - ennemies[i].x) > abs(player->y-ennemies[i].y))
							{
								if(player->x > ennemies[i].x)
								{
									if(map[ennemies[i].x+1][ennemies[i].y].content != WALL && map[ennemies[i].x+1][ennemies[i].y].content != DOOR)
										ennemies[i].x++;
								}
								else
								{
									if(map[ennemies[i].x-1][ennemies[i].y].content != WALL && map[ennemies[i].x-1][ennemies[i].y].content != DOOR)
										ennemies[i].x--;
								}
							}
							else
							{
								if(player->y > ennemies[i].y)
								{
									if(map[ennemies[i].x][ennemies[i].y+1].content != WALL && map[ennemies[i].x][ennemies[i].y+1].content != DOOR)
										ennemies[i].y++;
								}
								else
								{
									if(map[ennemies[i].x][ennemies[i].y-1].content != WALL && map[ennemies[i].x][ennemies[i].y-1].content != DOOR)
										ennemies[i].y--;
								}
							}
						}
					}
					else
					{
						if(abs(player->x-ennemies[i].x) <= 1 && abs(player->y-ennemies[i].y) <= 1)
						{
						//melee
							if(rand()%101 <= ennemies[i].efficiency)
							{
								int degats = ennemies[i].strength*2 + rand()%5 + 3 - armor->resistance;
								if(degats > 0)
								{
									armor->state -= degats/3;
									player->life -= degats/2;
									wclear(win_msg);
									*colorPrint = 197; // RED LIKE BLOOOOOOOD
									snprintf(messagePrint,100,"%s HITS YOU WITH HIS SPEAR (-%d LP)",ennemies[i].name,degats/2); 
									*source = 9;
								}
							}
							else
							{
								wclear(win_msg);
								*colorPrint = 47;
								snprintf(messagePrint,100,"%s MISSED YOU !",ennemies[i].name);
							}
						}
						else
						{
							if(rand()%10+1 < 8)
							{
								if(abs(player->x - ennemies[i].x) > abs(player->y-ennemies[i].y))
								{
									if(player->x > ennemies[i].x)
									{
										if(map[ennemies[i].x+1][ennemies[i].y].content != WALL && map[ennemies[i].x+1][ennemies[i].y].content != DOOR)
											ennemies[i].x++;
									}
									else
									{
										if(map[ennemies[i].x-1][ennemies[i].y].content != WALL && map[ennemies[i].x-1][ennemies[i].y].content != DOOR)
											ennemies[i].x--;
									}
								}
								else
								{
									if(player->y > ennemies[i].y)
									{
										if(map[ennemies[i].x][ennemies[i].y+1].content != WALL && map[ennemies[i].x][ennemies[i].y+1].content != DOOR)
											ennemies[i].y++;
									}
									else
									{
										if(map[ennemies[i].x][ennemies[i].y-1].content != WALL&& map[ennemies[i].x][ennemies[i].y-1].content != DOOR)
											ennemies[i].y--;
									}
								}
							}
						}
					}
				break;

				case 4:
						if(abs(player->x-ennemies[i].x) <= 1 && abs(player->y-ennemies[i].y) <= 1)
						{
							if(rand()%3 == 1)
							{
								// explode !
								ennemies[i].life = 0;
								map[ennemies[i].x][ennemies[i].y].content = BOMB;

								int angle = 0;
								int c = 0;
								float ox = 0;
								float oy = 0;
								int tailleRad = 3;

								for(angle = 0; angle < 360; angle++)
								{
									if(oy >= 0 && oy <= LARGEUR && ox <= LONGUEUR && ox >= 0)
									{
										float angleI = cos((float)angle*0.01745f); // 1° = 0.01745 rad because 360° = 2pi rad
										float angleJ = sin((float)angle*0.01745f);
										ox = (float)ennemies[i].x+0.5f;
										oy = (float)ennemies[i].y+0.5f;

										for(c = 0; c < tailleRad && (int)ox+angleI <= LONGUEUR && (int)oy+angleJ <= LARGEUR; c++)
										{
											map[(int)ox][(int)oy].effect = 2;

											ox+=angleI;
											oy+=angleJ;		
										}
									}
								}
							}
						}
						else
						{
							if(abs(player->x - ennemies[i].x) > abs(player->y-ennemies[i].y))
							{
								if(player->x > ennemies[i].x)
								{
									if(map[ennemies[i].x+1][ennemies[i].y].content != WALL && map[ennemies[i].x+1][ennemies[i].y].content != DOOR)
										ennemies[i].x++;
								}
								else
								{
									if(map[ennemies[i].x-1][ennemies[i].y].content != WALL && map[ennemies[i].x-1][ennemies[i].y].content != DOOR)
										ennemies[i].x--;
								}
							}
							else
							{
								if(player->y > ennemies[i].y)
								{
									if(map[ennemies[i].x][ennemies[i].y+1].content != WALL && map[ennemies[i].x][ennemies[i].y+1].content != DOOR)
										ennemies[i].y++;
								}
								else
								{
									if(map[ennemies[i].x][ennemies[i].y-1].content != WALL&& map[ennemies[i].x][ennemies[i].y-1].content != DOOR)
										ennemies[i].y--;
								}
							}
					}
				break;
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movl $0x0, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpl (%rcx), %eax
jge 0xb1c8
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, 0x4(%rax)
jne 0x8b57
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x8(%rax)
jmp 0x8c07
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x1, 0x4(%rax)
je 0x8bd7
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x3, 0x4(%rax)
jne 0x8c05
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
subl $0x4, %ecx
movl %ecx, 0x8(%rax)
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x24(%rax)
jmp 0x8c07
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0x1, 0x24(%rax)
jne 0x8c5e
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
subl $0x5, %ecx
movl %ecx, 0x8(%rax)
callq 0x21e0
movl $0xa, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x8c5c
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x24(%rax)
jmp 0x8c5e
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x1, 0x18(%rax)
jne 0x8d40
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
subl $0x5, %ecx
movl %ecx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x18(%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, (%rax)
jmp 0x9029
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, 0x18(%rax)
jne 0x8e48
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x2, 0x24(%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x18(%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, (%rax)
callq 0x21e0
movl $0x5, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x8e43
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x24(%rax)
jmp 0x9027
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x3, 0x18(%rax)
jne 0x9025
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x18(%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, (%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x4(%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x4(%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x4(%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x4(%rax)
jmp 0x9027
jmp 0x9029
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x8(%rax)
jle 0xb1b8
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, 0x24(%rax)
je 0xb1b8
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
movl 0x20(%rax,%rcx), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x90(%rbp)
subl $0x3, %eax
ja 0xb1b6
movq -0x90(%rbp), %rax
leaq 0xfd5b(%rip), %rcx      # 0x18de8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0x3, 0x28(%rax)
jne 0x9596
callq 0x21e0
movl $0x64, %ecx
cltd
idivl %ecx
addl $0x1, %edx
movl %edx, -0x3c(%rbp)
cmpl $0xa, -0x3c(%rbp)
jg 0x911e
movq -0x28(%rbp), %rdi
movl $0x64, %esi
leaq 0xfd20(%rip), %rdx      # 0x18df8
movb $0x0, %al
callq 0x2050
callq 0x21e0
movl $0x5, %ecx
cltd
idivl %ecx
addl $0x1, %edx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x10(%rax)
callq 0x21e0
movl $0x3, %ecx
cltd
idivl %ecx
addl $0x1, %edx
movq -0x10(%rbp), %rax
movl %edx, 0x30(%rax)
movb $0x0, %al
callq 0x11740
jmp 0x9591
cmpl $0xa, -0x3c(%rbp)
jle 0x92bb
cmpl $0x1e, -0x3c(%rbp)
jg 0x92bb
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x14(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movslq 0x18(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x2, (%rax)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x14(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movslq 0x18(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0xa, 0x14(%rax)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x14(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movslq 0x18(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x2, (%rax)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x14(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movslq 0x18(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0xa, 0x14(%rax)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x14(%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x2, (%rax)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x14(%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0xa, 0x14(%rax)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x14(%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x2, (%rax)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x14(%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0xa, 0x14(%rax)
jmp 0x958f
cmpl $0x1e, -0x3c(%rbp)
jle 0x93a1
cmpl $0x28, -0x3c(%rbp)
jg 0x93a1
movl $0x0, -0x40(%rbp)
movl $0x0, -0x40(%rbp)
cmpl $0x82, -0x40(%rbp)
jge 0x939c
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movslq -0x40(%rbp), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x2, (%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movslq -0x40(%rbp), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x5, 0x14(%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movslq -0x40(%rbp), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x4(%rax)
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x92dd
jmp 0x958d
cmpl $0x28, -0x3c(%rbp)
jle 0x942f
cmpl $0x3c, -0x3c(%rbp)
jg 0x942f
movl $0x0, -0x44(%rbp)
movl $0x0, -0x44(%rbp)
cmpl $0x27, -0x44(%rbp)
jge 0x942a
movq -0x18(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x4(%rax)
movq -0x18(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x4(%rax)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x93bf
jmp 0x958b
cmpl $0x3c, -0x3c(%rbp)
jle 0x9511
cmpl $0x46, -0x3c(%rbp)
jg 0x9511
movl $0x0, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
callq 0x21e0
movl $0x82, %ecx
cltd
idivl %ecx
movl %edx, -0x50(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x4c(%rbp)
cmpl $0x82, -0x4c(%rbp)
jge 0x950f
movl $0x0, -0x48(%rbp)
cmpl $0x27, -0x48(%rbp)
jge 0x94ff
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
cmpl -0x48(%rbp), %eax
jne 0x94a8
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
cmpl -0x4c(%rbp), %eax
jne 0x94a8
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
subl $0xa, %ecx
movl %ecx, 0x10(%rax)
jmp 0x94ef
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movslq -0x4c(%rbp), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x2, (%rax)
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movslq -0x4c(%rbp), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x5, 0x14(%rax)
jmp 0x94f1
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x947b
jmp 0x9501
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x9467
jmp 0x9589
cmpl $0x46, -0x3c(%rbp)
jle 0x952f
cmpl $0x5f, -0x3c(%rbp)
jg 0x952f
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x38(%rbp), %edx
callq 0x83b0
jmp 0x9587
movq -0x18(%rbp), %rax
movq %rax, -0xa0(%rbp)
callq 0x21e0
movl $0x27, %ecx
cltd
idivl %ecx
movq -0xa0(%rbp), %rax
movslq %edx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq %rax, -0x98(%rbp)
callq 0x21e0
movl $0x82, %ecx
cltd
idivl %ecx
movq -0x98(%rbp), %rax
movslq %edx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x3, 0x4(%rax)
jmp 0x9589
jmp 0x958b
jmp 0x958d
jmp 0x958f
jmp 0x9591
jmp 0x9c00
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0xc(%rax)
jne 0x95c0
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x38(%rbp), %edx
callq 0x83b0
jmp 0x9bfe
callq 0x21e0
movl $0xa, %ecx
cltd
idivl %ecx
movl %edx, -0x3c(%rbp)
cmpl $0x7, -0x3c(%rbp)
jg 0x95f1
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0xf, 0x8(%rax)
jg 0x9613
cmpl $0x4, -0x3c(%rbp)
jle 0x9613
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x8(%rbp), %rdi
movl -0x38(%rbp), %esi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0xb1e0
jmp 0x9bfc
cmpl $0x0, -0x3c(%rbp)
jne 0x962e
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x38(%rbp), %edx
callq 0x83b0
jmp 0x9bfa
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl (%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl $0x1, %eax
jg 0x97be
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl 0x4(%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl $0x1, %eax
jg 0x97be
callq 0x21e0
movl $0x65, %ecx
cltd
idivl %ecx
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl 0x1c(%rax), %edx
jg 0x977c
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
shll %eax
movl %eax, -0xa4(%rbp)
callq 0x21e0
movl $0x3, %ecx
cltd
idivl %ecx
movl -0xa4(%rbp), %eax
addl %edx, %eax
addl $0x1, %eax
movq 0x10(%rbp), %rcx
movl 0x14(%rcx), %ecx
movl %ecx, %edx
negl %edx
cmovnsl %edx, %ecx
subl %ecx, %eax
movl %eax, -0x54(%rbp)
cmpl $0x0, -0x54(%rbp)
jle 0x977a
movl -0x54(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %edx
movq 0x10(%rbp), %rax
movl 0x18(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x18(%rax)
movl -0x54(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %edx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x10(%rax)
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0xc5, (%rax)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movl -0x54(%rbp), %eax
movl $0x2, %esi
cltd
idivl %esi
movl %eax, %r8d
movl $0x64, %esi
leaq 0xf6a8(%rip), %rdx      # 0x18e11
movb $0x0, %al
callq 0x2050
movq 0x20(%rbp), %rax
movl $0x7, (%rax)
jmp 0x97b9
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0x2f, (%rax)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movl $0x64, %esi
leaq 0xf68c(%rip), %rdx      # 0x18e3e
movb $0x0, %al
callq 0x2050
jmp 0x9bf8
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0x1, 0x18(%rax)
je 0x9af1
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl (%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq -0x8(%rbp), %rdx
movslq -0x38(%rbp), %rsi
imulq $0x38, %rsi, %rsi
addq %rsi, %rdx
subl 0x4(%rdx), %ecx
movl %ecx, %edx
negl %edx
cmovnsl %edx, %ecx
cmpl %ecx, %eax
jle 0x9984
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jle 0x98df
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0x98da
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0x98da
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x997f
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0x997d
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0x997d
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
jmp 0x997f
jmp 0x9aec
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x4(%rcx), %eax
jle 0x9a48
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0x9a43
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0x9a43
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4(%rax)
jmp 0x9aea
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0x9ae8
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0x9ae8
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rax)
jmp 0x9aea
jmp 0x9aec
jmp 0x9bf6
callq 0x21e0
movl $0x65, %ecx
cltd
idivl %ecx
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl 0x1c(%rax), %edx
jg 0x9bb7
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rax
imulq $0x38, %rax, %rax
addq %rax, %rcx
movq -0x10(%rbp), %rdi
movq 0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq 0x30(%rcx), %r8
movq %rsp, %rax
movq %r8, 0x30(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups 0x20(%rcx), %xmm2
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0xb2e0
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
jle 0x9bb5
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0xc5, (%rax)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movl -0x34(%rbp), %eax
movl $0x2, %esi
cltd
idivl %esi
movl %eax, %r8d
movl $0x64, %esi
leaq 0xf2aa(%rip), %rdx      # 0x18e4e
movb $0x0, %al
callq 0x2050
movq 0x20(%rbp), %rax
movl $0x7, (%rax)
jmp 0x9bf4
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0x2f, (%rax)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movl $0x64, %esi
leaq 0xf251(%rip), %rdx      # 0x18e3e
movb $0x0, %al
callq 0x2050
jmp 0x9bf6
jmp 0x9bf8
jmp 0x9bfa
jmp 0x9bfc
jmp 0x9bfe
jmp 0x9c00
jmp 0xb1b6
callq 0x21e0
movl $0xa, %ecx
cltd
idivl %ecx
movl %edx, -0x3c(%rbp)
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0xc(%rax)
jne 0x9c59
callq 0x21e0
movl $0x4b, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x9c54
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
jmp 0xa078
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x28(%rax)
je 0x9f48
cmpl $0x6, -0x3c(%rbp)
jg 0x9d84
callq 0x21e0
movl $0x65, %ecx
cltd
idivl %ecx
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl 0x1c(%rax), %edx
jg 0x9d42
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rax
imulq $0x38, %rax, %rax
addq %rax, %rcx
movq -0x10(%rbp), %rdi
movq 0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq 0x30(%rcx), %r8
movq %rsp, %rax
movq %r8, 0x30(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups 0x20(%rcx), %xmm2
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0xb2e0
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
jle 0x9d40
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0xc5, (%rax)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movl -0x34(%rbp), %eax
movl $0x2, %esi
cltd
idivl %esi
movl %eax, %r8d
movl $0x64, %esi
leaq 0xf149(%rip), %rdx      # 0x18e78
movb $0x0, %al
callq 0x2050
movq 0x20(%rbp), %rax
movl $0x8, (%rax)
jmp 0x9d7f
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0x2f, (%rax)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movl $0x64, %esi
leaq 0xf0c6(%rip), %rdx      # 0x18e3e
movb $0x0, %al
callq 0x2050
jmp 0x9f43
cmpl $0x7, -0x3c(%rbp)
jne 0x9e61
callq 0x21e0
movl $0x5, %ecx
cltd
idivl %ecx
subl $0x2, %edx
movl %edx, -0x58(%rbp)
callq 0x21e0
movl $0x5, %ecx
cltd
idivl %ecx
subl $0x2, %edx
movl %edx, -0x5c(%rbp)
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0xc5, (%rax)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movl $0x64, %esi
leaq 0xf0bc(%rip), %rdx      # 0x18ea6
movb $0x0, %al
callq 0x2050
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x14(%rcx), %ecx
addl -0x58(%rbp), %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
addl -0x5c(%rbp), %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0xa, (%rax)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x14(%rcx), %ecx
addl -0x58(%rbp), %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
addl -0x5c(%rbp), %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x4, 0x14(%rax)
jmp 0x9f41
cmpl $0x8, -0x3c(%rbp)
jne 0x9e96
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0x2f, (%rax)
movq -0x28(%rbp), %rdi
movl $0x64, %esi
leaq 0xf038(%rip), %rdx      # 0x18ec2
movb $0x0, %al
callq 0x2050
jmp 0x9f3f
movq -0x30(%rbp), %rax
movl $0xc5, (%rax)
movq -0x28(%rbp), %rdi
movl $0x64, %esi
leaq 0xf03c(%rip), %rdx      # 0x18eec
movb $0x0, %al
callq 0x2050
movq -0x18(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0xc4(%rbp)
callq 0x21e0
movl -0xc4(%rbp), %ecx
movl $0x5, %esi
cltd
idivl %esi
movq -0xc0(%rbp), %rax
addl %edx, %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq %rax, -0xb0(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0xb4(%rbp)
callq 0x21e0
movl -0xb4(%rbp), %ecx
movl $0x5, %esi
cltd
idivl %esi
movq -0xb0(%rbp), %rax
addl %edx, %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x4(%rax)
jmp 0x9f41
jmp 0x9f43
jmp 0xa076
cmpl $0x7, -0x3c(%rbp)
jg 0xa057
callq 0x21e0
movl $0x65, %ecx
cltd
idivl %ecx
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl 0x1c(%rax), %edx
jg 0xa018
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rax
imulq $0x38, %rax, %rax
addq %rax, %rcx
movq -0x10(%rbp), %rdi
movq 0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq 0x30(%rcx), %r8
movq %rsp, %rax
movq %r8, 0x30(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups 0x20(%rcx), %xmm2
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0xb2e0
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
jle 0xa016
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0xc5, (%rax)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movl -0x34(%rbp), %eax
movl $0x2, %esi
cltd
idivl %esi
movl %eax, %r8d
movl $0x64, %esi
leaq 0xee73(%rip), %rdx      # 0x18e78
movb $0x0, %al
callq 0x2050
movq 0x20(%rbp), %rax
movl $0x8, (%rax)
jmp 0xa055
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0x2f, (%rax)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movl $0x64, %esi
leaq 0xedf0(%rip), %rdx      # 0x18e3e
movb $0x0, %al
callq 0x2050
jmp 0xa074
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x8(%rbp), %rdi
movl -0x38(%rbp), %esi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0xb1e0
jmp 0xa076
jmp 0xa078
jmp 0xb1b6
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0x1, 0x28(%rax)
jne 0xa730
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl (%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl $0x2, %eax
jg 0xa20c
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl 0x4(%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl $0x2, %eax
jg 0xa20c
callq 0x21e0
movl $0x6, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0xa20c
movl $0x1, -0x60(%rbp)
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jle 0xa127
movl $0x1, -0x60(%rbp)
jmp 0xa12e
movl $0xffffffff, -0x60(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x64(%rbp)
xorl %eax, %eax
cmpl $0x4, -0x64(%rbp)
movb %al, -0xc5(%rbp)
jge 0xa174
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x14(%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movslq 0x18(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
setne %al
movb %al, -0xc5(%rbp)
movb -0xc5(%rbp), %al
testb $0x1, %al
jne 0xa180
jmp 0xa198
movl -0x60(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x14(%rax), %ecx
movl %ecx, 0x14(%rax)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0xa135
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x14(%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movslq 0x18(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
jne 0xa207
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
subl $0xa, %ecx
movl %ecx, 0x10(%rax)
movq 0x10(%rbp), %rax
movl 0x18(%rax), %ecx
subl $0xa, %ecx
movl %ecx, 0x18(%rax)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x14(%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movslq 0x18(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x1, (%rax)
jmp 0xa72b
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl (%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl $0x5, %eax
jg 0xa412
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl 0x4(%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl $0x5, %eax
jg 0xa412
movq -0x20(%rbp), %rax
movl (%rax), %eax
addl $0x1, %eax
cmpl $0x23, %eax
jge 0xa412
callq 0x21e0
movl $0xa, %ecx
cltd
idivl %ecx
cmpl $0x1, %edx
jne 0xa412
movq -0x20(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0xd0(%rbp)
callq 0x21e0
movl -0xd0(%rbp), %ecx
movl $0x1, %esi
cltd
idivl %esi
addl %edx, %ecx
subl $0x3, %ecx
movq -0x8(%rbp), %rax
movl -0x38(%rbp), %edx
movq -0x20(%rbp), %rsi
addl (%rsi), %edx
movslq %edx, %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0xcc(%rbp)
callq 0x21e0
movl -0xcc(%rbp), %ecx
movl $0x1, %esi
cltd
idivl %esi
addl %edx, %ecx
subl $0x3, %ecx
movq -0x8(%rbp), %rax
movl -0x38(%rbp), %edx
movq -0x20(%rbp), %rsi
addl (%rsi), %edx
movslq %edx, %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rax
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rdx
addl (%rdx), %ecx
movslq %ecx, %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x3, 0x20(%rax)
movq -0x8(%rbp), %rax
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rdx
addl (%rdx), %ecx
movslq %ecx, %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x28(%rax)
movq -0x8(%rbp), %rax
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rdx
addl (%rdx), %ecx
movslq %ecx, %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x1e, 0x8(%rax)
callq 0x21e0
movl $0x3, %ecx
cltd
idivl %ecx
addl $0x4, %edx
movq -0x8(%rbp), %rax
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rsi
addl (%rsi), %ecx
movslq %ecx, %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl %edx, 0x10(%rax)
movq -0x8(%rbp), %rax
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rdx
addl (%rdx), %ecx
movslq %ecx, %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0xc(%rax)
movq -0x8(%rbp), %rax
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rdx
addl (%rdx), %ecx
movslq %ecx, %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x3, 0x14(%rax)
movq -0x8(%rbp), %rax
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rdx
addl (%rdx), %ecx
movslq %ecx, %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x18(%rax)
movq -0x8(%rbp), %rax
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rdx
addl (%rdx), %ecx
movslq %ecx, %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
leaq 0xeb03(%rip), %rcx      # 0x18f0c
movq %rcx, 0x30(%rax)
jmp 0xa729
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl (%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq -0x8(%rbp), %rdx
movslq -0x38(%rbp), %rsi
imulq $0x38, %rsi, %rsi
addq %rsi, %rdx
subl 0x4(%rdx), %ecx
movl %ecx, %edx
negl %edx
cmovnsl %edx, %ecx
cmpl %ecx, %eax
jle 0xa5bf
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jle 0xa51a
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xa515
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xa515
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xa5ba
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xa5b8
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xa5b8
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
jmp 0xa5ba
jmp 0xa727
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x4(%rcx), %eax
jle 0xa683
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xa67e
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xa67e
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4(%rax)
jmp 0xa725
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xa723
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xa723
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rax)
jmp 0xa725
jmp 0xa727
jmp 0xa729
jmp 0xa72b
jmp 0xabeb
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl (%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl $0x1, %eax
jg 0xa8b7
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl 0x4(%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl $0x1, %eax
jg 0xa8b7
callq 0x21e0
movl $0x65, %ecx
cltd
idivl %ecx
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl 0x1c(%rax), %edx
jg 0xa875
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
shll %eax
movl %eax, -0xd4(%rbp)
callq 0x21e0
movl $0x5, %ecx
cltd
idivl %ecx
movl -0xd4(%rbp), %eax
addl %edx, %eax
addl $0x3, %eax
movq 0x10(%rbp), %rcx
subl 0x14(%rcx), %eax
movl %eax, -0x68(%rbp)
cmpl $0x0, -0x68(%rbp)
jle 0xa873
movl -0x68(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %edx
movq 0x10(%rbp), %rax
movl 0x18(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x18(%rax)
movl -0x68(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %edx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x10(%rax)
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0xc5, (%rax)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movl -0x68(%rbp), %eax
movl $0x2, %esi
cltd
idivl %esi
movl %eax, %r8d
movl $0x64, %esi
leaq 0xe6b8(%rip), %rdx      # 0x18f1a
movb $0x0, %al
callq 0x2050
movq 0x20(%rbp), %rax
movl $0x9, (%rax)
jmp 0xa8b2
movq 0x18(%rbp), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
movl $0x2f, (%rax)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rcx
movl $0x64, %esi
leaq 0xe593(%rip), %rdx      # 0x18e3e
movb $0x0, %al
callq 0x2050
jmp 0xabe9
callq 0x21e0
movl $0xa, %ecx
cltd
idivl %ecx
addl $0x1, %edx
cmpl $0x8, %edx
jge 0xabe7
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl (%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq -0x8(%rbp), %rdx
movslq -0x38(%rbp), %rsi
imulq $0x38, %rsi, %rsi
addq %rsi, %rdx
subl 0x4(%rdx), %ecx
movl %ecx, %edx
negl %edx
cmovnsl %edx, %ecx
cmpl %ecx, %eax
jle 0xaa7d
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jle 0xa9d8
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xa9d3
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xa9d3
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xaa78
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xaa76
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xaa76
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
jmp 0xaa78
jmp 0xabe5
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x4(%rcx), %eax
jle 0xab41
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xab3c
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xab3c
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4(%rax)
jmp 0xabe3
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xabe1
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xabe1
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rax)
jmp 0xabe3
jmp 0xabe5
jmp 0xabe7
jmp 0xabe9
jmp 0xabeb
jmp 0xb1b6
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl (%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl $0x1, %eax
jg 0xae9d
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl 0x4(%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl $0x1, %eax
jg 0xae9d
callq 0x21e0
movl $0x3, %ecx
cltd
idivl %ecx
cmpl $0x1, %edx
jne 0xae98
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x8(%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0xa, (%rax)
movl $0x0, -0x6c(%rbp)
movl $0x0, -0x70(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x74(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x78(%rbp)
movl $0x3, -0x7c(%rbp)
movl $0x0, -0x6c(%rbp)
cmpl $0x168, -0x6c(%rbp)     # imm = 0x168
jge 0xae96
movss -0x78(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0xae86
movss 0xe0d9(%rip), %xmm0     # 0x18dd8
ucomiss -0x78(%rbp), %xmm0
jb 0xae86
movss 0xe0cb(%rip), %xmm0     # 0x18ddc
ucomiss -0x74(%rbp), %xmm0
jb 0xae86
movss -0x74(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0xae86
cvtsi2ssl -0x6c(%rbp), %xmm0
movss 0xe0ab(%rip), %xmm1     # 0x18de4
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x20c0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x80(%rbp)
cvtsi2ssl -0x6c(%rbp), %xmm0
movss 0xe088(%rip), %xmm1     # 0x18de4
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x2210
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x84(%rbp)
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cvtsi2ssl (%rax), %xmm0
movss 0xe050(%rip), %xmm1     # 0x18de0
addss %xmm1, %xmm0
movss %xmm0, -0x74(%rbp)
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cvtsi2ssl 0x4(%rax), %xmm0
movss 0xe02b(%rip), %xmm1     # 0x18de0
addss %xmm1, %xmm0
movss %xmm0, -0x78(%rbp)
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %ecx
xorl %eax, %eax
cmpl -0x7c(%rbp), %ecx
movb %al, -0xd5(%rbp)
jge 0xae1d
cvttss2si -0x74(%rbp), %eax
cvtsi2ss %eax, %xmm1
addss -0x80(%rbp), %xmm1
xorl %eax, %eax
movss 0xdfef(%rip), %xmm0     # 0x18ddc
ucomiss %xmm1, %xmm0
movb %al, -0xd5(%rbp)
jb 0xae1d
cvttss2si -0x78(%rbp), %eax
cvtsi2ss %eax, %xmm1
addss -0x84(%rbp), %xmm1
movss 0xdfc7(%rip), %xmm0     # 0x18dd8
ucomiss %xmm1, %xmm0
setae %al
movb %al, -0xd5(%rbp)
movb -0xd5(%rbp), %al
testb $0x1, %al
jne 0xae29
jmp 0xae84
movq -0x18(%rbp), %rax
cvttss2si -0x74(%rbp), %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
cvttss2si -0x78(%rbp), %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0x2, 0x4(%rax)
movss -0x80(%rbp), %xmm0
addss -0x74(%rbp), %xmm0
movss %xmm0, -0x74(%rbp)
movss -0x84(%rbp), %xmm0
addss -0x78(%rbp), %xmm0
movss %xmm0, -0x78(%rbp)
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0xadc5
jmp 0xae86
jmp 0xae88
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0xacd9
jmp 0xae98
jmp 0xb1b4
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
subl (%rcx), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq -0x8(%rbp), %rdx
movslq -0x38(%rbp), %rsi
imulq $0x38, %rsi, %rsi
addq %rsi, %rdx
subl 0x4(%rdx), %ecx
movl %ecx, %edx
negl %edx
cmovnsl %edx, %ecx
cmpl %ecx, %eax
jle 0xb04a
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jle 0xafa5
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xafa0
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xafa0
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xb045
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xb043
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xb043
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
jmp 0xb045
jmp 0xb1b2
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x4(%rcx), %eax
jle 0xb10e
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xb109
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xb109
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4(%rax)
jmp 0xb1b0
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2, (%rax)
je 0xb1ae
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
je 0xb1ae
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rax)
jmp 0xb1b0
jmp 0xb1b2
jmp 0xb1b4
jmp 0xb1b6
jmp 0xb1b8
jmp 0xb1ba
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x8aeb
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)