// File: /workspace/github_c_makefile_star2_O2/markpeerdeman[P]mbemm/src/emath/contactc.c
// Function: make_rowc
void make_rowc(point sourcenode, hypermatrix crow, hypermatrix erow,
                                hypermatrix c,    hypermatrix e, cmesh theCMesh)
{ element fieldelement;
  int i;
  mesh theMesh;

  theMesh=theCMesh->merged_mesh;

  fillhypermatrix(crow,ZEROFILL);
  fillhypermatrix(erow,ZEROFILL);

  fieldelement=(element)element_dll(theMesh->mesh_e,START,0);
  while (fieldelement!=(element)NULL)
  { /* Do collocations when in the right matrix quadrant: */
    if ( ((sourcenode->label<=theCMesh->nr_of_nodes_basemesh) &&
          (fieldelement->label<=theCMesh->nr_of_elements_basemesh)) ||
         ((sourcenode->label>theCMesh->nr_of_nodes_basemesh) &&
          (fieldelement->label>theCMesh->nr_of_elements_basemesh)) )
    { collocatec(sourcenode,fieldelement,c,e);

      matsum3x3(crow->data[fieldelement->p1],c->data[1]);
      matsum3x3(erow->data[fieldelement->p1],e->data[1]);

      matsum3x3(crow->data[fieldelement->p2],c->data[2]);
      matsum3x3(erow->data[fieldelement->p2],e->data[2]);

      matsum3x3(crow->data[fieldelement->p3],c->data[3]);
      matsum3x3(erow->data[fieldelement->p3],e->data[3]);
    }

    fieldelement=fieldelement->NEXT;
  }

  /* complete the diagonal term: */
  fillmatrix(erow->data[sourcenode->label],ZEROFILL);
  for (i=1; i<=cn_nodes; i++)
  { if (i!=sourcenode->label)
    { matsum3x3(erow->data[sourcenode->label],erow->data[i]);
    }  
  }
  scalemat3x3(erow->data[sourcenode->label],-1.0);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r15
movq %r8, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, %rbx
movq %rdi, %r12
movq (%r9), %rbp
movq %rsi, 0x20(%rsp)
movq %rsi, %rdi
xorl %esi, %esi
callq 0xb551
movq %rbx, (%rsp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb551
movq 0x8(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xad45
movq %rax, %rbp
movq %r15, 0x8(%rsp)
movq 0x18(%rsp), %r13
movq 0x20(%rsp), %rbx
movq (%rsp), %r14
testq %rbp, %rbp
je 0x6793
movl 0x10(%r12), %eax
cmpl 0x8(%r15), %eax
setg %al
movl 0x14(%rbp), %ecx
cmpl 0xc(%r15), %ecx
setg %cl
xorb %al, %cl
jne 0x678a
movq %r12, %rdi
movq %rbp, %rsi
movq 0x10(%rsp), %r15
movq %r15, %rdx
movq %r13, %rcx
callq 0x65f2
movq 0x8(%rbx), %rax
movslq 0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%r15), %rax
movq 0x8(%rax), %rsi
callq 0xb83f
movq 0x8(%r14), %rax
movslq 0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%r13), %rax
movq 0x8(%rax), %rsi
callq 0xb83f
movq 0x8(%rbx), %rax
movslq 0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%r15), %rax
movq 0x10(%rax), %rsi
callq 0xb83f
movq 0x8(%r14), %rax
movslq 0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%r13), %rax
movq 0x10(%rax), %rsi
callq 0xb83f
movq 0x8(%rbx), %rax
movslq 0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%r15), %rax
movq 0x8(%rsp), %r15
movq 0x18(%rax), %rsi
callq 0xb83f
movq 0x8(%r14), %rax
movslq 0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%r13), %rax
movq 0x18(%rax), %rsi
callq 0xb83f
movq 0x8(%rbp), %rbp
jmp 0x66b2
movq (%rsp), %rbx
movq 0x8(%rbx), %rax
movslq 0x10(%r12), %rcx
movq (%rax,%rcx,8), %rdi
xorl %esi, %esi
callq 0xb45d
pushq $0x1
popq %r15
movl 0xdfbb(%rip), %eax      # 0x14770
movslq %eax, %rcx
cmpq %rcx, %r15
jg 0x67e6
movl 0x10(%r12), %ecx
cmpq %rcx, %r15
je 0x67e1
movslq %ecx, %rax
movq 0x8(%rbx), %rcx
movq (%rcx,%rax,8), %rdi
movq (%rcx,%r15,8), %rsi
callq 0xb83f
movl 0xdf8f(%rip), %eax      # 0x14770
incq %r15
jmp 0x67b5
movq 0x8(%rbx), %rax
movslq 0x10(%r12), %rcx
movq (%rax,%rcx,8), %rdi
movsd 0x77d5(%rip), %xmm0     # 0xdfd0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb77b