//
// sub_100084720 from 0x100084720 to 0x100084740 (32 bytes)
//
// 7 xrefs:
// > cocos2d::CCTexture2D::setTexParameters @ 0x10012df08
// > cocos2d::CCTexture2D::setTexParameters @ 0x10012df28
// > cocos2d::CCTexturePVR::unpackPVRv2Data @ 0x1003703dc
// > cocos2d::CCTexturePVR::unpackPVRv2Data @ 0x1003703f0
// > cocos2d::CCTexturePVR::createGLTexture @ 0x100370884
// > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x1003c03c4
// > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x1003c03d0
//
// 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_100084720(__int64 a1)
{
unsigned __int64 v1; // x8
unsigned __int64 v2; // x8
v1 = (a1 - 1) | ((unsigned __int64)(a1 - 1) >> 1) | (((a1 - 1) | ((unsigned __int64)(a1 - 1) >> 1)) >> 2);
v2 = v1 | (v1 >> 4) | ((v1 | (v1 >> 4)) >> 8);
return (v2 | (v2 >> 16)) + 1;
}