//
// cocos2d::CCMenuItemSprite::setEnabled from 0xd65d1c to 0xd65d5c (64 bytes)
//
// 8 xrefs:
// > ??> @ 0x67d80
// > ??> @ 0x1416bd0
// > ??> @ 0x141dc80
// > ??> @ 0x14314e0
// > ??> @ 0x1488130
// > ??> @ 0x14e1830
// > ??> @ 0x1525e00
// > ??> @ 0x1526300
//
// 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::CCMenuItemSprite::setEnabled(__int64 this, unsigned __int8 a2)
{
__int64 v2; // x19
if ( *(unsigned __int8 *)(this + 339) != a2 )
{
v2 = this;
cocos2d::CCMenuItem::setEnabled(this, a2);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1120LL))(v2);
}
return this;
}