// // cocos2d::CCMenuItemLabel::setEnabled from 0x18005b710 to 0x18005b7e0 (208 bytes) // // 8 xrefs: // > @ 0x1800f7a20 // > @ 0x1800f7e68 // > @ 0x1800f82b0 // > @ 0x180138c74 // > @ 0x180138c88 // > @ 0x180138c98 // > @ 0x1801438a8 // > @ 0x1801b2e80 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::CCMenuItemLabel::setEnabled(cocos2d::CCMenuItemLabel *this, bool a2) { __int64 v4; // rax void (__fastcall ***v5)(_QWORD, int *); // rcx __int64 v6; // rax __int64 v7; // rcx void (__fastcall ***v8)(_QWORD, int *); // rax int *p_m_nScriptTapHandler; // rdx void (__fastcall **v10)(_QWORD, int *); // r8 if ( this->m_bEnabled == a2 ) { this->m_bEnabled = a2; } else { v4 = _RTDynamicCast( *((_QWORD *)this + 48), 0, &cocos2d::CCNode `RTTI Type Descriptor', &cocos2d::CCRGBAProtocol `RTTI Type Descriptor', 0); v5 = (void (__fastcall ***)(_QWORD, int *))v4; if ( a2 ) { v10 = *(void (__fastcall ***)(_QWORD, int *))v4; p_m_nScriptTapHandler = (int *)((char *)this + 392); } else { v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 8LL))(v4); *((_WORD *)this + 196) = *(_WORD *)v6; v7 = *((_QWORD *)this + 48); *((_BYTE *)this + 394) = *(_BYTE *)(v6 + 2); v8 = (void (__fastcall ***)(_QWORD, int *))_RTDynamicCast( v7, 0, &cocos2d::CCNode `RTTI Type Descriptor', &cocos2d::CCRGBAProtocol `RTTI Type Descriptor', 0); p_m_nScriptTapHandler = &this->m_nScriptTapHandler; v5 = v8; v10 = *v8; } (*v10)(v5, p_m_nScriptTapHandler); this->m_bEnabled = a2; } }