HalpTscReportSyncStatus

INT64 HalpTscReportSyncStatus(void){
  INT64 result; 
  INT64 v1; 
  unsigned int v2; 
  unsigned int *v3; 
  __int64 v4; 
  int v5; 
  char v6; 
  int v7; 
  ULONG_PTR v8; 
  struct _EVENT_DATA_DESCRIPTOR v9; 
  char *v10; 
  int v11; 
  int v12; 
  ULONG_PTR *v13; 
  int v14; 
  int v15; 
  int *v16; 
  int v17; 
  int v18; 
  if( HalpTscWaves )
  {
    LODWORD(result) = HalpQueryMaximumRegisteredProcessorCount(v1);
    v2 = 0;
    if( (_DWORD)result )
    {
      v3 = (unsigned int *)HalpTscWaves;
      v4 = (unsigned int)result;
      do
      {
        result = v2;
        v2 = *v3++;
        if( v2 <= (unsigned int)result )
          v2 = result;
        --v4;
      }
      while( v4 );
    }
    if( (unsigned int)dword_140C02DF8 > 5 )
    {
      LOBYTE(result) = tlgKeywordOn((__int64)&dword_140C02DF8, 0x400000000000i64);
      if( (_BYTE)result )
      {
        v12 = 0;
        v15 = 0;
        v18 = 0;
        v6 = HalpTscAdjustAvailable;
        v10 = &v6;
        v8 = HalpTscMaximumComputedSpread;
        v13 = &v8;
        v16 = &v7;
        v7 = v5;
        v11 = 1;
        v14 = 8;
        v17 = 4;
        LODWORD(result) = tlgWriteTransfer_EtwWriteTransfer(
                            (__int64)&dword_140C02DF8,
                            (unsigned __int8 *)byte_140021953,
                            0i64,
                            0i64,
                            5u,
                            &v9);
      }
    }
  }
  return result;
}

Referenced by:

No references.