// File: /workspace/github_cpp_makefile_star2_O1/npaster[P]gmsh_tools/gmshMesh.cpp
// Function: gmsh::Gmesh::convertInDiscontinuousMesh1()
void
Gmesh::convertInDiscontinuousMesh1()
{
   const size_t      numberofNewNodes = 2 * _edges.size();
   std::vector<Node> oldNodes(_nodes);

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

   for (size_t i = 0; i < _edges.size(); i++) {
      std::vector<size_t> indexnodes = (_edges.at(i)).getNodes();

      for (size_t j = 0; j < 2; j++) {
         Node tmpNode((oldNodes.at(indexnodes.at(j) - 1)));
         tmpNode.changeIndex(indexCurrentNode);
         (_edges.at(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, %r14
movq 0x40(%rdi), %rax
subq 0x38(%rdi), %rax
sarq $0x3, %rax
movabsq $-0x2492492492492492, %rbx # imm = 0xDB6DB6DB6DB6DB6E
imulq %rax, %rbx
leaq 0x8(%rdi), %rsi
leaq -0x70(%rbp), %rdi
movq %rsi, -0x38(%rbp)
callq 0xa460
movq 0x8(%r14), %rax
cmpq %rax, 0x10(%r14)
je 0x9817
movq %rax, 0x10(%r14)
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
callq 0xaf8c
movq 0x38(%r14), %rsi
cmpq %rsi, 0x40(%r14)
je 0x99a2
movq %rbx, -0x40(%rbp)
movl $0x1, %eax
xorl %edi, %edi
movq %rax, %r12
movq %rdi, -0x30(%rbp)
imulq $0x38, %rdi, %r13
addq %r13, %rsi
leaq -0x58(%rbp), %rdi
callq 0x2bec
xorl %ebx, %ebx
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbx, %rdx
jbe 0x99cf
movq (%rax,%rbx,8), %rax
decq %rax
movq -0x70(%rbp), %rcx
movq -0x68(%rbp), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
imulq %rsi, %rdx
cmpq %rax, %rdx
jbe 0x99cc
movq %r12, %r15
addq %rbx, %r12
leaq (%rax,%rax,4), %rax
movq 0x20(%rcx,%rax,8), %rdx
movq %rdx, -0x80(%rbp)
movups (%rcx,%rax,8), %xmm0
movups 0x10(%rcx,%rax,8), %xmm1
movaps %xmm1, -0x90(%rbp)
movaps %xmm0, -0xa0(%rbp)
leaq -0xa0(%rbp), %rdi
movq %r12, %rsi
callq 0x2b26
movq 0x38(%r14), %rdi
movq 0x40(%r14), %rdx
subq %rdi, %rdx
sarq $0x3, %rdx
movabsq $0x6db6db6db6db6db7, %rax # imm = 0x6DB6DB6DB6DB6DB7
imulq %rax, %rdx
cmpq -0x30(%rbp), %rdx
jbe 0x99c6
addq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2c0e
movq 0x10(%r14), %rsi
cmpq 0x18(%r14), %rsi
je 0x9936
movq -0x80(%rbp), %rax
movq %rax, 0x20(%rsi)
movaps -0xa0(%rbp), %xmm0
movaps -0x90(%rbp), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x28, 0x10(%r14)
jmp 0x9946
movq -0x38(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
callq 0xb862
incq %rbx
cmpq $0x1, %rbx
movq %r15, %r12
je 0x9855
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x9964
callq 0x21e0
leaq (%r12,%rbx), %rax
movq -0x30(%rbp), %rdi
incq %rdi
movq 0x38(%r14), %rsi
movq 0x40(%r14), %rcx
subq %rsi, %rcx
sarq $0x3, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
cmpq %rcx, %rdi
jb 0x983c
leaq (%r12,%rbx), %rax
decq %rax
movq -0x40(%rbp), %rbx
jmp 0x99a4
xorl %eax, %eax
cmpq %rbx, %rax
jne 0x99e0
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x99b7
callq 0x21e0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x30(%rbp), %rbx
jmp 0x99cf
movq %rax, %rbx
leaq 0x832b(%rip), %rdi      # 0x11d01
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2270
leaq 0x81d9(%rip), %rdi      # 0x11bc0
leaq 0x7d36(%rip), %rsi      # 0x11724
leaq 0x81f4(%rip), %rcx      # 0x11be9
movl $0x323, %edx            # imm = 0x323
callq 0x2150
jmp 0x9a01
movq %rax, %rbx
jmp 0x9a19
jmp 0x9a08
movq %rax, %rbx
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x9a19
callq 0x21e0
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x9a27
callq 0x21e0
movq %rbx, %rdi
callq 0x22f0
nop