//
// sub_F66F4 from 0xf66f4 to 0xf671c (40 bytes)
//
// 2 xrefs:
// > sub_F6160 @ 0xf6210
// > sub_F6160 @ 0xf622c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:15:07 +0000
//
__int64 __fastcall sub_F66F4(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;
}