NTSTATUS __stdcall XmGetRegisterAddress(INT64 a1, UINT64 a2){ if( (unsigned int)a2 < 4 || *(_DWORD *)(a1 + 120) ) return a1 + 4 * (a2 + 6); else return a1 + 25 + 4 * (a2 - 4); }