//
// cocos2d::CCMenuItemLabel::setEnabled from 0x5d4f44 to 0x5d4fdc (152 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::CCMenuItemLabel::setEnabled(cocos2d::CCMenuItemLabel *a1, bool a2)
{
const void *m_uID; // r0
void *v5; // r0
int v6; // r0
__int16 v7; // r2
char v8; // r3
void (*v9)(void); // r3
if ( a1->m_bEnabled != a2 )
{
m_uID = (const void *)a1[1].m_uID;
if ( a2 )
{
if ( m_uID )
{
LABEL_7:
v9 = **(void (***)(void))_dynamic_cast(
m_uID,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
v9();
goto LABEL_8;
}
}
else if ( m_uID )
{
v5 = _dynamic_cast(
m_uID,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
v6 = (*(int (__fastcall **)(void *))(*(_DWORD *)v5 + 4))(v5);
v7 = *(_WORD *)v6;
v8 = *(_BYTE *)(v6 + 2);
m_uID = (const void *)a1[1].m_uID;
LOWORD(a1[1].m_nLuaID) = v7;
BYTE2(a1[1].m_nLuaID) = v8;
if ( m_uID )
goto LABEL_7;
}
__und(0xFFu);
}
LABEL_8:
cocos2d::CCMenuItem::setEnabled(a1, a2);
}