//
// cocos2d::CCMenuItemSprite::setEnabled from 0x18005d820 to 0x18005d839 (25 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800febb0
// > ??> @ 0x1800ff020
// > ??> @ 0x18014cf68
//
// 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 11:21:49 +0000
//
void __fastcall cocos2d::CCMenuItemSprite::setEnabled(cocos2d::CCMenuItemSprite *this, char a2)
{
__int64 v2; // rax
if ( *((_BYTE *)this + 345) != a2 )
{
v2 = *(_QWORD *)this;
*((_BYTE *)this + 345) = a2;
(*(void (**)(void))(v2 + 1000))();
}
}