// File: /workspace/github_c_makefile_star2_O3/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 0x1272b(%rip), %r15     # 0x14ff8
movq (%r15), %rcx
leaq 0xc731(%rip), %rdi      # 0xf008
pushq $0x43
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
callq 0x11a0
movq (%r15), %rcx
leaq 0xc75c(%rip), %rdi      # 0xf04c
pushq $0x2b
popq %rsi
movq %r14, %rdx
callq 0x11a0
movq (%r15), %rcx
leaq 0xb920(%rip), %rdi      # 0xe225
pushq $0x42
popq %rsi
movq %r14, %rdx
callq 0x11a0
movq (%r15), %rcx
leaq 0xc75e(%rip), %rdi      # 0xf078
pushq $0x17
popq %rsi
movq %r14, %rdx
callq 0x11a0
movq (%rbx), %rdi
xorl %ebp, %ebp
xorl %esi, %esi
xorl %edx, %edx
callq 0xcc2f
movq 0x8(%rax), %rax
incl %ebp
testq %rax, %rax
jne 0x2933
movl %ebp, 0x12e3c(%rip)     # 0x15780
movl %ebp, 0x20(%rbx)
movq (%r15), %rdi
leaq 0xc73f(%rip), %rsi      # 0xf090
xorl %r14d, %r14d
movl %ebp, %edx
xorl %eax, %eax
callq 0x1100
movq 0x8(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb570
movq 0x8(%rax), %rax
incl %r14d
testq %rax, %rax
jne 0x296a
movl %r14d, 0x12e07(%rip)    # 0x15784
movl %r14d, 0x24(%rbx)
movq (%r15), %rdi
leaq 0xc72d(%rip), %rsi      # 0xf0b8
xorl %ebp, %ebp
movl %r14d, %edx
xorl %eax, %eax
callq 0x1100
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xcee9
movl $0x1, 0x12dda(%rip)     # 0x15788
movq 0x18(%rbx), %rcx
cmpq $0x0, 0x8(%rcx)
je 0x29d0
movq 0x8(%rax), %rax
pushq $0x1
popq %rbp
testq %rax, %rax
je 0x29d6
incl %ebp
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x29c5
movl %ebp, 0x12db2(%rip)     # 0x15788
movl %ebp, 0x2c(%rbx)
movq (%r15), %rdi
leaq 0xc6fd(%rip), %rsi      # 0xf0e0
xorl %r14d, %r14d
movl %ebp, %edx
xorl %eax, %eax
callq 0x1100
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xcee9
movl $0x1, 0x12d86(%rip)     # 0x1578c
movq 0x10(%rbx), %rcx
cmpq $0x0, 0x8(%rcx)
je 0x2a2a
movq 0x8(%rax), %rax
pushq $0x1
popq %r14
testq %rax, %rax
je 0x2a31
incl %r14d
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x2a1e
movl %r14d, 0x12d5b(%rip)    # 0x1578c
movl %r14d, 0x28(%rbx)
movq (%r15), %rdi
leaq 0xc6c9(%rip), %rsi      # 0xf108
movl %r14d, %edx
xorl %eax, %eax
callq 0x1100
imull $0x88, 0x12d2d(%rip), %eax # 0x15780
imull $0xc0, 0x12d27(%rip), %ecx # 0x15784
addl %eax, %ecx
movl 0x12d27(%rip), %eax     # 0x1578c
addl 0x12d1d(%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 0xc6ac(%rip), %rsi      # 0xf130
movl %eax, %edx
xorl %eax, %eax
callq 0x1100
movq (%r15), %rdi
movl 0x12cea(%rip), %eax     # 0x15780
imull %eax, %eax
imull $0x18, %eax, %eax
movl $0x80, %ecx
cltd
idivl %ecx
addl %eax, %ebp
leaq 0xc6ac(%rip), %rsi      # 0xf159
movl %ebp, %edx
xorl %eax, %eax
callq 0x1100
cmpl $0x0, 0x12cc3(%rip)     # 0x15780
jle 0x2aff
xorl %r12d, %r12d
pushq $0x2
popq %rbp
leaq 0x12e0c(%rip), %r13     # 0x158d8
pushq $0x6a
popq %r14
movq (%rbx), %rdi
leal 0x1(%r12), %edx
movl %ebp, %esi
callq 0xcc2f
cmpl $0x0, (%r13)
je 0x2af0
movl %ebp, %edi
movl %r14d, %esi
callq 0xb980
movslq 0x12c89(%rip), %rax     # 0x15780
incq %r12
cmpq %rax, %r12
jl 0x2ad0
cmpl $0x0, 0x12c7e(%rip)     # 0x15784
jle 0x2b49
xorl %r12d, %r12d
pushq $0x2
popq %rbp
leaq 0x12dc3(%rip), %r13     # 0x158d8
pushq $0x6b
popq %r14
movq 0x8(%rbx), %rdi
leal 0x1(%r12), %edx
movl %ebp, %esi
callq 0xb570
cmpl $0x0, (%r13)
je 0x2b3a
movl %ebp, %edi
movl %r14d, %esi
callq 0xb980
movslq 0x12c43(%rip), %rax     # 0x15784
incq %r12
cmpq %rax, %r12
jl 0x2b19
movq (%r15), %rdi
leaq 0x128b5(%rip), %rax     # 0x15408
movsd (%rax), %xmm0
movsd 0xb901(%rip), %xmm1     # 0xe460
mulsd %xmm0, %xmm1
leaq 0x128a6(%rip), %rax     # 0x15410
movsd (%rax), %xmm2
movsd 0xb492(%rip), %xmm3     # 0xe008
addsd %xmm2, %xmm3
divsd %xmm3, %xmm1
leaq 0xc610(%rip), %rsi      # 0xf195
movb $0x3, %al
callq 0x1100
movq (%r15), %rcx
leaq 0xc636(%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