//
// sub_82CB0 from 0x82cb0 to 0x82cd0 (32 bytes)
//
// 4 xrefs:
// > sub_82B20 @ 0x82ba4
// > sub_CDAF0 @ 0xcdb3c
// > sub_CDAF0 @ 0xcdb90
// > sub_CE990 @ 0xce998
//
// 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_82CB0(int a1)
{
unsigned int v1; // w8
unsigned int v2; // w8
v1 = (a1 - 1) | ((unsigned int)(a1 - 1) >> 1) | (((a1 - 1) | ((unsigned int)(a1 - 1) >> 1)) >> 2);
v2 = v1 | (v1 >> 4) | ((v1 | (v1 >> 4)) >> 8);
return (v2 | HIWORD(v2)) + 1;
}