//
// sub_10042A6BC from 0x10042a6bc to 0x10042a6ec (48 bytes)
//
// 1 xrefs:
// > sub_1004E90CC @ 0x1004e9b34
//
// 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_10042A6BC(unsigned int a1)
{
__int64 v2; // x8
bool v3; // cc
if ( a1 < 2 )
return 0;
LODWORD(v2) = 0;
do
{
v2 = (unsigned int)(v2 + 1);
v3 = a1 > 3;
a1 >>= 1;
}
while ( v3 );
return v2;
}