//
// cocos2d::CCMenuItem::~CCMenuItem from 0x180059c60 to 0x180059cb5 (85 bytes)
//
// 3 xrefs:
// > sub_180059E80 @ 0x180059e99
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b2bec
//
// 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 __fastcall cocos2d::CCMenuItem::~CCMenuItem(cocos2d::CCMenuItem *this)
{
struct cocos2d::CCScriptEngineManager *v2; // rax
this->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCMenuItem_vtbl *)&cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCNode'};
this->cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCRGBAProtocol'};
if ( LODWORD(this->m_pfnSelector.adj) )
{
v2 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)v2 + 24LL))(*(_QWORD *)v2, LODWORD(this->m_pfnSelector.adj));
LODWORD(this->m_pfnSelector.adj) = 0;
}
cocos2d::CCNodeRGBA::~CCNodeRGBA(this);
}