PiAuditDeviceEnableDisableRequest

VOID __stdcall PiAuditDeviceEnableDisableRequest(
        UNICODE_STRING *DeviceInstance,
        UINT64 OldConfigFlags,
        UINT64 NewConfigFlags,
        UINT8 Success){
  char v4; 
  int v5; 
  v4 = OldConfigFlags;
  v5 = 1;
  if( (v4 & 1) == 0 && (NewConfigFlags & 1) != 0 )
    goto LABEL_5;
  if( (v4 & 1) != 0 && (NewConfigFlags & 1) == 0 )
  {
    v5 = 3;
LABEL_5:
    PiAuditDeviceOperation((__int64)DeviceInstance, v5, Success);
  }
}

Referenced by:

PiPnpRtlSetDeviceRegProperty
PiPnpRtlSetObjectProperty