PopGetReasonListByReasonCode

INT64 __fastcall PopGetReasonListByReasonCode(INT64 a1){
  __int64 v1; 
  __int64 v2; 
  char v3; 
  v1 = PowerStateDisableReasonListHead;
  v2 = 0i64;
  v3 = 0;
  while( (__int64 *)v1 != &PowerStateDisableReasonListHead )
  {
    v2 = v1;
    if( *(_DWORD *)(v1 + 24) == (_DWORD)a1 )
    {
      v3 = 1;
      return v2 & -(__int64)(v3 != 0);
    }
    v1 = *(_QWORD *)v1;
  }
  return v2 & -(__int64)(v3 != 0);
}

Referenced by:

PopCheckDisabledReason
PopLogSleepDisabled
PopRemoveReasonRecordByReasonCode