//
// cocos2d::CCMenu::onExit from 0xd653f8 to 0xd65450 (88 bytes)
//
// 5 xrefs:
// > CCMenuExtra::onExit @ 0x691364
// > ??> @ 0x64ff0
// > ??> @ 0x141e030
// > ??> @ 0x14c33e0
// > ??> @ 0x1524210
//
// 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 13:07:53 +0000
//
__int64 __fastcall cocos2d::CCMenu::onExit(cocos2d::CCMenu *this)
{
__int64 v2; // x0
if ( *((_DWORD *)this + 107) != 1 )
return cocos2d::CCLayer::onExit(this);
v2 = *((_QWORD *)this + 54);
if ( v2 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1024LL))(v2);
*((_QWORD *)this + 54) = 0;
}
*((_DWORD *)this + 107) = 0;
return cocos2d::CCLayer::onExit(this);
}