PpmEventGetEventDescriptorAndProcessorId

INT64 __fastcall PpmEventGetEventDescriptorAndProcessorId(INT64 a1, INT64 a2, INT64 a3, INT64 a4, INT64 a5){
  int v6; 
  INT64 result; 
  if( *(_BYTE *)(a1 + 60) )
  {
    a3 = a2;
    *(_WORD *)a4 = *(unsigned __int8 *)(a1 - 32920);
    *(_BYTE *)(a4 + 2) = *(_BYTE *)(a1 - 32919);
    v6 = 3;
  }
  else
  {
    v6 = 4;
    *(_DWORD *)a4 = *(_DWORD *)(*(_QWORD *)(a1 + 8) + 20i64);
  }
  *(_QWORD *)a5 = a4;
  *(_DWORD *)(a5 + 8) = v6;
  result = a3;
  *(_DWORD *)(a5 + 12) = 0;
  return result;
}

Referenced by:

PpmEventAutonomousModeChange
PpmEventBiosCapChange
PpmEventProcessorPerfStateChange
PpmEventThermalCapChange
PpmEventTraceExpectedUtility