__int64 __fastcall TranslateGlobalVectorToIsaVector(int a1, _DWORD *a2){
unsigned __int8 v2;
v2 = 0;
while( *((_DWORD *)HalpPicVectorRedirect + v2) != a1 )
{
if( ++v2 >= 0x10u )
return 3221226021i64;
}
*a2 = v2;
return 0i64;
}