// File: /workspace/github_c_makefile_star2_O3/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 0xbe66
movq %rbx, (%rsp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xbe66
movq 0x8(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb570
testq %rax, %rax
je 0x7699
movq %rax, %rbp
movq %r15, 0x8(%rsp)
movq 0x18(%rsp), %r13
movq 0x20(%rsp), %rbx
movq (%rsp), %r14
movl 0x10(%r12), %eax
cmpl 0x8(%r15), %eax
setg %al
movl 0x14(%rbp), %ecx
cmpl 0xc(%r15), %ecx
setg %cl
xorb %al, %cl
jne 0x768c
movq %r12, %rdi
movq %rbp, %rsi
movq 0x10(%rsp), %r15
movq %r15, %rdx
movq %r13, %rcx
callq 0x74f4
movq 0x8(%rbx), %rax
movslq 0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%r15), %rax
movq 0x8(%rax), %rsi
callq 0xc355
movq 0x8(%r14), %rax
movslq 0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%r13), %rax
movq 0x8(%rax), %rsi
callq 0xc355
movq 0x8(%rbx), %rax
movslq 0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%r15), %rax
movq 0x10(%rax), %rsi
callq 0xc355
movq 0x8(%r14), %rax
movslq 0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%r13), %rax
movq 0x10(%rax), %rsi
callq 0xc355
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 0xc355
movq 0x8(%r14), %rax
movslq 0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x8(%r13), %rax
movq 0x18(%rax), %rsi
callq 0xc355
movq 0x8(%rbp), %rbp
testq %rbp, %rbp
jne 0x75bd
movq (%rsp), %rbx
movq 0x8(%rbx), %rax
movslq 0x10(%r12), %rcx
movq (%rax,%rcx,8), %rdi
xorl %esi, %esi
callq 0xbc43
movl 0xe0c9(%rip), %eax      # 0x15780
testl %eax, %eax
jle 0x76f4
movl $0x1, %r15d
movl 0x10(%r12), %ecx
cmpq %rcx, %r15
je 0x76e5
movslq %ecx, %rax
movq 0x8(%rbx), %rcx
movq (%rcx,%rax,8), %rdi
movq (%rcx,%r15,8), %rsi
callq 0xc355
movl 0xe09b(%rip), %eax      # 0x15780
leaq 0x1(%r15), %rcx
movslq %eax, %rdx
cmpq %rdx, %r15
movq %rcx, %r15
jl 0x76c1
movq 0x8(%rbx), %rax
movslq 0x10(%r12), %rcx
movq (%rax,%rcx,8), %rdi
movsd 0x78f7(%rip), %xmm0     # 0xf000
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc288