// File: /workspace/github_cpp_makefile_star2_O3/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 0xa462
movq 0x8(%r14), %rax
cmpq %rax, 0x10(%r14)
je 0x9819
movq %rax, 0x10(%r14)
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
callq 0xafd8
movq 0x38(%r14), %rsi
cmpq %rsi, 0x40(%r14)
je 0x99a1
movq %rbx, -0x40(%rbp)
movl $0x1, %r12d
xorl %ecx, %ecx
movq %rcx, -0x30(%rbp)
imulq $0x38, %rcx, %rbx
addq %rbx, %rsi
leaq -0x58(%rbp), %rdi
callq 0x2bec
movb $0x1, %r15b
xorl %r13d, %r13d
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r13, %rdx
jbe 0x99cf
movq (%rax,%r13,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
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 %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x2c0e
movq 0x10(%r14), %rsi
cmpq 0x18(%r14), %rsi
je 0x9934
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 0x9944
movq -0x38(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
callq 0xb8b2
incq %r12
movl $0x1, %r13d
testb $0x1, %r15b
movl $0x0, %r15d
jne 0x9859
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x996b
callq 0x21e0
movq -0x30(%rbp), %rcx
incq %rcx
movq 0x38(%r14), %rsi
movq 0x40(%r14), %rax
subq %rsi, %rax
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rax
cmpq %rax, %rcx
jb 0x983f
decq %r12
movq -0x40(%rbp), %rbx
jmp 0x99a4
xorl %r12d, %r12d
cmpq %rbx, %r12
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), %r13
jmp 0x99cf
movq %rax, %r13
leaq 0x832b(%rip), %rdi      # 0x11d01
movq %r13, %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