//
// cocos2d::CCMenuItem::unregisterScriptTapHandler from 0xaf3fb8 to 0xaf3ffc (68 bytes)
//
// 14 xrefs:
// > cocos2d::CCMenuItem::~CCMenuItem @ 0xaf4024
// > ??> @ 0x9c318
// > ??> @ 0x1138d80
// > ??> @ 0x1139290
// > ??> @ 0x113f6d0
// > ??> @ 0x11565c0
// > ??> @ 0x11a2300
// > ??> @ 0x120edd0
// > ??> @ 0x120f2a0
// > ??> @ 0x120f770
// > ??> @ 0x120fc20
// > ??> @ 0x12100f0
// > ??> @ 0x12105e0
// > ??> @ 0x1210ad0
//
// 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 cocos2d::CCMenuItem::unregisterScriptTapHandler(cocos2d::CCMenuItem *a1)
{
cocos2d::CCScriptEngineManager *v2; // x0
if ( a1->m_nScriptTapHandler )
{
v2 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)v2 + 32LL))(
*(_QWORD *)v2,
(unsigned int)a1->m_nScriptTapHandler);
a1->m_nScriptTapHandler = 0;
}
}