{"type": "func", "start": 6442859824, "end": 6442859982, "name": "cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup from 0x180063d30 to 0x180063dce (158 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1801007e8\n// > <???> @ 0x180142d74\n// > <???> @ 0x180142da8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd9c0\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:21:52 +0000\n// \n\nvoid __fastcall cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup(cocos2d::CCParticleBatchNode *this, char a2)\n{\n  cocos2d::CCArray *v4; // rcx\n  __int64 v5; // rax\n  unsigned int *v6; // rbx\n  __int64 v7; // rax\n  _QWORD *v8; // rbx\n  _QWORD *i; // rsi\n\n  v4 = *((cocos2d::CCArray **)this + 26);\n  if ( v4 )\n  {\n    if ( (unsigned int)cocos2d::CCArray::count(v4) )\n    {\n      v5 = *((_QWORD *)this + 26);\n      if ( v5 )\n      {\n        v6 = *(unsigned int **)(v5 + 56);\n        v7 = *v6;\n        if ( (_DWORD)v7 )\n        {\n          v8 = *((_QWORD **)v6 + 2);\n          for ( i = &v8[v7 - 1]; v8 <= i; ++v8 )\n          {\n            if ( !*v8 )\n              break;\n            (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v8 + 896LL))(*v8, 0);\n          }\n        }\n      }\n    }\n  }\n  cocos2d::CCNode::removeAllChildrenWithCleanup(this, a2);\n  cocos2d::CCTextureAtlas::removeAllQuads(*((cocos2d::CCTextureAtlas **)this + 41));\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup from 0x180063d30 to 0x180063dce (158 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1801007e8\n; > <???> @ 0x180142d74\n; > <???> @ 0x180142da8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd9c0\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:21:52 +0000\n; \nmov     [rsp+arg_10], rbp                                              ; +0x0, 0x180063d30\npush    rdi                                                            ; +0x5, 0x180063d35\nsub     rsp, 20h                                                       ; +0x6, 0x180063d36\nmov     rdi, rcx                                                       ; +0xa, 0x180063d3a\nmovzx   ebp, dl                                                        ; +0xd, 0x180063d3d\nmov     rcx, [rcx+0D0h]; this                                          ; +0x10, 0x180063d40\ntest    rcx, rcx                                                       ; +0x17, 0x180063d47\njz      short loc_180063DAC                                            ; +0x1a, 0x180063d4a\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1c, 0x180063d4c\ntest    eax, eax                                                       ; +0x21, 0x180063d51\njz      short loc_180063DAC                                            ; +0x23, 0x180063d53\nmov     rax, [rdi+0D0h]                                                ; +0x25, 0x180063d55\ntest    rax, rax                                                       ; +0x2c, 0x180063d5c\njz      short loc_180063DAC                                            ; +0x2f, 0x180063d5f\nmov     [rsp+28h+arg_0], rbx                                           ; +0x31, 0x180063d61\nmov     rbx, [rax+38h]                                                 ; +0x36, 0x180063d66\nmov     eax, [rbx]                                                     ; +0x3a, 0x180063d6a\ntest    eax, eax                                                       ; +0x3c, 0x180063d6c\njz      short loc_180063DA7                                            ; +0x3e, 0x180063d6e\nmov     rbx, [rbx+10h]                                                 ; +0x40, 0x180063d70\nmov     [rsp+28h+arg_8], rsi                                           ; +0x44, 0x180063d74\nlea     rsi, [rax-1]                                                   ; +0x49, 0x180063d79\nlea     rsi, [rbx+rsi*8]                                               ; +0x4d, 0x180063d7d\ncmp     rbx, rsi                                                       ; +0x51, 0x180063d81\nja      short loc_180063DA2                                            ; +0x54, 0x180063d84\nmov     rcx, [rbx]                                                     ; +0x56, 0x180063d86\ntest    rcx, rcx                                                       ; +0x59, 0x180063d89\njz      short loc_180063DA2                                            ; +0x5c, 0x180063d8c\nmov     rax, [rcx]                                                     ; +0x5e, 0x180063d8e\nxor     edx, edx                                                       ; +0x61, 0x180063d91\ncall    qword ptr [rax+380h]                                           ; +0x63, 0x180063d93\nadd     rbx, 8                                                         ; +0x69, 0x180063d99\ncmp     rbx, rsi                                                       ; +0x6d, 0x180063d9d\njbe     short loc_180063D86                                            ; +0x70, 0x180063da0\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x72, 0x180063da2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x77, 0x180063da7\nmovzx   edx, bpl; bool                                                 ; +0x7c, 0x180063dac\nmov     rcx, rdi; this                                                 ; +0x80, 0x180063db0\ncall    ?removeAllChildrenWithCleanup@CCNode@cocos2d@@UEAAX_N@Z; cocos2d::CCNode::removeAllChildrenWithCleanup(bool) ; +0x83, 0x180063db3\nmov     rcx, [rdi+148h]; this                                          ; +0x88, 0x180063db8\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x8f, 0x180063dbf\nadd     rsp, 20h                                                       ; +0x94, 0x180063dc4\npop     rdi                                                            ; +0x98, 0x180063dc8\njmp     ?removeAllQuads@CCTextureAtlas@cocos2d@@QEAAXXZ; cocos2d::CCTextureAtlas::removeAllQuads(void) ; +0x99, 0x180063dc9", "xrefs": ["<???> @ 0x1801007e8", "<???> @ 0x180142d74", "<???> @ 0x180142da8", "<???> @ 0x18014cf68", "<???> @ 0x1801bd9c0"], "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"}