// File: /workspace/github_c_makefile_star2_O2/markpeerdeman[P]mbemm/src/emath/contactc.c
// Function: printstatusc
void printstatusc(mesh theMesh) /* prints database/memory statistics */
{ point p; element e; restraint t; restraint d; long m_size; int lab;
fprintf(stderr,"\n=================================================================\n");
fprintf(stderr,"                SUMMARY FOR THIS ANALYSIS:\n");
fprintf(stderr,"-----------------------------------------------------------------\n");
  fprintf(stderr,"\nDatabase information:\n");
  p=(point)point_dll(theMesh->mesh_p,START,0); cn_nodes=1;
  while (p->NEXT!=(point)NULL) 
  { cn_nodes++; 
    p=p->NEXT; 
  } 
  theMesh->nr_of_nodes=cn_nodes;
  fprintf(stderr,"* number of points loaded:        %12d\n",cn_nodes);

  e=(element)element_dll(theMesh->mesh_e,START,0); cn_elements=1;
  while (e->NEXT!=(element)NULL) { cn_elements++; e=e->NEXT; }
  theMesh->nr_of_elements=cn_elements;
  fprintf(stderr,"* number of elements loaded:      %12d\n", cn_elements);
  if (cn_elements>500) {
  }

  t=(restraint)restraint_dll(theMesh->mesh_t,START,0); cn_tractions=1;
  if (theMesh->mesh_t->NEXT==(restraint)NULL) { cn_tractions=0; theMesh->nr_of_tractions=0;}
  else
  while (t->NEXT!=(restraint)NULL) { cn_tractions++; t=t->NEXT; }
  theMesh->nr_of_tractions=cn_tractions;
  fprintf(stderr,"* number of tractions loaded:     %12d\n", cn_tractions);

  d=(restraint)restraint_dll(theMesh->mesh_d,START,0); cn_displacements=1;
  if (theMesh->mesh_d->NEXT==(restraint)NULL) { cn_displacements=0; theMesh->nr_of_displacements=0;}
  else
  while (d->NEXT!=(restraint)NULL) { cn_displacements++; d=d->NEXT; }
  theMesh->nr_of_displacements=cn_displacements;
  fprintf(stderr,"* number of displacements loaded: %12d\n", cn_displacements);
  
  m_size=(long)(cn_nodes*(int)sizeof(pointtype)+cn_elements*
  (int)sizeof(elementtype)+(cn_tractions+cn_displacements)*
  (int)sizeof(restrainttype))/(long)1024;
  fprintf(stderr,"\nThe database occupies %d kB in memory.\n",(int)m_size);
  fprintf(stderr,"The total memory requirements for this run will be %d kB.\n\n",
		 (int)(m_size+(long)(8*cn_nodes*3*cn_nodes*(int)sizeof(double))/
		 (long)1024));
  for (m_size=1; m_size<=(long)cn_nodes; m_size++)
  { p=(point)point_dll(theMesh->mesh_p,SEARCH,(int)m_size);
	if (CURRENT_STATUS!=GREEN) evaluate_level(RED,106); }
  for (m_size=1; m_size<=(long)cn_elements; m_size++)
  { e=(element)element_dll(theMesh->mesh_e,SEARCH,(int)m_size);
	if (CURRENT_STATUS!=GREEN) evaluate_level(RED,107); }
  fprintf(stderr,"Material data:\n* E  = %.10lE\n* MU = %.10lE\n* NU = %f\n\n",
  EMOD,MU,NU);
fprintf(stderr,"-----------------------------------------------------------------\n\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xe277(%rip), %r12      # 0x13ff8
movq (%r12), %rcx
leaq 0x824c(%rip), %rdi      # 0xdfd8
pushq $0x43
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
callq 0x1190
movq (%r12), %rcx
leaq 0x8276(%rip), %rdi      # 0xe01c
pushq $0x2b
popq %rsi
movq %r14, %rdx
callq 0x1190
movq (%r12), %rcx
leaq 0x7469(%rip), %rdi      # 0xd225
pushq $0x42
popq %rsi
movq %r14, %rdx
callq 0x1190
movq (%r12), %rcx
leaq 0x8276(%rip), %rdi      # 0xe048
pushq $0x17
popq %rsi
movq %r14, %rdx
callq 0x1190
movq (%rbx), %rdi
xorl %ebp, %ebp
xorl %esi, %esi
xorl %edx, %edx
callq 0xc14c
movq 0x8(%rax), %rax
incl %ebp
testq %rax, %rax
jne 0x5deb
movl %ebp, 0xe974(%rip)      # 0x14770
movl %ebp, 0x20(%rbx)
movq (%r12), %rdi
leaq 0x8256(%rip), %rsi      # 0xe060
xorl %r15d, %r15d
movl %ebp, %edx
xorl %eax, %eax
callq 0x10f0
movq 0x8(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xad45
movq 0x8(%rax), %rax
incl %r15d
testq %rax, %rax
jne 0x5e23
movl %r15d, 0xe93e(%rip)     # 0x14774
movl %r15d, 0x24(%rbx)
movq (%r12), %rdi
leaq 0x8243(%rip), %rsi      # 0xe088
xorl %ebp, %ebp
movl %r15d, %edx
xorl %eax, %eax
callq 0x10f0
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xc3a0
movl $0x1, 0xe910(%rip)      # 0x14778
movq 0x18(%rbx), %rcx
cmpq $0x0, 0x8(%rcx)
jne 0x602d
andl $0x0, 0xe8fa(%rip)      # 0x14778
movl %ebp, 0x2c(%rbx)
movq (%r12), %rdi
leaq 0x8224(%rip), %rsi      # 0xe0b0
xorl %r15d, %r15d
movl %ebp, %edx
xorl %eax, %eax
callq 0x10f0
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xc3a0
movl $0x1, 0xe8cd(%rip)      # 0x1477c
movq 0x10(%rbx), %rcx
cmpq $0x0, 0x8(%rcx)
jne 0x6047
andl $0x0, 0xe8b7(%rip)      # 0x1477c
movl %r15d, 0x28(%rbx)
movq (%r12), %rdi
leaq 0x8204(%rip), %rsi      # 0xe0d8
movl %r15d, %edx
xorl %eax, %eax
callq 0x10f0
imull $0x88, 0xe888(%rip), %eax # 0x14770
imull $0xc0, 0xe882(%rip), %ecx # 0x14774
addl %eax, %ecx
movl 0xe882(%rip), %eax      # 0x1477c
addl 0xe878(%rip), %eax      # 0x14778
imull $0x48, %eax, %eax
addl %ecx, %eax
movl $0x400, %ecx            # imm = 0x400
cltd
idivl %ecx
movl %eax, %ebp
movq (%r12), %rdi
leaq 0x81e6(%rip), %rsi      # 0xe100
movl %eax, %edx
xorl %eax, %eax
callq 0x10f0
movq (%r12), %rdi
movl 0xe843(%rip), %eax      # 0x14770
imull %eax, %eax
imull $0x18, %eax, %eax
movl $0x80, %ecx
cltd
idivl %ecx
addl %eax, %ebp
leaq 0x81e5(%rip), %rsi      # 0xe129
movl %ebp, %edx
xorl %eax, %eax
callq 0x10f0
pushq $0x2
popq %rbp
leaq 0xe971(%rip), %r13      # 0x148c8
pushq $0x6a
popq %r15
movslq 0xe80e(%rip), %rax      # 0x14770
cmpq %rax, %r14
jg 0x5f8a
movq (%rbx), %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0xc14c
cmpl $0x0, (%r13)
je 0x5f85
movl %ebp, %edi
movl %r15d, %esi
callq 0xb0f8
incq %r14
jmp 0x5f5b
pushq $0x1
popq %r14
pushq $0x2
popq %rbp
pushq $0x6b
popq %r15
movslq 0xe7d8(%rip), %rax      # 0x14774
cmpq %rax, %r14
jg 0x5fc5
movq 0x8(%rbx), %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0xad45
cmpl $0x0, (%r13)
je 0x5fc0
movl %ebp, %edi
movl %r15d, %esi
callq 0xb0f8
incq %r14
jmp 0x5f95
movq (%r12), %rdi
leaq 0xe428(%rip), %rax      # 0x143f8
movsd (%rax), %xmm0
movsd 0x7484(%rip), %xmm1     # 0xd460
mulsd %xmm0, %xmm1
leaq 0xe419(%rip), %rax      # 0x14400
movsd (%rax), %xmm2
movsd 0x7015(%rip), %xmm3     # 0xd008
addsd %xmm2, %xmm3
divsd %xmm3, %xmm1
leaq 0x8163(%rip), %rsi      # 0xe165
movb $0x3, %al
callq 0x10f0
movq (%r12), %rcx
leaq 0x8188(%rip), %rdi      # 0xe19c
pushq $0x43
popq %rsi
pushq $0x1
popq %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1190
pushq $0x1
popq %rbp
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x5e7e
incl %ebp
movl %ebp, 0xe733(%rip)      # 0x14778
jmp 0x6030
pushq $0x1
popq %r15
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x5ec5
incl %r15d
movl %r15d, 0xe71a(%rip)     # 0x1477c
jmp 0x604b