// // cocos2d::CCSpriteBatchNode::updateQuadFromSprite from 0x18008f4b0 to 0x18008f585 (213 bytes) // // 2 xrefs: // > @ 0x1801438a8 // > @ 0x1801b61bc // // 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 // void __fastcall cocos2d::CCSpriteBatchNode::updateQuadFromSprite( cocos2d::CCSpriteBatchNode *this, struct cocos2d::CCSprite *a2, unsigned int a3) { int v6; // edi unsigned int v7; // edi cocos2d::CCSprite_vtbl *v8; // rax __int64 v9; // rdx while ( 1 ) { if ( a3 < ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getCapacity)(this->m_pobTextureAtlas) ) { v6 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getCapacity)(this->m_pobTextureAtlas); if ( v6 != ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getTotalQuads)(this->m_pobTextureAtlas) ) break; } v7 = (4 * ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getCapacity)(this->m_pobTextureAtlas) + 4) / 3; if ( ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getCapacity)(this->m_pobTextureAtlas) < v7 ) cocos2d::CCTextureAtlas::resizeCapacity(this->m_pobTextureAtlas, v7); } ((void (__fastcall *)(struct cocos2d::CCSprite *, cocos2d::CCSpriteBatchNode *))a2->setBatchNode)(a2, this); v8 = a2->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; LOBYTE(v9) = 1; a2->m_uAtlasIndex = a3; ((void (__fastcall *)(struct cocos2d::CCSprite *, __int64))v8->setDirty)(a2, v9); ((void (__fastcall *)(struct cocos2d::CCSprite *))a2->updateTransform)(a2); }