PopGetMonitorReasonFromPowerEventId

INT64 __fastcall PopGetMonitorReasonFromPowerEventId(INT64 a1){
  INT64 result; 
  int v2; 
  int v3; 
  int *i; 
  result = 0i64;
  v2 = a1;
  if( (_DWORD)a1 == 45 )
    return 20i64;
  v3 = 0;
  for( i = &dword_140CFA864; *i != v2; i += 2 )
  {
    if( (unsigned int)++v3 >= 0x33 )
      return result;
  }
  return *(unsigned int *)&PopMonitorEventMapping[8 * v3];
}

Referenced by:

PopPowerAggregatorActiveToScreenOffStateHandler
PopSleepstudyStartNextSession