// File: /workspace/github_c_makefile_star2_O0/anuwu[P]ERPLAG-Compiler/symbolTable.c
// Function: fillModuleST
void fillModuleST (moduleST* baseModule , astNode * statementsAST , int depthSTPrint) 
{
	int retSize = 0 ;
	varST *searchedVar ;
	statementsAST->localST = baseModule ;
	astNode * statementAST = statementsAST->child ;

	while (statementAST) 
	{
		if(statementAST->child->id == TK_DECLARE) 
		{
			// declare statement
			astNode * idAST = statementAST->child->next->child ;
			astNode * dataTypeAST = statementAST->child->next->next ;

			while (idAST) 
			{
				searchedVar = searchVar (baseModule, idAST->tok->lexeme) ;

				if (searchedVar != NULL && searchedVar->scope == baseModule && searchedVar->varType != VAR_INPUT)
				{
					errSemantic () ;
					#ifdef _WIN64
						printf ("In module \"%s\" at line %d, %s variable \"%s\" already declared\n", getParentModuleName (baseModule) ,idAST->tok->lineNumber, varTypeToString(searchedVar->varType) , idAST->tok->lexeme) ;
					#endif
					#if defined __linux__ || __MACH__
						printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", " ANSI_BOLD ANSI_BLACK "%s" ANSI_RESET " variable " ANSI_BOLD ANSI_RED "%s" ANSI_RESET " already declared\n", getParentModuleName (baseModule) ,idAST->tok->lineNumber, varTypeToString(searchedVar->varType) , idAST->tok->lexeme) ;
					#endif
					realBase->semanticError = 1 ;
				}
				else		// if input variable, or a local variable in some parent scope, or not found at all
				{
					varST * tmp = createVarST (idAST->tok->lexeme , baseModule , VAR_LOCAL, -9999) ;

					if (dataTypeAST->dtTag == ARRAY)
					{
						tmp->datatype = TK_ARRAY ;
						tmp->arrayIndices = dataTypeAST->dt->arrType ; 
					}
					else 
						tmp->datatype = dataTypeAST->dt->pType ;
					

					// filling offset
					retSize = getSize(tmp) ;

					if (retSize > 0)
					{
						tmp->offset = baseModule->currOffset + retSize ;
						tmp->size = retSize ;
						baseModule->currOffset += retSize ;
					}
					else	// correct dynamic array, or invalid static/dynamic array
						tmp->offset = retSize ;

					insertVar (baseModule , tmp, INSERT_LOCAL) ;
				}

				idAST = idAST->next ;
			}

		}
		else if ( statementAST->child->id == TK_WHILE) 
		{
			guardTinkerNode *tinkerHeadBefore, *tinkerHeadAfter ;

			if (getExpressionType (baseModule, statementAST->child->next) != TK_BOOLEAN)
			{
				errSemantic () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, the guard condition must be of type boolean\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", the guard condition must be of type " ANSI_BOLD ANSI_GREEN "boolean" ANSI_RESET "\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber) ;
				#endif
				realBase->semanticError = 1 ;
			}

			tinkerHeadBefore = getGuardTinkerList (baseModule, statementAST->child->next) ;
			moduleST * tmp = createScopeST (baseModule, WHILE_ST) ;
			fillModuleST (tmp , statementAST->child->next->next, depthSTPrint) ;
			tinkerHeadAfter = getGuardTinkerList (baseModule, statementAST->child->next) ;
			
			if (tinkerHeadBefore->tinker == -1)
			{
				errWarning () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, guard condition of while loop is static\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", guard condition of while loop is static\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber) ;
				#endif
			}
			else if (!hasTinkerListChanged (tinkerHeadBefore, tinkerHeadAfter))
			{
				errWarning () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, none of the identifiers of the guard condition are being changed in the while loop body\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", none of the identifiers of the guard condition are being changed in the while loop body\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber) ;
				#endif
			}

			printModuleST (tmp,  depthSTPrint) ;
			insertScopeST ( baseModule , tmp ) ;
		}
		else if ( statementAST->child->id == TK_FOR) 
		{
			searchedVar = searchVar (baseModule, statementAST->child->next->tok->lexeme) ;
			if (searchedVar == NULL)
			{
				errSemantic () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, loop variable \"%s\" is undeclared\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber, statementAST->child->next->tok->lexeme) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", loop variable " ANSI_BOLD ANSI_RED "%s" ANSI_RESET " is undeclared\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber, statementAST->child->next->tok->lexeme) ;
				#endif
				realBase->semanticError = 1 ;
			}
			else if (searchedVar->datatype != TK_INTEGER)
			{
				errSemantic () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, loop variable \"%s\" needs to be of integer type\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber, statementAST->child->next->tok->lexeme) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", loop variable " ANSI_BOLD ANSI_RED "%s" ANSI_RESET " needs to be of " ANSI_BOLD ANSI_GREEN "integer" ANSI_RESET " type\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber, statementAST->child->next->tok->lexeme) ;
				#endif
				realBase->semanticError = 1 ;
			}

			astNode *loopLim; 
			loopLim = statementAST->child->next->next ;

			if (atoi(loopLim->tok->lexeme) > atoi(loopLim->next->tok->lexeme))
			{
				errSemantic () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, left loop limit must be <= right loop limit\n", getParentModuleName (baseModule), loopLim->tok->lineNumber) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", left loop limit must be <= right loop limit\n", getParentModuleName (baseModule), loopLim->tok->lineNumber) ;
				#endif
				realBase->semanticError = 1 ;
			}

			moduleST *forScope = createScopeST (baseModule, FOR_ST) ;
			varST *loopVar = createVarST (statementAST->child->next->tok->lexeme, forScope, VAR_LOOP, TK_INTEGER) ;

			if (searchedVar == NULL)
				loopVar->offset = -2 ;		// VAR_LOOP with offset of -2 is undeclared loop counter
			else
			{
				loopVar->offset = searchedVar->offset ;
				loopVar->size = searchedVar->size ;
			}

			insertVar (forScope, loopVar, INSERT_LOCAL) ;
			fillModuleST (forScope, loopLim->next->next, depthSTPrint) ;

			printModuleST (forScope, depthSTPrint) ;
			insertScopeST (baseModule , forScope) ;
		}
 		else if (statementAST->child->id == TK_GET_VALUE) 
 		{
			searchedVar = searchVar (baseModule , statementAST->child->next->tok->lexeme) ;

			if (searchedVar == NULL)
			{
				errSemantic () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, variable \"%s\" is undeclared\n" ,  getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber , statementAST->child->next->tok->lexeme ) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", variable " ANSI_BOLD ANSI_RED "%s" ANSI_RESET " is undeclared\n" ,  getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber , statementAST->child->next->tok->lexeme ) ;
				#endif
				realBase->semanticError = 1 ;
			}
			else
				tinkerVar (baseModule, searchedVar, statementAST->child->next) ;

		}
 		else if ( statementAST->child->id == TK_PRINT)
 		{
 			if (statementAST->child->next->id == TK_ID)
 				validateVar (baseModule, statementAST->child->next, &searchedVar) ;
 			else if (statementAST->child->next->id == TK_RNUM)
 				realPresent = 1 ;
 		} 
		else if ( statementAST->child->id == TK_ASSIGNOP) 
			assignmentTypeCheck (baseModule, statementAST->child) ;
 		else if (statementAST->child->id == idList) 
 		{
			// [a] = use module with parameters [ d ] ;
			int validCallFlag = isValidCall (baseModule, statementAST->child, 1) ;

			if (validCallFlag == -1 )	
			{
				errSemantic () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, \"%s\" Module neither declared nor defined \n", getParentModuleName (baseModule), statementAST->child->next->next->tok->lineNumber, statementAST->child->next->next->tok->lexeme) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", " ANSI_BOLD ANSI_RED "%s" ANSI_RESET " Module neither declared nor defined \n", getParentModuleName (baseModule), statementAST->child->next->next->tok->lineNumber, statementAST->child->next->next->tok->lexeme) ;
				#endif
				realBase->semanticError = 1 ;
			}
			else if( validCallFlag == -2 ) 
			{
				errSemantic () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, \"%s\" declared but not defined \n", getParentModuleName (baseModule), statementAST->child->next->next->tok->lineNumber, statementAST->child->next->next->tok->lexeme) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", " ANSI_BOLD ANSI_RED "%s" ANSI_RESET " declared but not defined \n", getParentModuleName (baseModule), statementAST->child->next->next->tok->lineNumber, statementAST->child->next->next->tok->lexeme) ;
				#endif
				realBase->semanticError = 1 ;
			}
			// else error messages is printed in internal functions

			idListTinker (baseModule, statementAST->child->child) ;
		}
		else if (statementAST->child->id == TK_ID) 
		{
			// use module with parameters ... (no return)
			int validCallFlag = isValidCall (baseModule, statementAST->child, 0) ;
			if (validCallFlag == -1 )	
			{
				errSemantic () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, \"%s\" Module neither declared nor defined \n", getParentModuleName (baseModule), statementAST->child->tok->lineNumber , statementAST->child->tok->lexeme) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", " ANSI_BOLD ANSI_RED "%s" ANSI_RESET " Module neither declared nor defined \n", getParentModuleName (baseModule), statementAST->child->tok->lineNumber , statementAST->child->tok->lexeme) ;
				#endif
				realBase->semanticError = 1 ;
			}
			else if( validCallFlag == -2 ) 
			{
				errSemantic () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, \"%s\" Module declared but not defined \n", getParentModuleName (baseModule),statementAST->child->tok->lineNumber , statementAST->child->tok->lexeme) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", " ANSI_BOLD ANSI_RED "%s" ANSI_RESET " Module declared but not defined \n", getParentModuleName (baseModule),statementAST->child->tok->lineNumber , statementAST->child->tok->lexeme) ;
				#endif
				realBase->semanticError = 1 ;
			}
		}
 		else if (statementAST->child->id == TK_SWITCH)
		{
			int switchTypeError = 0 ;

			searchedVar = searchVar (baseModule , statementAST->child->next->tok->lexeme) ;
			if (searchedVar == NULL)
			{
				errSemantic () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, switch variable \"%s\" is undeclared\n",  getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber ,  statementAST->child->next->tok->lexeme) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", " ANSI_BOLD ANSI_BLACK "switch" ANSI_RESET " variable " ANSI_BOLD ANSI_RED "%s" ANSI_RESET " is undeclared\n",  getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber ,  statementAST->child->next->tok->lexeme) ;
				#endif
				realBase->semanticError = 1 ;
			}
			else
			{
				if (!(searchedVar->datatype == TK_INTEGER || searchedVar->datatype == TK_BOOLEAN))
				{
					errSemantic () ;
					#ifdef _WIN64
						printf ("In module \"%s\" at line %d, switch variable \"%s\" must be integer or boolean\n",  getParentModuleName (baseModule),statementAST->child->next->tok->lineNumber ,  statementAST->child->next->tok->lexeme) ;
					#endif
					#if defined __linux__ || __MACH__
						printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", " ANSI_BOLD ANSI_BLACK "switch" ANSI_RESET " variable " ANSI_BOLD ANSI_RED "%s" ANSI_RESET " must be " ANSI_BOLD ANSI_GREEN "integer" ANSI_RESET " or " ANSI_BOLD ANSI_GREEN "boolean" ANSI_RESET "\n",  getParentModuleName (baseModule),statementAST->child->next->tok->lineNumber ,  statementAST->child->next->tok->lexeme) ;
					#endif
					realBase->semanticError = 1 ;
					switchTypeError = 1 ;
				}
			}

			moduleST *switchST = createScopeST (baseModule, SWITCH_ST) ;
			astNode *caseAstNode = statementAST->child->next->next ;

			int hasDefault = 0 ;
			int hasTrue = 0, hasFalse = 0 ;
			while (caseAstNode != NULL)
			{
				// case value mismatch
				if (searchedVar != NULL && !switchTypeError && caseAstNode->id != TK_DEFAULT)
				{
					if ((searchedVar->datatype == TK_INTEGER && (caseAstNode->next->id == TK_TRUE || caseAstNode->next->id == TK_FALSE)) || (searchedVar->datatype == TK_BOOLEAN && caseAstNode->next->id == TK_NUM)) 
					{
						errSemantic () ;
						#ifdef _WIN64
							printf ("In module \"%s\" at line %d, switch variable has type \"%s\" and case value has type \"%s\"\n", getParentModuleName (baseModule), caseAstNode->next->tok->lineNumber, typeIDToString (searchedVar->datatype) , (caseAstNode->next->id == TK_NUM)?"integer":"boolean") ;
						#endif
						#if defined __linux__ || __MACH__
							printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", " ANSI_BOLD ANSI_BLACK "switch" ANSI_RESET " variable has type " ANSI_BOLD ANSI_GREEN "%s" ANSI_RESET " and case value has type " ANSI_BOLD ANSI_GREEN "%s" ANSI_RESET "\n", getParentModuleName (baseModule), caseAstNode->next->tok->lineNumber, typeIDToString (searchedVar->datatype) , (caseAstNode->next->id == TK_NUM)?"integer":"boolean") ;
						#endif
						realBase->semanticError = 1 ;
					}
				}
				
				if (caseAstNode->id != TK_DEFAULT)
				{
					if (caseValRepeat (caseAstNode))
					{
						errSemantic () ;
						#ifdef _WIN64
							printf ("In module \"%s\" at line %d, case value is repeating\n", getParentModuleName (baseModule), caseAstNode->next->tok->lineNumber) ;
						#endif
						#if defined __linux__ || __MACH__
							printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", case value is repeating\n", getParentModuleName (baseModule), caseAstNode->next->tok->lineNumber) ;
						#endif
						realBase->semanticError = 1 ;
					}

					if (searchedVar != NULL && searchedVar->datatype == TK_BOOLEAN && caseAstNode->next->tok->lexeme[0] == 't')
						hasTrue = 1 ;
					else if (searchedVar != NULL && searchedVar->datatype == TK_BOOLEAN && caseAstNode->next->tok->lexeme[0] == 'f')
						hasFalse = 1 ;

					fillModuleST (switchST, caseAstNode->next->next, depthSTPrint) ;
				}
				else
				{
					hasDefault = 1 ;
					if (searchedVar != NULL && searchedVar->datatype == TK_BOOLEAN)
					{
						errSemantic () ;
						#ifdef _WIN64
							printf ("In module \"%s\" at line %d, switch variable has type \"boolean\", default case is not allowed\n", getParentModuleName (baseModule), caseAstNode->tok->lineNumber) ;
						#endif
						#if defined __linux__ || __MACH__
							printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", " ANSI_BOLD ANSI_BLACK "switch" ANSI_RESET " variable has type " ANSI_BOLD ANSI_GREEN "boolean" ANSI_RESET ", default case is not allowed\n", getParentModuleName (baseModule), caseAstNode->tok->lineNumber) ;
						#endif
						realBase->semanticError = 1 ;
					}

					fillModuleST (switchST, caseAstNode->next, depthSTPrint) ;
				}

				if (caseAstNode->id != TK_DEFAULT)
					caseAstNode = caseAstNode->next->next->next ;
				else
					caseAstNode = caseAstNode->next->next ;
			}

			if (searchedVar != NULL && !hasDefault && searchedVar->datatype == TK_INTEGER)
			{
				errSemantic () ;
				#ifdef _WIN64
					printf ("In module \"%s\" at line %d, default case expected in switch statement\n",  getParentModuleName (baseModule), statementAST->child->tok->lineNumber) ;
				#endif
				#if defined __linux__ || __MACH__
					printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", default case expected in switch statement\n",  getParentModuleName (baseModule), statementAST->child->tok->lineNumber) ;
				#endif
				realBase->semanticError = 1 ;
			}

			if (searchedVar != NULL && searchedVar->datatype == TK_BOOLEAN && (!hasTrue || !hasFalse))
			{
				if (!hasTrue)
				{
					errSemantic () ;
					#ifdef _WIN64
						printf ("In module \"%s\" at line %d, boolean switch statement is missing 'true' case\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber) ;
					#endif
					#if defined __linux__ || __MACH__
						printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", " ANSI_BOLD ANSI_GREEN "boolean" ANSI_RESET " switch statement is missing 'true' case\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber) ;
					#endif
					realBase->semanticError = 1 ;
				}

				if (!hasFalse)
				{
					errSemantic () ;
					#ifdef _WIN64
						printf ("In module \"%s\" at line %d, boolean switch statement is missing 'false' case\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber) ;
					#endif
					#if defined __linux__ || __MACH__
						printf ("In module " ANSI_BOLD "%s" ANSI_RESET " at line " ANSI_BOLD ANSI_CYAN "%d" ANSI_RESET ", " ANSI_BOLD ANSI_GREEN "boolean" ANSI_RESET " switch statement is missing 'false' case\n", getParentModuleName (baseModule), statementAST->child->next->tok->lineNumber) ;
					#endif
					realBase->semanticError = 1 ;
				}
			}

			insertScopeST (baseModule , switchST) ;
			printModuleST (switchST, depthSTPrint) ;
		}
		statementAST = statementAST->next ;
	}

	if (baseModule->parent != realBase)
		baseModule->scopeSize = baseModule->currOffset - ((moduleST *)baseModule->parent)->currOffset ;
	else
		baseModule->scopeSize = baseModule->currOffset ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x13756
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
cmpl $0x3e, (%rax)
jne 0x12b09
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x30(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x12b04
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x10ba0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x12a34
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
cmpq -0x8(%rbp), %rax
jne 0x12a34
movq -0x20(%rbp), %rax
cmpl $0x0, 0x30(%rax)
je 0x12a34
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, -0xa8(%rbp)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %eax
movl %eax, -0xa0(%rbp)
movq -0x20(%rbp), %rax
movl 0x30(%rax), %edi
callq 0x10c20
movq -0xa8(%rbp), %rsi
movl -0xa0(%rbp), %edx
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r8
leaq 0x5ccd(%rip), %rdi      # 0x186e4
movb $0x0, %al
callq 0x1090
movq 0x245e3(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
jmp 0x12af3
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rsi
movl $0x3, %edx
movl $0xffffd8f1, %ecx       # imm = 0xFFFFD8F1
callq 0x10660
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
cmpl $0x1, 0x10(%rax)
jne 0x12a81
movq -0x40(%rbp), %rax
movl $0x3b, 0x8(%rax)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movq (%rax), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x12a92
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movl (%rax), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x40(%rbp), %rdi
callq 0x11ca0
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
jle 0x12ad7
movq -0x8(%rbp), %rax
movl 0x10c(%rax), %ecx
addl -0x18(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl -0x18(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x18(%rax)
movl -0x18(%rbp), %ecx
movq -0x8(%rbp), %rax
addl 0x10c(%rax), %ecx
movl %ecx, 0x10c(%rax)
jmp 0x12ae1
movl -0x18(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl $0x2, %edx
callq 0x10840
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x12979
jmp 0x13745
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
cmpl $0x56, (%rax)
jne 0x12c7e
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rsi
callq 0x144e0
cmpl $0x39, %eax
je 0x12b79
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
leaq 0x5bec(%rip), %rdi      # 0x1874d
movb $0x0, %al
callq 0x1090
movq 0x24499(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rsi
callq 0x12840
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
movl $0x3, %esi
callq 0x105f0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rsi
movl -0x14(%rbp), %edx
callq 0x12900
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rsi
callq 0x12840
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rax
cmpl $-0x1, (%rax)
jne 0x12c18
movb $0x0, %al
callq 0x14d30
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
leaq 0x5ba6(%rip), %rdi      # 0x187b5
movb $0x0, %al
callq 0x1090
jmp 0x12c60
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x12890
cmpl $0x0, %eax
jne 0x12c5e
movb $0x0, %al
callq 0x14d30
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
leaq 0x5bb5(%rip), %rdi      # 0x1880c
movb $0x0, %al
callq 0x1090
jmp 0x12c60
movq -0x58(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x10e00
movq -0x8(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x107d0
jmp 0x13743
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
cmpl $0x50, (%rax)
jne 0x12eb5
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x10ba0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x12d12
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
leaq 0x5b9b(%rip), %rdi      # 0x18893
movb $0x0, %al
callq 0x1090
movq 0x24302(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
jmp 0x12d77
movq -0x20(%rbp), %rax
cmpl $0x37, 0x8(%rax)
je 0x12d75
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
leaq 0x5b91(%rip), %rdi      # 0x188ee
movb $0x0, %al
callq 0x1090
movq 0x2429d(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
jmp 0x12d77
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdi
callq 0x1100
movl %eax, -0xac(%rbp)
movq -0x60(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdi
callq 0x1100
movl %eax, %ecx
movl -0xac(%rbp), %eax
cmpl %ecx, %eax
jle 0x12e00
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
leaq 0x5b7c(%rip), %rdi      # 0x18964
movb $0x0, %al
callq 0x1090
movq 0x24212(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
movq -0x8(%rbp), %rdi
movl $0x2, %esi
callq 0x105f0
movq %rax, -0x68(%rbp)
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdi
movq -0x68(%rbp), %rsi
movl $0x4, %edx
movl $0x37, %ecx
callq 0x10660
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x12e51
movq -0x70(%rbp), %rax
movl $0xfffffffe, 0x1c(%rax) # imm = 0xFFFFFFFE
jmp 0x12e6d
movq -0x20(%rbp), %rax
movl 0x1c(%rax), %ecx
movq -0x70(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x20(%rbp), %rax
movl 0x18(%rax), %ecx
movq -0x70(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rsi
movl $0x2, %edx
callq 0x10840
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rsi
movl -0x14(%rbp), %edx
callq 0x12900
movq -0x68(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x10e00
movq -0x8(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x107d0
jmp 0x13741
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
cmpl $0x43, (%rax)
jne 0x12f67
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x10ba0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x12f49
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
leaq 0x5a90(%rip), %rdi      # 0x189bf
movb $0x0, %al
callq 0x1090
movq 0x240cb(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
jmp 0x12f62
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rdx
callq 0x12460
jmp 0x1373f
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
cmpl $0x44, (%rax)
jne 0x12fc2
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
cmpl $0x40, (%rax)
jne 0x12fa0
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rsi
leaq -0x20(%rbp), %rdx
callq 0x14200
jmp 0x12fbd
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
cmpl $0x72, (%rax)
jne 0x12fbb
movl $0x1, 0x24049(%rip)     # 0x37004
jmp 0x12fbd
jmp 0x1373d
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
cmpl $0x69, (%rax)
jne 0x12fe5
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rsi
callq 0x14780
jmp 0x1373b
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
cmpl $0x34, (%rax)
jne 0x130fb
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rsi
movl $0x1, %edx
callq 0x119a0
movl %eax, -0x74(%rbp)
cmpl $-0x1, -0x74(%rbp)
jne 0x13078
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
leaq 0x59b7(%rip), %rdi      # 0x18a15
movb $0x0, %al
callq 0x1090
movq 0x23f9c(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
jmp 0x130e1
cmpl $-0x2, -0x74(%rbp)
jne 0x130df
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
leaq 0x59b2(%rip), %rdi      # 0x18a79
movb $0x0, %al
callq 0x1090
movq 0x23f33(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
jmp 0x130e1
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x30(%rax), %rsi
callq 0x12540
jmp 0x13739
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
cmpl $0x40, (%rax)
jne 0x131d9
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rsi
xorl %edx, %edx
callq 0x119a0
movl %eax, -0x78(%rbp)
cmpl $-0x1, -0x78(%rbp)
jne 0x1317b
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
leaq 0x58b4(%rip), %rdi      # 0x18a15
movb $0x0, %al
callq 0x1090
movq 0x23e99(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
jmp 0x131d4
cmpl $-0x2, -0x78(%rbp)
jne 0x131d2
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
leaq 0x5918(%rip), %rdi      # 0x18ad2
movb $0x0, %al
callq 0x1090
movq 0x23e40(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
jmp 0x131d4
jmp 0x13737
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
cmpl $0x52, (%rax)
jne 0x13735
movl $0x0, -0x7c(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x10ba0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x13274
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
leaq 0x58d8(%rip), %rdi      # 0x18b32
movb $0x0, %al
callq 0x1090
movq 0x23da0(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
jmp 0x132ea
movq -0x20(%rbp), %rax
cmpl $0x37, 0x8(%rax)
je 0x132e8
movq -0x20(%rbp), %rax
cmpl $0x39, 0x8(%rax)
je 0x132e8
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
leaq 0x58d3(%rip), %rdi      # 0x18b9c
movb $0x0, %al
callq 0x1090
movq 0x23d31(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
movl $0x1, -0x7c(%rbp)
jmp 0x132ea
movq -0x8(%rbp), %rdi
movl $0x4, %esi
callq 0x105f0
movq %rax, -0x88(%rbp)
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rax
movq %rax, -0x90(%rbp)
movl $0x0, -0x94(%rbp)
movl $0x0, -0x98(%rbp)
movl $0x0, -0x9c(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x135ee
cmpq $0x0, -0x20(%rbp)
je 0x13441
cmpl $0x0, -0x7c(%rbp)
jne 0x13441
movq -0x90(%rbp), %rax
cmpl $0x55, (%rax)
je 0x13441
movq -0x20(%rbp), %rax
cmpl $0x37, 0x8(%rax)
jne 0x13391
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rax
cmpl $0x48, (%rax)
je 0x133b3
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rax
cmpl $0x49, (%rax)
je 0x133b3
movq -0x20(%rbp), %rax
cmpl $0x39, 0x8(%rax)
jne 0x1343f
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rax
cmpl $0x71, (%rax)
jne 0x1343f
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, -0xb8(%rbp)
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %eax
movl %eax, -0xb0(%rbp)
movq -0x20(%rbp), %rax
movl 0x8(%rax), %edi
callq 0x12370
movq -0xb8(%rbp), %rsi
movl -0xb0(%rbp), %edx
movq %rax, %rcx
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rax
movl (%rax), %edi
leaq 0x3b0f(%rip), %r8       # 0x16f21
leaq 0x3afb(%rip), %rax      # 0x16f14
cmpl $0x71, %edi
cmoveq %rax, %r8
leaq 0x5806(%rip), %rdi      # 0x18c2d
movb $0x0, %al
callq 0x1090
movq 0x23bd3(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
jmp 0x13441
movq -0x90(%rbp), %rax
cmpl $0x55, (%rax)
je 0x13536
movq -0x90(%rbp), %rdi
callq 0x123d0
cmpl $0x0, %eax
je 0x134a6
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
leaq 0x582c(%rip), %rdi      # 0x18cba
movb $0x0, %al
callq 0x1090
movq 0x23b6c(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
cmpq $0x0, -0x20(%rbp)
je 0x134de
movq -0x20(%rbp), %rax
cmpl $0x39, 0x8(%rax)
jne 0x134de
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
cmpl $0x74, %eax
jne 0x134de
movl $0x1, -0x98(%rbp)
jmp 0x13516
cmpq $0x0, -0x20(%rbp)
je 0x13514
movq -0x20(%rbp), %rax
cmpl $0x39, 0x8(%rax)
jne 0x13514
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
cmpl $0x66, %eax
jne 0x13514
movl $0x1, -0x9c(%rbp)
jmp 0x13516
movq -0x88(%rbp), %rdi
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rsi
movl -0x14(%rbp), %edx
callq 0x12900
jmp 0x135ab
movl $0x1, -0x94(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x13591
movq -0x20(%rbp), %rax
cmpl $0x39, 0x8(%rax)
jne 0x13591
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x90(%rbp), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
leaq 0x5788(%rip), %rdi      # 0x18d01
movb $0x0, %al
callq 0x1090
movq 0x23a81(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
movq -0x88(%rbp), %rdi
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rsi
movl -0x14(%rbp), %edx
callq 0x12900
movq -0x90(%rbp), %rax
cmpl $0x55, (%rax)
je 0x135d3
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rax
movq %rax, -0x90(%rbp)
jmp 0x135e9
movq -0x90(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x38(%rax), %rax
movq %rax, -0x90(%rbp)
jmp 0x13334
cmpq $0x0, -0x20(%rbp)
je 0x13649
cmpl $0x0, -0x94(%rbp)
jne 0x13649
movq -0x20(%rbp), %rax
cmpl $0x37, 0x8(%rax)
jne 0x13649
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
leaq 0x5757(%rip), %rdi      # 0x18d88
movb $0x0, %al
callq 0x1090
movq 0x239c9(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
cmpq $0x0, -0x20(%rbp)
je 0x13716
movq -0x20(%rbp), %rax
cmpl $0x39, 0x8(%rax)
jne 0x13716
cmpl $0x0, -0x98(%rbp)
je 0x13678
cmpl $0x0, -0x9c(%rbp)
jne 0x13716
cmpl $0x0, -0x98(%rbp)
jne 0x136c6
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
leaq 0x5733(%rip), %rdi      # 0x18de1
movb $0x0, %al
callq 0x1090
movq 0x2394c(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
cmpl $0x0, -0x9c(%rbp)
jne 0x13714
movb $0x0, %al
callq 0x14d10
movq -0x8(%rbp), %rdi
callq 0x116e0
movq %rax, %rsi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %edx
leaq 0x5751(%rip), %rdi      # 0x18e4d
movb $0x0, %al
callq 0x1090
movq 0x238fe(%rip), %rax     # 0x37008
movl $0x1, 0xd8(%rax)
jmp 0x13716
movq -0x8(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x107d0
movq -0x88(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x10e00
jmp 0x13737
jmp 0x13739
jmp 0x1373b
jmp 0x1373d
jmp 0x1373f
jmp 0x13741
jmp 0x13743
jmp 0x13745
movq -0x28(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x12935
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
cmpq 0x238a3(%rip), %rax     # 0x37008
je 0x1378b
movq -0x8(%rbp), %rax
movl 0x10c(%rax), %ecx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
subl 0x10c(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x110(%rax)
jmp 0x1379f
movq -0x8(%rbp), %rax
movl 0x10c(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x110(%rax)
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax,%rax)