{"type": "func", "start": 6442850736, "end": 6442850962, "name": "cocos2d::CCParticleBatchNode::removeChild", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::removeChild from 0x1800619b0 to 0x180061a92 (226 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800fa298\n// > <???> @ 0x180139948\n// > <???> @ 0x180139958\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b36a8\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::removeChild(\n        cocos2d::CCParticleBatchNode *this,\n        struct cocos2d::CCNode *a2,\n        char a3)\n{\n  float d; // ebx\n  unsigned int v7; // eax\n  cocos2d::CCTextureAtlas *m_pTextureAtlas; // rdi\n  unsigned int v9; // ebx\n  unsigned int v10; // eax\n\n  if ( a2 )\n  {\n    _RTDynamicCast(a2, 0, &cocos2d::CCNode `RTTI Type Descriptor', &cocos2d::CCParticleSystem `RTTI Type Descriptor', 0);\n    cocos2d::CCArray::containsObject(this->m_pChildren, a2);\n    cocos2d::CCNode::removeChild(this, a2, a3);\n    d = a2[1].m_sAdditionalTransform.d;\n    v7 = ((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->__vftable[1].getUserData)(a2);\n    cocos2d::CCTextureAtlas::removeQuadsAtIndex(this->m_pTextureAtlas, LODWORD(d), v7);\n    m_pTextureAtlas = this->m_pTextureAtlas;\n    v9 = ((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->__vftable[1].getUserData)(a2);\n    v10 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))m_pTextureAtlas->getTotalQuads)(m_pTextureAtlas);\n    cocos2d::CCTextureAtlas::fillWithEmptyQuadsFromIndex(this->m_pTextureAtlas, v10, v9);\n    ((void (__fastcall *)(struct cocos2d::CCNode *, _QWORD))a2->__vftable[1].~CCNode)(a2, 0);\n    cocos2d::CCParticleBatchNode::updateAllAtlasIndexes(this);\n  }\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::removeChild from 0x1800619b0 to 0x180061a92 (226 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800fa298\n; > <???> @ 0x180139948\n; > <???> @ 0x180139958\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b36a8\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\ntest    rdx, rdx                                                       ; +0x0, 0x1800619b0\njz      locret_180061A91                                               ; +0x3, 0x1800619b3\nmov     [rsp+arg_8], rbx                                               ; +0x9, 0x1800619b9\nmov     [rsp+arg_10], rbp                                              ; +0xe, 0x1800619be\npush    rsi                                                            ; +0x13, 0x1800619c3\nsub     rsp, 30h                                                       ; +0x14, 0x1800619c4\nmov     rsi, rdx                                                       ; +0x18, 0x1800619c8\nmov     [rsp+38h+arg_0], rdi                                           ; +0x1b, 0x1800619cb\nmovzx   ebx, r8b                                                       ; +0x20, 0x1800619d0\nmov     [rsp+38h+var_18], 0                                            ; +0x24, 0x1800619d4\nmov     rbp, rcx                                                       ; +0x2c, 0x1800619dc\nlea     r9, ??_R0?AVCCParticleSystem@cocos2d@@@8; cocos2d::CCParticleSystem `RTTI Type Descriptor' ; +0x2f, 0x1800619df\nmov     rcx, rsi                                                       ; +0x36, 0x1800619e6\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x39, 0x1800619e9\nxor     edx, edx                                                       ; +0x40, 0x1800619f0\ncall    __RTDynamicCast                                                ; +0x42, 0x1800619f2\nmov     rcx, [rbp+0D0h]; this                                          ; +0x47, 0x1800619f7\nmov     rdx, rsi; struct cocos2d::CCObject *                           ; +0x4e, 0x1800619fe\ncall    ?containsObject@CCArray@cocos2d@@QEBA_NPEAVCCObject@2@@Z; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x51, 0x180061a01\nmovzx   r8d, bl; bool                                                  ; +0x56, 0x180061a06\nmov     rdx, rsi; struct cocos2d::CCNode *                             ; +0x5a, 0x180061a0a\nmov     rcx, rbp; this                                                 ; +0x5d, 0x180061a0d\ncall    ?removeChild@CCNode@cocos2d@@UEAAXPEAV12@_N@Z; cocos2d::CCNode::removeChild(cocos2d::CCNode *,bool) ; +0x60, 0x180061a10\nmov     rax, [rsi]                                                     ; +0x65, 0x180061a15\nmov     rcx, rsi                                                       ; +0x68, 0x180061a18\nmov     ebx, [rsi+1C0h]                                                ; +0x6b, 0x180061a1b\ncall    qword ptr [rax+5C0h]                                           ; +0x71, 0x180061a21\nmov     rcx, [rbp+148h]; this                                          ; +0x77, 0x180061a27\nmov     edx, ebx; unsigned int                                         ; +0x7e, 0x180061a2e\nmov     r8d, eax; unsigned int                                         ; +0x80, 0x180061a30\ncall    ?removeQuadsAtIndex@CCTextureAtlas@cocos2d@@QEAAXII@Z; cocos2d::CCTextureAtlas::removeQuadsAtIndex(uint,uint) ; +0x83, 0x180061a33\nmov     rax, [rsi]                                                     ; +0x88, 0x180061a38\nmov     rcx, rsi                                                       ; +0x8b, 0x180061a3b\nmov     rdi, [rbp+148h]                                                ; +0x8e, 0x180061a3e\ncall    qword ptr [rax+5C0h]                                           ; +0x95, 0x180061a45\nmov     rdx, [rdi]                                                     ; +0x9b, 0x180061a4b\nmov     rcx, rdi                                                       ; +0x9e, 0x180061a4e\nmov     ebx, eax                                                       ; +0xa1, 0x180061a51\ncall    qword ptr [rdx+48h]                                            ; +0xa3, 0x180061a53\nmov     rcx, [rbp+148h]; this                                          ; +0xa6, 0x180061a56\nmov     r8d, ebx; unsigned int                                         ; +0xad, 0x180061a5d\nmov     edx, eax; unsigned int                                         ; +0xb0, 0x180061a60\ncall    ?fillWithEmptyQuadsFromIndex@CCTextureAtlas@cocos2d@@QEAAXII@Z; cocos2d::CCTextureAtlas::fillWithEmptyQuadsFromIndex(uint,uint) ; +0xb2, 0x180061a62\nmov     rax, [rsi]                                                     ; +0xb7, 0x180061a67\nxor     edx, edx                                                       ; +0xba, 0x180061a6a\nmov     rcx, rsi                                                       ; +0xbc, 0x180061a6c\ncall    qword ptr [rax+370h]                                           ; +0xbf, 0x180061a6f\nmov     rcx, rbp; this                                                 ; +0xc5, 0x180061a75\ncall    ?updateAllAtlasIndexes@CCParticleBatchNode@cocos2d@@AEAAXXZ; cocos2d::CCParticleBatchNode::updateAllAtlasIndexes(void) ; +0xc8, 0x180061a78\nmov     rdi, [rsp+38h+arg_0]                                           ; +0xcd, 0x180061a7d\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xd2, 0x180061a82\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xd7, 0x180061a87\nadd     rsp, 30h                                                       ; +0xdc, 0x180061a8c\npop     rsi                                                            ; +0xe0, 0x180061a90\nretn                                                                   ; +0xe1, 0x180061a91", "xrefs": ["<???> @ 0x1800fa298", "<???> @ 0x180139948", "<???> @ 0x180139958", "<???> @ 0x1801438a8", "<???> @ 0x1801b36a8"], "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"}