//
// sub_4FD90 from 0x4fd90 to 0x4fdaa (26 bytes)
//
// 4 xrefs:
// > sub_4FCE8 @ 0x4fd54
// > sub_4FE54 @ 0x4feac
// > sub_4FE54 @ 0x4feee
// > sub_50210 @ 0x5027a
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_4FD90(unsigned int a1)
{
unsigned int v1; // r1
unsigned int v2; // r1
v1 = (a1 >> 1) | (a1 >> 2) | (((a1 >> 1) | (a1 >> 2)) >> 2);
v2 = v1 | (v1 >> 4) | ((v1 | (v1 >> 4)) >> 8);
return a1 & ~(v2 | HIWORD(v2));
}