//
// cocos2d::CCMenuItem::unregisterScriptTapHandler from 0x1000553e0 to 0x100055420 (64 bytes)
//
// 8 xrefs:
// > cocos2d::CCMenuItem::dCCMenuItem @ 0x10005536c
// > ??> @ 0x1008bd6b8
// > ??> @ 0x1008df060
// > ??> @ 0x1008e5e50
// > ??> @ 0x1008f4b50
// > ??> @ 0x1008fe178
// > ??> @ 0x10091b1d8
// > ??> @ 0x10093ef20
//
// 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 10:57:45 +0000
//
__int64 __fastcall cocos2d::CCMenuItem::unregisterScriptTapHandler(__int64 result)
{
__int64 v1; // x19
_QWORD *v2; // x0
if ( *(_DWORD *)(result + 368) )
{
v1 = result;
v2 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager();
result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v2 + 32LL))(*v2, *(unsigned int *)(v1 + 368));
*(_DWORD *)(v1 + 368) = 0;
}
return result;
}