{"type": "func", "start": 6442463776, "end": 6442463930, "name": "cocos2d::CCNode::detachChild", "pseudocode": "// \n// cocos2d::CCNode::detachChild from 0x180003220 to 0x1800032ba (154 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCNode::removeChild @ 0x1800046d8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad2a0\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::CCNode::detachChild(cocos2d::CCNode *this, struct cocos2d::CCNode *a2, char a3)\n{\n  cocos2d::CCArray *m_pChildren; // rcx\n\n  if ( this->m_bRunning )\n  {\n    ((void (__fastcall *)(struct cocos2d::CCNode *))a2->onExitTransitionDidStart)(a2);\n    ((void (__fastcall *)(struct cocos2d::CCNode *))a2->onExit)(a2);\n  }\n  if ( a3 )\n    ((void (__fastcall *)(struct cocos2d::CCNode *))a2->cleanup)(a2);\n  ((void (__fastcall *)(struct cocos2d::CCNode *, _QWORD))a2->setParent)(a2, 0);\n  m_pChildren = this->m_pChildren;\n  if ( this->m_bUseChildIndex )\n    cocos2d::CCArray::removeObjectAtIndexChild(m_pChildren, a2->m_uUnknown, 1);\n  else\n    cocos2d::CCArray::removeObject(m_pChildren, a2, 1);\n}", "assembly": "; \n; cocos2d::CCNode::detachChild from 0x180003220 to 0x1800032ba (154 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCNode::removeChild @ 0x1800046d8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad2a0\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_0], rbx                                               ; +0x0, 0x180003220\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180003225\npush    rdi                                                            ; +0xa, 0x18000322a\nsub     rsp, 20h                                                       ; +0xb, 0x18000322b\ncmp     byte ptr [rcx+110h], 0                                         ; +0xf, 0x18000322f\nmovzx   esi, r8b                                                       ; +0x16, 0x180003236\nmov     rbx, rdx                                                       ; +0x1a, 0x18000323a\nmov     rdi, rcx                                                       ; +0x1d, 0x18000323d\njz      short loc_18000325A                                            ; +0x20, 0x180003240\nmov     rax, [rdx]                                                     ; +0x22, 0x180003242\nmov     rcx, rdx                                                       ; +0x25, 0x180003245\ncall    qword ptr [rax+2C0h]                                           ; +0x28, 0x180003248\nmov     rax, [rbx]                                                     ; +0x2e, 0x18000324e\nmov     rcx, rbx                                                       ; +0x31, 0x180003251\ncall    qword ptr [rax+2B8h]                                           ; +0x34, 0x180003254\ntest    sil, sil                                                       ; +0x3a, 0x18000325a\njz      short loc_18000326B                                            ; +0x3d, 0x18000325d\nmov     rax, [rbx]                                                     ; +0x3f, 0x18000325f\nmov     rcx, rbx                                                       ; +0x42, 0x180003262\ncall    qword ptr [rax+2C8h]                                           ; +0x45, 0x180003265\nmov     rax, [rbx]                                                     ; +0x4b, 0x18000326b\nxor     edx, edx                                                       ; +0x4e, 0x18000326e\nmov     rcx, rbx                                                       ; +0x50, 0x180003270\ncall    qword ptr [rax+1E0h]                                           ; +0x53, 0x180003273\ncmp     byte ptr [rdi+138h], 0                                         ; +0x59, 0x180003279\nmov     r8b, 1; bool                                                   ; +0x60, 0x180003280\nmov     rcx, [rdi+0D0h]; this                                          ; +0x63, 0x180003283\njz      short loc_1800032A3                                            ; +0x6a, 0x18000328a\nmov     edx, [rbx+24h]; unsigned int                                   ; +0x6c, 0x18000328c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6f, 0x18000328f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x74, 0x180003294\nadd     rsp, 20h                                                       ; +0x79, 0x180003299\npop     rdi                                                            ; +0x7d, 0x18000329d\njmp     ?removeObjectAtIndexChild@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndexChild(uint,bool) ; +0x7e, 0x18000329e\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x83, 0x1800032a3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x86, 0x1800032a6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x8b, 0x1800032ab\nadd     rsp, 20h                                                       ; +0x90, 0x1800032b0\npop     rdi                                                            ; +0x94, 0x1800032b4\njmp     ?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x95, 0x1800032b5", "xrefs": ["cocos2d::CCNode::removeChild @ 0x1800046d8", "<???> @ 0x1801438a8", "<???> @ 0x1801ad2a0"], "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"}