SMKM_STORE::SmStSwapStore

__int64 __fastcall SMKM_STORE::SmStSwapStore(__int64 a1, int a2){
  void *v4; 
  int v5; 
  unsigned int v6; 
  unsigned int v7; 
  _KAPC_STATE ApcState; 

  v4 = *(void **)(a1 + 6584);
  memset(&ApcState, 0, sizeof(ApcState));
  KiStackAttachProcess(v4, 0i64, &ApcState);
  if( a2 )
  {
    v5 = a2 - 1;
    if( v5 )
    {
      if( v5 != 1 )
      {
        v7 = -1073741811;
        goto LABEL_6;
      }
      v6 = SMKM_STORE::SmStInSwapStore(a1);
    }
    else
    {
      v6 = SMKM_STORE::SmStOutSwapStore(a1);
    }
  }
  else
  {
    v6 = SMKM_STORE::SmStOutSwapPrepareStore(a1);
  }
  v7 = v6;
LABEL_6:
  KiUnstackDetachProcess(&ApcState, 0i64);
  return v7;
}

Referenced by:

No references.