// File: /workspace/github_c_makefile_star2_O0/vlenhart[P]q3bsp/q3shader.cpp
// Function: QuakeShaderFactory::Process(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
void QuakeShaderFactory::Process(const StringVector &args)
{

  if ( args[0] == "{" )
  {
    mBraceCount++;
  }
  else
  {
    if ( args[0] == "}" )
    {
      mBraceCount--;

      if ( mBraceCount == 0 ) // shader finished 
      {
        if ( mCurrent )
        {
          const StringRef& ref = mCurrent->GetName();
          QuakeShaderMap::iterator found;
          found = mShaders.find(ref);
          if ( found != mShaders.end() )
          {
            printf("Can't add shader %s, it already exists!!\n",ref.Get());
          }
          else
          {
            mShaders[ref] = mCurrent;
            printf("Added shader: %s\n",ref.Get());
            mCurrent = 0;
          }
        }
        else
        {
          printf("Got closing brace without valid shader defined.\n");
        }
      }
      else
      {
		  if ( mBraceCount == 1 ) {// shader stage finished        
			if (mCurrent && mCurrentStage)
				mCurrent->AddStage(mCurrentStage);
			delete mCurrentStage;
			mCurrentStage = 0;

		} 
		else  if ( mBraceCount < 0 )
        {
          printf("Missmatched closing brace situation!??\n");
          mBraceCount = 0;
        }
      }
    }
    else
    {
      if ( !mBraceCount )
      {
        delete mCurrent; // if didn't process the last one
        mCurrent = 0;
		delete mCurrentStage; // if didn't process the last one
        mCurrentStage = 0;

		// new shader start
        char name[256];
        //if ( GetName(args[0],name))
		strcpy(name,args[0].c_str()); // we take the full path name 
        {
          StringRef ref = StringDict::gStringDict().Get(name);
          mCurrent = new QuakeShader(ref);
        }
      }
      else
      if (mCurrent) {
		  if (mBraceCount == 1) { // at shader level 
		    if ( args[0] == "cull" && args.size() == 2)
	        {		// disable none trans alphashadow nomarks
				 mCurrent->mCull = args[1];
			}
		    else if ( args[0] == "surfaceparm" && args.size() == 2)
	        {
				if ( args[1] == "nolightmap" )
					 mCurrent->mNoLightMap = true;
				else if ( args[1] == "sky" )
					 mCurrent->mSky = true;
			}
			else if ( args[0] == "skyparms")
	        {

			}
		  } else 	
		  if (mBraceCount == 2) {	// at stage lavel 
		    if (!mCurrentStage) 
				mCurrentStage = new ShaderStage;


			String arg0; 
			strlwr(args[0],arg0);

			// process command!
			// store data in mCurrentStage

			if ( arg0 == "map"  && args.size() == 2  )
			{
			  //char name[256];
			  // this strips the extension ?	
			  //if ( GetName(args[1],name) )
			  if (args[1] != "$lightmap")	
			  {
				const StringRef ref = StringDict::gStringDict().Get(args[1]);
				mCurrentStage->map = ref;
				mCurrent->AddTexture(ref);
				//printf("Adding texture %s\n",ref.Get());
			  } else {
				  mCurrentStage->isLightMap = true;
			  }	
			}
			else if ( arg0 == "clampmap"  && args.size() == 2  )
			{
			  if (args[1] != "$lightmap")	
			  {
				const StringRef ref = StringDict::gStringDict().Get(args[1]);
				mCurrentStage->map = ref;
 				mCurrentStage->clamp = true;

				mCurrent->AddTexture(ref);
				//printf("Adding texture %s\n",ref.Get());
			  } else {
				  mCurrentStage->isLightMap = true;
				  //if (mCurrentStage->textureBlendMode == String(""))
				  //mCurrentStage->textureBlendMode = "ADD";
			  }	
			}
			else if ( arg0 == "animmap") {
				mCurrentStage->isAnimMap = true;
				mCurrentStage->animMapFrequency = (float)atof(args[1].c_str());
				for (unsigned int i=2; i< args.size(); i++) 
					mCurrentStage->animMap.push_back(args[i]);
			}
			else if ( arg0 == "blendfunc")
			{
					//blendFunc GL_DST_COLOR GL_ZERO
					//blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
					//blendFunc GL_ONE GL_ONE
					//blendFunc GL_ONE GL_ZERO
					//blendFunc blend
					//blendFunc filter
					// [Source * <srcBlend>] + [Destination * <dstBlend>]
					if (args.size() == 3) {

						String arg1; 
						strupr(args[1],arg1);
						String arg2; 
						strupr(args[2],arg2);


						mCurrentStage->blendFuncSrc = arg1;
						mCurrentStage->blendFuncDst = arg2;

						if (arg1=="GL_SRC_ALPHA")
							mCurrentStage->textureBlendMode = "BLENDTEXTUREALPHA";

						if (arg1=="GL_ONE" &&  arg2=="GL_ZERO")
							mCurrentStage->textureBlendMode = "REPLACE";
						else 
						if (arg1=="GL_ONE" &&  arg2=="GL_ONE")
							mCurrentStage->textureBlendMode = "ADD";
						else 
						if (arg1=="GL_SRC_ALPHA" && arg2=="GL_ONE_MINUS_SRC_ALPHA")
							mCurrentStage->textureBlendMode = "BLENDTEXTUREALPHA";
						else 
						if (arg1=="GL_DST_COLOR" &&  arg2 =="GL_ONE_MINUS_DST_ALPHA")
							//mCurrentStage->textureBlendMode = "BLENDCURRENTALPHA"; // ??? 
							mCurrentStage->textureBlendMode = "MODULATE"; // ??? 
						else if (arg1=="GL_DST_COLOR" &&  arg2=="GL_ZERO")
							mCurrentStage->textureBlendMode = "MODULATE"; 


					   // GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
					   // GL_DST_COLOR GL_ZERO
					}
					else mCurrentStage->blendFuncSrc = args[1];
					if (args[1]=="add") {
						mCurrentStage->textureBlendMode = "ADD";
						mCurrentStage->blendFuncSrc = "GL_ONE";
						mCurrentStage->blendFuncDst = "GL_ONE";
					} else 
					if (args[1]=="filter") {
						mCurrentStage->textureBlendMode = "MODULATE";
						mCurrentStage->blendFuncSrc = "GL_DST_COLOR";
						mCurrentStage->blendFuncDst = "GL_ZERO";
					} else 
					if (args[1]=="blend") { // ??
						mCurrentStage->textureBlendMode = "BLENDTEXTUREALPHA";
						mCurrentStage->blendFuncSrc = "GL_SRC_ALPHA";
						mCurrentStage->blendFuncDst = "GL_ONE_MINUS_SRC_ALPHA";
					}

					//tcmod scroll 0 1
					//tcMod turb 0 .25 0 5.6
					//tcmod scale 1.5 1.5
					//tcGen environment
					//tcMod scroll 0.15 0.15
					//depthWrite
					//map $lightmap
					
					//rgbGen identity
					//rgbGen wave sin .5 .5 0 .5	
					//depthfunc equal



			}
			else if (arg0 == "alphafunc") 
			{  // GE128 
			}
			else if (arg0 == "tcmod")
			{
				if (mCurrentStage->tcmod.length()>0) 	mCurrentStage->tcmod += ',';

				if (args[1] == "scale" || args[1] == "scroll" || args[1] == "rotate") {
					for (unsigned int i=1; i< args.size(); i++) {
						mCurrentStage->tcmodOk += args[i];
						mCurrentStage->tcmodOk += ' ';
					}

				} else {
					for (unsigned int i=1; i< args.size(); i++) {
						mCurrentStage->tcmod += args[i];
						mCurrentStage->tcmod += ' ';
					}
				}
			}
			else if (arg0 == "tcgen")
			{
				if (mCurrentStage->tcmod.length()>0) 	mCurrentStage->tcmod += ',';
				mCurrentStage->tcmod += "tcgen ";
				for (unsigned int i=1; i< args.size(); i++) {
					mCurrentStage->tcmod += args[i];
					mCurrentStage->tcmod += ' ';
				}
			}
			else if (arg0 == "rgbgen")
			{
				// identityLighting
				// identity
				// wave <func> <base> <amp> <phase> <freq>
				for (unsigned int i=1; i< args.size(); i++) {
					if (i>1) mCurrentStage->rgbGen += ' ';
					mCurrentStage->rgbGen += args[i];
				}
			}
			else {

			}
		  } // braceCount == 2
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x360, %rsp            # imm = 0x360
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x278(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xeea4(%rip), %rsi      # 0x2a609
callq 0x12ff0
testb $0x1, %al
jne 0x1b770
jmp 0x1b785
movq -0x278(%rbp), %rax
movl 0x18(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x18(%rax)
jmp 0x1cb28
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xee6f(%rip), %rsi      # 0x2a60b
callq 0x12ff0
testb $0x1, %al
jne 0x1b7aa
jmp 0x1b972
movq -0x278(%rbp), %rax
movl 0x18(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x18(%rax)
cmpl $0x0, 0x18(%rax)
jne 0x1b8bd
movq -0x278(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x1b8aa
movq -0x278(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x1d140
movq %rax, -0x18(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x1cdb0
movq -0x278(%rbp), %rdi
addq $0x30, %rdi
movq -0x18(%rbp), %rsi
callq 0x1cef0
movq -0x278(%rbp), %rdi
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
addq $0x30, %rdi
callq 0x1ce30
movq %rax, -0x30(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1ce00
testb $0x1, %al
jne 0x1b83a
jmp 0x1b856
movq -0x18(%rbp), %rdi
callq 0xdd00
movq %rax, %rsi
leaq 0xedc0(%rip), %rdi      # 0x2a60d
movb $0x0, %al
callq 0x3060
jmp 0x1b8a8
movq -0x278(%rbp), %rdi
movq 0x20(%rdi), %rax
movq %rax, -0x280(%rbp)
addq $0x30, %rdi
movq -0x18(%rbp), %rsi
callq 0x1d160
movq -0x280(%rbp), %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
callq 0xdd00
movq %rax, %rsi
leaq 0xeda5(%rip), %rdi      # 0x2a637
movb $0x0, %al
callq 0x3060
movq -0x278(%rbp), %rax
movq $0x0, 0x20(%rax)
jmp 0x1b8b8
leaq 0xed98(%rip), %rdi      # 0x2a649
movb $0x0, %al
callq 0x3060
jmp 0x1b96d
movq -0x278(%rbp), %rax
cmpl $0x1, 0x18(%rax)
jne 0x1b940
movq -0x278(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x1b8fa
movq -0x278(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x1b8fa
movq -0x278(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x28(%rax), %rsi
callq 0x1d240
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x288(%rbp)
cmpq $0x0, %rax
je 0x1b92f
movq -0x288(%rbp), %rdi
callq 0x1d0f0
movq -0x288(%rbp), %rdi
movl $0xb8, %esi
callq 0x32b0
movq -0x278(%rbp), %rax
movq $0x0, 0x28(%rax)
jmp 0x1b96b
movq -0x278(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jge 0x1b969
leaq 0xed26(%rip), %rdi      # 0x2a67a
movb $0x0, %al
callq 0x3060
movq -0x278(%rbp), %rax
movl $0x0, 0x18(%rax)
jmp 0x1b96b
jmp 0x1b96d
jmp 0x1cb26
movq -0x278(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jne 0x1bab5
movq -0x278(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x290(%rbp)
cmpq $0x0, %rax
je 0x1b9b8
movq -0x290(%rbp), %rdi
callq 0x1ce80
movq -0x290(%rbp), %rdi
movl $0x68, %esi
callq 0x32b0
movq -0x278(%rbp), %rax
movq $0x0, 0x20(%rax)
movq 0x28(%rax), %rax
movq %rax, -0x298(%rbp)
cmpq $0x0, %rax
je 0x1b9f5
movq -0x298(%rbp), %rdi
callq 0x1d0f0
movq -0x298(%rbp), %rdi
movl $0xb8, %esi
callq 0x32b0
movq -0x278(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xb7b0
movq %rax, %rdi
callq 0x3130
movq %rax, %rsi
leaq -0x130(%rbp), %rdi
movq %rdi, -0x2b0(%rbp)
callq 0x3260
callq 0x91c0
movq -0x2b0(%rbp), %rdx
movq %rax, %rsi
leaq -0x138(%rbp), %rdi
movq %rdi, -0x2a8(%rbp)
callq 0x9240
movl $0x68, %edi
callq 0x32a0
movq -0x2a8(%rbp), %rsi
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2a0(%rbp)
callq 0x1d270
jmp 0x1ba76
movq -0x278(%rbp), %rax
movq -0x2a0(%rbp), %rcx
movq %rcx, 0x20(%rax)
jmp 0x1cb24
movq -0x2a0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x140(%rbp)
movl %eax, -0x144(%rbp)
movl $0x68, %esi
callq 0x32b0
jmp 0x1cb31
movq -0x278(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x1cb22
movq -0x278(%rbp), %rax
cmpl $0x1, 0x18(%rax)
jne 0x1bc0a
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xebb3(%rip), %rsi      # 0x2a6a2
callq 0x12ff0
testb $0x1, %al
jne 0x1bafa
jmp 0x1bb42
movq -0x10(%rbp), %rdi
callq 0xb750
cmpq $0x2, %rax
jne 0x1bb42
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rsi
leaq -0x150(%rbp), %rdi
callq 0x1d340
movq -0x278(%rbp), %rax
movq 0x20(%rax), %rdi
leaq -0x150(%rbp), %rsi
callq 0xdca0
jmp 0x1bc05
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xeb4e(%rip), %rsi      # 0x2a6a7
callq 0x12ff0
testb $0x1, %al
jne 0x1bb64
jmp 0x1bbdd
movq -0x10(%rbp), %rdi
callq 0xb750
cmpq $0x2, %rax
jne 0x1bbdd
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xeb28(%rip), %rsi      # 0x2a6b3
callq 0x12ff0
testb $0x1, %al
jne 0x1bb96
jmp 0x1bba7
movq -0x278(%rbp), %rax
movq 0x20(%rax), %rax
movb $0x1, 0x9(%rax)
jmp 0x1bbdb
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xeaff(%rip), %rsi      # 0x2a6be
callq 0x12ff0
testb $0x1, %al
jne 0x1bbca
jmp 0x1bbd9
movq -0x278(%rbp), %rax
movq 0x20(%rax), %rax
movb $0x1, 0xa(%rax)
jmp 0x1bbdb
jmp 0x1bc03
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xeace(%rip), %rsi      # 0x2a6c2
callq 0x12ff0
testb $0x1, %al
jne 0x1bbff
jmp 0x1bc01
jmp 0x1bc01
jmp 0x1bc03
jmp 0x1bc05
jmp 0x1cb20
movq -0x278(%rbp), %rax
cmpl $0x2, 0x18(%rax)
jne 0x1cb1e
movq -0x278(%rbp), %rax
cmpq $0x0, 0x28(%rax)
jne 0x1bc83
movl $0xb8, %edi
callq 0x32a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2b8(%rbp)
callq 0x1d380
jmp 0x1bc47
movq -0x278(%rbp), %rax
movq -0x2b8(%rbp), %rcx
movq %rcx, 0x28(%rax)
jmp 0x1bc83
movq -0x2b8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x140(%rbp)
movl %eax, -0x144(%rbp)
movl $0xb8, %esi
callq 0x32b0
jmp 0x1cb31
leaq -0x170(%rbp), %rdi
movq %rdi, -0x2c0(%rbp)
callq 0x3410
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xb7b0
movq -0x2c0(%rbp), %rsi
movq %rax, %rdi
callq 0x1cb40
jmp 0x1bcb4
leaq 0xea27(%rip), %rsi      # 0x2a6e2
leaq -0x170(%rbp), %rdi
callq 0x12ff0
movb %al, -0x2c1(%rbp)
jmp 0x1bccf
movb -0x2c1(%rbp), %al
testb $0x1, %al
jne 0x1bcde
jmp 0x1bdb8
movq -0x10(%rbp), %rdi
callq 0xb750
cmpq $0x2, %rax
jne 0x1bdb8
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xe9c2(%rip), %rsi      # 0x2a6cb
callq 0x1d4a0
movb %al, -0x2c2(%rbp)
jmp 0x1bd16
movb -0x2c2(%rbp), %al
testb $0x1, %al
jne 0x1bd22
jmp 0x1bda1
callq 0x91c0
movq %rax, -0x2d0(%rbp)
jmp 0x1bd30
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq -0x2d0(%rbp), %rsi
movq %rax, %rdx
leaq -0x178(%rbp), %rdi
callq 0xdc50
jmp 0x1bd56
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
leaq -0x178(%rbp), %rsi
callq 0xdca0
jmp 0x1bd6f
movq -0x278(%rbp), %rax
movq 0x20(%rax), %rdi
leaq -0x178(%rbp), %rsi
callq 0x1d4d0
jmp 0x1bd88
jmp 0x1bdb3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x140(%rbp)
movl %eax, -0x144(%rbp)
jmp 0x1cb10
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rax
movb $0x1, 0xa8(%rax)
jmp 0x1cb02
leaq 0xe916(%rip), %rsi      # 0x2a6d5
leaq -0x170(%rbp), %rdi
callq 0x12ff0
movb %al, -0x2d1(%rbp)
jmp 0x1bdd3
movb -0x2d1(%rbp), %al
testb $0x1, %al
jne 0x1bde2
jmp 0x1beb0
movq -0x10(%rbp), %rdi
callq 0xb750
cmpq $0x2, %rax
jne 0x1beb0
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xe8be(%rip), %rsi      # 0x2a6cb
callq 0x1d4a0
movb %al, -0x2d2(%rbp)
jmp 0x1be1a
movb -0x2d2(%rbp), %al
testb $0x1, %al
jne 0x1be26
jmp 0x1be99
callq 0x91c0
movq %rax, -0x2e0(%rbp)
jmp 0x1be34
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq -0x2e0(%rbp), %rsi
movq %rax, %rdx
leaq -0x180(%rbp), %rdi
callq 0xdc50
jmp 0x1be5a
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
leaq -0x180(%rbp), %rsi
callq 0xdca0
jmp 0x1be73
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rcx
movb $0x1, 0xaa(%rcx)
movq 0x20(%rax), %rdi
leaq -0x180(%rbp), %rsi
callq 0x1d4d0
jmp 0x1be97
jmp 0x1beab
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rax
movb $0x1, 0xa8(%rax)
jmp 0x1cb00
leaq 0xe827(%rip), %rsi      # 0x2a6de
leaq -0x170(%rbp), %rdi
callq 0x12ff0
movb %al, -0x2e1(%rbp)
jmp 0x1becb
movb -0x2e1(%rbp), %al
testb $0x1, %al
jne 0x1beda
jmp 0x1bfb5
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rax
movb $0x1, 0xa9(%rax)
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rdi
callq 0x3130
movq %rax, %rdi
callq 0x33b0
movq -0x278(%rbp), %rax
cvtsd2ss %xmm0, %xmm0
movq 0x28(%rax), %rax
movss %xmm0, 0x20(%rax)
movl $0x2, -0x184(%rbp)
movl -0x184(%rbp), %eax
movq %rax, -0x2f0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb750
movq %rax, %rcx
movq -0x2f0(%rbp), %rax
cmpq %rcx, %rax
jae 0x1bfb0
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rax
addq $0x8, %rax
movq %rax, -0x2f8(%rbp)
movq -0x10(%rbp), %rdi
movl -0x184(%rbp), %eax
movl %eax, %esi
callq 0xb7b0
movq %rax, %rsi
leaq -0x190(%rbp), %rdi
callq 0x1d340
jmp 0x1bf85
movq -0x2f8(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x1d540
jmp 0x1bf9a
jmp 0x1bf9c
movl -0x184(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x184(%rbp)
jmp 0x1bf28
jmp 0x1cafe
leaq 0xe72a(%rip), %rsi      # 0x2a6e6
leaq -0x170(%rbp), %rdi
callq 0x12ff0
movb %al, -0x2f9(%rbp)
jmp 0x1bfd0
movb -0x2f9(%rbp), %al
testb $0x1, %al
jne 0x1bfdf
jmp 0x1c6e4
movq -0x10(%rbp), %rdi
callq 0xb750
cmpq $0x3, %rax
jne 0x1c42a
leaq -0x1b0(%rbp), %rdi
movq %rdi, -0x308(%rbp)
callq 0x3410
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq -0x308(%rbp), %rsi
movq %rax, %rdi
callq 0x1cba0
jmp 0x1c024
leaq -0x1d0(%rbp), %rdi
movq %rdi, -0x310(%rbp)
callq 0x3410
movq -0x10(%rbp), %rdi
movl $0x2, %esi
callq 0xb7b0
movq -0x310(%rbp), %rsi
movq %rax, %rdi
callq 0x1cba0
jmp 0x1c056
leaq -0x1d8(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
callq 0x1d340
jmp 0x1c06b
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x28, %rdi
leaq -0x1d8(%rbp), %rsi
callq 0xdca0
jmp 0x1c088
leaq -0x1e0(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x1d340
jmp 0x1c09d
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x30, %rdi
leaq -0x1e0(%rbp), %rsi
callq 0xdca0
jmp 0x1c0ba
leaq 0xe62f(%rip), %rsi      # 0x2a6f0
leaq -0x1b0(%rbp), %rdi
callq 0x12ff0
movb %al, -0x311(%rbp)
jmp 0x1c0d5
movb -0x311(%rbp), %al
testb $0x1, %al
jne 0x1c0e1
jmp 0x1c152
leaq 0xe615(%rip), %rsi      # 0x2a6fd
leaq -0x1e8(%rbp), %rdi
callq 0x11e90
jmp 0x1c0f6
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0xb0, %rdi
leaq -0x1e8(%rbp), %rsi
callq 0xdca0
jmp 0x1c116
jmp 0x1c152
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x140(%rbp)
movl %eax, -0x144(%rbp)
jmp 0x1c419
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x140(%rbp)
movl %eax, -0x144(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0x3180
jmp 0x1c419
leaq 0xe5b6(%rip), %rsi      # 0x2a70f
leaq -0x1b0(%rbp), %rdi
callq 0x12ff0
movb %al, -0x312(%rbp)
jmp 0x1c16d
movb -0x312(%rbp), %al
testb $0x1, %al
jne 0x1c179
jmp 0x1c1da
leaq 0xe596(%rip), %rsi      # 0x2a716
leaq -0x1d0(%rbp), %rdi
callq 0x12ff0
movb %al, -0x313(%rbp)
jmp 0x1c194
movb -0x313(%rbp), %al
testb $0x1, %al
jne 0x1c1a0
jmp 0x1c1da
leaq 0xe577(%rip), %rsi      # 0x2a71e
leaq -0x1f0(%rbp), %rdi
callq 0x11e90
jmp 0x1c1b5
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0xb0, %rdi
leaq -0x1f0(%rbp), %rsi
callq 0xdca0
jmp 0x1c1d5
jmp 0x1c3ff
leaq 0xe52e(%rip), %rsi      # 0x2a70f
leaq -0x1b0(%rbp), %rdi
callq 0x12ff0
movb %al, -0x314(%rbp)
jmp 0x1c1f5
movb -0x314(%rbp), %al
testb $0x1, %al
jne 0x1c201
jmp 0x1c262
leaq 0xe507(%rip), %rsi      # 0x2a70f
leaq -0x1d0(%rbp), %rdi
callq 0x12ff0
movb %al, -0x315(%rbp)
jmp 0x1c21c
movb -0x315(%rbp), %al
testb $0x1, %al
jne 0x1c228
jmp 0x1c262
leaq 0xe4f7(%rip), %rsi      # 0x2a726
leaq -0x1f8(%rbp), %rdi
callq 0x11e90
jmp 0x1c23d
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0xb0, %rdi
leaq -0x1f8(%rbp), %rsi
callq 0xdca0
jmp 0x1c25d
jmp 0x1c3fd
leaq 0xe487(%rip), %rsi      # 0x2a6f0
leaq -0x1b0(%rbp), %rdi
callq 0x12ff0
movb %al, -0x316(%rbp)
jmp 0x1c27d
movb -0x316(%rbp), %al
testb $0x1, %al
jne 0x1c289
jmp 0x1c2ea
leaq 0xe49a(%rip), %rsi      # 0x2a72a
leaq -0x1d0(%rbp), %rdi
callq 0x12ff0
movb %al, -0x317(%rbp)
jmp 0x1c2a4
movb -0x317(%rbp), %al
testb $0x1, %al
jne 0x1c2b0
jmp 0x1c2ea
leaq 0xe446(%rip), %rsi      # 0x2a6fd
leaq -0x200(%rbp), %rdi
callq 0x11e90
jmp 0x1c2c5
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0xb0, %rdi
leaq -0x200(%rbp), %rsi
callq 0xdca0
jmp 0x1c2e5
jmp 0x1c3fb
leaq 0xe450(%rip), %rsi      # 0x2a741
leaq -0x1b0(%rbp), %rdi
callq 0x12ff0
movb %al, -0x318(%rbp)
jmp 0x1c305
movb -0x318(%rbp), %al
testb $0x1, %al
jne 0x1c311
jmp 0x1c372
leaq 0xe436(%rip), %rsi      # 0x2a74e
leaq -0x1d0(%rbp), %rdi
callq 0x12ff0
movb %al, -0x319(%rbp)
jmp 0x1c32c
movb -0x319(%rbp), %al
testb $0x1, %al
jne 0x1c338
jmp 0x1c372
leaq 0xd76e(%rip), %rsi      # 0x29aad
leaq -0x208(%rbp), %rdi
callq 0x11e90
jmp 0x1c34d
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0xb0, %rdi
leaq -0x208(%rbp), %rsi
callq 0xdca0
jmp 0x1c36d
jmp 0x1c3f9
leaq 0xe3c8(%rip), %rsi      # 0x2a741
leaq -0x1b0(%rbp), %rdi
callq 0x12ff0
movb %al, -0x31a(%rbp)
jmp 0x1c38d
movb -0x31a(%rbp), %al
testb $0x1, %al
jne 0x1c399
jmp 0x1c3f7
leaq 0xe376(%rip), %rsi      # 0x2a716
leaq -0x1d0(%rbp), %rdi
callq 0x12ff0
movb %al, -0x31b(%rbp)
jmp 0x1c3b4
movb -0x31b(%rbp), %al
testb $0x1, %al
jne 0x1c3c0
jmp 0x1c3f7
leaq 0xd6e6(%rip), %rsi      # 0x29aad
leaq -0x210(%rbp), %rdi
callq 0x11e90
jmp 0x1c3d5
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0xb0, %rdi
leaq -0x210(%rbp), %rsi
callq 0xdca0
jmp 0x1c3f5
jmp 0x1c3f7
jmp 0x1c3f9
jmp 0x1c3fb
jmp 0x1c3fd
jmp 0x1c3ff
leaq -0x1d0(%rbp), %rdi
callq 0x3180
leaq -0x1b0(%rbp), %rdi
callq 0x3180
jmp 0x1c468
leaq -0x1b0(%rbp), %rdi
callq 0x3180
jmp 0x1cb10
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rsi
leaq -0x218(%rbp), %rdi
callq 0x1d340
jmp 0x1c449
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x28, %rdi
leaq -0x218(%rbp), %rsi
callq 0xdca0
jmp 0x1c466
jmp 0x1c468
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xe2e5(%rip), %rsi      # 0x2a765
callq 0x12ff0
movb %al, -0x31c(%rbp)
jmp 0x1c48d
movb -0x31c(%rbp), %al
testb $0x1, %al
jne 0x1c49c
jmp 0x1c53a
leaq 0xe283(%rip), %rsi      # 0x2a726
leaq -0x220(%rbp), %rdi
callq 0x11e90
jmp 0x1c4b1
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0xb0, %rdi
leaq -0x220(%rbp), %rsi
callq 0xdca0
jmp 0x1c4d1
leaq 0xe237(%rip), %rsi      # 0x2a70f
leaq -0x228(%rbp), %rdi
callq 0x11e90
jmp 0x1c4e6
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x28, %rdi
leaq -0x228(%rbp), %rsi
callq 0xdca0
jmp 0x1c503
leaq 0xe205(%rip), %rsi      # 0x2a70f
leaq -0x230(%rbp), %rdi
callq 0x11e90
jmp 0x1c518
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x30, %rdi
leaq -0x230(%rbp), %rsi
callq 0xdca0
jmp 0x1c535
jmp 0x1c6df
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xe217(%rip), %rsi      # 0x2a769
callq 0x12ff0
movb %al, -0x31d(%rbp)
jmp 0x1c55f
movb -0x31d(%rbp), %al
testb $0x1, %al
jne 0x1c56e
jmp 0x1c60c
leaq 0xd538(%rip), %rsi      # 0x29aad
leaq -0x238(%rbp), %rdi
callq 0x11e90
jmp 0x1c583
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0xb0, %rdi
leaq -0x238(%rbp), %rsi
callq 0xdca0
jmp 0x1c5a3
leaq 0xe197(%rip), %rsi      # 0x2a741
leaq -0x240(%rbp), %rdi
callq 0x11e90
jmp 0x1c5b8
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x28, %rdi
leaq -0x240(%rbp), %rsi
callq 0xdca0
jmp 0x1c5d5
leaq 0xe13a(%rip), %rsi      # 0x2a716
leaq -0x248(%rbp), %rdi
callq 0x11e90
jmp 0x1c5ea
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x30, %rdi
leaq -0x248(%rbp), %rsi
callq 0xdca0
jmp 0x1c607
jmp 0x1c6dd
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xe14c(%rip), %rsi      # 0x2a770
callq 0x12ff0
movb %al, -0x31e(%rbp)
jmp 0x1c631
movb -0x31e(%rbp), %al
testb $0x1, %al
jne 0x1c640
jmp 0x1c6db
leaq 0xe0b6(%rip), %rsi      # 0x2a6fd
leaq -0x250(%rbp), %rdi
callq 0x11e90
jmp 0x1c655
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0xb0, %rdi
leaq -0x250(%rbp), %rsi
callq 0xdca0
jmp 0x1c675
leaq 0xe074(%rip), %rsi      # 0x2a6f0
leaq -0x258(%rbp), %rdi
callq 0x11e90
jmp 0x1c68a
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x28, %rdi
leaq -0x258(%rbp), %rsi
callq 0xdca0
jmp 0x1c6a7
leaq 0xe07c(%rip), %rsi      # 0x2a72a
leaq -0x260(%rbp), %rdi
callq 0x11e90
jmp 0x1c6bc
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x30, %rdi
leaq -0x260(%rbp), %rsi
callq 0xdca0
jmp 0x1c6d9
jmp 0x1c6db
jmp 0x1c6dd
jmp 0x1c6df
jmp 0x1cafc
leaq 0xe08b(%rip), %rsi      # 0x2a776
leaq -0x170(%rbp), %rdi
callq 0x12ff0
movb %al, -0x31f(%rbp)
jmp 0x1c6ff
movb -0x31f(%rbp), %al
testb $0x1, %al
jne 0x1c70b
jmp 0x1c710
jmp 0x1cafa
leaq 0xe069(%rip), %rsi      # 0x2a780
leaq -0x170(%rbp), %rdi
callq 0x12ff0
movb %al, -0x320(%rbp)
jmp 0x1c72b
movb -0x320(%rbp), %al
testb $0x1, %al
jne 0x1c73a
jmp 0x1c921
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x68, %rdi
callq 0x3470
cmpq $0x0, %rax
jbe 0x1c771
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x68, %rdi
movl $0x2c, %esi
callq 0x3190
jmp 0x1c76f
jmp 0x1c771
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xdffd(%rip), %rsi      # 0x2a786
callq 0x12ff0
movb %al, -0x321(%rbp)
jmp 0x1c796
movb -0x321(%rbp), %al
testb $0x1, %al
jne 0x1c807
jmp 0x1c7a2
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xdfd2(%rip), %rsi      # 0x2a78c
callq 0x12ff0
movb %al, -0x322(%rbp)
jmp 0x1c7c7
movb -0x322(%rbp), %al
testb $0x1, %al
jne 0x1c807
jmp 0x1c7d3
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0xb7b0
movq %rax, %rdi
leaq 0xdfa8(%rip), %rsi      # 0x2a793
callq 0x12ff0
movb %al, -0x323(%rbp)
jmp 0x1c7f8
movb -0x323(%rbp), %al
testb $0x1, %al
jne 0x1c807
jmp 0x1c893
movl $0x1, -0x264(%rbp)
movl -0x264(%rbp), %eax
movq %rax, -0x330(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb750
movq %rax, %rcx
movq -0x330(%rbp), %rax
cmpq %rcx, %rax
jae 0x1c88e
movq -0x10(%rbp), %rdi
movl -0x264(%rbp), %eax
movl %eax, %esi
callq 0xb7b0
movq %rax, %rsi
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x48, %rdi
callq 0x33d0
jmp 0x1c860
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x48, %rdi
movl $0x20, %esi
callq 0x3190
jmp 0x1c87b
jmp 0x1c87d
movl -0x264(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x264(%rbp)
jmp 0x1c811
jmp 0x1c91c
movl $0x1, -0x268(%rbp)
movl -0x268(%rbp), %eax
movq %rax, -0x338(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb750
movq %rax, %rcx
movq -0x338(%rbp), %rax
cmpq %rcx, %rax
jae 0x1c91a
movq -0x10(%rbp), %rdi
movl -0x268(%rbp), %eax
movl %eax, %esi
callq 0xb7b0
movq %rax, %rsi
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x68, %rdi
callq 0x33d0
jmp 0x1c8ec
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x68, %rdi
movl $0x20, %esi
callq 0x3190
jmp 0x1c907
jmp 0x1c909
movl -0x268(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x268(%rbp)
jmp 0x1c89d
jmp 0x1c91c
jmp 0x1caf8
leaq 0xde72(%rip), %rsi      # 0x2a79a
leaq -0x170(%rbp), %rdi
callq 0x12ff0
movb %al, -0x339(%rbp)
jmp 0x1c93c
movb -0x339(%rbp), %al
testb $0x1, %al
jne 0x1c94b
jmp 0x1ca2b
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x68, %rdi
callq 0x3470
cmpq $0x0, %rax
jbe 0x1c982
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x68, %rdi
movl $0x2c, %esi
callq 0x3190
jmp 0x1c980
jmp 0x1c982
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x68, %rdi
leaq 0xde08(%rip), %rsi      # 0x2a7a0
callq 0x3270
jmp 0x1c99f
movl $0x1, -0x26c(%rbp)
movl -0x26c(%rbp), %eax
movq %rax, -0x348(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb750
movq %rax, %rcx
movq -0x348(%rbp), %rax
cmpq %rcx, %rax
jae 0x1ca26
movq -0x10(%rbp), %rdi
movl -0x26c(%rbp), %eax
movl %eax, %esi
callq 0xb7b0
movq %rax, %rsi
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x68, %rdi
callq 0x33d0
jmp 0x1c9f8
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x68, %rdi
movl $0x20, %esi
callq 0x3190
jmp 0x1ca13
jmp 0x1ca15
movl -0x26c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x26c(%rbp)
jmp 0x1c9a9
jmp 0x1caf6
leaq 0xdd75(%rip), %rsi      # 0x2a7a7
leaq -0x170(%rbp), %rdi
callq 0x12ff0
movb %al, -0x349(%rbp)
jmp 0x1ca46
movb -0x349(%rbp), %al
testb $0x1, %al
jne 0x1ca55
jmp 0x1caf2
movl $0x1, -0x270(%rbp)
movl -0x270(%rbp), %eax
movq %rax, -0x358(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb750
movq %rax, %rcx
movq -0x358(%rbp), %rax
cmpq %rcx, %rax
jae 0x1caf0
cmpl $0x1, -0x270(%rbp)
jbe 0x1caad
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x88, %rdi
movl $0x20, %esi
callq 0x3190
jmp 0x1caab
jmp 0x1caad
movq -0x10(%rbp), %rdi
movl -0x270(%rbp), %eax
movl %eax, %esi
callq 0xb7b0
movq %rax, %rsi
movq -0x278(%rbp), %rax
movq 0x28(%rax), %rdi
addq $0x88, %rdi
callq 0x33d0
jmp 0x1cada
jmp 0x1cadc
movl -0x270(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x270(%rbp)
jmp 0x1ca5f
jmp 0x1caf4
jmp 0x1caf4
jmp 0x1caf6
jmp 0x1caf8
jmp 0x1cafa
jmp 0x1cafc
jmp 0x1cafe
jmp 0x1cb00
jmp 0x1cb02
leaq -0x170(%rbp), %rdi
callq 0x3180
jmp 0x1cb1e
leaq -0x170(%rbp), %rdi
callq 0x3180
jmp 0x1cb31
jmp 0x1cb20
jmp 0x1cb22
jmp 0x1cb24
jmp 0x1cb26
jmp 0x1cb28
addq $0x360, %rsp            # imm = 0x360
popq %rbp
retq
movq -0x140(%rbp), %rdi
callq 0x34f0
nopl (%rax)