INT64 __fastcall MiResidentPageDangleFree(INT64 a1, INT64 a2){
char *v2;
char *v3;
v2 = (char *)MmGetPfnDb() + 48 * a1;
v3 = &v2[48 * MiLargePageSizes[(unsigned int)a2]];
while( 1 )
{
if( v2 >= v3 )
return 1i64;
if( *((_WORD *)v2 + 16) != 2 )
break;
v2 += 48;
}
return 0i64;
}