NTSTATUS __stdcall HalpInterruptGetPriority(INT64 a1, UINT8 a2){
unsigned __int8 v2;
unsigned int v3;
v2 = a2 >> 4;
if( v2 <= 2u )
return 0;
v3 = *(_DWORD *)(a1 + 228);
if( 15 - (unsigned int)v2 > v3 )
return 0;
else
return v2 + v3 - 15;
}