//
// 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 (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:40:43 +0000
//
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));
}