TtmpEnterProximity

VOID __fastcall TtmpEnterProximity(INT64 a1, INT64 a2){
  int v2; 
  UINT64 v5; 
  v2 = *(_DWORD *)(a2 + 36);
  if( (v2 & 8) == 0 )
  {
    v5 = (unsigned int)++*(_DWORD *)(a2 + 268);
    *(_QWORD *)(a2 + 256) = -1i64;
    *(_DWORD *)(a2 + 36) = v2 | 8;
    TtmiLogEnterProximity(v5);
    *(_DWORD *)(a2 + 36) |= 4u;
    TtmiScheduleSessionWorker(a1, 2);
  }
}

Referenced by:

TtmiTerminalMonitorControl