//
// cocos2d::CCMenuItemSprite::setEnabled from 0x10005592c to 0x10005594c (32 bytes)
//
// 5 xrefs:
// > ??> @ 0x1008df070
// > ??> @ 0x1008e5e60
// > ??> @ 0x1008f4b60
// > ??> @ 0x10091b1e8
// > ??> @ 0x10093ef30
//
// 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 10:57:45 +0000
//
_BYTE *__fastcall cocos2d::CCMenuItemSprite::setEnabled(_BYTE *result, int a2)
{
if ( (unsigned __int8)result[339] != a2 )
{
result[339] = a2;
return (_BYTE *)(*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)result + 1120LL))(result);
}
return result;
}