{"type": "func", "start": 6443049936, "end": 6443050201, "name": "cocos2d::CCSpriteBatchNode::swap", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::swap from 0x1800923d0 to 0x1800924d9 (265 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x1800920ce\n// > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x1800925a8\n// > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x180092607\n// > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x180092656\n// > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x180092685\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c03f0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:08 +0000\n// \n\nvoid __fastcall cocos2d::CCSpriteBatchNode::swap(cocos2d::CCSpriteBatchNode *this, int a2, int a3)\n{\n  __int64 v3; // rsi\n  __int64 v4; // rdi\n  __int64 v5; // rbx\n  __int64 v6; // rax\n  __int64 v7; // r8\n  __int64 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  v5 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 43) + 56LL) + 16LL);\n  v6 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 104LL))(*((_QWORD *)this + 41));\n  v7 = *(_QWORD *)(v5 + 8 * v4);\n  v8 = v5 + 8 * 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  *(_DWORD *)(*(_QWORD *)(v5 + 8 * v3) + 360LL) = v4;\n  *(_QWORD *)v8 = *(_QWORD *)(v5 + 8 * 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  *(_QWORD *)(v5 + 8 * 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  *(_DWORD *)(*(_QWORD *)v8 + 40LL) = v4;\n  *(_DWORD *)(*(_QWORD *)(v5 + 8 * v3) + 40LL) = v3;\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::swap from 0x1800923d0 to 0x1800924d9 (265 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x1800920ce\n; > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x1800925a8\n; > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x180092607\n; > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x180092656\n; > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x180092685\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c03f0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:08 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800923d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800923d5\npush    rdi                                                            ; +0xa, 0x1800923da\nsub     rsp, 40h                                                       ; +0xb, 0x1800923db\nmov     rax, [rcx+158h]                                                ; +0xf, 0x1800923df\nmov     rcx, [rcx+148h]                                                ; +0x16, 0x1800923e6\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x1d, 0x1800923ed\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x22, 0x1800923f2\nmov     r9, [rax+38h]                                                  ; +0x27, 0x1800923f7\nmov     rax, [rcx]                                                     ; +0x2b, 0x1800923fb\nmovsxd  rsi, r8d                                                       ; +0x2e, 0x1800923fe\nmovsxd  rdi, edx                                                       ; +0x31, 0x180092401\nmov     rbx, [r9+10h]                                                  ; +0x34, 0x180092404\ncall    qword ptr [rax+68h]                                            ; +0x38, 0x180092408\nmov     r8, [rbx+rdi*8]                                                ; +0x3b, 0x18009240b\nlea     r10, [rbx+rdi*8]                                               ; +0x3f, 0x18009240f\nmov     r9, rax                                                        ; +0x43, 0x180092413\nlea     rdx, [rdi+rdi*2]                                               ; +0x46, 0x180092416\nshl     rdx, 5                                                         ; +0x4a, 0x18009241a\nadd     rdx, rax                                                       ; +0x4e, 0x18009241e\nmov     rax, [rbx+rsi*8]                                               ; +0x51, 0x180092421\nmovups  xmm6, xmmword ptr [rdx+40h]                                    ; +0x55, 0x180092425\nmovups  xmm7, xmmword ptr [rdx+50h]                                    ; +0x59, 0x180092429\nmovups  xmm2, xmmword ptr [rdx]                                        ; +0x5d, 0x18009242d\nmovups  xmm3, xmmword ptr [rdx+10h]                                    ; +0x60, 0x180092430\nmovups  xmm4, xmmword ptr [rdx+20h]                                    ; +0x64, 0x180092434\nmovups  xmm5, xmmword ptr [rdx+30h]                                    ; +0x68, 0x180092438\nmov     [rax+168h], edi                                                ; +0x6c, 0x18009243c\nmov     rax, [rbx+rsi*8]                                               ; +0x72, 0x180092442\nmov     [r10], rax                                                     ; +0x76, 0x180092446\nlea     rax, [rsi+rsi*2]                                               ; +0x79, 0x180092449\nshl     rax, 5                                                         ; +0x7d, 0x18009244d\nmovups  xmm0, xmmword ptr [rax+r9]                                     ; +0x81, 0x180092451\nmovups  xmmword ptr [rdx], xmm0                                        ; +0x86, 0x180092456\nmovups  xmm1, xmmword ptr [rax+r9+10h]                                 ; +0x89, 0x180092459\nmovups  xmmword ptr [rdx+10h], xmm1                                    ; +0x8f, 0x18009245f\nmovups  xmm0, xmmword ptr [rax+r9+20h]                                 ; +0x93, 0x180092463\nmovups  xmmword ptr [rdx+20h], xmm0                                    ; +0x99, 0x180092469\nmovups  xmm1, xmmword ptr [rax+r9+30h]                                 ; +0x9d, 0x18009246d\nmovups  xmmword ptr [rdx+30h], xmm1                                    ; +0xa3, 0x180092473\nmovups  xmm0, xmmword ptr [rax+r9+40h]                                 ; +0xa7, 0x180092477\nmovups  xmmword ptr [rdx+40h], xmm0                                    ; +0xad, 0x18009247d\nmovups  xmm1, xmmword ptr [rax+r9+50h]                                 ; +0xb1, 0x180092481\nmovups  xmmword ptr [rdx+50h], xmm1                                    ; +0xb7, 0x180092487\nmov     [rbx+rsi*8], r8                                                ; +0xbb, 0x18009248b\nmovups  xmmword ptr [rax+r9], xmm2                                     ; +0xbf, 0x18009248f\nmovups  xmmword ptr [rax+r9+10h], xmm3                                 ; +0xc4, 0x180092494\nmovups  xmmword ptr [rax+r9+20h], xmm4                                 ; +0xca, 0x18009249a\nmovups  xmmword ptr [rax+r9+30h], xmm5                                 ; +0xd0, 0x1800924a0\nmovups  xmmword ptr [rax+r9+40h], xmm6                                 ; +0xd6, 0x1800924a6\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xdc, 0x1800924ac\nmovups  xmmword ptr [rax+r9+50h], xmm7                                 ; +0xe1, 0x1800924b1\nmov     rax, [r10]                                                     ; +0xe7, 0x1800924b7\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xea, 0x1800924ba\nmov     [rax+28h], edi                                                 ; +0xef, 0x1800924bf\nmov     rax, [rbx+rsi*8]                                               ; +0xf2, 0x1800924c2\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xf6, 0x1800924c6\nmov     [rax+28h], esi                                                 ; +0xfb, 0x1800924cb\nmov     rsi, [rsp+48h+arg_8]                                           ; +0xfe, 0x1800924ce\nadd     rsp, 40h                                                       ; +0x103, 0x1800924d3\npop     rdi                                                            ; +0x107, 0x1800924d7\nretn                                                                   ; +0x108, 0x1800924d8", "xrefs": ["cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x1800920ce", "cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x1800925a8", "cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x180092607", "cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x180092656", "cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x180092685", "<???> @ 0x18014cf68", "<???> @ 0x1801c03f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}