INT64 __fastcall PiDmLookupObject(INT64 a1, WCHAR *a2){
INT64 v4;
INT64 *v5;
INT64 *Buffer;
INT64 result[14];
memset((INT64)result, 0i64);
v4 = 0i64;
Buffer = result;
if( a2 )
{
if( PiDmInitializeComparisonObject(a2, *(unsigned int *)(a1 + 208), (INT64)result) >= 0 )
{
LODWORD(v5) = RtlLookupElementGenericTableAvl((RTL_AVL_TABLE *)(a1 + 104), &Buffer);
if( v5 )
return *v5;
}
}
return v4;
}