PopPluginComponentActive

UINT8 __stdcall PopPluginComponentActive(
        POP_FX_DEVICE *FxDevice,
        UINT64 Component,
        UINT8 Active,
        PEP_WORK_INFORMATION *WorkInformation){
  __int64 v4; 
  __int64 v8; 
  UINT8 result; 
  UINT64 v10; 

  v4 = (unsigned int)Component;
  if( WorkInformation )
    memset(WorkInformation, 0i64, 0x40u);
  v8 = *((_QWORD *)FxDevice + 7);
  if( *(_BYTE *)(v8 + 124) )
    PopPluginNotifyActive(*(_POP_FX_DEVICE **)(v8 + 32), (unsigned int)v4, Active);
  result = PopPepProcessEvent(
             (POP_PEP_DEVICE *)v8,
             (POP_PEP_COMPONENT *)(v8 + 200 * v4 + 184),
             (POP_PEP_ACTIVITY_TYPE)(Active != 0 ? MaximumActivities : ComponentActive),
             (POP_PEP_ACTIVITY_TYPE)(Active != 0 ? ComponentActivating : MaximumActivities),
             v10,
             WorkInformation);
  if( result )
  {
    if( !WorkInformation )
      PopFxBugCheck(0x612u, 0, 0, 0);
  }
  return result;
}

Referenced by:

PopFxActivateComponentWorker
PopFxCompleteComponentActivation
PopFxIdleWorkerTail