// File: /workspace/github_cpp_makefile_star2_O1/npaster[P]gmsh_tools/gmshMesh.cpp
// Function: gmsh::Gmesh::convertInDiscontinuousMesh2()
void
Gmesh::convertInDiscontinuousMesh2()
{
   const size_t      numberofNewNodes = 3 * _triangles.size() + 4 * _quadrangles.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();
   }

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

   for (size_t i = 0; i < _quadrangles.size(); i++) {
      std::vector<size_t> indexnodes = _quadrangles[i].getNodes();
      for (size_t j = 0; j < 4; j++) {
         Node tmpNode(oldNodes[indexnodes[j] - 1]);
         tmpNode.changeIndex(indexCurrentNode);
         _quadrangles[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 0x58(%rdi), %rax
movq 0x70(%rdi), %rcx
subq 0x50(%rdi), %rax
sarq $0x3, %rax
movabsq $0x4924924924924925, %rdx # imm = 0x4924924924924925
imulq %rax, %rdx
subq 0x68(%rdi), %rcx
sarq $0x3, %rcx
movabsq $-0x4924924924924924, %r14 # imm = 0xB6DB6DB6DB6DB6DC
imulq %rcx, %r14
addq %rdx, %r14
leaq 0x8(%rdi), %rsi
leaq -0x98(%rbp), %rdi
movq %rsi, -0x38(%rbp)
callq 0xa460
movq 0x8(%rbx), %rax
cmpq %rax, 0x10(%rbx)
je 0x9a9d
movq %rax, 0x10(%rbx)
movq -0x38(%rbp), %rdi
movq %r14, %rsi
callq 0xaf8c
movq 0x40(%rbx), %rax
subq 0x38(%rbx), %rax
je 0x9ad5
leaq 0x38(%rbx), %rdi
sarq $0x3, %rax
movabsq $-0x6db6db6db6db6db7, %rcx # imm = 0x9249249249249249
imulq %rax, %rcx
addq %rcx, 0xe0(%rbx)
callq 0xb05c
movq %r14, -0x80(%rbp)
movq 0x50(%rbx), %rsi
cmpq %rsi, 0x58(%rbx)
je 0x9bde
movl $0x1, %eax
xorl %edi, %edi
movq %rax, %r13
movq %rdi, -0x30(%rbp)
imulq $0x38, %rdi, %r15
addq %r15, %rsi
leaq -0x78(%rbp), %rdi
callq 0x2bec
xorl %r14d, %r14d
leaq (%r14,%r13), %r12
movq -0x78(%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 0x50(%rbx), %rdi
addq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2c0e
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x9b80
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 0x9b8d
movq -0x38(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0xb862
incq %r14
cmpq $0x3, %r14
jne 0x9b08
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x9ba8
callq 0x21e0
leaq (%r14,%r13), %rax
movq -0x30(%rbp), %rdi
incq %rdi
movq 0x50(%rbx), %rsi
movq 0x58(%rbx), %rcx
subq %rsi, %rcx
sarq $0x3, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
cmpq %rcx, %rdi
jb 0x9aee
addq %r14, %r13
jmp 0x9be4
movl $0x1, %r13d
movq 0x68(%rbx), %rsi
cmpq %rsi, 0x70(%rbx)
je 0x9ce5
xorl %edx, %edx
movq %r13, %r15
movq %rdx, -0x30(%rbp)
imulq $0x38, %rdx, %r13
addq %r13, %rsi
leaq -0x78(%rbp), %rdi
callq 0x2bec
xorl %r14d, %r14d
leaq (%r15,%r14), %r12
movq -0x78(%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 0x68(%rbx), %rdi
addq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2c0e
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x9c86
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 0x9c93
movq -0x38(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0xb862
incq %r14
cmpq $0x4, %r14
jne 0x9c0e
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x9cae
callq 0x21e0
leaq (%r15,%r14), %r13
movq -0x30(%rbp), %rdx
incq %rdx
movq 0x68(%rbx), %rsi
movq 0x70(%rbx), %rax
subq %rsi, %rax
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rcx, %rax
cmpq %rax, %rdx
jb 0x9bf4
addq %r14, %r15
movq %r15, %r13
decq %r13
cmpq -0x80(%rbp), %r13
jne 0x9d0e
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0x9cff
callq 0x21e0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7eab(%rip), %rdi      # 0x11bc0
leaq 0x7a08(%rip), %rsi      # 0x11724
leaq 0x7ef6(%rip), %rcx      # 0x11c19
movl $0x34b, %edx            # imm = 0x34B
callq 0x2150
jmp 0x9d31
jmp 0x9d31
movq %rax, %rbx
jmp 0x9d49
jmp 0x9d38
movq %rax, %rbx
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x9d49
callq 0x21e0
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0x9d5a
callq 0x21e0
movq %rbx, %rdi
callq 0x22f0