{"type": "func", "start": 6443037072, "end": 6443037337, "name": "cocos2d::CCSpriteBatchNode::swap", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::swap from 0x18008f190 to 0x18008f299 (265 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x18008ee9e\n// > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f36a\n// > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f3c9\n// > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f418\n// > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f447\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6138\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCSpriteBatchNode::swap(cocos2d::CCSpriteBatchNode *this, int a2, int a3)\n{\n  __int64 v3; // rsi\n  __int64 v4; // rdi\n  cocos2d::CCObject **arr; // rbx\n  __int64 v6; // rax\n  cocos2d::CCObject *v7; // r8\n  cocos2d::CCObject **v8; // r10\n  __int64 v9; // r9\n  __int128 *v10; // rdx\n  __int128 v11; // xmm6\n  __int128 v12; // xmm7\n  __int128 v13; // xmm2\n  __int128 v14; // xmm3\n  __int128 v15; // xmm4\n  __int128 v16; // xmm5\n  __int64 v17; // rax\n\n  v3 = a3;\n  v4 = a2;\n  arr = this->m_pobDescendants->data->arr;\n  v6 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getQuads)(this->m_pobTextureAtlas);\n  v7 = arr[v4];\n  v8 = &arr[v4];\n  v9 = v6;\n  v10 = (__int128 *)(v6 + 96 * v4);\n  v11 = v10[4];\n  v12 = v10[5];\n  v13 = *v10;\n  v14 = v10[1];\n  v15 = v10[2];\n  v16 = v10[3];\n  arr[v3][6].m_uAutoReleaseCount = v4;\n  *v8 = arr[v3];\n  v17 = 96 * v3;\n  *v10 = *(_OWORD *)(96 * v3 + v9);\n  v10[1] = *(_OWORD *)(96 * v3 + v9 + 16);\n  v10[2] = *(_OWORD *)(96 * v3 + v9 + 32);\n  v10[3] = *(_OWORD *)(96 * v3 + v9 + 48);\n  v10[4] = *(_OWORD *)(96 * v3 + v9 + 64);\n  v10[5] = *(_OWORD *)(96 * v3 + v9 + 80);\n  arr[v3] = v7;\n  *(_OWORD *)(v17 + v9) = v13;\n  *(_OWORD *)(v17 + v9 + 16) = v14;\n  *(_OWORD *)(v17 + v9 + 32) = v15;\n  *(_OWORD *)(v17 + v9 + 48) = v16;\n  *(_OWORD *)(v17 + v9 + 64) = v11;\n  *(_OWORD *)(v17 + v9 + 80) = v12;\n  (*v8)->m_unknown2 = v4;\n  arr[v3]->m_unknown2 = v3;\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::swap from 0x18008f190 to 0x18008f299 (265 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x18008ee9e\n; > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f36a\n; > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f3c9\n; > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f418\n; > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f447\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6138\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008f190\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008f195\npush    rdi                                                            ; +0xa, 0x18008f19a\nsub     rsp, 40h                                                       ; +0xb, 0x18008f19b\nmov     rax, [rcx+158h]                                                ; +0xf, 0x18008f19f\nmov     rcx, [rcx+148h]                                                ; +0x16, 0x18008f1a6\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x1d, 0x18008f1ad\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x22, 0x18008f1b2\nmov     r9, [rax+38h]                                                  ; +0x27, 0x18008f1b7\nmov     rax, [rcx]                                                     ; +0x2b, 0x18008f1bb\nmovsxd  rsi, r8d                                                       ; +0x2e, 0x18008f1be\nmovsxd  rdi, edx                                                       ; +0x31, 0x18008f1c1\nmov     rbx, [r9+10h]                                                  ; +0x34, 0x18008f1c4\ncall    qword ptr [rax+68h]                                            ; +0x38, 0x18008f1c8\nmov     r8, [rbx+rdi*8]                                                ; +0x3b, 0x18008f1cb\nlea     r10, [rbx+rdi*8]                                               ; +0x3f, 0x18008f1cf\nmov     r9, rax                                                        ; +0x43, 0x18008f1d3\nlea     rdx, [rdi+rdi*2]                                               ; +0x46, 0x18008f1d6\nshl     rdx, 5                                                         ; +0x4a, 0x18008f1da\nadd     rdx, rax                                                       ; +0x4e, 0x18008f1de\nmov     rax, [rbx+rsi*8]                                               ; +0x51, 0x18008f1e1\nmovups  xmm6, xmmword ptr [rdx+40h]                                    ; +0x55, 0x18008f1e5\nmovups  xmm7, xmmword ptr [rdx+50h]                                    ; +0x59, 0x18008f1e9\nmovups  xmm2, xmmword ptr [rdx]                                        ; +0x5d, 0x18008f1ed\nmovups  xmm3, xmmword ptr [rdx+10h]                                    ; +0x60, 0x18008f1f0\nmovups  xmm4, xmmword ptr [rdx+20h]                                    ; +0x64, 0x18008f1f4\nmovups  xmm5, xmmword ptr [rdx+30h]                                    ; +0x68, 0x18008f1f8\nmov     [rax+168h], edi                                                ; +0x6c, 0x18008f1fc\nmov     rax, [rbx+rsi*8]                                               ; +0x72, 0x18008f202\nmov     [r10], rax                                                     ; +0x76, 0x18008f206\nlea     rax, [rsi+rsi*2]                                               ; +0x79, 0x18008f209\nshl     rax, 5                                                         ; +0x7d, 0x18008f20d\nmovups  xmm0, xmmword ptr [rax+r9]                                     ; +0x81, 0x18008f211\nmovups  xmmword ptr [rdx], xmm0                                        ; +0x86, 0x18008f216\nmovups  xmm1, xmmword ptr [rax+r9+10h]                                 ; +0x89, 0x18008f219\nmovups  xmmword ptr [rdx+10h], xmm1                                    ; +0x8f, 0x18008f21f\nmovups  xmm0, xmmword ptr [rax+r9+20h]                                 ; +0x93, 0x18008f223\nmovups  xmmword ptr [rdx+20h], xmm0                                    ; +0x99, 0x18008f229\nmovups  xmm1, xmmword ptr [rax+r9+30h]                                 ; +0x9d, 0x18008f22d\nmovups  xmmword ptr [rdx+30h], xmm1                                    ; +0xa3, 0x18008f233\nmovups  xmm0, xmmword ptr [rax+r9+40h]                                 ; +0xa7, 0x18008f237\nmovups  xmmword ptr [rdx+40h], xmm0                                    ; +0xad, 0x18008f23d\nmovups  xmm1, xmmword ptr [rax+r9+50h]                                 ; +0xb1, 0x18008f241\nmovups  xmmword ptr [rdx+50h], xmm1                                    ; +0xb7, 0x18008f247\nmov     [rbx+rsi*8], r8                                                ; +0xbb, 0x18008f24b\nmovups  xmmword ptr [rax+r9], xmm2                                     ; +0xbf, 0x18008f24f\nmovups  xmmword ptr [rax+r9+10h], xmm3                                 ; +0xc4, 0x18008f254\nmovups  xmmword ptr [rax+r9+20h], xmm4                                 ; +0xca, 0x18008f25a\nmovups  xmmword ptr [rax+r9+30h], xmm5                                 ; +0xd0, 0x18008f260\nmovups  xmmword ptr [rax+r9+40h], xmm6                                 ; +0xd6, 0x18008f266\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xdc, 0x18008f26c\nmovups  xmmword ptr [rax+r9+50h], xmm7                                 ; +0xe1, 0x18008f271\nmov     rax, [r10]                                                     ; +0xe7, 0x18008f277\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xea, 0x18008f27a\nmov     [rax+28h], edi                                                 ; +0xef, 0x18008f27f\nmov     rax, [rbx+rsi*8]                                               ; +0xf2, 0x18008f282\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xf6, 0x18008f286\nmov     [rax+28h], esi                                                 ; +0xfb, 0x18008f28b\nmov     rsi, [rsp+48h+arg_8]                                           ; +0xfe, 0x18008f28e\nadd     rsp, 40h                                                       ; +0x103, 0x18008f293\npop     rdi                                                            ; +0x107, 0x18008f297\nretn                                                                   ; +0x108, 0x18008f298", "xrefs": ["cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x18008ee9e", "cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f36a", "cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f3c9", "cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f418", "cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x18008f447", "<???> @ 0x1801438a8", "<???> @ 0x1801b6138"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}