//
// sub_F4620 from 0xf4620 to 0xf4648 (40 bytes)
//
// 3 xrefs:
// > sub_F3E78 @ 0xf3ed4
// > sub_F3E78 @ 0xf3f9c
// > sub_F3E78 @ 0xf3fac
//
// 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_F4620(int a1)
{
unsigned int v1; // w9
bool v2; // zf
__int64 result; // x0
unsigned int v4; // w8
v1 = a1 - 1;
v2 = a1 == 0;
result = 0;
if ( v2 )
v4 = 0;
else
v4 = v1;
for ( ; v4; v4 >>= 1 )
result = (unsigned int)(result + 1);
return result;
}