{"type": "func", "start": 6442463904, "end": 6442464058, "name": "cocos2d::CCNode::detachChild", "pseudocode": "// \n// cocos2d::CCNode::detachChild from 0x1800032a0 to 0x18000333a (154 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCNode::removeChild @ 0x1800047a8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b72b8\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:17 +0000\n// \n\nvoid __fastcall cocos2d::CCNode::detachChild(cocos2d::CCNode *this, struct cocos2d::CCNode *a2, char a3)\n{\n  cocos2d::CCArray *v6; // rcx\n\n  if ( *((_BYTE *)this + 272) )\n  {\n    (*(void (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 720LL))(a2);\n    (*(void (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 712LL))(a2);\n  }\n  if ( a3 )\n    (*(void (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 728LL))(a2);\n  (*(void (__fastcall **)(struct cocos2d::CCNode *, _QWORD))(*(_QWORD *)a2 + 496LL))(a2, 0);\n  v6 = *((cocos2d::CCArray **)this + 26);\n  if ( *((_BYTE *)this + 312) )\n    cocos2d::CCArray::removeObjectAtIndexChild(v6, *((_DWORD *)a2 + 9), 1);\n  else\n    cocos2d::CCArray::removeObject(v6, a2, 1);\n}", "assembly": "; \n; cocos2d::CCNode::detachChild from 0x1800032a0 to 0x18000333a (154 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCNode::removeChild @ 0x1800047a8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b72b8\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:17 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800032a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800032a5\npush    rdi                                                            ; +0xa, 0x1800032aa\nsub     rsp, 20h                                                       ; +0xb, 0x1800032ab\ncmp     byte ptr [rcx+110h], 0                                         ; +0xf, 0x1800032af\nmovzx   esi, r8b                                                       ; +0x16, 0x1800032b6\nmov     rbx, rdx                                                       ; +0x1a, 0x1800032ba\nmov     rdi, rcx                                                       ; +0x1d, 0x1800032bd\njz      short loc_1800032DA                                            ; +0x20, 0x1800032c0\nmov     rax, [rdx]                                                     ; +0x22, 0x1800032c2\nmov     rcx, rdx                                                       ; +0x25, 0x1800032c5\ncall    qword ptr [rax+2D0h]                                           ; +0x28, 0x1800032c8\nmov     rax, [rbx]                                                     ; +0x2e, 0x1800032ce\nmov     rcx, rbx                                                       ; +0x31, 0x1800032d1\ncall    qword ptr [rax+2C8h]                                           ; +0x34, 0x1800032d4\ntest    sil, sil                                                       ; +0x3a, 0x1800032da\njz      short loc_1800032EB                                            ; +0x3d, 0x1800032dd\nmov     rax, [rbx]                                                     ; +0x3f, 0x1800032df\nmov     rcx, rbx                                                       ; +0x42, 0x1800032e2\ncall    qword ptr [rax+2D8h]                                           ; +0x45, 0x1800032e5\nmov     rax, [rbx]                                                     ; +0x4b, 0x1800032eb\nxor     edx, edx                                                       ; +0x4e, 0x1800032ee\nmov     rcx, rbx                                                       ; +0x50, 0x1800032f0\ncall    qword ptr [rax+1F0h]                                           ; +0x53, 0x1800032f3\ncmp     byte ptr [rdi+138h], 0                                         ; +0x59, 0x1800032f9\nmov     r8b, 1; bool                                                   ; +0x60, 0x180003300\nmov     rcx, [rdi+0D0h]; this                                          ; +0x63, 0x180003303\njz      short loc_180003323                                            ; +0x6a, 0x18000330a\nmov     edx, [rbx+24h]; unsigned int                                   ; +0x6c, 0x18000330c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6f, 0x18000330f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x74, 0x180003314\nadd     rsp, 20h                                                       ; +0x79, 0x180003319\npop     rdi                                                            ; +0x7d, 0x18000331d\njmp     ?removeObjectAtIndexChild@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndexChild(uint,bool) ; +0x7e, 0x18000331e\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x83, 0x180003323\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x86, 0x180003326\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x8b, 0x18000332b\nadd     rsp, 20h                                                       ; +0x90, 0x180003330\npop     rdi                                                            ; +0x94, 0x180003334\njmp     ?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x95, 0x180003335", "xrefs": ["cocos2d::CCNode::removeChild @ 0x1800047a8", "<???> @ 0x18014cf68", "<???> @ 0x1801b72b8"], "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"}