// File: /workspace/github_cpp_makefile_star2_O1/gioannides[P]Language_Processors/src/../include/ast/ast_node.hpp
// Function: FunctionDefinition::render_asm(std::basic_ofstream<char, std::char_traits<char>>&, Context&)
void render_asm(std::ofstream& file, Context& contxt) {
			
			contxt.function_dec=false;
			if( DeclarationSpecifiersPtr != NULL ) {
				contxt.functionReturnType = true;
				DeclarationSpecifiersPtr->render_asm(file,contxt);			//check the return type
				contxt.functionReturnType = false;
			}
			contxt.funcion_temp.returnType=contxt.functionReturnTypetemp; 

			if( DeclaratorPtr != NULL ) {				//function_def.name and function_def.no_parameters are assigned here
				
				contxt.protect = false; //protect overwriting currennt scope global/function
				//contxt.max_offset = 0;
				DeclaratorPtr->render_asm(file,contxt);
				//std::cout << "end of declarator" << std::endl;
				file << std::endl;
				file << std::endl << "\t.text" << std::endl;
				file << std::endl << "\t.align\t2" << std::endl; 
				file << std::endl << "\t.globl\t" << contxt.funct_id << std::endl;
				file << std::endl << "\t.set\t" << "nomips16" << std::endl;
				file << std::endl << "\t.set\t" << "nomicromips" << std::endl;
				file << std::endl << "\t.ent\t" << contxt.funct_id << std::endl;
				file << std::endl << "\t.type\t" << contxt.funct_id << "," << " @function" << std::endl;
				file << contxt.funct_id << ":" << std::endl;
				contxt.protect = true;
			}
			//contxt.Scopes.push_back(contxt.funct_id);
			//contxt.funcion_temp.returnType=contxt.functionReturnTypetemp; 
			contxt.funcion_temp.name=contxt.funct_id;
			contxt.functions_declared.push_back(contxt.funcion_temp);
			contxt.funcion_temp.paramters_size=0;
			if( DeclarationListPtr != NULL ) {   			//( functions having const-correctness for example )
				//DeclarationListPtr->render_asm(file,contxt);
			}
			//std::cout << "start of compund" << contxt.funct_id << std::endl;
			if( CompoundStatementPtr != NULL ) { // function_def.area is calculated here
				contxt.totalStackArea = 12+104+120;
				contxt.reading = true;						// this flag is used to prevent writing asm on file<< while reading ahead
				CompoundStatementPtr->render_asm(file,contxt);  // ...(file,initialized,function)
				contxt.reading = false;
			}
			contxt.is_function_call=false;	
			//std:: cout << "\nmax_offset" << contxt.max_offset << " " <<  contxt.funct_id <<"\n";
			contxt.totalStackArea+=contxt.max_offset;
			//file << "\n max_offset = " << contxt.max_offset << "\n";
			contxt.max_offset=16;
			//print_scopes(contxt, file);
			if(contxt.Scopes.size()>=1){
				for (int k=0; k<contxt.Variables.size(); k++)
				{	for (int j=contxt.Scopes.size()-1; j>=0; j--)
					{			
						if(contxt.Scopes[j]==contxt.Variables[k].scope)
						{
							contxt.Variables[k].param_offset = contxt.Variables[k].offset-4;
							contxt.Variables[k].offset += contxt.totalStackArea;
						}
					}
				}
			}		
			//contxt.function_def.name = contxt.funct_id;
			//contxt.function_def.no_parameters = no_parameters; // private var in ParameterList
			//no_parameters = 0;
			//contxt.function_def.area = contxt.totalStackArea;
			
			//contxt.functions.push_back(contxt.function_def);
			file << std::endl << "\t.set noreorder" << std::endl;
			file << std::endl << "\t.set nomacro" << std::endl;
			
			file << std::endl << "\taddiu $sp,$sp,-"<< contxt.totalStackArea+4;
			file << std::endl << "\tsw $fp," << contxt.totalStackArea << "($sp)";
			file << std::endl << "\tsw $31," << contxt.totalStackArea-4 <<"($sp)";
			file << std::endl << "\tmove $fp,$sp\n";
			// file << std::endl << "\tlui $28,%hi(__gnu_local_gp)";
			// file << std::endl << "\taddiu $28,$28,%lo(__gnu_local_gp)";

			
			contxt.floatt=0;
			for(int i=0; i<contxt.Variables.size(); i++)
			{
				if(contxt.Variables[i].param_offset==0 && contxt.Variables[i].scope==contxt.funct_id && contxt.Variables[i].DataType == "float")
				{
					contxt.floatt++;
				}
				if(contxt.floatt==1 && contxt.Variables[i].param_offset==4 && contxt.Variables[i].scope==contxt.funct_id && contxt.Variables[i].DataType == "float")
				{
					contxt.floatt++;	
				}
			}
			if(contxt.floatt)
			{
				file << std::endl << "\tswc1\t$f12," <<  contxt.totalStackArea + 4*(4-3) << "($sp)"; 
			}
			if(contxt.floatt==2)
			{
				file << std::endl << "\tswc1 $f14, " << contxt.totalStackArea + 4*(5-3) << "($sp)"; 
			}

			std::string dataType = "";
			int j = 0;	
			for(int i=4+contxt.floatt; i<=7; i++) //shift by 4 all the parameters
			{
				if(contxt.Variables.size() > j){						
					dataType = contxt.Variables[j].DataType;
				}
						
				if(dataType == "char"){
					file << std::endl << "\tsb $" << i <<  "," << contxt.totalStackArea + 4*(i-3) << "($sp)";
				}
				else if(dataType == "short"){
					file << std::endl << "\tsh $" << i <<  "," << contxt.totalStackArea + 4*(i-3) << "($sp)";
				}
				else{
					file << std::endl << "\tsw $" << i <<  "," << contxt.totalStackArea + 4*(i-3) << "($sp)";
				}
				dataType = "";
				j++;
				
			}

			contxt.variable.offset=contxt.totalStackArea-4;
			if( CompoundStatementPtr != NULL ) {
				//contxt.reading = false;
				CompoundStatementPtr->render_asm(file,contxt);
				//contxt.reading = false;
			}

			file << std::endl << "\tmove $sp,$fp";
			file << std::endl << "\tlw $31," << contxt.totalStackArea-4 <<"($sp)";
			file << std::endl << "\tlw $fp," << contxt.totalStackArea << "($sp)";
			file << std::endl << "\taddiu $sp,$sp," << contxt.totalStackArea + 4;
			file << std::endl << "\tj $31" << std::endl;
			file << std::endl << "\tnop" << std::endl;
			file << std::endl << "\t.set macro" << std::endl;
			file << std::endl << "\t.set reorder" << std::endl;
			file << std::endl << "\t.end " << contxt.funct_id << std::endl;
			file << std::endl << "\t.size " << contxt.funct_id << ", .-" << contxt.funct_id << std::endl;
			//contxt.totalStackArea = 8;
			//print_variables(contxt, file);
			if(contxt.Scopes.size()>0){
					contxt.Scopes.pop_back(); //assign the variable the scope it is in
				}
				else 
				{
					//std::cout << "PROBLEMS with Scopes" << std::endl;
				}
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r13
movb $0x0, 0x13e7c(%rdx)
movq %rdi, 0x10(%rsp)
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0xe08e
movb $0x1, 0x360(%r14)
movq %r13, %rsi
movq %r14, %rdx
callq 0xf2b0
movb $0x0, 0x360(%r14)
leaq 0x368(%r14), %rsi
leaq 0x418(%r14), %r12
leaq 0x440(%r14), %rdi
callq 0x71c0
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rbx
testq %rbx, %rbx
movq %r14, 0x8(%rsp)
movq %r13, (%rsp)
je 0xe548
movb $0x0, 0x21a(%r14)
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xe131
cmpq $0x0, 0x10(%rbx)
je 0xe131
movq 0x8(%rsp), %r14
movb $0x1, 0x2f4(%r14)
movq %r13, %rsi
movq %r14, %rdx
callq 0x20e12
movl 0x20(%r14), %eax
movl %eax, 0x2f8(%r14)
movl %eax, 0x2fc(%r14)
movq 0x10(%rbx), %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x20e4a
movl $0x0, 0x20(%r14)
movb $0x0, 0x2f4(%r14)
movq $0x0, 0x2f8(%r14)
jmp 0xe155
testq %rdi, %rdi
setne %al
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
sete %cl
orb %al, %cl
movq 0x8(%rsp), %r14
jne 0xe155
movq %r13, %rsi
movq %r14, %rdx
callq 0x20e4a
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x29330(%rip), %rsi     # 0x374df
movl $0x6, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x292d1(%rip), %rsi     # 0x374e6
movl $0x9, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x29275(%rip), %rsi     # 0x374f0
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movq 0x220(%r14), %rsi
movq 0x228(%r14), %rdx
movq %r15, %rdi
callq 0x73a0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r13
leaq 0x291ff(%rip), %r15     # 0x374f9
movl $0x6, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x73a0
leaq 0x291ef(%rip), %rsi     # 0x37500
movl $0x8, %edx
movq %r13, %rdi
callq 0x73a0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%rsp), %rax
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq (%rsp), %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq (%rsp), %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r13
movl $0x6, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x73a0
leaq 0x2917c(%rip), %rsi     # 0x37509
movl $0xb, %edx
movq %r13, %rdi
callq 0x73a0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
movq (%rsp), %r13
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x2911d(%rip), %rsi     # 0x37515
movl $0x6, %edx
movq %rax, %rdi
callq 0x73a0
movq 0x220(%r14), %rsi
movq 0x228(%r14), %rdx
movq %r15, %rdi
callq 0x73a0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x290a5(%rip), %rsi     # 0x3751c
movl $0x7, %edx
movq %rax, %rdi
callq 0x73a0
movq 0x220(%r14), %rsi
movq 0x228(%r14), %rdx
movq %r15, %rdi
callq 0x73a0
movq %rax, %r15
leaq 0x291da(%rip), %rsi     # 0x3767e
movl $0x1, %edx
movq %rax, %rdi
callq 0x73a0
leaq 0x2906c(%rip), %rsi     # 0x37524
movl $0xa, %edx
movq %r15, %rdi
callq 0x73a0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq 0x220(%r14), %rsi
movq 0x228(%r14), %rdx
movq %r13, %rdi
callq 0x73a0
movq %rax, %r15
leaq 0x28f0a(%rip), %rsi     # 0x37416
movl $0x1, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movb $0x1, 0x21a(%r14)
leaq 0x220(%r14), %rsi
leaq 0x420(%r14), %rdi
movq %rsi, 0x28(%rsp)
callq 0x71c0
leaq 0x400(%r14), %rdi
movq %r12, %rsi
callq 0xf38a
movl $0x0, 0x418(%r14)
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
testq %rdi, %rdi
je 0xe5ae
movl $0xec, 0x308(%r14)
movb $0x1, 0x21b(%r14)
movq %r13, %rsi
movq %r14, %rdx
callq 0xf3b4
movb $0x0, 0x21b(%r14)
movl 0x308(%r14), %ebp
addl 0x4ac(%r14), %ebp
movq 0x468(%r14), %rdx
movq 0x460(%r14), %rax
movb $0x0, 0x4b0(%r14)
movl %ebp, 0x308(%r14)
movl $0x10, 0x4ac(%r14)
subq %rax, %rdx
je 0xe6c2
movq 0x8(%rsp), %rcx
movq 0x240(%rcx), %rsi
movq 0x248(%rcx), %rcx
movq %rsi, 0x60(%rsp)
subq %rsi, %rcx
je 0xe6c2
shrq $0x5, %rdx
movq %rcx, %rsi
sarq $0x4, %rsi
movabsq $0x2e8ba2e8ba2e8ba3, %rcx # imm = 0x2E8BA2E8BA2E8BA3
imulq %rcx, %rsi
decl %edx
cmpq $0x1, %rsi
adcq $0x0, %rsi
movq %rsi, 0x18(%rsp)
leaq 0x1(%rdx), %rcx
movq %rcx, 0x58(%rsp)
movq %rdx, 0x20(%rsp)
movq %rdx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
addq $0x8, %rax
movq %rax, 0x50(%rsp)
xorl %r13d, %r13d
cmpl $0x0, 0x20(%rsp)
js 0xe6b8
imulq $0xb0, %r13, %rax
movq 0x60(%rsp), %rcx
leaq (%rcx,%rax), %rbx
movq 0x38(%rcx,%rax), %r14
movq 0x50(%rsp), %r15
movq 0x58(%rsp), %r12
movq (%r15), %rdx
cmpq %r14, %rdx
jne 0xe6af
testq %rdx, %rdx
je 0xe69e
movq 0x30(%rbx), %rsi
movq -0x8(%r15), %rdi
callq 0x7350
testl %eax, %eax
jne 0xe6af
movl 0x50(%rbx), %eax
leal -0x4(%rax), %ecx
movl %ecx, 0x98(%rbx)
addl %ebp, %eax
movl %eax, 0x50(%rbx)
addq $-0x20, %r15
decq %r12
jg 0xe680
incq %r13
cmpq 0x18(%rsp), %r13
jne 0xe65a
movq (%rsp), %r13
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x28e37(%rip), %rsi     # 0x3752f
movl $0xf, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x28de1(%rip), %rsi     # 0x3753f
movl $0xd, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x28d89(%rip), %rsi     # 0x3754d
movl $0x10, %edx
movq %rax, %rdi
callq 0x73a0
movq 0x8(%rsp), %rbx
movl 0x308(%rbx), %esi
addl $0x4, %esi
movq %r15, %rdi
callq 0x75c0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x28d45(%rip), %rsi     # 0x3755e
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x308(%rbx), %esi
movq %r15, %rdi
callq 0x75c0
leaq 0x28d2c(%rip), %r15     # 0x37567
movl $0x5, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x73a0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r12
leaq 0x28cf0(%rip), %rsi     # 0x3756d
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x308(%rbx), %esi
addl $-0x4, %esi
movq %r12, %rdi
callq 0x75c0
movl $0x5, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x73a0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
leaq 0x28c9c(%rip), %rsi     # 0x37576
movl $0xe, %edx
movq %rax, %rdi
callq 0x73a0
movl $0x0, 0xb8(%rbx)
movq 0x240(%rbx), %r12
cmpq %r12, 0x248(%rbx)
je 0xe9ec
movl $0x58, %r14d
xorl %ebp, %ebp
leaq 0x28c71(%rip), %r15     # 0x37585
cmpl $0x0, 0x40(%r12,%r14)
jne 0xe95d
movq -0x20(%r12,%r14), %rdx
cmpq 0x228(%rbx), %rdx
jne 0xe95d
testq %rdx, %rdx
je 0xe945
movq 0x28(%rsp), %rax
movq (%rax), %rsi
movq -0x28(%r12,%r14), %rdi
callq 0x7350
testl %eax, %eax
jne 0xe95d
addq %r14, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x70c0
testl %eax, %eax
jne 0xe95d
incl 0xb8(%rbx)
cmpl $0x1, 0xb8(%rbx)
jne 0xe9b6
movq 0x240(%rbx), %r12
cmpl $0x4, 0x40(%r12,%r14)
jne 0xe9b6
movq -0x20(%r12,%r14), %rdx
cmpq 0x228(%rbx), %rdx
jne 0xe9b6
testq %rdx, %rdx
je 0xe99e
movq 0x28(%rsp), %rax
movq (%rax), %rsi
movq -0x28(%r12,%r14), %rdi
callq 0x7350
testl %eax, %eax
jne 0xe9b6
addq %r14, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x70c0
testl %eax, %eax
jne 0xe9b6
incl 0xb8(%rbx)
incq %rbp
movq 0x240(%rbx), %r12
movq 0x248(%rbx), %rax
subq %r12, %rax
sarq $0x4, %rax
movabsq $0x2e8ba2e8ba2e8ba3, %rcx # imm = 0x2E8BA2E8BA2E8BA3
imulq %rcx, %rax
addq $0xb0, %r14
cmpq %rbp, %rax
ja 0xe914
cmpl $0x0, 0xb8(%rbx)
je 0xea59
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x28b64(%rip), %rsi     # 0x3758b
movl $0xb, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x308(%rbx), %esi
addl $0x4, %esi
movq %r15, %rdi
callq 0x75c0
leaq 0x28b1b(%rip), %rsi     # 0x37567
movl $0x5, %edx
movq %rax, %rdi
callq 0x73a0
cmpl $0x2, 0xb8(%rbx)
jne 0xeac6
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x28b03(%rip), %rsi     # 0x37597
movl $0xc, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x308(%rbx), %esi
addl $0x8, %esi
movq %r15, %rdi
callq 0x75c0
leaq 0x28aae(%rip), %rsi     # 0x37567
movl $0x5, %edx
movq %rax, %rdi
callq 0x73a0
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x28c27(%rip), %rdx     # 0x376fd
leaq 0x30(%rsp), %rdi
movq %rdx, %rsi
callq 0x89a6
movl 0xb8(%rbx), %eax
cmpl $0x3, %eax
jg 0xed09
leal 0x4(%rax), %ecx
movq %rcx, 0x20(%rsp)
movl $0x4, %ecx
subl %eax, %ecx
movq %rcx, 0x18(%rsp)
leal 0x4(,%rax,4), %r13d
movl $0x58, %r14d
xorl %r12d, %r12d
movq 0x240(%rbx), %rsi
movq 0x248(%rbx), %rax
subq %rsi, %rax
sarq $0x4, %rax
movabsq $0x2e8ba2e8ba2e8ba3, %rcx # imm = 0x2E8BA2E8BA2E8BA3
imulq %rcx, %rax
cmpq %r12, %rax
jbe 0xeb4c
addq %r14, %rsi
leaq 0x30(%rsp), %rdi
callq 0x71c0
movq 0x20(%rsp), %rax
leaq (%rax,%r12), %r15
leaq 0x30(%rsp), %rbp
movq %rbp, %rdi
leaq 0x28a40(%rip), %rsi     # 0x375a4
callq 0x70c0
testl %eax, %eax
je 0xebf2
movq %rbp, %rdi
leaq 0x28a34(%rip), %rsi     # 0x375af
callq 0x70c0
movq (%rsp), %rdx
movq (%rdx), %rcx
movq -0x18(%rcx), %rdi
addq %rdx, %rdi
testl %eax, %eax
je 0xec59
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq (%rsp), %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %rbp
movl $0x5, %edx
movq %rax, %rdi
leaq 0x28d7b(%rip), %rsi     # 0x37941
callq 0x73a0
movq %rbp, %rdi
movl %r15d, %esi
callq 0x75c0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
leaq 0x28a96(%rip), %rsi     # 0x3767e
callq 0x73a0
jmp 0xecb0
movq (%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq (%rsp), %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %rbp
movl $0x5, %edx
movq %rax, %rdi
leaq 0x28979(%rip), %rsi     # 0x375a9
callq 0x73a0
movq %rbp, %rdi
movl %r15d, %esi
callq 0x75c0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
leaq 0x28a2c(%rip), %rsi     # 0x3767e
callq 0x73a0
jmp 0xecb0
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq (%rsp), %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %rbp
movl $0x5, %edx
movq %rax, %rdi
leaq 0x2892c(%rip), %rsi     # 0x375b5
callq 0x73a0
movq %rbp, %rdi
movl %r15d, %esi
callq 0x75c0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
leaq 0x289d3(%rip), %rsi     # 0x3767e
callq 0x73a0
movl 0x308(%rbx), %esi
addl %r13d, %esi
movq %r15, %rdi
callq 0x75c0
movl $0x5, %edx
movq %rax, %rdi
leaq 0x28897(%rip), %rsi     # 0x37567
callq 0x73a0
movq 0x38(%rsp), %rdx
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
leaq 0x28a15(%rip), %rcx     # 0x376fd
xorl %r8d, %r8d
callq 0x7520
incq %r12
addq $0xb0, %r14
addl $0x4, %r13d
cmpq %r12, 0x18(%rsp)
jne 0xeb17
movl 0x308(%rbx), %eax
addl $-0x4, %eax
movl %eax, 0x2a8(%rbx)
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
testq %rdi, %rdi
movq (%rsp), %r14
je 0xed35
movq %r14, %rsi
movq %rbx, %rdx
callq 0xf3b4
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
leaq 0x28858(%rip), %rsi     # 0x375bb
movl $0xd, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x28828(%rip), %rsi     # 0x375c9
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x308(%rbx), %esi
addl $-0x4, %esi
movq %r15, %rdi
callq 0x75c0
leaq 0x287a1(%rip), %rsi     # 0x37567
movl $0x5, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x287ce(%rip), %rsi     # 0x375d2
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x308(%rbx), %esi
movq %r15, %rdi
callq 0x75c0
leaq 0x28741(%rip), %rsi     # 0x37567
movl $0x5, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x28777(%rip), %rsi     # 0x375db
movl $0xf, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x308(%rbx), %esi
addl $0x4, %esi
movq %r15, %rdi
callq 0x75c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x28738(%rip), %rsi     # 0x375eb
movl $0x6, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x286da(%rip), %rsi     # 0x375f2
movl $0x4, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x2867a(%rip), %rsi     # 0x375f7
movl $0xb, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x28621(%rip), %rsi     # 0x37603
movl $0xd, %edx
movq %rax, %rdi
callq 0x73a0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r15
leaq 0x285ca(%rip), %rsi     # 0x37611
movl $0x6, %edx
movq %rax, %rdi
callq 0x73a0
movq 0x220(%rbx), %rsi
movq 0x228(%rbx), %rdx
movq %r15, %rdi
callq 0x73a0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq %rax, %r14
leaq 0x28553(%rip), %rsi     # 0x37618
movl $0x7, %edx
movq %rax, %rdi
callq 0x73a0
movq 0x220(%rbx), %rsi
movq 0x228(%rbx), %rdx
movq %r14, %rdi
callq 0x73a0
movq %rax, %r14
leaq 0x2852e(%rip), %rsi     # 0x37620
movl $0x4, %edx
movq %rax, %rdi
callq 0x73a0
movq 0x220(%rbx), %rsi
movq 0x228(%rbx), %rdx
movq %r14, %rdi
callq 0x73a0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7300
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7220
movq 0x468(%rbx), %rax
cmpq 0x460(%rbx), %rax
je 0xf16c
leaq -0x20(%rax), %rcx
movq %rcx, 0x468(%rbx)
movq -0x20(%rax), %rdi
addq $-0x10, %rax
cmpq %rax, %rdi
je 0xf16c
callq 0x72e0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xf180
callq 0x72e0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf191
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xf1a8
callq 0x72e0
movq %rbx, %rdi
callq 0x75f0