// File: /workspace/github_c_makefile_star2_O2/markpeerdeman[P]mbemm/src/emath/linearc.c
// Function: printstatus
void printstatus(mesh theMesh) /* prints database/memory statistics */
{ point p; element e; restraint t; restraint d; long m_size;
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); n_nodes=1;
  while (p->NEXT!=(point)NULL) { n_nodes++; p=p->NEXT; } 
  theMesh->nr_of_nodes=n_nodes;
  fprintf(stderr,"* number of points loaded:        %12d\n",n_nodes);

  e=(element)element_dll(theMesh->mesh_e,START,0); n_elements=1;
  while (e->NEXT!=(element)NULL) { n_elements++; e=e->NEXT; }
  theMesh->nr_of_elements=n_elements;
  fprintf(stderr,"* number of elements loaded:      %12d\n", n_elements);
/*  if (n_elements>500) 
  { fprintf(stderr,"MAXIMUM NR. OF ELEMENTS EXCEEDED...\n");
    exit(-1);
  }
*/
  t=(restraint)restraint_dll(theMesh->mesh_t,START,0); n_tractions=1;
  if (theMesh->mesh_t->NEXT==(restraint)NULL) { n_tractions=0; theMesh->nr_of_tractions=0;}
  else
  while (t->NEXT!=(restraint)NULL) { n_tractions++; t=t->NEXT; }
  theMesh->nr_of_tractions=n_tractions;
  fprintf(stderr,"* number of tractions loaded:     %12d\n", n_tractions);

  d=(restraint)restraint_dll(theMesh->mesh_d,START,0); n_displacements=1;
  if (theMesh->mesh_d->NEXT==(restraint)NULL) { n_displacements=0; theMesh->nr_of_displacements=0;}
  else
  while (d->NEXT!=(restraint)NULL) { n_displacements++; d=d->NEXT; }
  theMesh->nr_of_displacements=n_displacements;
  fprintf(stderr,"* number of displacements loaded: %12d\n", n_displacements);
  
  m_size=(long)(n_nodes*(int)sizeof(pointtype)+n_elements*
  (int)sizeof(elementtype)+(n_tractions+n_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*n_nodes*3*n_nodes*(int)sizeof(double))/
		 (long)1024));
  for (m_size=1; m_size<=(long)n_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)n_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 0xae73(%rip), %r12      # 0x13ff8
movq (%r12), %rcx
leaq 0x4e48(%rip), %rdi      # 0xdfd8
pushq $0x43
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
callq 0x1190
movq (%r12), %rcx
leaq 0x4e72(%rip), %rdi      # 0xe01c
pushq $0x2b
popq %rsi
movq %r14, %rdx
callq 0x1190
movq (%r12), %rcx
leaq 0x4065(%rip), %rdi      # 0xd225
pushq $0x42
popq %rsi
movq %r14, %rdx
callq 0x1190
movq (%r12), %rcx
leaq 0x4e72(%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 0x91ef
movl %ebp, 0xb688(%rip)      # 0x14888
movl %ebp, 0x20(%rbx)
movq (%r12), %rdi
leaq 0x4e52(%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 0x9227
movl %r15d, 0xb652(%rip)     # 0x1488c
movl %r15d, 0x24(%rbx)
movq (%r12), %rdi
leaq 0x4e3f(%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, 0xb624(%rip)      # 0x14890
movq 0x18(%rbx), %rcx
cmpq $0x0, 0x8(%rcx)
jne 0x9431
andl $0x0, 0xb60e(%rip)      # 0x14890
movl %ebp, 0x2c(%rbx)
movq (%r12), %rdi
leaq 0x4e20(%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, 0xb5e1(%rip)      # 0x14894
movq 0x10(%rbx), %rcx
cmpq $0x0, 0x8(%rcx)
jne 0x944b
andl $0x0, 0xb5cb(%rip)      # 0x14894
movl %r15d, 0x28(%rbx)
movq (%r12), %rdi
leaq 0x4e00(%rip), %rsi      # 0xe0d8
movl %r15d, %edx
xorl %eax, %eax
callq 0x10f0
imull $0x88, 0xb59c(%rip), %eax # 0x14888
imull $0xc0, 0xb596(%rip), %ecx # 0x1488c
addl %eax, %ecx
movl 0xb596(%rip), %eax      # 0x14894
addl 0xb58c(%rip), %eax      # 0x14890
imull $0x48, %eax, %eax
addl %ecx, %eax
movl $0x400, %ecx            # imm = 0x400
cltd
idivl %ecx
movl %eax, %ebp
movq (%r12), %rdi
leaq 0x4de2(%rip), %rsi      # 0xe100
movl %eax, %edx
xorl %eax, %eax
callq 0x10f0
movq (%r12), %rdi
movl 0xb557(%rip), %eax      # 0x14888
imull %eax, %eax
imull $0x18, %eax, %eax
movl $0x80, %ecx
cltd
idivl %ecx
addl %eax, %ebp
leaq 0x4de1(%rip), %rsi      # 0xe129
movl %ebp, %edx
xorl %eax, %eax
callq 0x10f0
pushq $0x2
popq %rbp
leaq 0xb56d(%rip), %r13      # 0x148c8
pushq $0x6a
popq %r15
movslq 0xb522(%rip), %rax      # 0x14888
cmpq %rax, %r14
jg 0x938e
movq (%rbx), %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0xc14c
cmpl $0x0, (%r13)
je 0x9389
movl %ebp, %edi
movl %r15d, %esi
callq 0xb0f8
incq %r14
jmp 0x935f
pushq $0x1
popq %r14
pushq $0x2
popq %rbp
pushq $0x6b
popq %r15
movslq 0xb4ec(%rip), %rax      # 0x1488c
cmpq %rax, %r14
jg 0x93c9
movq 0x8(%rbx), %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0xad45
cmpl $0x0, (%r13)
je 0x93c4
movl %ebp, %edi
movl %r15d, %esi
callq 0xb0f8
incq %r14
jmp 0x9399
movq (%r12), %rdi
leaq 0xb024(%rip), %rax      # 0x143f8
movsd (%rax), %xmm0
movsd 0x4080(%rip), %xmm1     # 0xd460
mulsd %xmm0, %xmm1
leaq 0xb015(%rip), %rax      # 0x14400
movsd (%rax), %xmm2
movsd 0x3c11(%rip), %xmm3     # 0xd008
addsd %xmm2, %xmm3
divsd %xmm3, %xmm1
leaq 0x4d5f(%rip), %rsi      # 0xe165
movb $0x3, %al
callq 0x10f0
movq (%r12), %rcx
leaq 0x4d84(%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 0x9282
incl %ebp
movl %ebp, 0xb447(%rip)      # 0x14890
jmp 0x9434
pushq $0x1
popq %r15
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x92c9
incl %r15d
movl %r15d, 0xb42e(%rip)     # 0x14894
jmp 0x944f