PopPepComponentGetResidencyIdleState

INT64 __fastcall PopPepComponentGetResidencyIdleState(INT64 a1, UINT64 a2){
  __int64 v2; 
  bool v4; 
  v2 = (unsigned int)(*(_DWORD *)(a1 + 188) - 1);
  if( !PopPepLowPowerEpoch && *(_DWORD *)(a1 + 188) != 1 )
  {
    do
    {
      if( *(_QWORD *)(*(_QWORD *)(a1 + 192) + 24 * v2 + 8) <= a2 )
        break;
      v4 = (_DWORD)v2 == 1;
      v2 = (unsigned int)(v2 - 1);
    }
    while( !v4 );
  }
  return(unsigned int)v2;
}

Referenced by:

PopPepCompleteComponentActiveActivity
PopPepComponentSetResidency
PopPepIdleTimeoutRoutine
PopPepRegisterDevice