PopPepComponentSetWakeHint
VOID __stdcall PopPepComponentSetWakeHint(POP_PEP_DEVICE *Device, UINT64 ComponentIndex, UINT8 WakeHint){
POP_PEP_DEVICE *v4;
int v6;
char v7;
char v8;
unsigned int ready;
unsigned int v10;
INT64 v11;
INT64 v12;
UINT8 v13;
v13 = 0;
v4 = &Device[50 * (unsigned int)ComponentIndex + 46];
if( WakeHint )
v6 = v4[37];
else
v6 = v4[47] - 1;
v7 = PopPepLockActivityLink((__int64)Device, (INT64 *)v4, 6u, 1u, &v13);
*((_BYTE *)v4 + 144) = WakeHint;
v8 = v7;
if( v4[41] != v6 )
{
v4[41] = v6;
ready = PopPepCountReadyActivities((unsigned int *)Device, (__int64)v4, 2);
PopPepUpdateIdleState((__int64)Device, v4, 1);
PopPepPromoteActivities((__int64)Device, (__int64)v4, 2);
v10 = PopPepCountReadyActivities((unsigned int *)Device, (__int64)v4, 2);
PopPepRequestWork(ready, v10, v11, v12);
}
PopPepReleaseActivityLink((__int64)Device, (INT64 *)v4, v8, v13);
}Referenced by:
PoFxSetComponentWake