{"type": "func", "start": 6443048832, "end": 6443049002, "name": "cocos2d::CCSpriteBatchNode::removeAllChildrenWithCleanup", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::removeAllChildrenWithCleanup from 0x180091f80 to 0x18009202a (170 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800f25d0\n// > <???> @ 0x18010a588\n// > <???> @ 0x18010c318\n// > <???> @ 0x180146b2c\n// > <???> @ 0x180146b60\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0348\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::removeAllChildrenWithCleanup(cocos2d::CCSpriteBatchNode *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 + 43);\n  if ( v4 )\n  {\n    if ( (unsigned int)cocos2d::CCArray::count(v4) )\n    {\n      v5 = *((_QWORD *)this + 43);\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 + 968LL))(*v8, 0);\n          }\n        }\n      }\n    }\n  }\n  cocos2d::CCNode::removeAllChildrenWithCleanup(this, a2);\n  cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)this + 43));\n  cocos2d::CCTextureAtlas::removeAllQuads(*((cocos2d::CCTextureAtlas **)this + 41));\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::removeAllChildrenWithCleanup from 0x180091f80 to 0x18009202a (170 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800f25d0\n; > <???> @ 0x18010a588\n; > <???> @ 0x18010c318\n; > <???> @ 0x180146b2c\n; > <???> @ 0x180146b60\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0348\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_10], rbp                                              ; +0x0, 0x180091f80\npush    rdi                                                            ; +0x5, 0x180091f85\nsub     rsp, 20h                                                       ; +0x6, 0x180091f86\nmov     rdi, rcx                                                       ; +0xa, 0x180091f8a\nmovzx   ebp, dl                                                        ; +0xd, 0x180091f8d\nmov     rcx, [rcx+158h]; this                                          ; +0x10, 0x180091f90\ntest    rcx, rcx                                                       ; +0x17, 0x180091f97\njz      short loc_180091FFC                                            ; +0x1a, 0x180091f9a\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1c, 0x180091f9c\ntest    eax, eax                                                       ; +0x21, 0x180091fa1\njz      short loc_180091FFC                                            ; +0x23, 0x180091fa3\nmov     rax, [rdi+158h]                                                ; +0x25, 0x180091fa5\ntest    rax, rax                                                       ; +0x2c, 0x180091fac\njz      short loc_180091FFC                                            ; +0x2f, 0x180091faf\nmov     [rsp+28h+arg_0], rbx                                           ; +0x31, 0x180091fb1\nmov     rbx, [rax+38h]                                                 ; +0x36, 0x180091fb6\nmov     eax, [rbx]                                                     ; +0x3a, 0x180091fba\ntest    eax, eax                                                       ; +0x3c, 0x180091fbc\njz      short loc_180091FF7                                            ; +0x3e, 0x180091fbe\nmov     rbx, [rbx+10h]                                                 ; +0x40, 0x180091fc0\nmov     [rsp+28h+arg_8], rsi                                           ; +0x44, 0x180091fc4\nlea     rsi, [rax-1]                                                   ; +0x49, 0x180091fc9\nlea     rsi, [rbx+rsi*8]                                               ; +0x4d, 0x180091fcd\ncmp     rbx, rsi                                                       ; +0x51, 0x180091fd1\nja      short loc_180091FF2                                            ; +0x54, 0x180091fd4\nmov     rcx, [rbx]                                                     ; +0x56, 0x180091fd6\ntest    rcx, rcx                                                       ; +0x59, 0x180091fd9\njz      short loc_180091FF2                                            ; +0x5c, 0x180091fdc\nmov     rax, [rcx]                                                     ; +0x5e, 0x180091fde\nxor     edx, edx                                                       ; +0x61, 0x180091fe1\ncall    qword ptr [rax+3C8h]                                           ; +0x63, 0x180091fe3\nadd     rbx, 8                                                         ; +0x69, 0x180091fe9\ncmp     rbx, rsi                                                       ; +0x6d, 0x180091fed\njbe     short loc_180091FD6                                            ; +0x70, 0x180091ff0\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x72, 0x180091ff2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x77, 0x180091ff7\nmovzx   edx, bpl; bool                                                 ; +0x7c, 0x180091ffc\nmov     rcx, rdi; this                                                 ; +0x80, 0x180092000\ncall    ?removeAllChildrenWithCleanup@CCNode@cocos2d@@UEAAX_N@Z; cocos2d::CCNode::removeAllChildrenWithCleanup(bool) ; +0x83, 0x180092003\nmov     rcx, [rdi+158h]; this                                          ; +0x88, 0x180092008\ncall    ?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0x8f, 0x18009200f\nmov     rcx, [rdi+148h]; this                                          ; +0x94, 0x180092014\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x9b, 0x18009201b\nadd     rsp, 20h                                                       ; +0xa0, 0x180092020\npop     rdi                                                            ; +0xa4, 0x180092024\njmp     ?removeAllQuads@CCTextureAtlas@cocos2d@@QEAAXXZ; cocos2d::CCTextureAtlas::removeAllQuads(void) ; +0xa5, 0x180092025", "xrefs": ["<???> @ 0x1800f25d0", "<???> @ 0x18010a588", "<???> @ 0x18010c318", "<???> @ 0x180146b2c", "<???> @ 0x180146b60", "<???> @ 0x18014cf68", "<???> @ 0x1801c0348"], "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"}