// File: /workspace/github_c_makefile_star2_O2/markpeerdeman[P]mbemm/src/emath/linearc.c
// Function: norm_int
void norm_int(element te, hypermatrix c, hypermatrix e)
{ int i;

  fillhypermatrix(c,ZEROFILL);
  fillhypermatrix(e,ZEROFILL);

  for (i=1; i<=7; i++) 
  { /* node 1: */
    matcopy3x3(tf[i],temp);
    scalemat3x3(temp,xi1[i]*w[i]);
    matsum3x3(e->data[1],temp); 
    matcopy3x3(uf[i],temp);
    scalemat3x3(temp,xi1[i]*w[i]);
    matsum3x3(c->data[1],temp); 

    /* node 2: */
    matcopy3x3(tf[i],temp);
    scalemat3x3(temp,xi2[i]*w[i]);
    matsum3x3(e->data[2],temp); 
    matcopy3x3(uf[i],temp);
    scalemat3x3(temp,xi2[i]*w[i]); 
    matsum3x3(c->data[2],temp); 

    /* node 3: */
    matcopy3x3(tf[i],temp);
    scalemat3x3(temp,xi3[i]*w[i]);
    matsum3x3(e->data[3],temp); 
    matcopy3x3(uf[i],temp);
    scalemat3x3(temp,xi3[i]*w[i]);
    matsum3x3(c->data[3],temp); 

  } 
  /* scale the results with the jacobian: */
  for (i=1; i<=3; i++)
  { scalemat3x3(e->data[i],te->area);
    scalemat3x3(c->data[i],te->area);
  }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
movq %rsi, %rdi
xorl %esi, %esi
callq 0xb551
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb551
leaq 0xab0f(%rip), %rbp      # 0x143b0
cmpq $0x38, %r12
je 0x9a6d
movq 0xaff6(%rip), %rax      # 0x148a8
movq 0x8(%rax,%r12), %rdi
movq 0xafe2(%rip), %rsi      # 0x148a0
callq 0xbb20
movq 0xafd6(%rip), %rdi      # 0x148a0
leaq 0xaa1f(%rip), %r13      # 0x142f0
movsd 0x8(%r12,%r13), %xmm0
mulsd 0x8(%r12,%rbp), %xmm0
callq 0xb77b
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
movq 0xafad(%rip), %rsi      # 0x148a0
callq 0xb83f
movq 0xafb1(%rip), %rax      # 0x148b0
movq 0x8(%rax,%r12), %rdi
movq 0xaf95(%rip), %rsi      # 0x148a0
callq 0xbb20
movq 0xaf89(%rip), %rdi      # 0x148a0
movsd 0x8(%r12,%r13), %xmm0
mulsd 0x8(%r12,%rbp), %xmm0
callq 0xb77b
movq 0x8(%r14), %rax
movq 0x8(%rax), %rdi
movq 0xaf67(%rip), %rsi      # 0x148a0
callq 0xb83f
movq 0xaf63(%rip), %rax      # 0x148a8
movq 0x8(%rax,%r12), %rdi
movq 0xaf4f(%rip), %rsi      # 0x148a0
callq 0xbb20
movq 0xaf43(%rip), %rdi      # 0x148a0
leaq 0xa9cc(%rip), %r13      # 0x14330
movsd 0x8(%r12,%r13), %xmm0
mulsd 0x8(%r12,%rbp), %xmm0
callq 0xb77b
movq 0x8(%rbx), %rax
movq 0x10(%rax), %rdi
movq 0xaf1a(%rip), %rsi      # 0x148a0
callq 0xb83f
movq 0xaf1e(%rip), %rax      # 0x148b0
movq 0x8(%rax,%r12), %rdi
movq 0xaf02(%rip), %rsi      # 0x148a0
callq 0xbb20
movq 0xaef6(%rip), %rdi      # 0x148a0
movsd 0x8(%r12,%r13), %xmm0
mulsd 0x8(%r12,%rbp), %xmm0
callq 0xb77b
movq 0x8(%r14), %rax
movq 0x10(%rax), %rdi
movq 0xaed4(%rip), %rsi      # 0x148a0
callq 0xb83f
movq 0xaed0(%rip), %rax      # 0x148a8
movq 0x8(%rax,%r12), %rdi
movq 0xaebc(%rip), %rsi      # 0x148a0
callq 0xbb20
movq 0xaeb0(%rip), %rdi      # 0x148a0
leaq 0xa979(%rip), %r13      # 0x14370
movsd 0x8(%r12,%r13), %xmm0
mulsd 0x8(%r12,%rbp), %xmm0
callq 0xb77b
movq 0x8(%rbx), %rax
movq 0x18(%rax), %rdi
movq 0xae87(%rip), %rsi      # 0x148a0
callq 0xb83f
movq 0xae8b(%rip), %rax      # 0x148b0
movq 0x8(%rax,%r12), %rdi
movq 0xae6f(%rip), %rsi      # 0x148a0
callq 0xbb20
movq 0xae63(%rip), %rdi      # 0x148a0
movsd 0x8(%r12,%r13), %xmm0
mulsd 0x8(%r12,%rbp), %xmm0
callq 0xb77b
movq 0x8(%r14), %rax
movq 0x18(%rax), %rdi
movq 0xae41(%rip), %rsi      # 0x148a0
callq 0xb83f
addq $0x8, %r12
jmp 0x98a1
pushq $0x1
popq %r12
cmpq $0x4, %r12
je 0x9aa8
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %rdi
movsd 0xb8(%r15), %xmm0
callq 0xb77b
movq 0x8(%r14), %rax
movq (%rax,%r12,8), %rdi
movsd 0xb8(%r15), %xmm0
callq 0xb77b
incq %r12
jmp 0x9a71
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq