//
// 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 (idp: arm, 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 12:14:08 +0000
//
__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;
}