MiChargeLargeProtoSubsection

NTSTATUS __stdcall MiChargeLargeProtoSubsection(INT64 a1, INT64 a2){
  bool v2; 
  unsigned __int64 v3; 
  NTSTATUS result; 

  v2 = (_DWORD)a2 == 0;
  v3 = (unsigned __int64)*(unsigned int *)(a1 + 44) >> 9;
  if( v2 )
  {
    MiReturnResident((INT64)&Irp, v3);
    return 1;
  }
  result = MiChargeResident((ULONG_PTR *)&Irp.Core.PartitionId, v3, 0x400ui64);
  if( result )
    return 1;
  return result;
}

Referenced by:

MiCreatePrototypePtes
MiDecrementLargeSubsections
MiEnableLargeSubsection