MiComputeCrossPartitionSectionCharges

INT64 __fastcall MiComputeCrossPartitionSectionCharges(INT64 *a1){
  INT64 v2; 
  int v3; 
  v2 = *a1;
  v3 = *(_DWORD *)(v2 + 56);
  if( (v3 & 0x20) != 0 )
    return *(_QWORD *)(v2 + 120);
  if( (v3 & 0x80u) != 0 )
    return *((_DWORD *)a1 + 11) - (*((_DWORD *)a1 + 13) & 0x3FFFFFFFu);
  return MiGetCommittedPages((_QWORD *)v2);
}

Referenced by:

MiDecrementSubsectionViewCount
MiReferenceActiveSubsection
MiReleaseControlAreaCharges