UINT64 __stdcall ExGetNextWakeTimeForDeepSleep(){
UINT64 v0;
UINT64 result;
__int64 *v2;
__int64 *v3;
v0 = -1i64;
result = -1i64;
if( PoRtcWakeAllowed )
{
v2 = (__int64 *)ExpWakeTimerList;
while( v2 != &ExpWakeTimerList )
{
v3 = v2 - 33;
v2 = (__int64 *)*v2;
if( v3[32] )
result = KeQueryTimerDueTime((KTIMER *)v3);
if( result )
{
if( result < v0 )
v0 = result;
}
}
return v0;
}
return result;
}