{"type": "func", "start": 6442817792, "end": 6442817899, "name": "cocos2d::CCMenu::removeChild", "pseudocode": "// \n// cocos2d::CCMenu::removeChild from 0x180059900 to 0x18005996b (107 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f6f00\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2b80\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::CCMenu::removeChild(cocos2d::CCMenu *this, struct cocos2d::CCNode *a2, char a3)\n{\n  if ( this->m_pSelectedItem == (cocos2d::CCMenuItem *)_RTDynamicCast(\n                                                         a2,\n                                                         0,\n                                                         &cocos2d::CCNode `RTTI Type Descriptor',\n                                                         &cocos2d::CCMenuItem `RTTI Type Descriptor',\n                                                         0) )\n    this->m_pSelectedItem = nullptr;\n  cocos2d::CCNode::removeChild(this, a2, a3);\n}", "assembly": "; \n; cocos2d::CCMenu::removeChild from 0x180059900 to 0x18005996b (107 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f6f00\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2b80\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, 0x180059900\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180059905\npush    rdi                                                            ; +0xa, 0x18005990a\nsub     rsp, 30h                                                       ; +0xb, 0x18005990b\nmov     rdi, rdx                                                       ; +0xf, 0x18005990f\nmov     [rsp+38h+var_18], 0                                            ; +0x12, 0x180059912\nmovzx   esi, r8b                                                       ; +0x1a, 0x18005991a\nlea     r9, ??_R0?AVCCMenuItem@cocos2d@@@8; cocos2d::CCMenuItem `RTTI Type Descriptor' ; +0x1e, 0x18005991e\nmov     rbx, rcx                                                       ; +0x25, 0x180059925\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x28, 0x180059928\nmov     rcx, rdi                                                       ; +0x2f, 0x18005992f\nxor     edx, edx                                                       ; +0x32, 0x180059932\ncall    __RTDynamicCast                                                ; +0x34, 0x180059934\ncmp     [rbx+1B8h], rax                                                ; +0x39, 0x180059939\njnz     short loc_18005994D                                            ; +0x40, 0x180059940\nmov     qword ptr [rbx+1B8h], 0                                        ; +0x42, 0x180059942\nmovzx   r8d, sil; bool                                                 ; +0x4d, 0x18005994d\nmov     rdx, rdi; struct cocos2d::CCNode *                             ; +0x51, 0x180059951\nmov     rcx, rbx; this                                                 ; +0x54, 0x180059954\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x57, 0x180059957\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x5c, 0x18005995c\nadd     rsp, 30h                                                       ; +0x61, 0x180059961\npop     rdi                                                            ; +0x65, 0x180059965\njmp     ?removeChild@CCNode@cocos2d@@UEAAXPEAV12@_N@Z; cocos2d::CCNode::removeChild(cocos2d::CCNode *,bool) ; +0x66, 0x180059966", "xrefs": ["<???> @ 0x1800f6f00", "<???> @ 0x1801438a8", "<???> @ 0x1801b2b80"], "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"}