TtmiPublishDeviceEnumerationEvents

INT64 __fastcall TtmiPublishDeviceEnumerationEvents(INT64 a1, INT64 a2){
  INT64 v2; 
  __int64 i; 
  int v6; 
  unsigned int v7; 
  v2 = a1 + 96;
  for( i = *(_QWORD *)(a1 + 96); ; i = *(_QWORD *)i )
  {
    if( i == v2 )
      return 0;
    if( (*(_DWORD *)(i + 600) & 0xA) == 2 )
    {
      v6 = TtmpPublishDeviceEvent(a1, a2, i, 0);
      v7 = v6;
      if( v6 < 0 )
        break;
    }
  }
  TtmiLogError((PSTR)"TtmiPublishDeviceEnumerationEvents", 1055i64, (unsigned int)v6, (unsigned int)v6);
  return v7;
}

Referenced by:

TtmiWriteEnumerationEventsToQueue