// // cocos2d::CCSpriteBatchNode::swap from 0x1001d7ae0 to 0x1001d7ba4 (196 bytes) // // 4 xrefs: // > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x1001d76e8 // > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x1001d79fc // > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x1001d7a5c // > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x1001d7ab8 // // 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::swap(cocos2d::CCSpriteBatchNode *a1, int a2, int a3) { cocos2d::CCObject **arr; // x21 __int64 v6; // x0 cocos2d::CCObject *v7; // x8 __int128 *v8; // x10 cocos2d::CCObject *v9; // x11 __int128 *v10; // x9 __int128 v11; // q0 __int128 v12; // q1 __int128 v13; // q2 __int128 v14; // q3 __int128 v15; // [xsp+0h] [xbp-80h] __int128 v16; // [xsp+10h] [xbp-70h] __int128 v17; // [xsp+20h] [xbp-60h] __int128 v18; // [xsp+30h] [xbp-50h] __int128 v19; // [xsp+40h] [xbp-40h] __int128 v20; // [xsp+50h] [xbp-30h] arr = a1->m_pobDescendants->data->arr; v6 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))a1->m_pobTextureAtlas->getQuads)(a1->m_pobTextureAtlas); v7 = arr[a2]; v8 = (__int128 *)(v6 + 96LL * a2); v17 = v8[2]; v18 = v8[3]; v19 = v8[4]; v20 = v8[5]; v15 = *v8; v16 = v8[1]; v9 = arr[a3]; v9[6].m_uAutoReleaseCount = a2; arr[a2] = v9; v10 = (__int128 *)(v6 + 96LL * a3); v11 = v10[1]; *v8 = *v10; v8[1] = v11; v12 = v10[5]; v14 = v10[2]; v13 = v10[3]; v8[4] = v10[4]; v8[5] = v12; v8[2] = v14; v8[3] = v13; arr[a3] = v7; v10[2] = v17; v10[3] = v18; v10[4] = v19; v10[5] = v20; *v10 = v15; v10[1] = v16; arr[a2]->m_unknown2 = a2; arr[a3]->m_unknown2 = a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source