//
// sub_1800504C0 from 0x1800504c0 to 0x1800504cd (13 bytes)
//
// 3 xrefs:
// > sub_18004A3A0 @ 0x18004a42a
// > sub_18004A3A0 @ 0x18004a433
// > sub_18004A3A0 @ 0x18004a4a4
//
// This function is hookable on this platform (idp: pc, 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 10:53:17 +0000
//
__int64 __fastcall sub_1800504C0(unsigned int a1)
{
__int64 result; // rax
for ( result = 0; a1; a1 >>= 1 )
result = (unsigned int)(result + 1);
return result;
}