NTSTATUS __stdcall HalpInterruptRemapUpdateDeliveryMode(INT64 a1, INT64 a2){
NTSTATUS result;
if( *(_DWORD *)(a1 + 4) != 209 )
{
result = *(_DWORD *)(a2 + 24) - 5;
if( (unsigned int)result <= 1 )
*(_DWORD *)(a2 + 12) |= 2u;
}
return result;
}