//
// cocos2d::CCMenuItemLabel::setEnabled from 0xd65ac4 to 0xd65bc0 (252 bytes)
//
// 4 xrefs:
// > ??> @ 0x4fe88
// > ??> @ 0x1524aa0
// > ??> @ 0x1524f80
// > ??> @ 0x1525920
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:07:53 +0000
//
__int64 __fastcall cocos2d::CCMenuItemLabel::setEnabled(cocos2d::CCMenuItemLabel *this, cocos2d::CCArray *a2)
{
char v3; // w20
cocos2d::CCMenuItemToggle **v4; // x0
void *v5; // x0
__int64 v6; // x1
void (__fastcall ***v7)(void *, char *); // x0
void (__fastcall ***v8)(void *, char *); // x0
cocos2d::CCMenuItemToggle *v10; // x0
v3 = (char)a2;
if ( *((unsigned __int8 *)this + 339) == (unsigned __int8)a2 )
return cocos2d::CCMenuItem::setEnabled((__int64)this, v3);
v4 = *((cocos2d::CCMenuItemToggle ***)this + 48);
if ( (_BYTE)a2 )
{
if ( v4 )
{
v8 = (void (__fastcall ***)(void *, char *))_dynamic_cast(
v4,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
(**v8)(v8, (char *)this + 392);
return cocos2d::CCMenuItem::setEnabled((__int64)this, v3);
}
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 ***)this + 48),
*((_WORD *)this + 196) = *(_WORD *)v6,
a2 = (cocos2d::CCArray *)*(unsigned __int8 *)(v6 + 2),
*((_BYTE *)this + 394) = (_BYTE)a2,
!v4) )
{
LABEL_10:
v10 = *v4;
__break(0x3E8u);
return cocos2d::CCMenuItemToggle::setSubItems(v10, a2);
}
v7 = (void (__fastcall ***)(void *, char *))_dynamic_cast(
v4,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
(**v7)(v7, (char *)this + 376);
return cocos2d::CCMenuItem::setEnabled((__int64)this, v3);
}