{"type": "func", "start": 6442825488, "end": 6442825696, "name": "cocos2d::CCMenuItemLabel::setEnabled", "pseudocode": "// \n// cocos2d::CCMenuItemLabel::setEnabled from 0x18005b710 to 0x18005b7e0 (208 bytes)\n// \n// 8 xrefs:\n// > <???> @ 0x1800f7a20\n// > <???> @ 0x1800f7e68\n// > <???> @ 0x1800f82b0\n// > <???> @ 0x180138c74\n// > <???> @ 0x180138c88\n// > <???> @ 0x180138c98\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2e80\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::CCMenuItemLabel::setEnabled(cocos2d::CCMenuItemLabel *this, bool a2)\n{\n  __int64 v4; // rax\n  void (__fastcall ***v5)(_QWORD, int *); // rcx\n  __int64 v6; // rax\n  __int64 v7; // rcx\n  void (__fastcall ***v8)(_QWORD, int *); // rax\n  int *p_m_nScriptTapHandler; // rdx\n  void (__fastcall **v10)(_QWORD, int *); // r8\n\n  if ( this->m_bEnabled == a2 )\n  {\n    this->m_bEnabled = a2;\n  }\n  else\n  {\n    v4 = _RTDynamicCast(\n           *((_QWORD *)this + 48),\n           0,\n           &cocos2d::CCNode `RTTI Type Descriptor',\n           &cocos2d::CCRGBAProtocol `RTTI Type Descriptor',\n           0);\n    v5 = (void (__fastcall ***)(_QWORD, int *))v4;\n    if ( a2 )\n    {\n      v10 = *(void (__fastcall ***)(_QWORD, int *))v4;\n      p_m_nScriptTapHandler = (int *)((char *)this + 392);\n    }\n    else\n    {\n      v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 8LL))(v4);\n      *((_WORD *)this + 196) = *(_WORD *)v6;\n      v7 = *((_QWORD *)this + 48);\n      *((_BYTE *)this + 394) = *(_BYTE *)(v6 + 2);\n      v8 = (void (__fastcall ***)(_QWORD, int *))_RTDynamicCast(\n                                                   v7,\n                                                   0,\n                                                   &cocos2d::CCNode `RTTI Type Descriptor',\n                                                   &cocos2d::CCRGBAProtocol `RTTI Type Descriptor',\n                                                   0);\n      p_m_nScriptTapHandler = &this->m_nScriptTapHandler;\n      v5 = v8;\n      v10 = *v8;\n    }\n    (*v10)(v5, p_m_nScriptTapHandler);\n    this->m_bEnabled = a2;\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItemLabel::setEnabled from 0x18005b710 to 0x18005b7e0 (208 bytes)\n; \n; 8 xrefs:\n; > <???> @ 0x1800f7a20\n; > <???> @ 0x1800f7e68\n; > <???> @ 0x1800f82b0\n; > <???> @ 0x180138c74\n; > <???> @ 0x180138c88\n; > <???> @ 0x180138c98\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2e80\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_8], rbx                                               ; +0x0, 0x18005b710\npush    rdi                                                            ; +0x5, 0x18005b715\nsub     rsp, 30h                                                       ; +0x6, 0x18005b716\nmovzx   edi, dl                                                        ; +0xa, 0x18005b71a\nmov     rbx, rcx                                                       ; +0xd, 0x18005b71d\ncmp     [rcx+159h], dl                                                 ; +0x10, 0x18005b720\njz      loc_18005B7CE                                                  ; +0x16, 0x18005b726\nmov     rcx, [rcx+180h]                                                ; +0x1c, 0x18005b72c\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x23, 0x18005b733\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x2a, 0x18005b73a\nmov     [rsp+38h+arg_0], rsi                                           ; +0x31, 0x18005b741\nxor     edx, edx                                                       ; +0x36, 0x18005b746\nmov     [rsp+38h+var_18], 0                                            ; +0x38, 0x18005b748\ncall    __RTDynamicCast                                                ; +0x40, 0x18005b750\nmov     rcx, rax                                                       ; +0x45, 0x18005b755\ntest    dil, dil                                                       ; +0x48, 0x18005b758\njnz     short loc_18005B7C2                                            ; +0x4b, 0x18005b75b\nmov     rdx, [rax]                                                     ; +0x4d, 0x18005b75d\ncall    qword ptr [rdx+8]                                              ; +0x50, 0x18005b760\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x53, 0x18005b763\nmov     [rsp+38h+var_18], 0                                            ; +0x5a, 0x18005b76a\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x62, 0x18005b772\nxor     edx, edx                                                       ; +0x69, 0x18005b779\nmovzx   ecx, word ptr [rax]                                            ; +0x6b, 0x18005b77b\nmov     [rbx+188h], cx                                                 ; +0x6e, 0x18005b77e\nmovzx   eax, byte ptr [rax+2]                                          ; +0x75, 0x18005b785\nmov     rcx, [rbx+180h]                                                ; +0x79, 0x18005b789\nmov     [rbx+18Ah], al                                                 ; +0x80, 0x18005b790\ncall    __RTDynamicCast                                                ; +0x86, 0x18005b796\nlea     rdx, [rbx+178h]                                                ; +0x8b, 0x18005b79b\nmov     rcx, rax                                                       ; +0x92, 0x18005b7a2\nmov     r8, [rax]                                                      ; +0x95, 0x18005b7a5\ncall    qword ptr [r8]                                                 ; +0x98, 0x18005b7a8\nmov     rsi, [rsp+38h+arg_0]                                           ; +0x9b, 0x18005b7ab\nmov     [rbx+159h], dil                                                ; +0xa0, 0x18005b7b0\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xa7, 0x18005b7b7\nadd     rsp, 30h                                                       ; +0xac, 0x18005b7bc\npop     rdi                                                            ; +0xb0, 0x18005b7c0\nretn                                                                   ; +0xb1, 0x18005b7c1\nmov     r8, [rax]                                                      ; +0xb2, 0x18005b7c2\nlea     rdx, [rbx+188h]                                                ; +0xb5, 0x18005b7c5\njmp     short loc_18005B7A8                                            ; +0xbc, 0x18005b7cc\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xbe, 0x18005b7ce\nmov     [rcx+159h], dil                                                ; +0xc3, 0x18005b7d3\nadd     rsp, 30h                                                       ; +0xca, 0x18005b7da\npop     rdi                                                            ; +0xce, 0x18005b7de\nretn                                                                   ; +0xcf, 0x18005b7df", "xrefs": ["<???> @ 0x1800f7a20", "<???> @ 0x1800f7e68", "<???> @ 0x1800f82b0", "<???> @ 0x180138c74", "<???> @ 0x180138c88", "<???> @ 0x180138c98", "<???> @ 0x1801438a8", "<???> @ 0x1801b2e80"], "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"}