//
// sub_180095970 from 0x180095970 to 0x180095997 (39 bytes)
//
// 11 xrefs:
// > cocos2d::CCGridBase::initWithSize @ 0x18002351f
// > cocos2d::CCGridBase::initWithSize @ 0x18002352d
// > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x18005fee8
// > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x18005fef2
// > cocos2d::CCTexture2D::generateMipmap @ 0x1800a51ac
// > cocos2d::CCTexture2D::generateMipmap @ 0x1800a51b9
// > cocos2d::CCTexture2D::setTexParameters @ 0x1800a5ef8
// > cocos2d::CCTexture2D::setTexParameters @ 0x1800a5f0e
// > sub_1800A9E90 @ 0x1800aa02e
// > sub_1800AA460 @ 0x1800aa4e0
// > sub_1800AA460 @ 0x1800aa4f1
//
// 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_180095970(int a1)
{
unsigned int v1; // ecx
unsigned int v2; // ecx
v1 = ((((unsigned int)(a1 - 1) >> 1) | (a1 - 1)) >> 2) | ((unsigned int)(a1 - 1) >> 1) | (a1 - 1);
v2 = (((v1 >> 4) | v1) >> 8) | (v1 >> 4) | v1;
return (v2 | HIWORD(v2)) + 1;
}