SmSwapStore

__int64 __fastcall SmSwapStore(int a1){
  INT64 v2; 
  _DWORD **v3; 
  __int64 v4; 
  unsigned int v5; 
  INT64 v7; 
  v7 = *((_QWORD *)KeGetCurrentThread() + 23);
  v2 = SmpKeyedStoreEntryGet((UINT64)&qword_140D23188, &v7, 0i64, 0i64);
  if( !v2 )
    return 3221226021i64;
  v3 = (_DWORD **)SmKmStoreRefFromStoreIndex((INT64)&SmGlobals, *(_WORD *)(v2 + 16) & 0x3FF);
  v5 = 2;
  if( a1 != 2 )
    v5 = a1 != 0;
  return SMKM_STORE_MGR::SmSwapStore(v4, *v3, v5);
}

Referenced by:

MiInSwapStoreWorker
SmStoreCompressionStart
SmStoreCompressionStop
SmSwapStore