//
// sub_CA3A4 from 0xca3a4 to 0xca3b8 (20 bytes)
//
// 3 xrefs:
// > sub_C9C84 @ 0xc9cc2
// > sub_C9C84 @ 0xc9d50
// > sub_C9C84 @ 0xc9d5c
//
// 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
//
int __fastcall sub_CA3A4(unsigned int a1)
{
int v1; // r1
v1 = 0;
if ( a1 )
--a1;
while ( a1 )
{
a1 >>= 1;
++v1;
}
return v1;
}