// // cocos2d::CCSpriteBatchNode::initWithTexture from 0xd896b0 to 0xd89794 (228 bytes) // // 6 xrefs: // > cocos2d::CCLabelBMFont::initWithString @ 0xd5a14c // > cocos2d::CCSpriteBatchNode::createWithTexture @ 0xd897c8 // > cocos2d::CCSpriteBatchNode::init @ 0xd89820 // > cocos2d::CCSpriteBatchNode::initWithFile @ 0xd89860 // > cocos2d::CCTMXLayer::initWithTilesetInfo @ 0xdab3b4 // > @ 0x9e0f8 // // 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 13:08:14 +0000 // __int64 __fastcall cocos2d::CCSpriteBatchNode::initWithTexture( cocos2d::CCSpriteBatchNode *this, cocos2d::CCTexture2D *a2, unsigned int a3) { cocos2d::CCTextureAtlas *v5; // x22 cocos2d::CCArray *v6; // x22 cocos2d::CCArray *v7; // x22 cocos2d::CCShaderCache *v8; // x0 void (__fastcall *v9)(cocos2d::CCSpriteBatchNode *, __int64); // x20 cocos2d::CCShaderCache *v10; // x0 __int64 v11; // x0 *((_DWORD *)this + 85) = 771; *((_DWORD *)this + 84) = 1; v5 = (cocos2d::CCTextureAtlas *)operator new(0x70u); cocos2d::CCTextureAtlas::CCTextureAtlas(v5); *((_QWORD *)this + 41) = v5; if ( !a3 ) a3 = 29; cocos2d::CCTextureAtlas::initWithTexture(v5, a2, a3); cocos2d::CCSpriteBatchNode::updateBlendFunc(this); v6 = (cocos2d::CCArray *)operator new(0x40u); cocos2d::CCArray::CCArray(v6); *((_QWORD *)this + 26) = v6; cocos2d::CCArray::initWithCapacity(v6, a3); v7 = (cocos2d::CCArray *)operator new(0x40u); cocos2d::CCArray::CCArray(v7); *((_QWORD *)this + 43) = v7; cocos2d::CCArray::initWithCapacity(v7, a3); *((_BYTE *)this + 352) = 0; v8 = *(cocos2d::CCShaderCache **)this; *((_BYTE *)this + 353) = 0; v9 = *((void (__fastcall **)(cocos2d::CCSpriteBatchNode *, __int64))v8 + 83); v10 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(v8); v11 = cocos2d::CCShaderCache::programForKey(v10, "ShaderPositionTextureColor"); v9(this, v11); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source