// File: /workspace/github_cpp_makefile_star2_O1/npaster[P]gmsh_tools/gmshMesh.cpp
// Function: gmsh::Gmesh::convertInDiscontinuousMesh3()
void
Gmesh::convertInDiscontinuousMesh3()
{
   const size_t numberofNewNodes =
     4 * _tetrahedra.size() + 5 * _pyramids.size() + 6 * _prisms.size() + 8 * _hexahedra.size();
   std::vector<Node> oldNodes(_nodes);

   _nodes.clear();
   _nodes.reserve(numberofNewNodes);
   size_t indexCurrentNode = 1;

   if (_edges.size() > 0) {
      _number_of_elements -= _edges.size();
      _edges.clear();
   }

   if (_triangles.size() > 0) {
      _number_of_elements -= _triangles.size();
      _triangles.clear();
   }

   if (_quadrangles.size() > 0) {
      _number_of_elements -= _quadrangles.size();
      _quadrangles.clear();
   }

   for (size_t i = 0; i < _hexahedra.size(); i++) {
      std::vector<size_t> indexnodes = _hexahedra[i].getNodes();
      for (size_t j = 0; j < 8; j++) {
         Node tmpNode(oldNodes[indexnodes[j] - 1]);
         tmpNode.changeIndex(indexCurrentNode);
         _hexahedra[i].changeNode(j, indexCurrentNode);
         _nodes.push_back(tmpNode);
         indexCurrentNode += 1;
      }
   }

   for (size_t i = 0; i < _tetrahedra.size(); i++) {
      std::vector<size_t> indexnodes = _tetrahedra[i].getNodes();
      for (size_t j = 0; j < 4; j++) {
         Node tmpNode(oldNodes[indexnodes[j] - 1]);
         tmpNode.changeIndex(indexCurrentNode);
         _tetrahedra[i].changeNode(j, indexCurrentNode);
         _nodes.push_back(tmpNode);
         indexCurrentNode += 1;
      }
   }

   for (size_t i = 0; i < _prisms.size(); i++) {
      std::vector<size_t> indexnodes = _prisms[i].getNodes();
      for (size_t j = 0; j < 6; j++) {
         Node tmpNode(oldNodes[indexnodes[j] - 1]);
         tmpNode.changeIndex(indexCurrentNode);
         _prisms[i].changeNode(j, indexCurrentNode);
         _nodes.push_back(tmpNode);
         indexCurrentNode += 1;
      }
   }

   for (size_t i = 0; i < _pyramids.size(); i++) {
      std::vector<size_t> indexnodes = _pyramids[i].getNodes();
      for (size_t j = 0; j < 5; j++) {
         Node tmpNode(oldNodes[indexnodes[j] - 1]);
         tmpNode.changeIndex(indexCurrentNode);
         _pyramids[i].changeNode(j, indexCurrentNode);
         _nodes.push_back(tmpNode);
         indexCurrentNode += 1;
      }
   }
   assert(indexCurrentNode - 1 == numberofNewNodes);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movq 0x88(%rdi), %rcx
movq 0xa0(%rdi), %rax
subq 0x80(%rdi), %rcx
sarq $0x3, %rcx
movabsq $-0x4924924924924924, %rdx # imm = 0xB6DB6DB6DB6DB6DC
imulq %rcx, %rdx
movq 0xd0(%rdi), %rcx
subq 0xc8(%rdi), %rcx
sarq $0x3, %rcx
movabsq $0x2492492492492493, %rsi # imm = 0x2492492492492493
imulq %rcx, %rsi
movq 0xb8(%rdi), %rcx
subq 0xb0(%rdi), %rcx
addq %rdx, %rsi
sarq $0x3, %rcx
movabsq $-0x6db6db6db6db6db6, %rdx # imm = 0x924924924924924A
imulq %rcx, %rdx
subq 0x98(%rdi), %rax
shrq $0x3, %rax
movabsq $0x6db6db6db6db6db8, %r15 # imm = 0x6DB6DB6DB6DB6DB8
imulq %rax, %r15
addq %rdx, %r15
addq %rsi, %r15
leaq 0x8(%rdi), %rsi
leaq -0x98(%rbp), %rdi
movq %rsi, -0x68(%rbp)
callq 0xa460
movq 0x8(%rbx), %rax
cmpq %rax, 0x10(%rbx)
je 0x9e21
movq %rax, 0x10(%rbx)
movq -0x68(%rbp), %rdi
movq %r15, %rsi
callq 0xaf8c
movq 0x40(%rbx), %rax
movabsq $-0x6db6db6db6db6db7, %r14 # imm = 0x9249249249249249
subq 0x38(%rbx), %rax
je 0x9e59
leaq 0x38(%rbx), %rdi
sarq $0x3, %rax
imulq %r14, %rax
addq %rax, 0xe0(%rbx)
callq 0xb05c
movq 0x58(%rbx), %rax
subq 0x50(%rbx), %rax
je 0x9e7b
leaq 0x50(%rbx), %rdi
sarq $0x3, %rax
imulq %r14, %rax
addq %rax, 0xe0(%rbx)
callq 0xb09e
movq 0x70(%rbx), %rax
subq 0x68(%rbx), %rax
je 0x9e9d
leaq 0x68(%rbx), %rdi
sarq $0x3, %rax
imulq %r14, %rax
addq %rax, 0xe0(%rbx)
callq 0xb0e0
movq %r15, -0xa0(%rbp)
movq 0x98(%rbx), %rsi
cmpq %rsi, 0xa0(%rbx)
je 0x9fbd
movl $0x1, %eax
xorl %edi, %edi
movq %rax, %r12
movq %rdi, -0x30(%rbp)
imulq $0x38, %rdi, %r13
addq %r13, %rsi
leaq -0x80(%rbp), %rdi
callq 0x2bec
xorl %r14d, %r14d
movq %r12, %r15
addq %r14, %r12
movq -0x80(%rbp), %rax
movq (%rax,%r14,8), %rax
movq -0x98(%rbp), %rcx
leaq (%rax,%rax,4), %rax
movups -0x28(%rcx,%rax,8), %xmm0
movups -0x18(%rcx,%rax,8), %xmm1
movaps %xmm0, -0x60(%rbp)
movaps %xmm1, -0x50(%rbp)
movq -0x8(%rcx,%rax,8), %rax
movq %rax, -0x40(%rbp)
leaq -0x60(%rbp), %rdi
movq %r12, %rsi
callq 0x2b26
movq 0x98(%rbx), %rdi
addq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2c0e
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x9f56
movq -0x40(%rbp), %rax
movq %rax, 0x20(%rsi)
movaps -0x60(%rbp), %xmm0
movaps -0x50(%rbp), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x28, 0x10(%rbx)
jmp 0x9f63
movq -0x68(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0xb862
incq %r14
cmpq $0x8, %r14
movq %r15, %r12
jne 0x9ed9
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x9f81
callq 0x21e0
leaq (%r12,%r14), %rax
movq -0x30(%rbp), %rdi
incq %rdi
movq 0x98(%rbx), %rsi
movq 0xa0(%rbx), %rcx
subq %rsi, %rcx
sarq $0x3, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
cmpq %rcx, %rdi
jb 0x9ebf
addq %r14, %r12
jmp 0x9fc3
movl $0x1, %r12d
movq 0x80(%rbx), %rsi
cmpq %rsi, 0x88(%rbx)
je 0xa0d3
xorl %edx, %edx
movq %r12, %r15
movq %rdx, -0x30(%rbp)
imulq $0x38, %rdx, %r13
addq %r13, %rsi
leaq -0x80(%rbp), %rdi
callq 0x2bec
xorl %r14d, %r14d
leaq (%r15,%r14), %r12
movq -0x80(%rbp), %rax
movq (%rax,%r14,8), %rax
movq -0x98(%rbp), %rcx
leaq (%rax,%rax,4), %rax
movups -0x28(%rcx,%rax,8), %xmm0
movups -0x18(%rcx,%rax,8), %xmm1
movaps %xmm0, -0x60(%rbp)
movaps %xmm1, -0x50(%rbp)
movq -0x8(%rcx,%rax,8), %rax
movq %rax, -0x40(%rbp)
leaq -0x60(%rbp), %rdi
movq %r12, %rsi
callq 0x2b26
movq 0x80(%rbx), %rdi
addq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2c0e
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0xa06e
movq -0x40(%rbp), %rax
movq %rax, 0x20(%rsi)
movaps -0x60(%rbp), %xmm0
movaps -0x50(%rbp), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x28, 0x10(%rbx)
jmp 0xa07b
movq -0x68(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0xb862
incq %r14
cmpq $0x4, %r14
jne 0x9ff3
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0xa096
callq 0x21e0
leaq (%r15,%r14), %r12
movq -0x30(%rbp), %rdx
incq %rdx
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rax
subq %rsi, %rax
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rcx, %rax
cmpq %rax, %rdx
jb 0x9fd9
addq %r14, %r15
movq %r15, %r12
movq 0xb0(%rbx), %rsi
cmpq %rsi, 0xb8(%rbx)
je 0xa1e3
xorl %edx, %edx
movq %r12, %r13
movq %rdx, -0x30(%rbp)
imulq $0x38, %rdx, %r15
addq %r15, %rsi
leaq -0x80(%rbp), %rdi
callq 0x2bec
xorl %r14d, %r14d
leaq (%r14,%r13), %r12
movq -0x80(%rbp), %rax
movq (%rax,%r14,8), %rax
movq -0x98(%rbp), %rcx
leaq (%rax,%rax,4), %rax
movups -0x28(%rcx,%rax,8), %xmm0
movups -0x18(%rcx,%rax,8), %xmm1
movaps %xmm0, -0x60(%rbp)
movaps %xmm1, -0x50(%rbp)
movq -0x8(%rcx,%rax,8), %rax
movq %rax, -0x40(%rbp)
leaq -0x60(%rbp), %rdi
movq %r12, %rsi
callq 0x2b26
movq 0xb0(%rbx), %rdi
addq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2c0e
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0xa17e
movq -0x40(%rbp), %rax
movq %rax, 0x20(%rsi)
movaps -0x60(%rbp), %xmm0
movaps -0x50(%rbp), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x28, 0x10(%rbx)
jmp 0xa18b
movq -0x68(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0xb862
incq %r14
cmpq $0x6, %r14
jne 0xa103
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0xa1a6
callq 0x21e0
leaq (%r14,%r13), %r12
movq -0x30(%rbp), %rdx
incq %rdx
movq 0xb0(%rbx), %rsi
movq 0xb8(%rbx), %rax
subq %rsi, %rax
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rcx, %rax
cmpq %rax, %rdx
jb 0xa0e9
addq %r14, %r13
movq %r13, %r12
movq 0xc8(%rbx), %rsi
cmpq %rsi, 0xd0(%rbx)
je 0xa2f3
xorl %edx, %edx
movq %r12, %r13
movq %rdx, -0x30(%rbp)
imulq $0x38, %rdx, %r15
addq %r15, %rsi
leaq -0x80(%rbp), %rdi
callq 0x2bec
xorl %r14d, %r14d
leaq (%r14,%r13), %r12
movq -0x80(%rbp), %rax
movq (%rax,%r14,8), %rax
movq -0x98(%rbp), %rcx
leaq (%rax,%rax,4), %rax
movups -0x28(%rcx,%rax,8), %xmm0
movups -0x18(%rcx,%rax,8), %xmm1
movaps %xmm0, -0x60(%rbp)
movaps %xmm1, -0x50(%rbp)
movq -0x8(%rcx,%rax,8), %rax
movq %rax, -0x40(%rbp)
leaq -0x60(%rbp), %rdi
movq %r12, %rsi
callq 0x2b26
movq 0xc8(%rbx), %rdi
addq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2c0e
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0xa28e
movq -0x40(%rbp), %rax
movq %rax, 0x20(%rsi)
movaps -0x60(%rbp), %xmm0
movaps -0x50(%rbp), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x28, 0x10(%rbx)
jmp 0xa29b
movq -0x68(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0xb862
incq %r14
cmpq $0x5, %r14
jne 0xa213
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0xa2b6
callq 0x21e0
leaq (%r14,%r13), %r12
movq -0x30(%rbp), %rdx
incq %rdx
movq 0xc8(%rbx), %rsi
movq 0xd0(%rbx), %rax
subq %rsi, %rax
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rcx, %rax
cmpq %rax, %rdx
jb 0xa1f9
addq %r14, %r13
movq %r13, %r12
decq %r12
cmpq -0xa0(%rbp), %r12
jne 0xa31f
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0xa310
callq 0x21e0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x789a(%rip), %rdi      # 0x11bc0
leaq 0x73f7(%rip), %rsi      # 0x11724
leaq 0x7915(%rip), %rcx      # 0x11c49
movl $0x393, %edx            # imm = 0x393
callq 0x2150
jmp 0xa346
jmp 0xa346
jmp 0xa346
jmp 0xa346
movq %rax, %rbx
jmp 0xa362
jmp 0xa351
jmp 0xa351
jmp 0xa351
movq %rax, %rbx
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0xa362
callq 0x21e0
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0xa373
callq 0x21e0
movq %rbx, %rdi
callq 0x22f0
nop