{"type": "func", "start": 6443158304, "end": 6443158425, "name": "cocos2d::CCTMXLayer::removeChild", "pseudocode": "// \n// cocos2d::CCTMXLayer::removeChild from 0x1800acb20 to 0x1800acb99 (121 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180105bf0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8184\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::CCTMXLayer::removeChild(cocos2d::CCTMXLayer *this, struct cocos2d::CCSprite *a2, char a3)\n{\n  __int64 m_uAtlasIndex; // rdx\n\n  if ( a2 )\n  {\n    cocos2d::CCArray::containsObject(this->m_pChildren, a2);\n    m_uAtlasIndex = a2->m_uAtlasIndex;\n    *(_DWORD *)(*((_QWORD *)this + 47)\n              + 4LL * *(unsigned int *)(*(_QWORD *)(*((_QWORD *)this + 59) + 16LL) + 8 * m_uAtlasIndex)) = 0;\n    sub_18009E360(*((_QWORD *)this + 59), m_uAtlasIndex);\n    cocos2d::CCSpriteBatchNode::removeChild(this, a2, a3);\n  }\n}", "assembly": "; \n; cocos2d::CCTMXLayer::removeChild from 0x1800acb20 to 0x1800acb99 (121 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180105bf0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8184\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, 0x1800acb20\njz      short locret_1800ACB98                                         ; +0x3, 0x1800acb23\nmov     [rsp+arg_0], rbx                                               ; +0x5, 0x1800acb25\nmov     [rsp+arg_8], rsi                                               ; +0xa, 0x1800acb2a\npush    rdi                                                            ; +0xf, 0x1800acb2f\nsub     rsp, 20h                                                       ; +0x10, 0x1800acb30\nmov     rdi, rcx                                                       ; +0x14, 0x1800acb34\nmovzx   esi, r8b                                                       ; +0x17, 0x1800acb37\nmov     rcx, [rcx+0D0h]; this                                          ; +0x1b, 0x1800acb3b\nmov     rbx, rdx                                                       ; +0x22, 0x1800acb42\ncall    ?containsObject@CCArray@cocos2d@@QEBA_NPEAVCCObject@2@@Z; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x25, 0x1800acb45\nmov     rax, [rdi+1D8h]                                                ; +0x2a, 0x1800acb4a\nmov     edx, [rbx+168h]                                                ; +0x31, 0x1800acb51\nmov     r9, [rax+10h]                                                  ; +0x37, 0x1800acb57\nmov     rax, [rdi+178h]                                                ; +0x3b, 0x1800acb5b\nmov     r8d, [r9+rdx*8]                                                ; +0x42, 0x1800acb62\nmov     dword ptr [rax+r8*4], 0                                        ; +0x46, 0x1800acb66\nmov     rcx, [rdi+1D8h]                                                ; +0x4e, 0x1800acb6e\ncall    sub_18009E360                                                  ; +0x55, 0x1800acb75\nmovzx   r8d, sil; bool                                                 ; +0x5a, 0x1800acb7a\nmov     rdx, rbx; struct cocos2d::CCNode *                             ; +0x5e, 0x1800acb7e\nmov     rcx, rdi; this                                                 ; +0x61, 0x1800acb81\ncall    ?removeChild@CCSpriteBatchNode@cocos2d@@UEAAXPEAVCCNode@2@_N@Z; cocos2d::CCSpriteBatchNode::removeChild(cocos2d::CCNode *,bool) ; +0x64, 0x1800acb84\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x69, 0x1800acb89\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6e, 0x1800acb8e\nadd     rsp, 20h                                                       ; +0x73, 0x1800acb93\npop     rdi                                                            ; +0x77, 0x1800acb97\nretn                                                                   ; +0x78, 0x1800acb98", "xrefs": ["<???> @ 0x180105bf0", "<???> @ 0x1801438a8", "<???> @ 0x1801b8184"], "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"}