//
// sub_1004E6870 from 0x1004e6870 to 0x1004e6894 (36 bytes)
//
// 3 xrefs:
// > sub_10042E2AC @ 0x10042e32c
// > sub_10042E2AC @ 0x10042e338
// > sub_10042E2AC @ 0x10042e460
//
// 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_1004E6870(__int64 result)
{
unsigned int v1; // w8
bool v2; // cc
if ( (_DWORD)result )
{
v1 = result;
LODWORD(result) = 0;
do
{
result = (unsigned int)(result + 1);
v2 = v1 > 1;
v1 >>= 1;
}
while ( v2 );
}
return result;
}