RtlSparseArrayElementFindCapped

UINT64 __fastcall RtlSparseArrayElementFindCapped(INT64 a1, INT64 a2, INT64 a3){
  UINT64 BitSetCapped; 
  BitSetCapped = RtlCSparseBitmapFindBitSetCapped(
                   a1 + 16,
                   8 * ((a2 + 1) << *(_DWORD *)(a1 + 8)) - 1,
                   8 * (a3 << *(_DWORD *)(a1 + 8)));
  if( BitSetCapped == -1i64 )
    return 0i64;
  else
    return *(_QWORD *)(a1 + 24) + (BitSetCapped >> 3 >> *(_DWORD *)(a1 + 8) << *(_DWORD *)(a1 + 8));
}

Referenced by:

RtlpHpVaMgrCtxFree