{"type": "func", "start": 6442850576, "end": 6442850734, "name": "cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup from 0x180061910 to 0x1800619ae (158 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800fa2c0\n// > <???> @ 0x1801399e0\n// > <???> @ 0x180139a14\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3660\n// > <???> @ 0x1801b366c\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::removeAllChildrenWithCleanup(cocos2d::CCParticleBatchNode *this, char a2)\n{\n  cocos2d::CCArray *m_pChildren; // rcx\n  cocos2d::CCArray *v5; // rax\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rsi\n\n  m_pChildren = this->m_pChildren;\n  if ( m_pChildren )\n  {\n    if ( (unsigned int)cocos2d::CCArray::count(m_pChildren) )\n    {\n      v5 = this->m_pChildren;\n      if ( v5 )\n      {\n        data = v5->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            if ( !*arr )\n              break;\n            ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))(*arr)->__vftable[12].isEqual)(*arr, 0);\n          }\n        }\n      }\n    }\n  }\n  cocos2d::CCNode::removeAllChildrenWithCleanup(this, a2);\n  cocos2d::CCTextureAtlas::removeAllQuads(this->m_pTextureAtlas);\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup from 0x180061910 to 0x1800619ae (158 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800fa2c0\n; > <???> @ 0x1801399e0\n; > <???> @ 0x180139a14\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3660\n; > <???> @ 0x1801b366c\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_10], rbp                                              ; +0x0, 0x180061910\npush    rdi                                                            ; +0x5, 0x180061915\nsub     rsp, 20h                                                       ; +0x6, 0x180061916\nmov     rdi, rcx                                                       ; +0xa, 0x18006191a\nmovzx   ebp, dl                                                        ; +0xd, 0x18006191d\nmov     rcx, [rcx+0D0h]; this                                          ; +0x10, 0x180061920\ntest    rcx, rcx                                                       ; +0x17, 0x180061927\njz      short loc_18006198C                                            ; +0x1a, 0x18006192a\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1c, 0x18006192c\ntest    eax, eax                                                       ; +0x21, 0x180061931\njz      short loc_18006198C                                            ; +0x23, 0x180061933\nmov     rax, [rdi+0D0h]                                                ; +0x25, 0x180061935\ntest    rax, rax                                                       ; +0x2c, 0x18006193c\njz      short loc_18006198C                                            ; +0x2f, 0x18006193f\nmov     [rsp+28h+arg_0], rbx                                           ; +0x31, 0x180061941\nmov     rbx, [rax+38h]                                                 ; +0x36, 0x180061946\nmov     eax, [rbx]                                                     ; +0x3a, 0x18006194a\ntest    eax, eax                                                       ; +0x3c, 0x18006194c\njz      short loc_180061987                                            ; +0x3e, 0x18006194e\nmov     rbx, [rbx+10h]                                                 ; +0x40, 0x180061950\nmov     [rsp+28h+arg_8], rsi                                           ; +0x44, 0x180061954\nlea     rsi, [rax-1]                                                   ; +0x49, 0x180061959\nlea     rsi, [rbx+rsi*8]                                               ; +0x4d, 0x18006195d\ncmp     rbx, rsi                                                       ; +0x51, 0x180061961\nja      short loc_180061982                                            ; +0x54, 0x180061964\nmov     rcx, [rbx]                                                     ; +0x56, 0x180061966\ntest    rcx, rcx                                                       ; +0x59, 0x180061969\njz      short loc_180061982                                            ; +0x5c, 0x18006196c\nmov     rax, [rcx]                                                     ; +0x5e, 0x18006196e\nxor     edx, edx                                                       ; +0x61, 0x180061971\ncall    qword ptr [rax+370h]                                           ; +0x63, 0x180061973\nadd     rbx, 8                                                         ; +0x69, 0x180061979\ncmp     rbx, rsi                                                       ; +0x6d, 0x18006197d\njbe     short loc_180061966                                            ; +0x70, 0x180061980\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x72, 0x180061982\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x77, 0x180061987\nmovzx   edx, bpl; bool                                                 ; +0x7c, 0x18006198c\nmov     rcx, rdi; this                                                 ; +0x80, 0x180061990\ncall    ?removeAllChildrenWithCleanup@CCNode@cocos2d@@UEAAX_N@Z; cocos2d::CCNode::removeAllChildrenWithCleanup(bool) ; +0x83, 0x180061993\nmov     rcx, [rdi+148h]; this                                          ; +0x88, 0x180061998\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x8f, 0x18006199f\nadd     rsp, 20h                                                       ; +0x94, 0x1800619a4\npop     rdi                                                            ; +0x98, 0x1800619a8\njmp     ?removeAllQuads@CCTextureAtlas@cocos2d@@QEAAXXZ; cocos2d::CCTextureAtlas::removeAllQuads(void) ; +0x99, 0x1800619a9", "xrefs": ["<???> @ 0x1800fa2c0", "<???> @ 0x1801399e0", "<???> @ 0x180139a14", "<???> @ 0x1801438a8", "<???> @ 0x1801b3660", "<???> @ 0x1801b366c"], "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"}