// // cocos2d::ccNextPOT from 0x5ec174 to 0x5ec18e (26 bytes) // // 11 xrefs: // > cocos2d::CCGridBase::initWithSize @ 0x5c71fc // > cocos2d::CCGridBase::initWithSize @ 0x5c720e // > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x5d819e // > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x5d81a6 // > cocos2d::CCTexture2D::generateMipmap @ 0x5f3ab0 // > cocos2d::CCTexture2D::generateMipmap @ 0x5f3aba // > cocos2d::CCTexture2D::setTexParameters @ 0x5f3ae4 // > cocos2d::CCTexture2D::setTexParameters @ 0x5f3af8 // > cocos2d::CCTexturePVR::unpackPVRv2Data @ 0x5f6590 // > cocos2d::CCTexturePVR::unpackPVRv2Data @ 0x5f65a0 // > cocos2d::CCTexturePVR::createGLTexture @ 0x5f6986 // // 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 // int __fastcall cocos2d::ccNextPOT(cocos2d *this, unsigned int a2) { unsigned int v2; // r0 unsigned int v3; // r0 v2 = ((unsigned int)this - 1) | (((unsigned int)this - 1) >> 1) | ((((unsigned int)this - 1) | (((unsigned int)this - 1) >> 1)) >> 2); v3 = v2 | (v2 >> 4) | ((v2 | (v2 >> 4)) >> 8); return (v3 | HIWORD(v3)) + 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source