UINT8 __fastcall MiUpdateWsleAge(INT64 a1, _QWORD *a2, UINT8 a3){
__int64 v6;
UINT8 result;
v6 = (__int64)(((_QWORD)a2 << 25) - ((_QWORD)MmGetPteBase() << 25)) >> 16;
result = MiGetVaAge(a1, v6);
if( a3 != result && result < 8u && (a3 == 7 || result == 7) )
{
if( !a3 )
*a2 |= 0x20ui64;
return MiSetVaAgeList(a1, v6, (UINT8 *)1, a3);
}
return result;
}