// // sub_1005A4800 from 0x1005a4800 to 0x1005a483e (62 bytes) // // 12 xrefs: // > cocos2d::CCTexturePVR::unpackPVRv2Data @ 0x1002719e7 // > cocos2d::CCTexturePVR::unpackPVRv2Data @ 0x1002719f8 // > cocos2d::CCTexturePVR::createGLTexture @ 0x100271ed4 // > cocos2d::CCTexturePVR::createGLTexture @ 0x100271fe1 // > cocos2d::CCTexture2D::generateMipmap @ 0x10046de11 // > cocos2d::CCTexture2D::generateMipmap @ 0x10046de1e // > cocos2d::CCTexture2D::setTexParameters @ 0x10046de67 // > cocos2d::CCTexture2D::setTexParameters @ 0x10046de7e // > cocos2d::CCGridBase::initWithSize_1 @ 0x1004de5e0 // > cocos2d::CCGridBase::initWithSize_1 @ 0x1004de5f0 // > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x1006c81cd // > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x1006c81d8 // // This function is hookable on this platform (idp: pc, 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:32:34 +0000 // __int64 __fastcall sub_1005A4800(__int64 a1) { unsigned __int64 v1; // rdx v1 = (a1 - 1) | ((unsigned __int64)(a1 - 1) >> 1) | (((a1 - 1) | ((unsigned __int64)(a1 - 1) >> 1)) >> 2) | (((a1 - 1) | ((unsigned __int64)(a1 - 1) >> 1) | (((a1 - 1) | ((unsigned __int64)(a1 - 1) >> 1)) >> 2)) >> 4) | (((a1 - 1) | ((unsigned __int64)(a1 - 1) >> 1) | (((a1 - 1) | ((unsigned __int64)(a1 - 1) >> 1)) >> 2) | (((a1 - 1) | ((unsigned __int64)(a1 - 1) >> 1) | (((a1 - 1) | ((unsigned __int64)(a1 - 1) >> 1)) >> 2)) >> 4)) >> 8); return (v1 | (v1 >> 16)) + 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source