MiFindZeroCloneBlock

unsigned __int64 __fastcall MiFindZeroCloneBlock(__int64 a1, int a2){
  unsigned __int64 v2; 
  unsigned __int64 v3; 
  v2 = *(_QWORD *)(a1 + 24);
  v3 = *(_QWORD *)(a1 + 32);
  if( v2 > v3 )
    return 0i64;
  while( *(_QWORD *)(v2 + 16) >> 59 != a2 || *(_QWORD *)(v2 + 24) == -1i64 )
  {
    v2 += 32i64;
    if( v2 > v3 )
      return 0i64;
  }
  return v2;
}

Referenced by:

MiBuildForkPte