MiGetInPageSupportBlock

VOID __fastcall MiGetInPageSupportBlock(){
  unsigned int v0; 
  unsigned int v1; 
  __int64 v2; 
  _BOOL4 v3; 
  VOID *v4; 

  v1 = v0;
  v2 = 2i64 * ((v0 & 1) == 0);
  v3 = (v0 & 1) == 0;
  v4 = RtlpInterlockedPopEntrySList((PSLIST_HEADER)&MiState[v2 + 1154]);
  if( v4
    || (v4 = RtlpInterlockedPopEntrySList((PSLIST_HEADER)&MiState[v2 + 1158])) != 0i64
    || (v1 & 4) == 0 && (v4 = MiAllocateInPageSupportBlock(v3, 1ui64)) != 0i64 )
  {
    MiInitializeInPageSupport(v4, v1);
  }
}

Referenced by:

MiAllocateInPageSupport
MiCreateRotateView
MiGetReadyInPageBlock
MiMigratePfn
MiPfAllocateMdls
MiPfPutPagesInTransition
MiPrivateFixup