LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::CollapseFace(gaps::R3MeshFace*, gaps::R3Point const&)
R3MeshVertex *R3Mesh::
CollapseFace(R3MeshFace *f, const R3Point& point)
{
  // Collapse face into single point
  R3MeshVertex *v0 = VertexOnFace(f, 0);
  R3MeshVertex *v1 = VertexOnFace(f, 1);
  R3MeshVertex *v2 = VertexOnFace(f, 2);
  R3MeshEdge *e01 = EdgeBetweenVertices(v0, v1);
  R3MeshVertex *v01 = CollapseEdge(e01, point);
  if (!v01) return NULL;
  R3MeshEdge *e012 = EdgeBetweenVertices(v01, v2);
  assert(e012);
  R3MeshVertex *v012 = CollapseEdge(e012, point);
  return v012;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rax
movq 0x10(%rsi), %rcx
cmpq %rcx, %rax
je 0x15ee2
movslq 0x14(%rax), %rdx
testq %rdx, %rdx
jle 0x15ee2
movq 0x8(%rax), %rdi
xorl %r8d, %r8d
movq (%rdi,%r8,8), %r9
cmpq %rcx, 0x8(%r9)
je 0x15ece
cmpq %rcx, 0x10(%r9)
setne %r10b
jmp 0x15ed1
xorl %r10d, %r10d
testb %r10b, %r10b
cmoveq %r9, %rax
je 0x15ee4
incq %r8
cmpq %r8, %rdx
jne 0x15eba
xorl %eax, %eax
movq 0x18(%rsi), %r15
movq (%r14), %rcx
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq *0x98(%rcx)
testq %rax, %rax
je 0x15f54
cmpq %r15, %rax
je 0x15f3b
movslq 0x14(%rax), %rcx
testq %rcx, %rcx
jle 0x15f3b
movq 0x8(%rax), %rax
xorl %edx, %edx
movq (%rax,%rdx,8), %rdi
cmpq %r15, 0x8(%rdi)
je 0x15f27
cmpq %r15, 0x10(%rdi)
setne %r8b
jmp 0x15f2a
xorl %r8d, %r8d
testb %r8b, %r8b
cmoveq %rdi, %rsi
je 0x15f3d
incq %rdx
cmpq %rdx, %rcx
jne 0x15f13
xorl %esi, %esi
movq (%r14), %rax
movq 0x98(%rax), %rax
movq %r14, %rdi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmpq *%rax
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::SplitEdge(gaps::R3MeshEdge*, gaps::R3Plane const&)
R3MeshVertex *R3Mesh::
SplitEdge(R3MeshEdge *e, const R3Plane& plane)
{
  // Compute intersection point with plane
  RNScalar t;
  R3Point point;
  R3Span edge_span = EdgeSpan(e);
  if (!R3Intersects(edge_span, plane, &point, &t)) return NULL;
  if ((RNIsEqual(t, 0.0)) || (RNIsEqual(t, edge_span.Length()))) return NULL;

  // Split edge
  return SplitEdge(e, point);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x3ca24
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq $0x18, %rsi
addq $0x18, %rdx
leaq 0x20(%rsp), %r13
movq %r13, %rdi
callq 0x3beaa
movq %rsp, %rcx
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x45062
testl %eax, %eax
je 0x16523
movsd (%rsp), %xmm0
leaq 0xcf6a3(%rip), %rax     # 0xe5b98
movsd (%rax), %xmm1
movapd 0x8bb1f(%rip), %xmm2    # 0xa2020
xorpd %xmm1, %xmm2
ucomisd %xmm2, %xmm0
jb 0x16511
ucomisd %xmm0, %xmm1
jae 0x16523
subsd 0x68(%rsp), %xmm0
ucomisd %xmm2, %xmm0
jb 0x16533
ucomisd %xmm0, %xmm1
jb 0x16533
xorl %eax, %eax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq (%r14), %rax
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq *0xb8(%rax)
jmp 0x16525
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::FlipFace(gaps::R3MeshFace*)
void R3Mesh::
FlipFace(R3MeshFace *f)
{
  // Reverse orientation of plane
  f->plane.Flip();

  // Reverse order of vertices
  R3MeshVertex *vswap = f->vertex[0];
  f->vertex[0] = f->vertex[2];
  f->vertex[2] = vswap;

  // Reverse order of edges
  R3MeshEdge *eswap = f->edge[0];
  f->edge[0] = f->edge[1];
  f->edge[1] = eswap;

  // Invalidate GL buffer objects
  InvalidateGLBufferObjects();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x38(%rsi), %r15
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x3e154
movq %r15, %rdi
movq %r12, %rsi
callq 0x3dc6a
movsd 0x50(%rbx), %xmm0
xorps 0x8b156(%rip), %xmm0    # 0xa2020
movlps %xmm0, 0x50(%rbx)
movq 0x8(%rbx), %rax
movq 0x18(%rbx), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, 0x18(%rbx)
movdqu 0x20(%rbx), %xmm0
pshufd $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, 0x20(%rbx)
movq (%r14), %rax
movq %r14, %rdi
callq *0x290(%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::FlipFaces()
void R3Mesh::
FlipFaces(void)
{
  // Reverse orientation of all faces
  for (int i = 0; i < NFaces(); i++) {
    R3MeshFace *f = Face(i);
    FlipFace(f);
  }
}

// Assembly:
cmpl $0x0, 0x34(%rdi)
jle 0x16f3d
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movq (%rbx), %rax
movq 0x28(%rbx), %rcx
movq (%rcx,%r14,8), %rsi
movq %rbx, %rdi
callq *0xe0(%rax)
incq %r14
movslq 0x34(%rbx), %rax
cmpq %rax, %r14
jl 0x16f16
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::SubdivideLongEdges(double)
void R3Mesh::
SubdivideLongEdges(RNLength max_edge_length)
{
  // Create priority queue for long edges
  RNHeap<R3MeshEdge *> heap(EdgeLengthCallback, NULL, this, FALSE);

  // Add long edges to priority queue
  for (int i = 0; i < NEdges(); i++) {
    R3MeshEdge *edge = Edge(i);
    RNLength length = EdgeLength(edge);
    if (length > max_edge_length) heap.Push(edge);
  }

  // Split edges in longest to shortest order
  while (!heap.IsEmpty()) {
    R3MeshEdge *edge = heap.Pop();
    R3MeshVertex *vertex = SubdivideEdge(edge);
    for (int i = 0; i < VertexValence(vertex); i++) {
      R3MeshEdge *edge = EdgeOnVertex(vertex, i);
      RNLength length = EdgeLength(edge);
      if (length > max_edge_length) heap.Push(edge);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
movq $-0x1, 0x20(%rsp)
leaq -0x51(%rip), %rax       # 0x17167
movq %rax, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movq %rdi, 0x38(%rsp)
movl $0x0, 0x40(%rsp)
cmpl $0x0, 0x24(%rdi)
jle 0x17224
xorl %r12d, %r12d
leaq 0x10(%rsp), %r14
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %r15
testb $0x2, 0x38(%r15)
jne 0x171ff
movq (%rbx), %rax
movq %rbx, %rdi
movq %r15, %rsi
callq *0x2b8(%rax)
movsd 0x28(%r15), %xmm0
ucomisd 0x8(%rsp), %xmm0
jbe 0x17218
movq %r14, %rdi
movq %r15, %rsi
callq 0x23e1c
incq %r12
movslq 0x24(%rbx), %rax
cmpq %rax, %r12
jl 0x171e1
cmpl $0x0, 0x18(%rsp)
je 0x1729f
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x23f18
movq (%rbx), %rcx
movq %rbx, %rdi
movq %rax, %rsi
callq *0xc8(%rcx)
movq %rax, %r15
cmpl $0x0, 0x14(%rax)
jle 0x17298
xorl %r13d, %r13d
movq 0x8(%r15), %rax
movq (%rax,%r13,8), %r12
testb $0x2, 0x38(%r12)
jne 0x17272
movq (%rbx), %rax
movq %rbx, %rdi
movq %r12, %rsi
callq *0x2b8(%rax)
movsd 0x28(%r12), %xmm0
ucomisd 0x8(%rsp), %xmm0
jbe 0x1728c
movq %r14, %rdi
movq %r12, %rsi
callq 0x23e1c
incq %r13
movslq 0x14(%r15), %rax
cmpq %rax, %r13
jl 0x17253
cmpl $0x0, 0x18(%rsp)
jne 0x17230
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x172ae
callq 0xe5b0
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x172c2
jmp 0x172c2
jmp 0x172c2
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x172d4
callq 0xe5b0
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::FillHoles(double, double)
void R3Mesh::
FillHoles(RNLength max_perimeter, RNLength max_planar_deviation)
{
  // Set edge marks
  // Cleared in FillHole
  // Used to avoid trying to fill hole multiple times
  RNMark edge_mark = ++R3mesh_mark;
  for (int i = 0; i < NEdges(); i++) {
    R3MeshEdge *edge = Edge(i);
    SetEdgeMark(edge, edge_mark);
  }
  
  // Iteratively find boundary edge and fill hole
  for (int i = 0; i < NEdges(); i++) {
    R3MeshEdge *edge = Edge(i);
    if (!IsEdgeOnBoundary(edge)) continue;
    if (EdgeMark(edge) != edge_mark) continue;
    FillHole(edge, max_perimeter, max_planar_deviation);
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, (%rsp)
movq %rdi, %rbx
movl 0xcceb8(%rip), %ebp     # 0xe54b0
incl %ebp
movl %ebp, 0xcceb0(%rip)     # 0xe54b0
movslq 0x24(%rdi), %rax
testq %rax, %rax
jle 0x1861e
movq 0x18(%rbx), %rcx
xorl %edx, %edx
movq (%rcx,%rdx,8), %rsi
movl %ebp, 0x48(%rsi)
incq %rdx
cmpq %rdx, %rax
jne 0x1860f
cmpl $0x0, 0x24(%rbx)
jle 0x18661
xorl %r14d, %r14d
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rsi
cmpq $0x0, 0x18(%rsi)
je 0x1863d
cmpq $0x0, 0x20(%rsi)
jne 0x18655
cmpl %ebp, 0x48(%rsi)
jne 0x18655
movq %rbx, %rdi
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
callq 0x17ca6
incq %r14
movslq 0x24(%rbx), %rax
cmpq %rax, %r14
jl 0x18627
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::GLFaceTextureCoordBufferObject() const
unsigned int R3Mesh::
GLFaceTextureCoordBufferObject(void) const
{
  // Check if nothing to be done
  if (NFaces() == 0) return 0;

  // Update texcoord buffer
  if (vbo_face_texcoord_buffer == 0) {
    glGenBuffers(1, (GLuint *) &vbo_face_texcoord_buffer);
    if (vbo_face_texcoord_buffer > 0) {
      std::vector<GLfloat> texcoords;
      for (int i = 0; i < NFaces(); i++) {
        R3MeshFace *face = Face(i);
        for (int j = 0; j < 3; j++){
          R3MeshVertex *vertex = VertexOnFace(face, j);
          const R2Point& texcoord = VertexTextureCoords(vertex);
          texcoords.push_back(texcoord.X());
          texcoords.push_back(texcoord.Y());
        }
      }
      glBindBuffer(GL_ARRAY_BUFFER, vbo_face_texcoord_buffer);
      glBufferData(GL_ARRAY_BUFFER, texcoords.size() * sizeof(GLfloat), &texcoords[0], GL_STATIC_DRAW);
      glBindBuffer(GL_ARRAY_BUFFER, 0);
    }
  }

  // Return texcoord buffer identifier
  return vbo_face_texcoord_buffer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpl $0x0, 0x34(%rdi)
je 0x18e3a
movq %rdi, %rbx
leaq 0x58(%rdi), %r14
cmpl $0x0, 0x58(%rdi)
je 0x18e4b
movl (%r14), %eax
jmp 0x18e3c
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xcc136(%rip), %rax     # 0xe4f88
movl $0x1, %edi
movq %r14, %rsi
callq *(%rax)
cmpl $0x0, (%r14)
je 0x18e35
movq %r14, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
cmpl $0x0, 0x34(%rbx)
jle 0x18f2e
xorl %r13d, %r13d
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
movq %rbx, 0x30(%rsp)
movq 0x28(%rbx), %rax
movq (%rax,%r13,8), %rbp
movl $0x1, %ebx
movq (%rbp,%rbx,8), %r14
xorps %xmm0, %xmm0
cvtsd2ss 0x48(%r14), %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x18ed0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x18edb
movq %r15, %rdi
movq %r12, %rdx
callq 0x256b8
xorps %xmm0, %xmm0
cvtsd2ss 0x50(%r14), %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x18f05
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x18f10
movq %r15, %rdi
movq %r12, %rdx
callq 0x256b8
incq %rbx
cmpq $0x4, %rbx
jne 0x18ea1
incq %r13
movq 0x30(%rsp), %rbx
movslq 0x34(%rbx), %rax
cmpq %rax, %r13
jl 0x18e94
movq 0xcc073(%rip), %rbx     # 0xe4fa8
movq 0x28(%rsp), %r14
movl (%r14), %esi
movl $0x8892, %edi           # imm = 0x8892
callq *(%rbx)
movq 0xcc075(%rip), %rax     # 0xe4fc0
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rsi
subq %rdx, %rsi
movl $0x8892, %edi           # imm = 0x8892
movl $0x88e4, %ecx           # imm = 0x88E4
callq *(%rax)
movl $0x8892, %edi           # imm = 0x8892
xorl %esi, %esi
callq *(%rbx)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x18e35
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xe450
jmp 0x18e35
jmp 0x18f91
jmp 0x18f91
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x18fab
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xe450
movq %rbx, %rdi
callq 0xe7e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::GLVertexTextureCoordBufferObject() const
unsigned int R3Mesh::
GLVertexTextureCoordBufferObject(void) const
{
  // Check if nothing to be done
  if (NVertices() == 0) return 0;

  // Update texcoord buffer
  if (vbo_vertex_texcoord_buffer == 0) {
    glGenBuffers(1, (GLuint *) &vbo_vertex_texcoord_buffer);
    if (vbo_vertex_texcoord_buffer > 0) {
      std::vector<GLfloat> texcoords;
      for (int i = 0; i < NVertices(); i++) {
        R3MeshVertex *vertex = Vertex(i);
        const R2Point& texcoord = VertexTextureCoords(vertex);
        texcoords.push_back(texcoord.X());
        texcoords.push_back(texcoord.Y());
      }
      glBindBuffer(GL_ARRAY_BUFFER, vbo_vertex_texcoord_buffer);
      glBufferData(GL_ARRAY_BUFFER, texcoords.size() * sizeof(GLfloat), &texcoords[0], GL_STATIC_DRAW);
      glBindBuffer(GL_ARRAY_BUFFER, 0);
    }
  }

  // Return texcoord buffer identifier
  return vbo_vertex_texcoord_buffer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x0, 0x14(%rdi)
je 0x196d5
movq %rdi, %r14
leaq 0x6c(%rdi), %rbx
cmpl $0x0, 0x6c(%rdi)
je 0x196e6
movl (%rbx), %eax
jmp 0x196d7
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xcb89b(%rip), %rax     # 0xe4f88
movl $0x1, %edi
movq %rbx, %rsi
callq *(%rax)
cmpl $0x0, (%rbx)
je 0x196d1
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
cmpl $0x0, 0x14(%r14)
jle 0x197a1
xorl %r13d, %r13d
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
movq 0x8(%r14), %rax
movq (%rax,%r13,8), %rbp
xorps %xmm0, %xmm0
cvtsd2ss 0x48(%rbp), %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x19756
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x19761
movq %r15, %rdi
movq %r12, %rdx
callq 0x256b8
xorps %xmm0, %xmm0
cvtsd2ss 0x50(%rbp), %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x1978a
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x19795
movq %r15, %rdi
movq %r12, %rdx
callq 0x256b8
incq %r13
movslq 0x14(%r14), %rax
cmpq %rax, %r13
jl 0x19725
movq 0xcb800(%rip), %r14     # 0xe4fa8
movl (%rbx), %esi
movl $0x8892, %edi           # imm = 0x8892
callq *(%r14)
movq 0xcb807(%rip), %rax     # 0xe4fc0
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rsi
subq %rdx, %rsi
movl $0x8892, %edi           # imm = 0x8892
movl $0x88e4, %ecx           # imm = 0x88E4
callq *(%rax)
movl $0x8892, %edi           # imm = 0x8892
xorl %esi, %esi
callq *(%r14)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x196d1
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xe450
jmp 0x196d1
jmp 0x19800
jmp 0x19800
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1981a
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xe450
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::GLVertexRgbColorBufferObject() const
unsigned int R3Mesh::
GLVertexRgbColorBufferObject(void) const
{
  // Check if nothing to be done
  if (NVertices() == 0) return 0;

  // Update rgb color buffer
  if (vbo_vertex_rgb_color_buffer == 0) {
    glGenBuffers(1, (GLuint *) &vbo_vertex_rgb_color_buffer);
    if (vbo_vertex_rgb_color_buffer > 0) {
      std::vector<GLubyte> rgb_colors;
      for (int i = 0; i < NVertices(); i++) {
        R3MeshVertex *vertex = Vertex(i);
        const RNRgb& rgb_color = VertexColor(vertex);
        rgb_colors.push_back(255.0 * rgb_color.R());
        rgb_colors.push_back(255.0 * rgb_color.G());
        rgb_colors.push_back(255.0 * rgb_color.B());
        rgb_colors.push_back(255);
      }
      glBindBuffer(GL_ARRAY_BUFFER, vbo_vertex_rgb_color_buffer);
      glBufferData(GL_ARRAY_BUFFER, rgb_colors.size() * sizeof(GLubyte), &rgb_colors[0], GL_STATIC_DRAW);
      glBindBuffer(GL_ARRAY_BUFFER, 0);
    }
  }

  // Return rgb color buffer identifier
  return vbo_vertex_rgb_color_buffer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x0, 0x14(%rdi)
je 0x19847
movq %rdi, %r14
leaq 0x70(%rdi), %rbx
cmpl $0x0, 0x70(%rdi)
je 0x19858
movl (%rbx), %eax
jmp 0x19849
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xcb729(%rip), %rax     # 0xe4f88
movl $0x1, %edi
movq %rbx, %rsi
callq *(%rax)
cmpl $0x0, (%rbx)
je 0x19843
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
cmpl $0x0, 0x14(%r14)
jle 0x1992d
xorl %r13d, %r13d
movsd 0x88981(%rip), %xmm1    # 0xa2218
leaq 0x10(%rsp), %r15
leaq 0xf(%rsp), %r12
movq 0x8(%r14), %rax
movq (%rax,%r13,8), %rbp
movsd 0x58(%rbp), %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movb %al, 0xf(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x257f8
movsd 0x60(%rbp), %xmm0
mulsd 0x88946(%rip), %xmm0    # 0xa2218
cvttsd2si %xmm0, %eax
movb %al, 0xf(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x257f8
movsd 0x68(%rbp), %xmm0
mulsd 0x88926(%rip), %xmm0    # 0xa2218
cvttsd2si %xmm0, %eax
movb %al, 0xf(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x257f8
movb $-0x1, 0xf(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x257f8
incq %r13
movslq 0x14(%r14), %rax
cmpq %rax, %r13
movsd 0x888f1(%rip), %xmm1    # 0xa2218
jl 0x198a1
movq 0xcb674(%rip), %r14     # 0xe4fa8
movl (%rbx), %esi
movl $0x8892, %edi           # imm = 0x8892
callq *(%r14)
movq 0xcb67b(%rip), %rax     # 0xe4fc0
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rsi
subq %rdx, %rsi
movl $0x8892, %edi           # imm = 0x8892
movl $0x88e4, %ecx           # imm = 0x88E4
callq *(%rax)
movl $0x8892, %edi           # imm = 0x8892
xorl %esi, %esi
callq *(%r14)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x19843
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xe450
jmp 0x19843
jmp 0x19990
jmp 0x19990
jmp 0x19990
jmp 0x19990
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x199aa
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xe450
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::InvalidateGLBufferObjects()
void R3Mesh::
InvalidateGLBufferObjects(void)
{
  // Delete face buffers
  if (vbo_face_position_buffer > 0) glDeleteBuffers(1, &vbo_face_position_buffer);
  if (vbo_face_normal_buffer > 0) glDeleteBuffers(1, &vbo_face_normal_buffer);
  if (vbo_face_texcoord_buffer > 0) glDeleteBuffers(1, &vbo_face_texcoord_buffer);
  if (vbo_face_rgb_color_buffer > 0) glDeleteBuffers(1, &vbo_face_rgb_color_buffer);
  if (vbo_face_pick_color_buffer > 0) glDeleteBuffers(1, &vbo_face_pick_color_buffer);

  // Delete vertex buffers
  if (vbo_vertex_position_buffer > 0) glDeleteBuffers(1, &vbo_vertex_position_buffer);
  if (vbo_vertex_normal_buffer > 0) glDeleteBuffers(1, &vbo_vertex_normal_buffer);
  if (vbo_vertex_texcoord_buffer > 0) glDeleteBuffers(1, &vbo_vertex_texcoord_buffer);
  if (vbo_vertex_rgb_color_buffer > 0) glDeleteBuffers(1, &vbo_vertex_rgb_color_buffer);
  if (vbo_vertex_pick_color_buffer > 0) glDeleteBuffers(1, &vbo_vertex_pick_color_buffer);

  // Zero out face buffer identifiers
  vbo_face_position_buffer = 0;
  vbo_face_normal_buffer = 0;
  vbo_face_texcoord_buffer = 0;
  vbo_face_rgb_color_buffer = 0;
  vbo_face_pick_color_buffer = 0;

  // Zero out vertex buffer identifiers
  vbo_vertex_position_buffer = 0;
  vbo_vertex_normal_buffer = 0;
  vbo_vertex_texcoord_buffer = 0;
  vbo_vertex_rgb_color_buffer = 0;
  vbo_vertex_pick_color_buffer = 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x50(%rdi), %rbx
cmpl $0x0, 0x50(%rdi)
je 0x19b7c
movq 0xcb45e(%rip), %rax     # 0xe4fd0
movl $0x1, %edi
movq %rbx, %rsi
callq *(%rax)
cmpl $0x0, 0x54(%r14)
je 0x19b95
leaq 0x54(%r14), %rsi
movq 0xcb442(%rip), %rax     # 0xe4fd0
movl $0x1, %edi
callq *(%rax)
cmpl $0x0, 0x58(%r14)
je 0x19bae
leaq 0x58(%r14), %rsi
movq 0xcb429(%rip), %rax     # 0xe4fd0
movl $0x1, %edi
callq *(%rax)
cmpl $0x0, 0x5c(%r14)
je 0x19bc7
leaq 0x5c(%r14), %rsi
movq 0xcb410(%rip), %rax     # 0xe4fd0
movl $0x1, %edi
callq *(%rax)
cmpl $0x0, 0x60(%r14)
je 0x19be0
leaq 0x60(%r14), %rsi
movq 0xcb3f7(%rip), %rax     # 0xe4fd0
movl $0x1, %edi
callq *(%rax)
cmpl $0x0, 0x64(%r14)
je 0x19bf9
leaq 0x64(%r14), %rsi
movq 0xcb3de(%rip), %rax     # 0xe4fd0
movl $0x1, %edi
callq *(%rax)
cmpl $0x0, 0x68(%r14)
je 0x19c12
leaq 0x68(%r14), %rsi
movq 0xcb3c5(%rip), %rax     # 0xe4fd0
movl $0x1, %edi
callq *(%rax)
cmpl $0x0, 0x6c(%r14)
je 0x19c2b
leaq 0x6c(%r14), %rsi
movq 0xcb3ac(%rip), %rax     # 0xe4fd0
movl $0x1, %edi
callq *(%rax)
cmpl $0x0, 0x70(%r14)
je 0x19c44
leaq 0x70(%r14), %rsi
movq 0xcb393(%rip), %rax     # 0xe4fd0
movl $0x1, %edi
callq *(%rax)
cmpl $0x0, 0x74(%r14)
je 0x19c60
addq $0x74, %r14
movq 0xcb37a(%rip), %rax     # 0xe4fd0
movl $0x1, %edi
movq %r14, %rsi
callq *(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
movq $0x0, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::DrawEdgeIDs() const
void R3Mesh::
DrawEdgeIDs(void) const
{
  // Draw all edge IDs
  glDisable(GL_LIGHTING);
  RNGrfxBegin(RN_GRFX_LINES);
  for (int i = 0; i < edges.NEntries(); i++) {
    R3MeshEdge *e = edges.Kth(i);
    unsigned int index = i+1;    
    unsigned char r = (index >> 0) & 0xFF;
    unsigned char g = (index >> 8) & 0xFF;
    unsigned char b = (index >> 16) & 0xFF;
    RNLoadRgb(r, g, b);
    R3LoadPoint(VertexPosition(VertexOnEdge(e, 0)));
    R3LoadPoint(VertexPosition(VertexOnEdge(e, 1)));
  }
  glEnable(GL_LIGHTING);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0xb50, %edi            # imm = 0xB50
callq 0xe140
movl $0x1, %edi
callq 0xe110
cmpl $0x0, 0x24(%rbx)
jle 0x1a032
movl $0x1, %r14d
movl $0xff, %ebp
movq 0x18(%rbx), %rax
movq -0x8(%rax,%r14,8), %r15
movl %r14d, %esi
shrl $0x8, %esi
movl %r14d, %edx
shrl $0x10, %edx
movl %r14d, %edi
andl %ebp, %edi
andl %ebp, %esi
andl %ebp, %edx
callq 0xe410
movq 0x8(%r15), %rdi
addq $0x18, %rdi
callq 0xe130
movq 0x10(%r15), %rdi
addq $0x18, %rdi
callq 0xe130
movslq 0x24(%rbx), %rax
leaq 0x1(%r14), %rcx
cmpq %rax, %r14
movq %rcx, %r14
jl 0x19fe5
movl $0xb50, %edi            # imm = 0xB50
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xe3e0
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::DrawEdge(gaps::R3MeshEdge*) const
void R3Mesh::
DrawEdge(R3MeshEdge *e) const
{
  // Draw edge
  R3BeginLine();
  R3LoadPoint(e->vertex[0]->position);
  R3LoadPoint(e->vertex[1]->position);
  R3EndLine();
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movl $0x3, %edi
callq 0xe110
movq 0x8(%rbx), %rdi
addq $0x18, %rdi
callq 0xe130
movq 0x10(%rbx), %rdi
addq $0x18, %rdi
callq 0xe130
popq %rbx
jmp 0xe5d0
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::DrawFace(gaps::R3MeshFace*) const
void R3Mesh::
DrawFace(R3MeshFace *f) const
{
  // Draw polygon
  R3BeginPolygon();
  R3LoadNormal(FaceNormal(f));
  R3LoadPoint(f->vertex[0]->position);
  R3LoadPoint(f->vertex[1]->position);
  R3LoadPoint(f->vertex[2]->position);
  R3EndPolygon();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x9, %edi
callq 0xe110
testb $0x4, 0xa8(%rbx)
jne 0x1a12a
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x2c8(%rax)
leaq 0x38(%rbx), %rdi
callq 0xe6b0
movq 0x8(%rbx), %rdi
addq $0x18, %rdi
callq 0xe130
movq 0x10(%rbx), %rdi
addq $0x18, %rdi
callq 0xe130
movq 0x18(%rbx), %rdi
addq $0x18, %rdi
callq 0xe130
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xe5d0
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::Intersection(gaps::R3Ray const&, gaps::R3MeshIntersection*) const
R3MeshType R3Mesh::
Intersection(const R3Ray& ray, R3MeshIntersection *intersection) const
{
  // Initialize intersection variables
  R3MeshType type = R3_MESH_NULL_TYPE;
  if (intersection) {
    intersection->type = R3_MESH_NULL_TYPE;
    intersection->vertex = NULL;
    intersection->edge = NULL;
    intersection->face = NULL;
    intersection->t = RN_INFINITY;
  }

  // Check bounding box for intersection 
  if (R3Intersects(ray, bbox)) {
    // Check each face to find closest intersection
    RNScalar min_t = FLT_MAX;
    for (int i = 0; i < faces.NEntries(); i++) {
      // Get ith face
      R3MeshFace *f = faces[i];

      // Get intersection with face
      R3MeshIntersection face_intersection;
      if (Intersection(ray, f, &face_intersection)) {
        if (face_intersection.t < min_t) {
          if (intersection) *intersection = face_intersection;
          type = face_intersection.type;
          min_t = face_intersection.t;
        }
      }
    }
  }

  // Return intersection type
  return type;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rdx, %rdx
je 0x1a1a7
movl $0x0, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
leaq 0xcba0a(%rip), %rax     # 0xe5ba8
movsd (%rax), %xmm0
movsd %xmm0, 0x38(%rbx)
leaq 0xf8(%r15), %rsi
xorl %ebp, %ebp
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x43992
testl %eax, %eax
je 0x1a279
cmpl $0x0, 0x34(%r15)
jle 0x1a279
leaq 0x20(%rbx), %rax
movq %rax, 0x10(%rsp)
movsd 0x87e5d(%rip), %xmm0    # 0xa2040
movsd %xmm0, 0x8(%rsp)
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x28(%r15), %rax
movq (%rax,%r12,8), %r13
leaq 0x38(%rsp), %rdi
callq 0x3ca24
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
leaq 0x18(%rsp), %rcx
callq *0x178(%rax)
testl %eax, %eax
je 0x1a269
movsd 0x8(%rsp), %xmm0
ucomisd 0x50(%rsp), %xmm0
jbe 0x1a269
testq %rbx, %rbx
je 0x1a259
movups 0x18(%rsp), %xmm0
movups 0x28(%rsp), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x3cd94
movsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x38(%rbx)
movl 0x18(%rsp), %ebp
movsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
incq %r12
movslq 0x34(%r15), %rax
cmpq %rax, %r12
jl 0x1a1ee
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::ClosestPoint(gaps::R3Point const&, gaps::R3MeshIntersection*) const
R3Point R3Mesh::
ClosestPoint(const R3Point& point, R3MeshIntersection *closest_point) const
{
  // Check each face to find closest point
  R3Point closest_position = R3zero_point;
  RNScalar closest_distance_squared = FLT_MAX;
  for (int i = 0; i < faces.NEntries(); i++) {
    R3MeshFace *f = faces[i];
    R3MeshIntersection intersection;
    R3Point position = ClosestPointOnFace(f, point, (closest_point) ? &intersection : NULL);
    RNLength distance_squared = R3SquaredDistance(position, point);
    if (distance_squared < closest_distance_squared) {
      if (closest_point) *closest_point = intersection;
      closest_distance_squared = distance_squared;
      closest_position = position;
    }
  }

  // Return closest position on mesh
  return closest_position;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r12
leaq 0x4cbf9c(%rip), %rsi    # 0x4e6a60
movq %rdi, (%rsp)
callq 0x3ca36
cmpl $0x0, 0x34(%r12)
jle 0x1aba1
testq %rbx, %rbx
leaq 0x20(%rsp), %rax
cmoveq %rbx, %rax
movq %rax, 0x18(%rsp)
leaq 0x20(%rbx), %rax
movq %rax, 0x10(%rsp)
movsd 0x87545(%rip), %xmm0    # 0xa2040
movsd %xmm0, 0x8(%rsp)
xorl %ebp, %ebp
leaq 0x60(%rsp), %r15
movq 0x28(%r12), %rax
movq (%rax,%rbp,8), %r13
leaq 0x40(%rsp), %rdi
callq 0x3ca24
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
movq 0x18(%rsp), %r8
callq 0x1a7ca
movq %r15, %rdi
movq %r14, %rsi
callq 0x49ed3
movapd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1ab90
movsd %xmm1, 0x8(%rsp)
testq %rbx, %rbx
je 0x1ab84
movups 0x20(%rsp), %xmm0
movupd 0x30(%rsp), %xmm1
movupd %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x3cd94
movsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x38(%rbx)
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x3cd94
incq %rbp
movslq 0x34(%r12), %rax
cmpq %rax, %rbp
jl 0x1ab08
movq (%rsp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::RandomPointOnFace(gaps::R3MeshFace const*) const
R3Point R3Mesh::
RandomPointOnFace(const R3MeshFace *face) const
{
  // Seed random number generator
  static RNBoolean seed = 0;
  if (!seed) { seed = 1; RNSeedRandomScalar(); }

  // Get vertex positions
  R3MeshVertex *v0 = VertexOnFace(face, 0);
  R3MeshVertex *v1 = VertexOnFace(face, 1);
  R3MeshVertex *v2 = VertexOnFace(face, 2);
  const R3Point& p0 = VertexPosition(v0);
  const R3Point& p1 = VertexPosition(v1);
  const R3Point& p2 = VertexPosition(v2);


  // Return random point on face
  RNScalar r1 = sqrt(RNRandomScalar());
  RNScalar r2 = RNRandomScalar();
  R3Point p = p0 * (1.0 - r1) + p1 * r1 * (1.0 - r2) + p2 * r1 * r2;
  return p;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movq %rdx, %r14
movq %rdi, %rbx
cmpb $0x0, 0xcb05f(%rip)     # 0xe5c30
jne 0x1abe3
movb $0x1, 0xcb056(%rip)     # 0xe5c30
xorpd %xmm0, %xmm0
callq 0x725ed
movq 0x8(%r14), %r12
movq 0x10(%r14), %r15
movq 0x18(%r14), %r14
addq $0x18, %r12
addq $0x18, %r15
addq $0x18, %r14
callq 0x72630
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x1ac10
sqrtsd %xmm0, %xmm0
jmp 0x1ac15
callq 0xe340
movsd %xmm0, (%rsp)
callq 0x72630
movsd %xmm0, 0x8(%rsp)
movsd 0x8740b(%rip), %xmm0    # 0xa2038
subsd (%rsp), %xmm0
leaq 0x70(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x3d470
leaq 0x40(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movsd (%rsp), %xmm0
callq 0x3d470
movsd 0x873d9(%rip), %xmm0    # 0xa2038
subsd 0x8(%rsp), %xmm0
leaq 0x58(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x3d470
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x3d42a
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movsd (%rsp), %xmm0
callq 0x3d470
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movsd 0x8(%rsp), %xmm0
callq 0x3d470
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x3d42a
movq %rbx, %rax
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3MeshVertexIsSaddleOrBoundary(gaps::R3Mesh const*, gaps::R3MeshVertex const*)
static RNBoolean
R3MeshVertexIsSaddleOrBoundary(const R3Mesh *mesh, const R3MeshVertex *vertex)
{
  // Return whether vertex is a saddle or boundary
  int nconvex = 0;
  int nconcave = 0;
  RNScalar angle_epsilon = 0.1;
  for (int i = 0; i < mesh->VertexValence(vertex); i++) {
    R3MeshEdge *e = mesh->EdgeOnVertex(vertex, i);
    if (!mesh->FaceOnEdge(e, 0)) return TRUE;
    if (!mesh->FaceOnEdge(e, 1)) return TRUE;
    RNAngle angle = mesh->EdgeInteriorAngle(e);
    if (RNIsGreater(angle, RN_PI, angle_epsilon)) nconcave++;
    else if (RNIsLess(angle, RN_PI, angle_epsilon)) nconvex++;
    if (nconvex * nconcave != 0) return TRUE;
  }

  // Not a saddle
  return FALSE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x0, 0x14(%rsi)
setg %bpl
jle 0x1c11e
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8df10(%rip), %rax     # 0xa9fa8
movsd (%rax), %xmm0
movsd %xmm0, (%rsp)
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x8(%rbx), %rax
movq (%rax,%r15,8), %rsi
cmpq $0x0, 0x18(%rsi)
je 0x1c108
cmpq $0x0, 0x20(%rsi)
je 0x1c108
movq %r14, %rdi
callq 0x11fe4
subsd (%rsp), %xmm0
xorl %eax, %eax
movsd 0x86151(%rip), %xmm1    # 0xa2228
ucomisd %xmm1, %xmm0
seta %al
cmpnltpd %xmm0, %xmm1
movsd 0x86145(%rip), %xmm2    # 0xa2230
cmpltpd %xmm2, %xmm0
andpd %xmm1, %xmm0
movd %xmm0, %ecx
subl %ecx, %r12d
sete %cl
addl %eax, %r13d
sete %al
orb %cl, %al
jmp 0x1c10a
xorl %eax, %eax
testb %al, %al
je 0x1c11e
incq %r15
movslq 0x14(%rbx), %rax
cmpq %rax, %r15
setl %bpl
jl 0x1c0aa
movzbl %bpl, %eax
andl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::CreateEllipsoid(gaps::R3Ellipsoid const&, double)
void R3Mesh::
CreateEllipsoid(const R3Ellipsoid& ellipsoid, RNLength vertex_spacing)
{
  // Get info
  R3Vector radii = ellipsoid.Radii();
  RNLength max_radius = radii[radii.MaxDimension()];
  if (RNIsZero(max_radius)) return ;
  R3Triad axes = ellipsoid.CoordSystem().Axes();
  int saved_nvertices = NVertices();
  
  // Create mesh elements for a sphere of suitable radius
  R3Sphere sphere(R3zero_point, max_radius);
  CreateSphere(sphere, vertex_spacing);

  // Map vertices from unit sphere to ellipsoid
  for (int i = saved_nvertices; i < NVertices(); i++) {
    R3MeshVertex *v = Vertex(i);
    R3Vector p = VertexPosition(v).Vector();
    R3Point position = ellipsoid.Center();
    position += p[0]*(radii[0]/max_radius)*axes[0];
    position += p[1]*(radii[1]/max_radius)*axes[1];
    position += p[2]*(radii[2]/max_radius)*axes[2];
    SetVertexPosition(v, position);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movsd %xmm0, 0x10(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
addq $0x68, %rsi
leaq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0x3d4ce
movq %r15, %rdi
callq 0x3d652
cltq
movsd 0x18(%rsp,%rax,8), %xmm2
leaq 0xc7b01(%rip), %rax     # 0xe5b98
movsd (%rax), %xmm0
movapd 0x83f7d(%rip), %xmm1    # 0xa2020
xorpd %xmm0, %xmm1
ucomisd %xmm1, %xmm2
jb 0x1e0b7
ucomisd %xmm2, %xmm0
jae 0x1e1f3
leaq 0x20(%rbx), %rsi
leaq 0x70(%rsp), %rdi
movsd %xmm2, 0x8(%rsp)
callq 0x2ad8e
movslq 0x14(%r14), %r12
leaq 0x4c898a(%rip), %rsi    # 0x4e6a60
leaq 0x48(%rsp), %r15
movq %r15, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x270d6
movq %r14, %rdi
movq %r15, %rsi
movsd 0x10(%rsp), %xmm0
callq 0x1dc6c
cmpl 0x14(%r14), %r12d
jge 0x1e1e9
addq $0x8, %rbx
leaq 0xd0(%rsp), %rbp
leaq 0xb8(%rsp), %r15
movq 0x8(%r14), %rax
movq (%rax,%r12,8), %r13
movsd 0x18(%r13), %xmm0
movsd 0x20(%r13), %xmm1
movsd 0x28(%r13), %xmm2
leaq 0x30(%rsp), %rdi
callq 0x3d4be
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x3ca36
movsd 0x18(%rsp), %xmm0
divsd 0x8(%rsp), %xmm0
mulsd 0x30(%rsp), %xmm0
movq %r15, %rdi
leaq 0x70(%rsp), %rsi
callq 0x3de8e
movq %rbp, %rdi
movq %r15, %rsi
callq 0x3ce0e
movsd 0x20(%rsp), %xmm0
divsd 0x8(%rsp), %xmm0
mulsd 0x38(%rsp), %xmm0
movq %r15, %rdi
leaq 0x88(%rsp), %rsi
callq 0x3de8e
movq %rbp, %rdi
movq %r15, %rsi
callq 0x3ce0e
movsd 0x28(%rsp), %xmm0
divsd 0x8(%rsp), %xmm0
mulsd 0x40(%rsp), %xmm0
movq %r15, %rdi
leaq 0xa0(%rsp), %rsi
callq 0x3de8e
movq %rbp, %rdi
movq %r15, %rsi
callq 0x3ce0e
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x13808
incq %r12
movslq 0x14(%r14), %rax
cmpq %rax, %r12
jl 0x1e118
leaq 0x48(%rsp), %rdi
callq 0x28348
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1e20f
jmp 0x1e20f
jmp 0x1e20f
jmp 0x1e20f
jmp 0x1e20f
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x28348
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::ReadPlyFile(char const*)
int R3Mesh::
ReadPlyFile(const char *filename)
{
  // Open file
  FILE *fp = fopen(filename, "rb");
  if (!fp) {
    RNFail("Unable to open file: %s", filename);
    return 0;
  }

  // Read file
  if (!ReadPlyStream(fp)) return 0;
  
  // Close file
  fclose(fp);

  // Return success
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x82690(%rip), %rsi     # 0xa25ae
movq %rbx, %rdi
callq 0xe530
testq %rax, %rax
je 0x1ff50
movq %rax, %r14
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
callq *0x210(%rax)
testl %eax, %eax
je 0x1ff65
movq %r14, %rdi
callq 0xe430
movl $0x1, %ebp
jmp 0x1ff67
leaq 0x8265a(%rip), %rdi     # 0xa25b1
xorl %ebp, %ebp
movq %rbx, %rsi
xorl %eax, %eax
callq 0x72a1e
jmp 0x1ff67
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::WriteFile(char const*) const
int R3Mesh::
WriteFile(const char *filename) const
{
  // Parse input filename extension
  const char *extension;
  if (!(extension = strrchr(filename, '.'))) {
    printf("Filename %s has no extension (e.g., .ply)", filename);
    return 0;
  }

  // Write file of appropriate type
  if (!strncmp(extension, ".ray", 4)) 
    return WriteRayFile(filename);
  else if (!strncmp(extension, ".ply", 4)) 
    return WritePlyFile(filename);
  else if (!strncmp(extension, ".obj", 4)) 
    return WriteObjFile(filename);
  else if (!strncmp(extension, ".off", 4)) 
    return WriteOffFile(filename);
  else if (!strncmp(extension, ".cat", 4)) 
    return WriteCattFile(filename);
  else if (!strncmp(extension, ".ifs", 4)) 
    return WriteIfsFile(filename);
  else if (!strncmp(extension, ".stl", 4)) 
    return WriteSTLFile(filename);
  else {
    RNFail("Unable to write file %s (unrecognized extension: %s)", filename, extension);
    return 0;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
movl $0x2e, %esi
callq 0xe4c0
testq %rax, %rax
je 0x227d4
movq %rax, %r15
leaq 0x7fc66(%rip), %rsi     # 0xa2367
movl $0x4, %edx
movq %rax, %rdi
callq 0xe210
testl %eax, %eax
je 0x227ed
leaq 0x7fc4f(%rip), %rsi     # 0xa236c
movl $0x4, %edx
movq %r15, %rdi
callq 0xe210
testl %eax, %eax
je 0x227f9
leaq 0x7fc24(%rip), %rsi     # 0xa235d
movl $0x4, %edx
movq %r15, %rdi
callq 0xe210
testl %eax, %eax
je 0x22815
leaq 0x7fc0d(%rip), %rsi     # 0xa2362
movl $0x4, %edx
movq %r15, %rdi
callq 0xe210
testl %eax, %eax
je 0x22821
leaq 0x7fc00(%rip), %rsi     # 0xa2371
movl $0x4, %edx
movq %r15, %rdi
callq 0xe210
testl %eax, %eax
je 0x2282d
leaq 0x7fbec(%rip), %rsi     # 0xa2379
movl $0x4, %edx
movq %r15, %rdi
callq 0xe210
testl %eax, %eax
je 0x22839
leaq 0x7fbd5(%rip), %rsi     # 0xa237e
movl $0x4, %edx
movq %r15, %rdi
callq 0xe210
testl %eax, %eax
je 0x22845
leaq 0x801c3(%rip), %rdi     # 0xa2988
movq %rbx, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x72a1e
jmp 0x227e5
leaq 0x80183(%rip), %rdi     # 0xa295e
movq %rbx, %rsi
xorl %eax, %eax
callq 0xe070
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
movq (%r14), %rax
movq 0x1d8(%rax), %rax
jmp 0x2284f
movq (%r14), %rax
movq 0x1e0(%rax), %rax
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
popq %rbx
popq %r14
popq %r15
jmpq *%rax
movq (%r14), %rax
movq 0x1e8(%rax), %rax
jmp 0x2284f
movq (%r14), %rax
movq 0x1f0(%rax), %rax
jmp 0x2284f
movq (%r14), %rax
movq 0x1f8(%rax), %rax
jmp 0x2284f
movq (%r14), %rax
movq 0x200(%rax), %rax
jmp 0x2284f
movq (%r14), %rax
movq 0x208(%rax), %rax
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmpq *%rax
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::WriteRayFile(char const*) const
int R3Mesh::
WriteRayFile(const char *filename) const
{
  // Open file
  FILE *fp;
  if (!(fp = fopen(filename, "w"))) {
    RNFail("Unable to open file %s", filename);
    return 0;
  }

  // Write vertices
  for (int i = 0; i < NVertices(); i++) {
    R3MeshVertex *vertex = Vertex(i);
    const R3Point& p = VertexPosition(vertex);
    const R3Vector& n = VertexNormal(vertex);
    fprintf(fp, "#vertex %g %g %g %g %g %g 0 0\n", p.X(), p.Y(), p.Z(), n.X(), n.Y(), n.Z());
  }

  // Write Faces
  for (int i = 0; i < NFaces(); i++) {
    R3MeshFace *face = Face(i);
    R3MeshVertex *v0 = VertexOnFace(face, 0);
    R3MeshVertex *v1 = VertexOnFace(face, 1);
    R3MeshVertex *v2 = VertexOnFace(face, 2);
    int m = FaceMaterial(face);
    fprintf(fp, "#shape_triangle %d %d %d %d\n", m, v0->id, v1->id, v2->id);
  }

  // Close file
  fclose(fp);

  // Return success
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x84f4b(%rip), %rsi     # 0xa77bd
movq %r15, %rdi
callq 0xe530
testq %rax, %rax
je 0x22955
movq %rax, %r14
cmpl $0x0, 0x14(%rbx)
jle 0x228f8
xorl %r13d, %r13d
leaq 0x80127(%rip), %r15     # 0xa29bd
movq 0x8(%rbx), %rax
movq (%rax,%r13,8), %r12
testb $0x2, 0x78(%r12)
jne 0x228b5
movq (%rbx), %rax
movq %rbx, %rdi
movq %r12, %rsi
callq *0x2b0(%rax)
movsd 0x18(%r12), %xmm0
movsd 0x20(%r12), %xmm1
movsd 0x28(%r12), %xmm2
movsd 0x30(%r12), %xmm3
movsd 0x38(%r12), %xmm4
movsd 0x40(%r12), %xmm5
movq %r14, %rdi
movq %r15, %rsi
movb $0x6, %al
callq 0xe670
incq %r13
movslq 0x14(%rbx), %rax
cmpq %rax, %r13
jl 0x22896
cmpl $0x0, 0x34(%rbx)
jle 0x22946
leaq 0x800d7(%rip), %r15     # 0xa29dc
xorl %r12d, %r12d
movq 0x28(%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdi
movl 0x98(%rax), %edx
movl 0x70(%rcx), %ecx
movl 0x70(%rsi), %r8d
movl 0x70(%rdi), %r9d
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0xe670
incq %r12
movslq 0x34(%rbx), %rax
cmpq %rax, %r12
jl 0x22908
movq %r14, %rdi
callq 0xe430
movl $0x1, %ebx
jmp 0x22968
leaq 0x7fa61(%rip), %rdi     # 0xa23bd
xorl %ebx, %ebx
movq %r15, %rsi
xorl %eax, %eax
callq 0x72a1e
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::WritePlyFile(char const*, int) const
int R3Mesh::
WritePlyFile(const char *filename, RNBoolean binary)  const
{
  // Open file
  FILE *fp = fopen(filename, "w");
  if (!fp) {
    RNFail("Unable to open file: %s", filename);
    return 0;
  }

  // Write file
  if (!WritePlyStream(fp, binary)) return 0;
  
  // Close file
  fclose(fp);

  // Return success
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r12
leaq 0x84e32(%rip), %rsi     # 0xa77bd
movq %r15, %rdi
callq 0xe530
testq %rax, %rax
je 0x229c0
movq %rax, %r14
movq (%r12), %rax
movq %r12, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq *0x218(%rax)
testl %eax, %eax
je 0x229d5
movq %r14, %rdi
callq 0xe430
movl $0x1, %ebx
jmp 0x229d7
leaq 0x7fbea(%rip), %rdi     # 0xa25b1
xorl %ebx, %ebx
movq %r15, %rsi
xorl %eax, %eax
callq 0x72a1e
jmp 0x229d7
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::WriteOffFile(char const*) const
int R3Mesh::
WriteOffFile(const char *filename) const
{
  // Open file
  FILE *fp;
  if (!(fp = fopen(filename, "w"))) {
    RNFail("Unable to open file %s", filename);
    return 0;
  }

  // Write header
  fprintf(fp, "OFF\n");
  fprintf(fp, "%d %d %d\n", NVertices(), NFaces(), NEdges());

  // Write vertices
  for (int i = 0; i < NVertices(); i++) {
    R3MeshVertex *vertex = Vertex(i);
    const R3Point& p = VertexPosition(vertex);
    fprintf(fp, "%g %g %g\n", p.X(), p.Y(), p.Z());
  }

  // Write Faces
  for (int i = 0; i < NFaces(); i++) {
    R3MeshFace *face = Face(i);
    R3MeshVertex *v0 = VertexOnFace(face, 0);
    R3MeshVertex *v1 = VertexOnFace(face, 1);
    R3MeshVertex *v2 = VertexOnFace(face, 2);
    fprintf(fp, "3 %d %d %d\n", v0->id, v1->id, v2->id);
  }

  // Close file
  fclose(fp);

  // Return success
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8477a(%rip), %rsi     # 0xa77bd
movq %r15, %rdi
callq 0xe530
testq %rax, %rax
je 0x23121
movq %rax, %r14
leaq 0x7f9d2(%rip), %rdi     # 0xa2a30
movl $0x4, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0xe8b0
movl 0x34(%rbx), %ecx
movl 0x14(%rbx), %edx
movl 0x24(%rbx), %r8d
leaq 0x7f9b6(%rip), %rsi     # 0xa2a37
movq %r14, %rdi
xorl %eax, %eax
callq 0xe670
cmpl $0x0, 0x14(%rbx)
jle 0x230cb
xorl %r12d, %r12d
leaq 0x7f9b5(%rip), %r15     # 0xa2a50
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %rax
movsd 0x18(%rax), %xmm0
movsd 0x20(%rax), %xmm1
movsd 0x28(%rax), %xmm2
movq %r14, %rdi
movq %r15, %rsi
movb $0x3, %al
callq 0xe670
incq %r12
movslq 0x14(%rbx), %rax
cmpq %rax, %r12
jl 0x2309b
cmpl $0x0, 0x34(%rbx)
jle 0x23112
leaq 0x7f95d(%rip), %r15     # 0xa2a35
xorl %r12d, %r12d
movq 0x28(%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rax
movl 0x70(%rcx), %edx
movl 0x70(%rsi), %ecx
movl 0x70(%rax), %r8d
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0xe670
incq %r12
movslq 0x34(%rbx), %rax
cmpq %rax, %r12
jl 0x230db
movq %r14, %rdi
callq 0xe430
movl $0x1, %ebx
jmp 0x23134
leaq 0x7f295(%rip), %rdi     # 0xa23bd
xorl %ebx, %ebx
movq %r15, %rsi
xorl %eax, %eax
callq 0x72a1e
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Mesh.cpp
// Function: gaps::R3Mesh::WriteCattFile(char const*) const
int R3Mesh::
WriteCattFile(const char *filename) const
{
  // Open file
  FILE *fp;
  if (!(fp = fopen(filename, "w"))) {
    RNFail("Unable to open file %s", filename);
    return 0;
  }

  // Write vertex header
  fprintf(fp, "%%CORNERS\n\n");

  // Write vertices
  for (int i = 0; i < NVertices(); i++) {
    R3MeshVertex *vertex = Vertex(i);
    int id = VertexID(vertex);
    const R3Point& p = VertexPosition(vertex);
    fprintf(fp, "%d %g %g %g\n", id+1, p.X(), p.Y(), p.Z());
  }

  // Write face header
  fprintf(fp, "\n%%PLANES\n\n");

  // Write Faces
  for (int i = 0; i < NFaces(); i++) {
    R3MeshFace *face = Face(i);
    R3MeshVertex *v0 = VertexOnFace(face, 0);
    R3MeshVertex *v1 = VertexOnFace(face, 1);
    R3MeshVertex *v2 = VertexOnFace(face, 2);
    fprintf(fp, "%d / /RIGID\n%d %d %d\n\n", i, VertexID(v0) + 1, VertexID(v1) + 1, VertexID(v2) + 1);
  }

  // Write trailer
  fprintf(fp, "%%EOF\n");

  // Close file
  fclose(fp);

  // Return success
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
leaq 0x84666(%rip), %rsi     # 0xa77bd
movq %r15, %rdi
callq 0xe530
testq %rax, %rax
je 0x23247
movq %rax, %rbx
leaq 0x7f8cf(%rip), %rsi     # 0xa2a41
movq %rax, %rdi
xorl %eax, %eax
callq 0xe670
cmpl $0x0, 0x14(%r14)
jle 0x231c2
xorl %r12d, %r12d
leaq 0x7f8c0(%rip), %r15     # 0xa2a4d
movq 0x8(%r14), %rax
movq (%rax,%r12,8), %rax
movl 0x70(%rax), %edx
incl %edx
movsd 0x18(%rax), %xmm0
movsd 0x20(%rax), %xmm1
movsd 0x28(%rax), %xmm2
movq %rbx, %rdi
movq %r15, %rsi
movb $0x3, %al
callq 0xe670
incq %r12
movslq 0x14(%r14), %rax
cmpq %rax, %r12
jl 0x2318d
leaq 0x7f891(%rip), %rsi     # 0xa2a5a
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe670
cmpl $0x0, 0x34(%r14)
jle 0x23227
leaq 0x7f885(%rip), %r15     # 0xa2a66
xorl %r12d, %r12d
movq 0x28(%r14), %rax
movq (%rax,%r12,8), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rdx
movq 0x18(%rax), %rax
movl 0x70(%rcx), %ecx
incl %ecx
movl 0x70(%rdx), %r8d
incl %r8d
movl 0x70(%rax), %r9d
incl %r9d
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
xorl %eax, %eax
callq 0xe670
incq %r12
movslq 0x34(%r14), %rax
cmpq %rax, %r12
jl 0x231e4
leaq 0x7f84f(%rip), %rsi     # 0xa2a7d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe670
movq %rbx, %rdi
callq 0xe430
movl $0x1, %ebx
jmp 0x2325a
leaq 0x7f16f(%rip), %rdi     # 0xa23bd
xorl %ebx, %ebx
movq %r15, %rsi
xorl %eax, %eax
callq 0x72a1e
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq