// // cocos2d::CCMenuItemLabel::setEnabled from 0xaf3a1c to 0xaf3b18 (252 bytes) // // 4 xrefs: // > @ 0x36978 // > @ 0x120ede0 // > @ 0x120f2b0 // > @ 0x120fc30 // // 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 // // local variable allocation has failed, the output may be wrong! void cocos2d::CCMenuItemLabel::setEnabled(cocos2d::CCMenuItemLabel *a1, bool a2) { bool v3; // w20 cocos2d::CCMenuItemToggle **v4; // x0 void *v5; // x0 __int64 v6; // x1 void (__fastcall ***v7)(void *, cocos2d::CCMenuItemLabel *); // x0 void (__fastcall ***v8)(void *, int *); // x0 cocos2d::CCMenuItemToggle *v9; // x0 v3 = a2; if ( a1->m_bEnabled == a2 ) goto LABEL_6; v4 = *(cocos2d::CCMenuItemToggle ***)&a1[1].m_uID; if ( a2 ) { if ( v4 ) { v8 = (void (__fastcall ***)(void *, int *))_dynamic_cast( v4, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2); (**v8)(v8, &a1[1].m_nTag); cocos2d::CCMenuItem::setEnabled(a1, v3); return; } goto LABEL_10; } if ( !v4 || (v5 = _dynamic_cast( v4, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2), v6 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v5 + 8LL))(v5), v4 = *(cocos2d::CCMenuItemToggle ***)&a1[1].m_uID, LOWORD(a1[1].m_nTag) = *(_WORD *)v6, *(_QWORD *)&a2 = *(unsigned __int8 *)(v6 + 2), BYTE2(a1[1].m_nTag) = a2, !v4) ) { LABEL_10: v9 = *v4; __break(0x3E8u); cocos2d::CCMenuItemToggle::setSubItems(v9, (cocos2d::CCArray *)a2); return; } v7 = (void (__fastcall ***)(void *, cocos2d::CCMenuItemLabel *))_dynamic_cast( v4, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2); (**v7)(v7, a1 + 1); LABEL_6: cocos2d::CCMenuItem::setEnabled(a1, v3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source