// File: /workspace/github_c_makefile_star2_O1/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 0x1278c(%rip), %r15     # 0x14ff8
movq (%r15), %rcx
leaq 0xc792(%rip), %rdi      # 0xf008
pushq $0x43
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
callq 0x11a0
movq (%r15), %rcx
leaq 0xc7bd(%rip), %rdi      # 0xf04c
pushq $0x2b
popq %rsi
movq %r14, %rdx
callq 0x11a0
movq (%r15), %rcx
leaq 0xb981(%rip), %rdi      # 0xe225
pushq $0x42
popq %rsi
movq %r14, %rdx
callq 0x11a0
movq (%r15), %rcx
leaq 0xc7bf(%rip), %rdi      # 0xf078
pushq $0x17
popq %rsi
movq %r14, %rdx
callq 0x11a0
movq (%rbx), %rdi
xorl %r14d, %r14d
xorl %esi, %esi
xorl %edx, %edx
callq 0xcf07
movq 0x8(%rax), %rax
incl %r14d
testq %rax, %rax
jne 0x28d3
movl %r14d, 0x12e9a(%rip)    # 0x15780
movl %r14d, 0x20(%rbx)
movq (%r15), %rdi
leaq 0xc79c(%rip), %rsi      # 0xf090
xorl %ebp, %ebp
movl %r14d, %edx
xorl %eax, %eax
callq 0x1100
movq 0x8(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb834
movq 0x8(%rax), %rax
incl %ebp
testq %rax, %rax
jne 0x290d
movl %ebp, 0x12e66(%rip)     # 0x15784
movl %ebp, 0x24(%rbx)
movq (%r15), %rdi
leaq 0xc78d(%rip), %rsi      # 0xf0b8
movl %ebp, %edx
xorl %eax, %eax
callq 0x1100
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd1d1
movl $0x1, 0x12e3d(%rip)     # 0x15788
movq 0x18(%rbx), %rcx
cmpq $0x0, 0x8(%rcx)
jne 0x2963
andl $0x0, 0x12e2b(%rip)     # 0x15788
andl $0x0, 0x2c(%rbx)
jmp 0x2983
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x2983
movl 0x12e16(%rip), %ecx     # 0x15788
incl %ecx
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x2972
movl %ecx, 0x12e05(%rip)     # 0x15788
movl 0x12dff(%rip), %edx     # 0x15788
movl %edx, 0x2c(%rbx)
movq (%r15), %rdi
leaq 0xc74a(%rip), %rsi      # 0xf0e0
xorl %eax, %eax
callq 0x1100
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd1d1
movl $0x1, 0x12dd8(%rip)     # 0x1578c
movq 0x10(%rbx), %rcx
cmpq $0x0, 0x8(%rcx)
jne 0x29cc
andl $0x0, 0x12dc6(%rip)     # 0x1578c
andl $0x0, 0x28(%rbx)
jmp 0x29ec
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x29ec
movl 0x12db1(%rip), %ecx     # 0x1578c
incl %ecx
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x29db
movl %ecx, 0x12da0(%rip)     # 0x1578c
movl 0x12d9a(%rip), %edx     # 0x1578c
movl %edx, 0x28(%rbx)
movq (%r15), %rdi
leaq 0xc709(%rip), %rsi      # 0xf108
xorl %eax, %eax
callq 0x1100
imull $0x88, 0x12d70(%rip), %eax # 0x15780
imull $0xc0, 0x12d6a(%rip), %ecx # 0x15784
addl %eax, %ecx
movl 0x12d6a(%rip), %eax     # 0x1578c
addl 0x12d60(%rip), %eax     # 0x15788
imull $0x48, %eax, %eax
addl %ecx, %eax
movl $0x400, %ecx            # imm = 0x400
cltd
idivl %ecx
movl %eax, %ebp
movq (%r15), %rdi
leaq 0xc6ef(%rip), %rsi      # 0xf130
movl %eax, %edx
xorl %eax, %eax
callq 0x1100
movq (%r15), %rdi
movl 0x12d2d(%rip), %eax     # 0x15780
imull %eax, %eax
imull $0x18, %eax, %eax
movl $0x80, %ecx
cltd
idivl %ecx
addl %eax, %ebp
leaq 0xc6ef(%rip), %rsi      # 0xf159
movl %ebp, %edx
xorl %eax, %eax
callq 0x1100
cmpl $0x0, 0x12d06(%rip)     # 0x15780
jle 0x2abc
xorl %r12d, %r12d
pushq $0x2
popq %rbp
leaq 0x12e4f(%rip), %r13     # 0x158d8
pushq $0x6a
popq %r14
movq (%rbx), %rdi
leal 0x1(%r12), %edx
movl %ebp, %esi
callq 0xcf07
cmpl $0x0, (%r13)
je 0x2aad
movl %ebp, %edi
movl %r14d, %esi
callq 0xbc50
movslq 0x12ccc(%rip), %rax     # 0x15780
incq %r12
cmpq %rax, %r12
jl 0x2a8d
cmpl $0x0, 0x12cc1(%rip)     # 0x15784
jle 0x2b06
xorl %r12d, %r12d
pushq $0x2
popq %rbp
leaq 0x12e06(%rip), %r13     # 0x158d8
pushq $0x6b
popq %r14
movq 0x8(%rbx), %rdi
leal 0x1(%r12), %edx
movl %ebp, %esi
callq 0xb834
cmpl $0x0, (%r13)
je 0x2af7
movl %ebp, %edi
movl %r14d, %esi
callq 0xbc50
movslq 0x12c86(%rip), %rax     # 0x15784
incq %r12
cmpq %rax, %r12
jl 0x2ad6
movq (%r15), %rdi
leaq 0x128f8(%rip), %rax     # 0x15408
movsd (%rax), %xmm0
movsd 0xb94c(%rip), %xmm1     # 0xe468
mulsd %xmm0, %xmm1
leaq 0x128e9(%rip), %rax     # 0x15410
movsd (%rax), %xmm2
movsd 0xb4d5(%rip), %xmm3     # 0xe008
addsd %xmm2, %xmm3
divsd %xmm3, %xmm1
leaq 0xc653(%rip), %rsi      # 0xf195
movb $0x3, %al
callq 0x1100
movq (%r15), %rcx
leaq 0xc679(%rip), %rdi      # 0xf1cc
pushq $0x43
popq %rsi
pushq $0x1
popq %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11a0