//
// cocos2d::CCMenuItemSprite::setEnabled from 0x1003a9550 to 0x1003a9570 (32 bytes)
//
// 7 xrefs:
// > ??> @ 0x100aeffa8
// > ??> @ 0x100af5b78
// > ??> @ 0x100b14670
// > ??> @ 0x100b34ab0
// > ??> @ 0x100b34fc0
// > ??> @ 0x100b72da0
// > ??> @ 0x100b7fbd0
//
// This function is hookable on this platform (idp: pc, 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 12:29:23 +0000
//
__int64 __fastcall cocos2d::CCMenuItemSprite::setEnabled(_BYTE *a1, char a2)
{
__int64 result; // rax
if ( a1[339] != a2 )
{
a1[339] = a2;
return (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1120LL))(a1);
}
return result;
}