MiInsertRecursiveTbFlushEntries

UINT64 __fastcall MiInsertRecursiveTbFlushEntries(INT64 a1, INT64 a2, INT64 a3){
  INT64 v5; 
  __int64 v6; 
  __int64 v7; 
  UINT64 result; 
  if( (int)a2 >= 0 )
  {
    v5 = 1i64;
    v6 = (_QWORD)MmGetPteBase() << 25;
    v7 = (unsigned int)(a2 + 1);
    do
    {
      a3 = ((a3 << 25) - v6) >> 16;
      result = MiInsertTbFlushEntry(a1, a3, v5, 0i64);
      v5 <<= 9;
      --v7;
    }
    while( v7 );
  }
  return result;
}

Referenced by:

MiDeleteNonPagedPoolPte
MiFlushValidPteFromTb
MiInitializeSystemPageTable
MiReplacePfnWithGapMapping
MiReplicatePfnDatabaseMappings