// // cocos2d::CCSpriteBatchNode::swap from 0x18008f190 to 0x18008f299 (265 bytes) // // 7 xrefs: // > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x18008ee9e // > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f36a // > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f3c9 // > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f418 // > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f447 // > @ 0x1801438a8 // > @ 0x1801b6138 // // 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 *this, int a2, int a3) { __int64 v3; // rsi __int64 v4; // rdi cocos2d::CCObject **arr; // rbx __int64 v6; // rax cocos2d::CCObject *v7; // r8 cocos2d::CCObject **v8; // r10 __int64 v9; // r9 __int128 *v10; // rdx __int128 v11; // xmm6 __int128 v12; // xmm7 __int128 v13; // xmm2 __int128 v14; // xmm3 __int128 v15; // xmm4 __int128 v16; // xmm5 __int64 v17; // rax v3 = a3; v4 = a2; arr = this->m_pobDescendants->data->arr; v6 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getQuads)(this->m_pobTextureAtlas); v7 = arr[v4]; v8 = &arr[v4]; v9 = v6; v10 = (__int128 *)(v6 + 96 * v4); v11 = v10[4]; v12 = v10[5]; v13 = *v10; v14 = v10[1]; v15 = v10[2]; v16 = v10[3]; arr[v3][6].m_uAutoReleaseCount = v4; *v8 = arr[v3]; v17 = 96 * v3; *v10 = *(_OWORD *)(96 * v3 + v9); v10[1] = *(_OWORD *)(96 * v3 + v9 + 16); v10[2] = *(_OWORD *)(96 * v3 + v9 + 32); v10[3] = *(_OWORD *)(96 * v3 + v9 + 48); v10[4] = *(_OWORD *)(96 * v3 + v9 + 64); v10[5] = *(_OWORD *)(96 * v3 + v9 + 80); arr[v3] = v7; *(_OWORD *)(v17 + v9) = v13; *(_OWORD *)(v17 + v9 + 16) = v14; *(_OWORD *)(v17 + v9 + 32) = v15; *(_OWORD *)(v17 + v9 + 48) = v16; *(_OWORD *)(v17 + v9 + 64) = v11; *(_OWORD *)(v17 + v9 + 80) = v12; (*v8)->m_unknown2 = v4; arr[v3]->m_unknown2 = v3; }