SmKmStoreHelperCheckWaitCommand

NTSTATUS __stdcall SmKmStoreHelperCheckWaitCommand(_SMKM_STORE_HELPER *Helper, UINT64 WaitIfPending){
  _SMKM_STORE_HELPER v2; 
  NTSTATUS result; 

  v2 = Helper[14];
  result = 0;
  if( v2 )
  {
    if( (_DWORD)WaitIfPending || (v2 & 1) != 0 )
      return SmKmStoreHelperWaitForCommand(Helper, 0i64, 0i64, 0i64);
    else
      return -1073741650;
  }
  return result;
}

Referenced by:

SMKM_STORE::SmStCheckLockInProgressRegionComplete
SMKM_STORE::SmStCleanup
SmKmStoreHelperSendCommand