PopFxIsDirectedPowerTransitionSupported

CHAR __stdcall PopFxIsDirectedPowerTransitionSupported(INT64 a1, INT64 *a2){
  int v2; 
  CHAR result; 

  v2 = 0;
  if( (_InterlockedCompareExchange((volatile signed __int32 *)(a1 + 824), 0, 0) & 0x100) != 0 )
  {
    result = 0;
    v2 = 2;
  }
  else if( (_InterlockedCompareExchange((volatile signed __int32 *)(a1 + 824), 0, 0) & 0x20) != 0 )
  {
    result = 1;
  }
  else
  {
    result = 0;
    v2 = 1;
  }
  if( a2 )
    *(_DWORD *)a2 = v2;
  return result;
}

Referenced by:

PopDirectedDripsBuildBroadcastTreeFull
PopDripsWatchdogCallbackHandler