LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3bsp.cpp
// Function: QuakeVertex::QuakeVertex(int const*)
QuakeVertex::QuakeVertex(const int *vert)
{

  const drawVert_t *n = (const drawVert_t *) vert;

  const float *fvert = (const float *) vert;

  mPos.x = fvert[0];
  mPos.y = fvert[1];
  mPos.z = fvert[2];

  mTexel1.x = fvert[3];
  mTexel1.y = fvert[4];

  mTexel2.x = fvert[5];
  mTexel2.y = fvert[6];

  mNormal.x = fvert[7];
  mNormal.y = fvert[8];
  mNormal.z = fvert[9];

  mColor    = (unsigned int) vert[10];

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movss (%rsi), %xmm0
movss %xmm0, (%rdi)
movss 0x4(%rsi), %xmm0
movss %xmm0, 0x4(%rdi)
movss 0x8(%rsi), %xmm0
movss %xmm0, 0x8(%rdi)
movss 0xc(%rsi), %xmm0
movss %xmm0, 0xc(%rdi)
movss 0x10(%rsi), %xmm0
movss %xmm0, 0x10(%rdi)
movss 0x14(%rsi), %xmm0
movss %xmm0, 0x14(%rdi)
movss 0x18(%rsi), %xmm0
movss %xmm0, 0x18(%rdi)
movss 0x1c(%rsi), %xmm0
movss %xmm0, 0x1c(%rdi)
movss 0x20(%rsi), %xmm0
movss %xmm0, 0x20(%rdi)
movss 0x24(%rsi), %xmm0
movss %xmm0, 0x24(%rdi)
movl 0x28(%rsi), %eax
movl %eax, 0x28(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3bsp.cpp
// Function: QuakeVertex::Get(LightMapVertex&) const
void QuakeVertex::Get(LightMapVertex &vtx) const
{
  vtx.mPos.x    = mPos.x;
  vtx.mPos.y    = mPos.y;
  vtx.mPos.z    = mPos.z;


  vtx.mTexel1.x = mTexel1.x;
  vtx.mTexel1.y = mTexel1.y;

  vtx.mTexel2.x = mTexel2.x;
  vtx.mTexel2.y = mTexel2.y;

  vtx.mColor.x    = float((mColor>>0) & 0xFF) / 255.0f;
  vtx.mColor.y    = float((mColor>>8) & 0xFF) / 255.0f;
  vtx.mColor.z    = float((mColor>>16) & 0xFF) / 255.0f;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movss (%rdi), %xmm0
movss %xmm0, (%rsi)
movss 0x4(%rdi), %xmm0
movss %xmm0, 0x4(%rsi)
movss 0x8(%rdi), %xmm0
movss %xmm0, 0x8(%rsi)
movss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rsi)
movss 0x10(%rdi), %xmm0
movss %xmm0, 0x10(%rsi)
movss 0x14(%rdi), %xmm0
movss %xmm0, 0x14(%rsi)
movss 0x18(%rdi), %xmm0
movss %xmm0, 0x18(%rsi)
movl 0x28(%rdi), %eax
movl $0xff, %ecx
movl %eax, %edx
andl %ecx, %edx
xorps %xmm0, %xmm0
cvtsi2ss %edx, %xmm0
movss 0x8637(%rip), %xmm1     # 0x121d8
divss %xmm1, %xmm0
movss %xmm0, 0x1c(%rsi)
movl %eax, %edx
shrl $0x8, %edx
andl %ecx, %edx
xorps %xmm0, %xmm0
cvtsi2ss %edx, %xmm0
shrl $0x10, %eax
andl %ecx, %eax
cvtsi2ss %eax, %xmm2
divss %xmm1, %xmm0
movss %xmm0, 0x20(%rsi)
divss %xmm1, %xmm2
movss %xmm2, 0x24(%rsi)
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3bsp.cpp
// Function: ShaderReference::GetShaderFileName(char*)
void ShaderReference::GetShaderFileName(char *tname)
{
  strcpy(tname,"");
  int len = strlen(mName);
  if ( !len ) 
	  return;
  
  const char *foo = &mName[0];
  while ( *foo && *foo != '/' ) foo++;

  if ( !*foo ) return;
  foo++;
  
  char *dest = tname;
  while ( *foo && *foo != '/' )
  {
    *dest++ = *foo++;
  }
  *dest = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movb $0x0, (%rsi)
callq 0x2120
testl %eax, %eax
je 0xa11a
movzbl (%r14), %eax
testl %eax, %eax
je 0xa11a
cmpl $0x2f, %eax
je 0xa0f9
incq %r14
jmp 0xa0e7
movl $0x1, %eax
movzbl (%r14,%rax), %ecx
testl %ecx, %ecx
je 0xa115
cmpl $0x2f, %ecx
je 0xa115
movb %cl, -0x1(%rbx,%rax)
incq %rax
jmp 0xa0fe
movb $0x0, -0x1(%rbx,%rax)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3bsp.cpp
// Function: ShaderReference::GetTextureName(char*)
void ShaderReference::GetTextureName(char *tname)
{
  strcpy(tname,"null");
  int len = strlen(mName);
  if ( !len ) return;
  const char *foo = &mName[len-1];
  while ( *foo && *foo != '/' ) foo--;
  if ( !*foo ) return;
  foo++;
  char *dest = tname;
  while ( *foo )
  {
    *dest++ = *foo++;
  }
  *dest = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movb $0x0, 0x4(%rsi)
movl $0x6c6c756e, (%rsi)     # imm = 0x6C6C756E
callq 0x2120
testl %eax, %eax
je 0xa178
decl %eax
cltq
addq %r14, %rax
incq %rax
movzbl -0x1(%rax), %ecx
testl %ecx, %ecx
je 0xa178
cmpl $0x2f, %ecx
je 0xa15c
decq %rax
jmp 0xa14a
movb (%rax), %cl
testb %cl, %cl
je 0xa175
xorl %edx, %edx
movb %cl, (%rbx,%rdx)
movb 0x1(%rax,%rdx), %cl
incq %rdx
testb %cl, %cl
jne 0xa164
addq %rdx, %rbx
movb $0x0, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3bsp.cpp
// Function: Quake3BSP::SaveEntitiesVRML2(_IO_FILE*, VFormatOptions&) const
void Quake3BSP::SaveEntitiesVRML2(
			FILE *fph,
            VFormatOptions &options) const 
{
  if ( mEntities.size() )
  {
    if ( fph )
    {
      fprintf(fph,"DEF Entities Group {\n");
      fprintf(fph,"children [\n");

      EntityReferenceVector::const_iterator i;

      for (i=mEntities.begin(); i!=mEntities.end(); ++i)
      {
			SaveEntity(*i,fph,options);
      }

      fprintf(fph,"]}\n");

    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0xa554
movq %rdi, %r14
movq 0x1d0(%rdi), %rax
cmpq %rax, 0x1d8(%rdi)
je 0xa554
movq %rsi, %rbx
leaq 0x8c6b(%rip), %rdi      # 0x13173
movl $0x15, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2410
leaq 0x8c68(%rip), %rdi      # 0x13189
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2410
movq 0x1d0(%r14), %r15
cmpq 0x1d8(%r14), %r15
je 0xa55f
movq %r15, %rsi
movq %rbx, %rdx
callq 0xa17e
addq $0x20, %r15
jmp 0xa53a
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8c2f(%rip), %rdi      # 0x13195
movl $0x3, %esi
movl $0x1, %edx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2410
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3bsp.cpp
// Function: Quake3BSP::SaveNode(int, _IO_FILE*, VFormatOptions&)
void Quake3BSP::SaveNode(
			int nodeNum, 
			FILE *fph,
            VFormatOptions &options)

{
	if (nodeNum<0) {
		// negative numbers are -(leafs+1), not nodes
		int leafNum = - (nodeNum+1);
		SaveNodeBsp(&mLeaves[leafNum],fph,options);
	}
	else {
		SaveNodeBsp(&mNodes[nodeNum],fph,options);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testl %esi, %esi
js 0xa5a1
movl %esi, %eax
leaq (%rax,%rax,8), %rsi
shlq $0x2, %rsi
addq 0x140(%rdi), %rsi
popq %rbp
jmp 0xa748
notl %esi
leaq (%rsi,%rsi,2), %rsi
shlq $0x4, %rsi
addq 0x1b8(%rdi), %rsi
popq %rbp
jmp 0xa5b8
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3bsp.cpp
// Function: Quake3BSP::SaveNodeBsp(dleaf_t const*, _IO_FILE*, VFormatOptions&)
void Quake3BSP::SaveNodeBsp(
			const dleaf_t *node, 

			FILE *fph,
            VFormatOptions &options) 
{

	// save the leaf surfaces & brushes 
	if (node->numLeafSurfaces == 0) {
		fprintf(fph,"NULL ");
		return;
	}
	if (node->numLeafSurfaces >1) {
		//fprintf(fph,"Group { children [\n");
	}
    VertexMesh mesh;

	// print all the surfaces 
	for (int i=0; i<node->numLeafSurfaces;i++) {
		int surface = node->firstLeafSurface + i;
		surface = mLeafSurfaces[surface];
		fprintf(fph,"## surface %d \n",surface);

		mFaces[surface].Build(mElements,mVertices,mShaders,mLmPrefix,mName,mCodeName,mesh);
	}

	mesh.SaveVRML2(fph,options);

	if (node->numLeafSurfaces >1) {
		//fprintf(fph,"]}");
	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r8
cmpl $0x0, 0x24(%rsi)
je 0xa705
movq %rsi, %r15
movq %rcx, -0x30(%rbp)
leaq 0x85cb(%rip), %rax      # 0x12bb2
leaq -0x98(%rbp), %rcx
movq %rax, -0x10(%rcx)
movl $0x0, (%rcx)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, -0x18(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rcx)
movabsq $0x4e6e6b284e6e6b28, %rax # imm = 0x4E6E6B284E6E6B28
movq %rax, 0x28(%rcx)
movaps 0x85ca(%rip), %xmm0     # 0x12bf0
movups %xmm0, 0x30(%rcx)
cmpl $0x0, 0x24(%rsi)
jle 0xa6d4
movq %rdi, %r12
leaq 0xf0(%rdi), %rax
movq %rax, -0x58(%rbp)
leaq 0xc0(%rdi), %rax
movq %rax, -0x50(%rbp)
leaq 0xd8(%rdi), %rax
movq %rax, -0x48(%rbp)
leaq 0x1f0(%rdi), %rax
movq %rax, -0x40(%rbp)
leaq 0x10(%rdi), %rax
movq %rax, -0x38(%rbp)
xorl %r13d, %r13d
movslq 0x20(%r15), %rax
addq %r13, %rax
movq 0x158(%r12), %rcx
movslq (%rcx,%rax,4), %r14
movq %r8, %rbx
movq %r8, %rdi
leaq 0x8b3c(%rip), %rsi      # 0x131ca
movl %r14d, %edx
xorl %eax, %eax
callq 0x2300
imulq $0x6c, %r14, %rdi
addq 0xa8(%r12), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
leaq -0xb0(%rbp), %rax
pushq %rax
pushq -0x38(%rbp)
callq 0x9bd6
addq $0x10, %rsp
incq %r13
cmpl 0x24(%r15), %r13d
movq %rbx, %r8
jl 0xa66e
leaq -0xb0(%rbp), %rdi
movq %r8, %rsi
movq -0x30(%rbp), %rdx
callq 0xf054
leaq -0xb0(%rbp), %rdi
callq 0xed4e
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8ab8(%rip), %rdi      # 0x131c4
movl $0x5, %esi
movl $0x1, %edx
movq %r8, %rcx
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2410
jmp 0xa731
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0xed4e
movq %rbx, %rdi
callq 0x23c0
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3bsp.cpp
// Function: Quake3BSP::SaveNodeBsp(dnode_t const*, _IO_FILE*, VFormatOptions&)
void Quake3BSP::SaveNodeBsp(
			const dnode_t *node, 

			FILE *fph,
            VFormatOptions &options)
{

	const dplane_t	*plane;
	
	if (node->planeNum != PLANENUM_LEAF) {
		plane = &mPlanes[node->planeNum];
		//d = DotProduct (origin, plane->normal) - plane->dist;
		// if (d >= 0) node = node->children[0];
		vec3_t normal;

		// is this correct ??
		options.MapVector(plane->normal,normal) ;
	
		fprintf(fph,"BspTree { plane %g %g %g %g \n",normal[0], normal[1],normal[2],plane->dist);

		fprintf(fph,"front "); SaveNode(node->children[0],fph,options);

		fprintf(fph,"back ");SaveNode(node->children[1],fph,options);

		fprintf(fph,"}\n");

	}	else {
#if 0
		portal_t	**pp, *t;
	
		pp = &node->portals;
		while (1)
		{
			t = *pp;
			if (!t)
				break;

/*
			if (t->nodes[0] == l)
				pp = &t->next[0];
			else if (t->nodes[1] == l)
				pp = &t->next[1];
			else
				Error ("RemovePortalFromNode: portal not bounding leaf");
*/
		}

		if (!node->brushlist)
			fprintf (fph,"NULL\n");
		else
		{
			for (bb=node->brushlist ; bb ; bb=bb->next) {
				//_printf ("%i ", bb->original->brushnum);
			}
			//_printf ("\n");
		}
		return;
#endif

	}

}

// Assembly:
movslq (%rsi), %rax
cmpq $-0x1, %rax
je 0xa838
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
movq 0x128(%rdi), %rcx
shlq $0x4, %rax
movss 0x8491(%rip), %xmm1     # 0x12c10
movss (%rcx,%rax), %xmm0
mulss %xmm1, %xmm0
mulss 0x8(%rcx,%rax), %xmm1
movss 0x4(%rcx,%rax), %xmm2
mulss 0x8478(%rip), %xmm2     # 0x12c14
cvtss2sd %xmm0, %xmm0
cvtss2sd %xmm1, %xmm1
cvtss2sd %xmm2, %xmm2
cvtss2sd 0xc(%rcx,%rax), %xmm3
leaq 0x89e4(%rip), %rsi      # 0x13199
movq %rdx, %rdi
movb $0x4, %al
callq 0x2300
leaq 0x89f1(%rip), %rdi      # 0x131b7
movl $0x6, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2410
movl 0x4(%r12), %esi
movq %r15, %rdi
movq %rbx, %rdx
movq %r14, %rcx
callq 0xa582
leaq 0x89cc(%rip), %rdi      # 0x131be
movl $0x5, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2410
movl 0x8(%r12), %esi
movq %r15, %rdi
movq %rbx, %rdx
movq %r14, %rcx
callq 0xa582
leaq 0x95f2(%rip), %rdi      # 0x13e10
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2410
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/./rect.h
// Function: Rect3d<float>::MinMax(float, float, float)
void MinMax(Type x,Type y,Type z)
  {
    if ( x < r1.GetX() ) r1.SetX(x);
    if ( y < r1.GetY() ) r1.SetY(y);
    if ( z < r1.GetZ() ) r1.SetZ(z);

    if ( x > r2.GetX() ) r2.SetX(x);
    if ( y > r2.GetY() ) r2.SetY(y);
    if ( z > r2.GetZ() ) r2.SetZ(z);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movss (%rdi), %xmm3
ucomiss %xmm0, %xmm3
jbe 0xb7f7
movss %xmm0, (%rdi)
movss 0x4(%rdi), %xmm3
ucomiss %xmm1, %xmm3
jbe 0xb806
movss %xmm1, 0x4(%rdi)
movss 0x8(%rdi), %xmm3
ucomiss %xmm2, %xmm3
jbe 0xb815
movss %xmm2, 0x8(%rdi)
ucomiss 0xc(%rdi), %xmm0
jbe 0xb820
movss %xmm0, 0xc(%rdi)
ucomiss 0x10(%rdi), %xmm1
jbe 0xb82b
movss %xmm1, 0x10(%rdi)
ucomiss 0x14(%rdi), %xmm2
jbe 0xb836
movss %xmm2, 0x14(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3shader.cpp
// Function: QuakeShaderFactory::~QuakeShaderFactory()
QuakeShaderFactory::~QuakeShaderFactory(void)
{
  QuakeShaderMap::iterator i;
  for (i=mShaders.begin(); i!=mShaders.end(); ++i)
  {
    QuakeShader *shader = (*i).second;
    delete shader;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x48(%rdi), %r14
leaq 0x38(%rdi), %r12
cmpq %r12, %r14
je 0xc971
movq 0x28(%r14), %r15
testq %r15, %r15
je 0xc961
leaq 0x50(%r15), %rdi
callq 0xdd96
movq 0x38(%r15), %rdi
testq %rdi, %rdi
je 0xc93c
movq 0x48(%r15), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x10(%r15), %rdi
leaq 0x20(%r15), %rax
cmpq %rax, %rdi
je 0xc954
movq (%rax), %rsi
incq %rsi
callq 0x2230
movl $0x68, %esi
movq %r15, %rdi
callq 0x2230
movq %r14, %rdi
callq 0x2190
movq %rax, %r14
cmpq %r12, %rax
jne 0xc915
leaq 0x30(%rbx), %r14
leaq 0x60(%rbx), %rdi
callq 0xdcda
movq %r14, %rdi
callq 0xdd38
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x70de
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3shader.cpp
// Function: QuakeShaderFactory::Locate(StringRef const&)
QuakeShader * QuakeShaderFactory::Locate(const StringRef &str)
{
  QuakeShaderMap::iterator found;
  found = mShaders.find(str);
  if ( found != mShaders.end() ) return (*found).second;
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x40(%rdi), %rcx
addq $0x38, %rdi
movq %rdi, %rax
testq %rcx, %rcx
je 0xca03
movq (%rsi), %rdx
movq %rdi, %rax
xorl %r8d, %r8d
cmpq 0x20(%rcx), %rdx
setb %r8b
cmovaeq %rcx, %rax
movq 0x10(%rcx,%r8,8), %rcx
testq %rcx, %rcx
jne 0xc9ea
movq %rdi, %rcx
cmpq %rdi, %rax
je 0xca19
movq 0x20(%rax), %rcx
cmpq (%rsi), %rcx
cmovbq %rdi, %rax
movq %rax, %rcx
cmpq %rdi, %rcx
je 0xca24
movq 0x28(%rcx), %rax
jmp 0xca26
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3shader.cpp
// Function: QuakeShaderFactory::ShaderFileLoaded(StringRef const&)
bool 
QuakeShaderFactory::ShaderFileLoaded(const StringRef &str)
{
  QuakeShaderFileMap::iterator found;
  found = mShaderFiles.find(str);
  if ( found != mShaderFiles.end() ) 
	  return (*found).second;
  return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x70(%rdi), %rcx
addq $0x68, %rdi
movq %rdi, %rax
testq %rcx, %rcx
je 0xca5b
movq (%rsi), %rdx
movq %rdi, %rax
xorl %r8d, %r8d
cmpq 0x20(%rcx), %rdx
setb %r8b
cmovaeq %rcx, %rax
movq 0x10(%rcx,%r8,8), %rcx
testq %rcx, %rcx
jne 0xca42
movq %rdi, %rcx
cmpq %rdi, %rax
je 0xca71
movq 0x20(%rax), %rcx
cmpq (%rsi), %rcx
cmovbq %rdi, %rax
movq %rax, %rcx
cmpq %rdi, %rcx
je 0xca7b
movb 0x28(%rcx), %al
jmp 0xca7d
xorl %eax, %eax
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3shader.cpp
// Function: QuakeShaderFactory::ShaderString(char const*)
void QuakeShaderFactory::ShaderString(const char *str)
{
  char workspace[1024];

  char *dest = workspace;

  while ( *str )
  {
    if ( str[0] == '/' && str[1] == '/' ) 
		break;
    *dest++ = *str++;
  }
  *dest = 0;
  int len = strlen(workspace);
  if ( len == 0 ) return;

  ArgList::Set( workspace ); // crunch it into arguments.
  // now ready to process it as a series of arguments!
  if ( mArgs.size() ) Process(mArgs);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x420, %rsp            # imm = 0x420
movq %rdi, %rbx
xorl %eax, %eax
movzbl (%rsi,%rax), %ecx
cmpl $0x2f, %ecx
je 0xcaa6
testl %ecx, %ecx
jne 0xcaad
jmp 0xcab9
cmpb $0x2f, 0x1(%rsi,%rax)
je 0xcab9
movb %cl, -0x440(%rbp,%rax)
incq %rax
jmp 0xca97
movb $0x0, -0x440(%rbp,%rax)
leaq -0x440(%rbp), %rdi
callq 0x2120
testl %eax, %eax
je 0xcb3c
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq -0x440(%rbp), %r14
movq %r14, %rdi
callq 0x2120
leaq (%rax,%rbp), %rdx
addq $-0x440, %rdx           # imm = 0xFBC0
leaq -0x40(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x6d42
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x6e54
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xcb28
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2230
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0xcb3c
movq %rbx, %rdi
movq %rbx, %rsi
callq 0xcb6c
addq $0x420, %rsp            # imm = 0x420
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xcb64
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23c0
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/q3shader.cpp
// Function: QuakeShaderFactory::GetName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char*)
bool QuakeShaderFactory::GetName(const String &str,char *tname)
{
  int len = str.size();
  if ( !len ) return false;
  const char *foo = str.c_str();
  foo = &foo[len-1];
  while ( *foo && *foo != '/' ) foo--;
  if ( !*foo ) return false;
  foo++;
  char *dest = tname;
  while ( *foo )
  {
    *dest++ = *foo++;
  }
  *dest = 0;
  
  len = strlen(tname);
  if ( len >= 4 )
  {
    if ( tname[len-4] == '.' )
    {
      tname[len-4] = 0;
    }
  }
  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl 0x8(%rsi), %eax
testq %rax, %rax
je 0xda52
movq %rdx, %rbx
movq (%rsi), %rcx
decl %eax
cltq
addq %rcx, %rax
incq %rax
movzbl -0x1(%rax), %ecx
testl %ecx, %ecx
je 0xda0f
cmpl $0x2f, %ecx
je 0xda0f
decq %rax
jmp 0xd9fd
testb %cl, %cl
setne %r14b
je 0xda55
movb (%rax), %dl
movq %rbx, %rcx
testb %dl, %dl
je 0xda33
xorl %ecx, %ecx
movb %dl, (%rbx,%rcx)
movb 0x1(%rax,%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0xda22
addq %rbx, %rcx
movb $0x0, (%rcx)
movq %rbx, %rdi
callq 0x2120
cmpl $0x4, %eax
jl 0xda55
addl $-0x4, %eax
cmpb $0x2e, (%rbx,%rax)
jne 0xda55
movb $0x0, (%rbx,%rax)
jmp 0xda55
xorl %r14d, %r14d
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/./q3shader.h
// Function: QuakeShader::AddTexture(StringRef const&)
void AddTexture(const StringRef& ref)
  {
    String ifoo = ref;
    //?if ( ifoo == "chrome_env" ) return;
    //?if ( ifoo == "tinfx" ) return;

    mTextures.push_back(ref);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rsi
leaq -0x38(%rbp), %rdi
leaq -0x11(%rbp), %rdx
callq 0x69c6
movq 0x40(%rbx), %rsi
cmpq 0x48(%rbx), %rsi
je 0xdc85
movq (%r14), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x40(%rbx)
jmp 0xdc94
addq $0x38, %rbx
movq %rbx, %rdi
movq %r14, %rdx
callq 0xe37a
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xdcad
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2230
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xdcd2
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23c0
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/vformat.cpp
// Function: ExistsFile(char const*)
bool ExistsFile(const char *path) 
{
	FILE *f = fopen(path,"rb");
	if (!f) 
		return false;
	fclose(f);
	return true;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x3823(%rip), %rsi      # 0x121e8
callq 0x22a0
movq %rax, %rbx
testq %rax, %rax
je 0xe9da
movq %rbx, %rdi
callq 0x2210
testq %rbx, %rbx
setne %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/vformat.cpp
// Function: VertexLess::operator()(int, int) const
bool VertexLess::operator()(int v1,int v2) const
{

  const LightMapVertex& a = Get(v1);
  const LightMapVertex& b = Get(v2);

  if ( a.GetX() < b.GetX() ) return true;
  if ( a.GetX() > b.GetX() ) return false;

  if ( a.GetY() < b.GetY() ) return true;
  if ( a.GetY() > b.GetY() ) return false;

  if ( a.GetZ() < b.GetZ() ) return true;
  if ( a.GetZ() > b.GetZ() ) return false;

  if ( a.mTexel1.x < b.mTexel1.x ) return true;
  if ( a.mTexel1.x > b.mTexel1.x ) return false;

  if ( a.mTexel1.y < b.mTexel1.y ) return true;
  if ( a.mTexel1.y > b.mTexel1.y ) return false;

  if ( a.mTexel2.x < b.mTexel2.x ) return true;
  if ( a.mTexel2.x > b.mTexel2.x ) return false;

  if ( a.mTexel2.y < b.mTexel2.y ) return true;
  if ( a.mTexel2.y > b.mTexel2.y ) return false;


  return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xaa39(%rip), %rcx      # 0x196c4
movq %rcx, %rdi
cmpl $-0x1, %esi
je 0xeca8
movq 0xaa56(%rip), %rax      # 0x196f0
movslq %esi, %rsi
leaq (%rsi,%rsi,4), %rdi
shlq $0x3, %rdi
addq (%rax), %rdi
cmpl $-0x1, %edx
je 0xecc2
movq 0xaa3c(%rip), %rax      # 0x196f0
movslq %edx, %rcx
leaq (%rcx,%rcx,4), %rcx
shlq $0x3, %rcx
addq (%rax), %rcx
movss (%rdi), %xmm0
movss (%rcx), %xmm1
movb $0x1, %al
ucomiss %xmm0, %xmm1
ja 0xece9
ucomiss %xmm1, %xmm0
jbe 0xecda
xorl %eax, %eax
jmp 0xece9
movss 0x4(%rdi), %xmm0
movss 0x4(%rcx), %xmm1
ucomiss %xmm0, %xmm1
jbe 0xeceb
popq %rbp
retq
ucomiss %xmm1, %xmm0
ja 0xecd6
movss 0x8(%rdi), %xmm0
movss 0x8(%rcx), %xmm1
ucomiss %xmm0, %xmm1
ja 0xece9
ucomiss %xmm1, %xmm0
ja 0xecd6
movss 0xc(%rdi), %xmm0
movss 0xc(%rcx), %xmm1
ucomiss %xmm0, %xmm1
ja 0xece9
ucomiss %xmm1, %xmm0
ja 0xecd6
movss 0x10(%rdi), %xmm0
movss 0x10(%rcx), %xmm1
ucomiss %xmm0, %xmm1
ja 0xece9
ucomiss %xmm1, %xmm0
ja 0xecd6
movss 0x14(%rdi), %xmm0
movss 0x14(%rcx), %xmm1
ucomiss %xmm0, %xmm1
ja 0xece9
ucomiss %xmm1, %xmm0
ja 0xecd6
movss 0x18(%rcx), %xmm0
ucomiss 0x18(%rdi), %xmm0
jbe 0xecd6
jmp 0xece9
nop
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/vformat.cpp
// Function: VertexMesh::~VertexMesh()
VertexMesh::~VertexMesh(void)
{
  VertexSectionMap::iterator i;
  for (i=mSections.begin(); i!=mSections.end(); ++i)
  {
    VertexSection *section = (*i).second;
    delete section;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %r14
leaq 0x18(%rdi), %r12
cmpq %r12, %r14
je 0xedc2
movq 0x28(%r14), %r15
testq %r15, %r15
je 0xedb2
movq 0x68(%r15), %rdi
testq %rdi, %rdi
je 0xed87
movq 0x78(%r15), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x38(%r15), %rdi
callq 0x10ad0
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0xeda5
movq 0x30(%r15), %rsi
subq %rdi, %rsi
callq 0x2230
movl $0x88, %esi
movq %r15, %rdi
callq 0x2230
movq %r14, %rdi
callq 0x2190
movq %rax, %r14
cmpq %r12, %rax
jne 0xed69
addq $0x10, %rbx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x10b2e
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/vformat.cpp
// Function: VertexMesh::AddTri(StringRef const&, LightMapVertex const&, LightMapVertex const&, LightMapVertex const&)
void VertexMesh::AddTri(const StringRef &name,const LightMapVertex &v1,const LightMapVertex &v2,const LightMapVertex &v3)
{
  VertexSection *section;

  if ( name == mLastName )
  {
    section = mLastSection;
  }
  else
  {
    VertexSectionMap::iterator found;
    found = mSections.find( name );
    if ( found != mSections.end() )
    {
      section = mLastSection = (*found).second;
      mLastName = name;
    }
    else
    {
      mLastSection = section = new VertexSection( name );
      mSections[name] = section;
      mLastName = name;
    }
  }

  assert( section );

  section->AddTri( v1, v2, v3 );

  mBound.MinMax( v1.mPos );
  mBound.MinMax( v2.mPos );
  mBound.MinMax( v3.mPos );

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %r14
movq (%rsi), %rbx
cmpq %rbx, 0x8(%rdi)
je 0xee4c
movq 0x20(%r14), %rdx
leaq 0x18(%r14), %rax
movq %rax, %rcx
testq %rdx, %rdx
je 0xee24
movq %rax, %rcx
xorl %edi, %edi
cmpq 0x20(%rdx), %rbx
setb %dil
cmovaeq %rdx, %rcx
movq 0x10(%rdx,%rdi,8), %rdx
testq %rdx, %rdx
jne 0xee0c
movq %rax, %rdx
cmpq %rax, %rcx
je 0xee37
cmpq %rbx, 0x20(%rcx)
cmovbq %rax, %rcx
movq %rcx, %rdx
cmpq %rax, %rdx
je 0xee54
movq 0x28(%rdx), %r13
movq %r13, (%r14)
movq %rbx, 0x8(%r14)
jmp 0xeee8
movq (%r14), %r13
jmp 0xeee8
leaq 0x10(%r14), %rax
movq %rax, -0x38(%rbp)
movl $0x88, %edi
movq %r8, -0x40(%rbp)
movq %rsi, -0x30(%rbp)
callq 0x2220
movq %rax, %r13
addq $0x40, %rax
movl $0x0, 0x40(%r13)
xorl %ecx, %ecx
movq %rcx, 0x48(%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r13)
movups %xmm0, 0x28(%r13)
movq %rax, 0x50(%r13)
movq %rax, 0x58(%r13)
movups %xmm0, 0x60(%r13)
movups %xmm0, 0x70(%r13)
movq %rbx, (%r13)
movq %rcx, 0x80(%r13)
movaps 0x3d2c(%rip), %xmm0     # 0x12be0
movups %xmm0, 0x8(%r13)
movabsq $-0x319194d7319194d8, %rax # imm = 0xCE6E6B28CE6E6B28
movq %rax, 0x18(%r13)
movq %r13, (%r14)
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rbx
movq %rbx, %rsi
callq 0x10972
movq -0x40(%rbp), %r8
movq %r13, (%rax)
movq (%rbx), %rax
movq %rax, 0x8(%r14)
testq %r13, %r13
je 0xef5e
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r8, %rcx
movq %r8, %rbx
callq 0xef7e
addq $0x40, %r14
movss (%r12), %xmm0
movss 0x4(%r12), %xmm1
movss 0x8(%r12), %xmm2
movq %r14, %rdi
callq 0xb7e6
movss (%r15), %xmm0
movss 0x4(%r15), %xmm1
movss 0x8(%r15), %xmm2
movq %r14, %rdi
callq 0xb7e6
movss (%rbx), %xmm0
movss 0x4(%rbx), %xmm1
movss 0x8(%rbx), %xmm2
movq %r14, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb7e6
leaq 0x488a(%rip), %rdi      # 0x137ef
leaq 0x488b(%rip), %rsi      # 0x137f7
leaq 0x4890(%rip), %rcx      # 0x13803
movl $0xb8, %edx
callq 0x2180
nop
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/vformat.cpp
// Function: VertexSection::AddTri(LightMapVertex const&, LightMapVertex const&, LightMapVertex const&)
void VertexSection::AddTri(const LightMapVertex &v1,
            const LightMapVertex &v2,
            const LightMapVertex &v3)
{
  mBound.MinMax(v1.mPos);
  mBound.MinMax(v2.mPos);
  mBound.MinMax(v3.mPos);

  AddPoint(v1);
  AddPoint(v2);
  AddPoint(v3);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
leaq 0x8(%rdi), %r13
movss (%rsi), %xmm0
movss 0x4(%rsi), %xmm1
movss 0x8(%rsi), %xmm2
movq %r13, %rdi
callq 0xb7e6
movss (%r15), %xmm0
movss 0x4(%r15), %xmm1
movss 0x8(%r15), %xmm2
movq %r13, %rdi
callq 0xb7e6
movss (%rbx), %xmm0
movss 0x4(%rbx), %xmm1
movss 0x8(%rbx), %xmm2
movq %r13, %rdi
callq 0xb7e6
movq %r14, %rdi
movq %r12, %rsi
callq 0xf010
movq %r14, %rdi
movq %r15, %rsi
callq 0xf010
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf010
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/vformat.cpp
// Function: VertexMesh::SaveVRML2(_IO_FILE*, VFormatOptions&) const
void VertexMesh::SaveVRML2(
			FILE *fph,
            VFormatOptions &options) const 
{
	if ( mSections.size() )
	{
		
		if ( fph )
		{
			//fprintf(fph,"#VRML V2.0 utf8 generated by QBSP \n");
			if (mSections.size() >0) {
				fprintf(fph,"Group {\n");
				fprintf(fph,"children [\n");
			}	
			VertexSectionMap::const_iterator i;
			
			for (i=mSections.begin(); i!=mSections.end(); ++i)
			{
				(*i).second->SaveVRML2(fph,options);
			}
			if (mSections.size() >0) {
				
				fprintf(fph,"\n]\n}\n");
			}
			
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0xf10c
movq %rdi, %r15
cmpq $0x0, 0x38(%rdi)
je 0xf10c
movq %rdx, %r14
movq %rsi, %rbx
leaq 0x40fa(%rip), %rdi      # 0x13180
movl $0x8, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2410
leaq 0x40ea(%rip), %rdi      # 0x13189
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2410
movq 0x28(%r15), %r12
leaq 0x18(%r15), %r13
cmpq %r13, %r12
je 0xf0de
movq 0x28(%r12), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xf11c
movq %r12, %rdi
callq 0x2290
movq %rax, %r12
cmpq %r13, %rax
jne 0xf0be
cmpq $0x0, 0x38(%r15)
je 0xf10c
leaq 0x478a(%rip), %rdi      # 0x13876
movl $0x5, %esi
movl $0x1, %edx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2410
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/vformat.cpp
// Function: VertexMesh::SaveVRML(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool) const
void VertexMesh::SaveVRML(const String &name,  // base file name
              bool tex1) const           // texture channel 1=(true)
{
  if ( mSections.size() )
  {
    String oname = name+".wrl";
    FILE *fph = fopen(oname.c_str(),"wb");

    if ( fph )
    {
      fprintf(fph,"#VRML V1.0 ascii\n");
      fprintf(fph,"Separator {\n");
      fprintf(fph,"  ShapeHints {\n");
      fprintf(fph,"    shapeType SOLID\n");
      fprintf(fph,"    vertexOrdering COUNTERCLOCKWISE\n");
      fprintf(fph,"    faceType CONVEX\n");
      fprintf(fph,"  }\n");

      VertexSectionMap::const_iterator i;

      for (i=mSections.begin(); i!=mSections.end(); ++i)
      {
        (*i).second->SaveVRML(fph,tex1);
      }

      fprintf(fph,"}\n");

      fclose(fph);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpq $0x0, 0x38(%rdi)
je 0xfd86
movl %edx, %r14d
movq %rdi, %rbx
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq -0x48(%rbp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x6ca8
leaq 0x28f4(%rip), %rsi      # 0x12540
movq %r15, %rdi
callq 0x2400
movq -0x48(%rbp), %rdi
leaq 0x2665(%rip), %rsi      # 0x122c4
callq 0x22a0
testq %rax, %rax
je 0xfd71
movq %rax, %r15
leaq 0x3c05(%rip), %rdi      # 0x1387c
movl $0x11, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x2410
leaq 0x3c68(%rip), %rdi      # 0x138f8
movl $0xc, %esi
movl $0x1, %edx
movq %r15, %rcx
callq 0x2410
leaq 0x3be5(%rip), %rdi      # 0x1388e
movl $0xf, %esi
movl $0x1, %edx
movq %r15, %rcx
callq 0x2410
leaq 0x3bdc(%rip), %rdi      # 0x1389e
movl $0x14, %esi
movl $0x1, %edx
movq %r15, %rcx
callq 0x2410
leaq 0x3bd8(%rip), %rdi      # 0x138b3
movl $0x24, %esi
movl $0x1, %edx
movq %r15, %rcx
callq 0x2410
leaq 0x3be4(%rip), %rdi      # 0x138d8
movl $0x14, %esi
movl $0x1, %edx
movq %r15, %rcx
callq 0x2410
leaq 0x3d75(%rip), %rdi      # 0x13a82
movl $0x4, %esi
movl $0x1, %edx
movq %r15, %rcx
callq 0x2410
movq 0x28(%rbx), %r12
addq $0x18, %rbx
cmpq %rbx, %r12
je 0xfd50
movzbl %r14b, %r14d
movq 0x28(%r12), %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0xfdb6
movq %r12, %rdi
callq 0x2290
movq %rax, %r12
cmpq %rbx, %rax
jne 0xfd30
leaq 0x40b9(%rip), %rdi      # 0x13e10
movl $0x2, %esi
movl $0x1, %edx
movq %r15, %rcx
callq 0x2410
movq %r15, %rdi
callq 0x2210
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0xfd86
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0xfdad
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23c0
nop
// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/./vformat.h
// Function: VertexPool::GetVertex(LightMapVertex const&)
int GetVertex(const LightMapVertex& vtx)
  {
    VertexLess::SetSearch(vtx,&mVtxs);
    VertexSet::iterator found;
    found = mVertSet.find( -1 );
    if ( found != mVertSet.end() )
    {
      return *found;
    }
    int idx = mVtxs.size();
    assert( idx >= 0 && idx < 65536 );
    mVtxs.push_back( vtx );
    mVertSet.insert( idx );
    return idx;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rdi), %r15
movss (%rsi), %xmm0
movss %xmm0, 0x8cc8(%rip)     # 0x196c4
movss 0x4(%rsi), %xmm0
movss %xmm0, 0x8cbf(%rip)     # 0x196c8
movss 0x8(%rsi), %xmm0
movss %xmm0, 0x8cb6(%rip)     # 0x196cc
movups 0xc(%rsi), %xmm0
movups %xmm0, 0x8caf(%rip)     # 0x196d0
movss 0x1c(%rsi), %xmm0
movss %xmm0, 0x8cb2(%rip)     # 0x196e0
movss 0x20(%rsi), %xmm0
movss %xmm0, 0x8ca9(%rip)     # 0x196e4
movss 0x24(%rsi), %xmm0
movss %xmm0, 0x8ca0(%rip)     # 0x196e8
movq %r15, 0x8ca1(%rip)      # 0x196f0
leaq -0x20(%rbp), %rsi
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
callq 0x10c10
leaq 0x8(%rbx), %rcx
cmpq %rcx, %rax
je 0x10a6c
movl 0x20(%rax), %eax
jmp 0x10aa5
movq 0x38(%rbx), %rax
subq 0x30(%rbx), %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
movl %eax, -0x1c(%rbp)
cmpl $0x10000, %eax          # imm = 0x10000
jae 0x10ab0
movq %r15, %rdi
movq %r14, %rsi
callq 0x10b8c
leaq -0x1c(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10f0c
movl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x339d(%rip), %rdi      # 0x13e54
leaq 0x33ae(%rip), %rsi      # 0x13e6c
leaq 0x33b3(%rip), %rcx      # 0x13e78
movl $0xf7, %edx
callq 0x2180
nop
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/bytestream.c
// Function: bsalloc
ByteStream* bsalloc(unsigned int size) {
  ByteStream* bs = (ByteStream*) malloc_s(sizeof(ByteStream));

  if (bs == NULL) {
    printf("ERROR: Cannot allocate bytestream structure.\n");
    exit(-1);
  }

  bs->filename = NULL;
  bs->size = size;

  bs->exhausted = 0;
  bs->offset = 0;
  
  bs->data = (uint8_t*) mmap(NULL, size, PROT_READ | PROT_WRITE, 
			     MAP_PRIVATE | MAP_ANONYMOUS, -1, 0x0);

  if (bs->data == MAP_FAILED) {
    free(bs);
    printf("ERROR: Unable to map memory.\n");
    exit(-1);
  }

  return bs;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edi, %ebp
movl $0x20, %edi
callq 0x4600
testq %rax, %rax
je 0x4990
movq %rax, %rbx
xorl %eax, %eax
movq %rax, (%rbx)
movl %ebp, %esi
movq %rsi, 0x8(%rbx)
movq %rax, 0x18(%rbx)
xorl %edi, %edi
movl $0x3, %edx
movl $0x22, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
callq 0x41d0
movq %rax, 0x10(%rbx)
cmpq $-0x1, %rax
je 0x4999
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x56fd(%rip), %rdi      # 0xa094
jmp 0x49a8
movq %rbx, %rdi
callq 0x4060
leaq 0x56b4(%rip), %rdi      # 0xa05c
callq 0x40e0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x4700
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/bytestream.c
// Function: bsmap
ByteStream* bsmap(char* filename) {
  int fd;
  struct stat fdstat;
  ByteStream* bs;

  fd = open(filename,O_RDONLY);

  if (fd == -1) {
    printf("ERROR: File %s doesn't exists or cannot be read.\n",filename);
    exit(-1);
  }

  if (fstat(fd, &fdstat) == -1) {
    close(fd);
    printf("ERROR: Unable to get file size for %s.\n",filename);
    exit(-1);
  }

  bs = (ByteStream*) malloc_s(sizeof(ByteStream));

  if (bs == NULL) {
    close(fd);
    printf("ERROR: Cannot allocate bytestream structure.\n");
    exit(-1);
  }

  bs->filename = filename;
  bs->size = fdstat.st_size;

  bs->exhausted = 0;
  bs->offset = 0;
  
  bs->data = (uint8_t*) mmap(NULL, bs->size, PROT_READ | PROT_WRITE,
			     MAP_PRIVATE,fd,0x0);

  if (bs->data == MAP_FAILED) {
    free(bs);
    close(fd);
    printf("ERROR: Unable to map file.\n");
    exit(-1);
  }

  close(fd); 

  return bs;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdi, %r14
xorl %esi, %esi
xorl %eax, %eax
callq 0x4660
cmpl $-0x1, %eax
je 0x4a43
movl %eax, %ebx
movq %rsp, %rsi
movl %eax, %edi
callq 0x47b0
cmpl $-0x1, %eax
je 0x4a4c
movl $0x20, %edi
callq 0x4600
testq %rax, %rax
je 0x4a66
movq %rax, %r15
movq %r14, (%rax)
movq 0x30(%rsp), %rsi
movq %rsi, 0x8(%rax)
movq $0x0, 0x18(%rax)
xorl %edi, %edi
movl $0x3, %edx
movl $0x2, %ecx
movl %ebx, %r8d
xorl %r9d, %r9d
callq 0x41d0
movq %rax, 0x10(%r15)
cmpq $-0x1, %rax
je 0x4a76
movl %ebx, %edi
callq 0x42c0
movq %r15, %rax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x55b6(%rip), %rdi      # 0xa000
jmp 0x4a5a
movl %ebx, %edi
callq 0x42c0
leaq 0x55d8(%rip), %rdi      # 0xa032
movq %r14, %rsi
xorl %eax, %eax
callq 0x4210
jmp 0x4a91
movl %ebx, %edi
callq 0x42c0
leaq 0x5620(%rip), %rdi      # 0xa094
jmp 0x4a8c
movq %r15, %rdi
callq 0x4060
movl %ebx, %edi
callq 0x42c0
leaq 0x55ed(%rip), %rdi      # 0xa079
callq 0x40e0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x4700
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/bytestream.c
// Function: bsfree
int bsfree(ByteStream* bs) {
  int ret = 0;

  if (bs->data != NULL) {
    ret = munmap(bs->data,bs->size);
  }

  free(bs);

  return ret;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x4ab7
movq 0x8(%rbx), %rsi
callq 0x45d0
movl %eax, %ebp
jmp 0x4ab9
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x4060
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/bytestream.c
// Function: bsread
unsigned int bsread(ByteStream* bs, uint8_t* data, size_t size) {
  unsigned int* in;
  unsigned int* out;
  
  unsigned int asize;

  unsigned int isize;
  unsigned int ioffset;

  unsigned int i;

  if (bs->exhausted) return 0;

  if (bs->offset >= bs->size) return 0;

  if (bs->offset+size > bs->size) {
    size = bs->size - bs->offset;
    bs->exhausted = 1;
  }

  //align read
  asize = sizeof(unsigned int) - (bs->offset % sizeof(unsigned int)); 

  for (i=0; i<asize && i<size; i++) {
    data[i] = bs->data[bs->offset+i];
  }

  bs->offset += i;
  data += i;
  size -= i;
  asize = i;

  //optimized read
  isize = size / sizeof(unsigned int);
  ioffset = bs->offset / sizeof(unsigned int);

  in = (uint32_t*) bs->data;
  out = (uint32_t*) data;

  for (i=0; i<isize; i++) {
    out[i] = in[ioffset+i];
  }

  bs->offset += i * sizeof(unsigned int);
  data += i * sizeof(unsigned int);
  
  //trailing bytes read
  size -= isize * sizeof(unsigned int);

  for (i=0; i<size; i++) {
    data[i] = bs->data[bs->offset+i];
  }

  bs->offset += i;

  return isize * sizeof(unsigned int) + size + asize;
}

// Assembly:
xorl %eax, %eax
cmpl $0x0, 0x1c(%rdi)
je 0x4ae7
retq
movl 0x18(%rdi), %ecx
movq 0x8(%rdi), %r9
movq %r9, %r8
subq %rcx, %r8
jbe 0x4ae6
leaq (%rcx,%rdx), %rax
cmpq %r9, %rax
jbe 0x4b09
movl $0x1, 0x1c(%rdi)
movq %r8, %rdx
pushq %rbp
pushq %r14
pushq %rbx
testq %rdx, %rdx
je 0x4b45
andl $0x3, %ecx
movl $0x4, %eax
subl %ecx, %eax
cmpq %rdx, %rax
cmovaeq %rdx, %rax
xorl %ecx, %ecx
movq 0x10(%rdi), %r8
movl 0x18(%rdi), %r9d
addl %ecx, %r9d
movb (%r8,%r9), %r8b
movb %r8b, (%rsi,%rcx)
incq %rcx
cmpq %rax, %rcx
jb 0x4b25
movl %ecx, %r8d
jmp 0x4b4a
xorl %r8d, %r8d
xorl %ecx, %ecx
addl 0x18(%rdi), %r8d
movabsq $0x3fffffffc, %r10      # imm = 0x3FFFFFFFC
movl %r8d, 0x18(%rdi)
addq %rcx, %rsi
movq %rdx, %rax
subq %rcx, %rax
xorl %ecx, %ecx
movq %rax, %r11
andq %r10, %r11
je 0x4b96
shrl $0x2, %r8d
movq 0x10(%rdi), %rbx
xorl %r9d, %r9d
movl %r8d, %r14d
movl (%rbx,%r14,4), %ebp
movl %ebp, (%rsi,%r9)
addq $0x4, %r9
incl %r8d
cmpq %r9, %r11
jne 0x4b7a
andq %r10, %r9
jmp 0x4b99
xorl %r9d, %r9d
addl %r9d, 0x18(%rdi)
movabsq $-0x3fffffffd, %r8      # imm = 0xFFFFFFFC00000003
andq %r8, %rax
je 0x4bcf
addq %r9, %rsi
xorl %ecx, %ecx
movq 0x10(%rdi), %r8
movl 0x18(%rdi), %r9d
addl %ecx, %r9d
movb (%r8,%r9), %r8b
movb %r8b, (%rsi,%rcx)
incq %rcx
movl %ecx, %r8d
cmpq %r8, %rax
ja 0x4bb1
addl %ecx, 0x18(%rdi)
movl %edx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/bytestream.c
// Function: bswrite
int bswrite(ByteStream* bs, uint8_t* data, unsigned int size) {
  unsigned int* in;
  unsigned int* out;
  
  unsigned int asize;

  unsigned int isize;
  unsigned int ioffset;

  unsigned int i;

  if (bs->exhausted) return 0;

  if (bs->offset >= bs->size) return 0;

  if (bs->offset+size > bs->size) {
    size = bs->size - bs->offset;
    bs->exhausted = 1;
  }

  //align write
  asize = sizeof(unsigned int) - (bs->offset % sizeof(unsigned int)); 

  for (i=0; i<asize && i<size; i++) {
    bs->data[bs->offset+i] = data[i];
  }

  bs->offset += i;
  data += i;
  size -= i;
  asize = i;

  //optimized write
  isize = size / sizeof(unsigned int);
  ioffset = bs->offset / sizeof(unsigned int);

  in = (uint32_t*) data;
  out = (uint32_t*) bs->data;

  for (i=0; i<isize; i++) {
    out[ioffset+i] = in[i];
  }

  bs->offset += i * sizeof(unsigned int);
  data += i * sizeof(unsigned int);

  //write finishing bytes
  size -= i * sizeof(unsigned int);

  for (i=0; i<size; i++) {
    bs->data[bs->offset+i] = data[i];
  }

  bs->offset += i;

  return isize * sizeof(unsigned int) + size + asize;
}

// Assembly:
xorl %eax, %eax
cmpl $0x0, 0x1c(%rdi)
je 0x4c03
retq
movl 0x18(%rdi), %ecx
movq 0x8(%rdi), %r8
cmpq %rcx, %r8
jbe 0x4c02
leal (%rcx,%rdx), %eax
cmpq %rax, %r8
jae 0x4c24
subl %ecx, %r8d
movl $0x1, 0x1c(%rdi)
movl %r8d, %edx
pushq %rbx
testl %edx, %edx
je 0x4c5a
andl $0x3, %ecx
movl $0x4, %r8d
subl %ecx, %r8d
cmpl %edx, %r8d
cmovael %edx, %r8d
xorl %eax, %eax
movb (%rsi,%rax), %cl
movq 0x10(%rdi), %r9
movl 0x18(%rdi), %r10d
addl %eax, %r10d
movb %cl, (%r9,%r10)
incq %rax
cmpq %rax, %r8
jne 0x4c3e
jmp 0x4c5c
xorl %eax, %eax
movl 0x18(%rdi), %r8d
addl %eax, %r8d
movl %r8d, 0x18(%rdi)
movl %eax, %ecx
addq %rcx, %rsi
subl %eax, %edx
xorl %ecx, %ecx
cmpl $0x4, %edx
jae 0x4c7a
xorl %r10d, %r10d
jmp 0x4ca9
movl %edx, %r9d
shrl $0x2, %r9d
cmpl $0x1, %r9d
adcl $0x0, %r9d
andl $-0x4, %r8d
addq 0x10(%rdi), %r8
shll $0x2, %r9d
xorl %r10d, %r10d
movl (%rsi,%r10), %r11d
movl %r11d, (%r8,%r10)
addq $0x4, %r10
cmpq %r10, %r9
jne 0x4c98
addl %r10d, 0x18(%rdi)
movl %edx, %r8d
subl %r10d, %r8d
je 0x4cde
addq %r10, %rsi
cmpl $0x1, %r8d
movl %r8d, %r9d
adcl $0x0, %r9d
xorl %ecx, %ecx
movb (%rsi,%rcx), %r10b
movq 0x10(%rdi), %r11
movl 0x18(%rdi), %ebx
addl %ecx, %ebx
movb %r10b, (%r11,%rbx)
incq %rcx
cmpq %rcx, %r9
jne 0x4cc5
addl %ecx, 0x18(%rdi)
andl $-0x4, %edx
addl %eax, %edx
addl %r8d, %edx
movl %edx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/bytestream.c
// Function: bssave
int bssave(ByteStream* bs, char* filename) {
  FILE* f = fopen(filename,"w");

  if (bs == NULL || f == NULL) return -1;

  fwrite(bs->data, 1, bs->size, f);

  fflush(f);
  fclose(f);    
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rax
movq %rdi, %r14
leaq 0x533b(%rip), %rsi      # 0xa05a
movq %rax, %rdi
callq 0x4690
movq %rax, %rbx
testq %r14, %r14
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jne 0x4d66
movq 0x8(%r14), %rdx
movq 0x10(%r14), %rdi
movl $0x1, %esi
movq %rbx, %rcx
callq 0x4710
movq %rbx, %rdi
callq 0x44c0
movq %rbx, %rdi
callq 0x4160
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_stringdata
void dxb_stringdata(ByteStream* bs, DexStringDataItem* obj) {
  uint8_t* tape;
  char end[] = "\x00";

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  l128write(bs,&(obj->size));

  tape = (uint8_t*) obj->data;

  if (ul128toui(obj->size) != 0x0) {
    while(*tape) {
      bswrite(bs,tape,sizeof(uint8_t));

      if ((*tape & 0xe0) == 0xc0 ) {
	tape += 1;
	bswrite(bs,tape,sizeof(uint8_t));
      }

      else if ((*tape & 0xf0) == 0xe0) {
	tape += 1;
	bswrite(bs,tape,sizeof(uint8_t)*2);
	tape += 1;
      }

      tape++;
    }
  }

  bswrite(bs,(uint8_t*)end,sizeof(uint8_t));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movw $0x0, 0xe(%rsp)
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x4ff9
movq %rsi, %r15
movq %rdi, %rbx
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x4470
movq 0x18(%r15), %r14
movq 0x8(%r15), %rdi
movl 0x10(%r15), %esi
callq 0x4170
testl %eax, %eax
je 0x4fe7
cmpb $0x0, (%r14)
je 0x4fe7
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x4570
movzbl (%r14), %eax
movl %eax, %ecx
andl $-0x20, %ecx
cmpl $0xc0, %ecx
jne 0x4fbd
incq %r14
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x4570
jmp 0x4fdc
andl $-0x10, %eax
cmpl $0xe0, %eax
jne 0x4fdc
leaq 0x1(%r14), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x4570
addq $0x2, %r14
cmpb $0x0, 0x1(%r14)
leaq 0x1(%r14), %r14
jne 0x4f87
leaq 0xe(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x4570
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_encodedfield
void dxb_encodedfield(ByteStream* bs, DexEncodedFieldItem* obj) {
  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  l128write(bs,&(obj->field_idx_diff));
  l128write(bs,&(obj->access_flags));
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
je 0x5014
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
addq $0x14, %rbx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4470
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_encodedmethod
void dxb_encodedmethod(ByteStream* bs, DexEncodedMethodItem* obj) {
  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);
  l128write(bs,&(obj->method_idx_diff));
  l128write(bs,&(obj->access_flags));
  l128write(bs,&(obj->code_off));
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
je 0x5059
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
leaq 0x14(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
addq $0x20, %rbx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4470
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_classdata
void dxb_classdata(ByteStream* bs, DexClassDataItem* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  l128write(bs,&(obj->static_fields_size));
  l128write(bs,&(obj->instance_fields_size));
  l128write(bs,&(obj->direct_methods_size));
  l128write(bs,&(obj->virtual_methods_size));

  for (i=0; i<ul128toui(obj->static_fields_size); i++)
    dxb_encodedfield(bs,obj->static_fields[i]);

  for (i=0; i<ul128toui(obj->instance_fields_size); i++)
    dxb_encodedfield(bs,obj->instance_fields[i]);

  for (i=0; i<ul128toui(obj->direct_methods_size); i++)
    dxb_encodedmethod(bs,obj->direct_methods[i]);

  for (i=0; i<ul128toui(obj->virtual_methods_size); i++)
    dxb_encodedmethod(bs,obj->virtual_methods[i]);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x51d9
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
leaq 0x14(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
leaq 0x20(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
leaq 0x2c(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x5129
xorl %r15d, %r15d
movq 0x38(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4030
incq %r15
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
movl %eax, %eax
cmpq %rax, %r15
jb 0x5103
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x5162
xorl %r15d, %r15d
movq 0x40(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4030
incq %r15
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
movl %eax, %eax
cmpq %rax, %r15
jb 0x513c
movq 0x20(%rbx), %rdi
movl 0x28(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x519b
xorl %r15d, %r15d
movq 0x48(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4630
incq %r15
movq 0x20(%rbx), %rdi
movl 0x28(%rbx), %esi
callq 0x4170
movl %eax, %eax
cmpq %rax, %r15
jb 0x5175
movq 0x2c(%rbx), %rdi
movl 0x34(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x51d4
xorl %r15d, %r15d
movq 0x50(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4630
incq %r15
movq 0x2c(%rbx), %rdi
movl 0x34(%rbx), %esi
callq 0x4170
movl %eax, %eax
cmpq %rax, %r15
jb 0x51ae
popq %rbx
popq %r14
popq %r15
retq