NTSTATUS __stdcall HalpAcpiPmRegisterWritePort(PVOID RegisterAddress, PVOID Input){
unsigned __int8 *v2;
int v3;
int v5;
v3 = (_DWORD)Input - 1;
if( !v3 )
{
__outbyte((unsigned __int16)RegisterAddress, *v2);
return 0;
}
v5 = v3 - 1;
if( !v5 )
{
__outword((unsigned __int16)RegisterAddress, *(_WORD *)v2);
return 0;
}
if( v5 == 2 )
{
__outdword((unsigned __int16)RegisterAddress, *(_DWORD *)v2);
return 0;
}
return -1073741823;
}