{"type": "func", "start": 6442851840, "end": 6442851954, "name": "cocos2d::CCParticleBatchNode::updateAllAtlasIndexes", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::updateAllAtlasIndexes from 0x180061e00 to 0x180061e72 (114 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleBatchNode::insertChild @ 0x18006190b\n// > cocos2d::CCParticleBatchNode::removeChild @ 0x180061a78\n// > cocos2d::CCParticleBatchNode::reorderChild @ 0x180061c62\n// > <???> @ 0x180139a28\n// > <???> @ 0x180139a5c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b372c\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::CCParticleBatchNode::updateAllAtlasIndexes(cocos2d::CCParticleBatchNode *this)\n{\n  cocos2d::CCArray *m_pChildren; // rax\n  int v2; // edi\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rsi\n  cocos2d::CCObject *v7; // rcx\n  cocos2d::CCObject_vtbl *v8; // rax\n\n  m_pChildren = this->m_pChildren;\n  v2 = 0;\n  if ( m_pChildren )\n  {\n    data = m_pChildren->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = data->arr;\n      for ( i = &arr[num - 1]; arr <= i; ++arr )\n      {\n        v7 = *arr;\n        if ( !*arr )\n          break;\n        v8 = v7->__vftable;\n        LODWORD(v7[8].__vftable) = v2;\n        v2 += ((__int64 (*)(void))v8[20].update)();\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::updateAllAtlasIndexes from 0x180061e00 to 0x180061e72 (114 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleBatchNode::insertChild @ 0x18006190b\n; > cocos2d::CCParticleBatchNode::removeChild @ 0x180061a78\n; > cocos2d::CCParticleBatchNode::reorderChild @ 0x180061c62\n; > <???> @ 0x180139a28\n; > <???> @ 0x180139a5c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b372c\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\npush    rdi                                                            ; +0x0, 0x180061e00\nsub     rsp, 20h                                                       ; +0x2, 0x180061e02\nmov     rax, [rcx+0D0h]                                                ; +0x6, 0x180061e06\nxor     edi, edi                                                       ; +0xd, 0x180061e0d\ntest    rax, rax                                                       ; +0xf, 0x180061e0f\njz      short loc_180061E6C                                            ; +0x12, 0x180061e12\nmov     [rsp+28h+arg_0], rbx                                           ; +0x14, 0x180061e14\nmov     rbx, [rax+38h]                                                 ; +0x19, 0x180061e19\nmov     eax, [rbx]                                                     ; +0x1d, 0x180061e1d\ntest    eax, eax                                                       ; +0x1f, 0x180061e1f\njz      short loc_180061E67                                            ; +0x21, 0x180061e21\nmov     rbx, [rbx+10h]                                                 ; +0x23, 0x180061e23\nmov     [rsp+28h+arg_8], rsi                                           ; +0x27, 0x180061e27\nlea     rsi, [rax-1]                                                   ; +0x2c, 0x180061e2c\nlea     rsi, [rbx+rsi*8]                                               ; +0x30, 0x180061e30\ncmp     rbx, rsi                                                       ; +0x34, 0x180061e34\nja      short loc_180061E62                                            ; +0x37, 0x180061e37\nnop     dword ptr [rax+00000000h]                                      ; +0x39, 0x180061e39\nmov     rcx, [rbx]                                                     ; +0x40, 0x180061e40\ntest    rcx, rcx                                                       ; +0x43, 0x180061e43\njz      short loc_180061E62                                            ; +0x46, 0x180061e46\nmov     rax, [rcx]                                                     ; +0x48, 0x180061e48\nmov     [rcx+1C0h], edi                                                ; +0x4b, 0x180061e4b\ncall    qword ptr [rax+5C0h]                                           ; +0x51, 0x180061e51\nadd     edi, eax                                                       ; +0x57, 0x180061e57\nadd     rbx, 8                                                         ; +0x59, 0x180061e59\ncmp     rbx, rsi                                                       ; +0x5d, 0x180061e5d\njbe     short loc_180061E40                                            ; +0x60, 0x180061e60\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x62, 0x180061e62\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x67, 0x180061e67\nadd     rsp, 20h                                                       ; +0x6c, 0x180061e6c\npop     rdi                                                            ; +0x70, 0x180061e70\nretn                                                                   ; +0x71, 0x180061e71", "xrefs": ["cocos2d::CCParticleBatchNode::insertChild @ 0x18006190b", "cocos2d::CCParticleBatchNode::removeChild @ 0x180061a78", "cocos2d::CCParticleBatchNode::reorderChild @ 0x180061c62", "<???> @ 0x180139a28", "<???> @ 0x180139a5c", "<???> @ 0x1801438a8", "<???> @ 0x1801b372c"], "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"}