RtlpSetRvaListRvaStateBits

VOID __fastcall RtlpSetRvaListRvaStateBits(INT64 a1, INT64 a2, INT32 a3){
  unsigned int v3; 
  unsigned int v4; 
  __int64 v5; 
  INT32 v6; 
  v3 = 0;
  v6 = a3;
  if( a3 )
  {
    v4 = *(_DWORD *)(a1 + 8);
    if( v4 > 1 )
    {
      v5 = v4 * (unsigned int)a2;
      do
      {
        if( _bittest(&v6, v3) )
          _bittestandset64(*(signed __int64 **)(a1 + 40), v5 + v3);
        ++v3;
      }
      while( v3 < *(_DWORD *)(a1 + 8) );
    }
  }
}

Referenced by:

RtlpCompressRvaList