PopFxPepPerfInfoFree

VOID *__fastcall PopFxPepPerfInfoFree(PVOID P){
  __int64 i; 
  void *v3; 
  void *v4; 
  VOID *result; 

  if( P )
  {
    for( i = 0i64; (unsigned int)i < *(_DWORD *)P; i = (unsigned int)(i + 1) )
    {
      if( !*((_DWORD *)P + 12 * i + 9) )
      {
        v3 = (void *)*((_QWORD *)P + 6 * i + 6);
        if( v3 )
          ExFreePoolWithTag(v3, 0x4D584650u);
      }
      v4 = (void *)*((_QWORD *)P + 6 * i + 2);
      if( v4 )
        ExFreePoolWithTag(v4, 0x4D584650u);
    }
    return ExFreePoolWithTag(P, 0x4D584650u);
  }
  return result;
}

Referenced by:

PopFxPepPerfInfoQuery
PopFxRegisterComponentPerfStates