//
// sub_1004D8FD8 from 0x1004d8fd8 to 0x1004d9000 (40 bytes)
//
// 0 xrefs:
//
// 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
//
__int64 __fastcall sub_1004D8FD8(unsigned int a1)
{
unsigned int v1; // w8
char v2; // w9
v1 = 0;
if ( (a1 & 1) == 0 )
{
do
{
v2 = a1;
++v1;
a1 >>= 1;
}
while ( (v2 & 2) == 0 );
}
if ( v1 >= 0xF )
return 15;
else
return v1;
}