//
// cocos2d::CCMenu::onExit from 0x7dcdf8 to 0x7dce28 (48 bytes)
//
// 1 xrefs:
// > CCMenuExtra::onExit @ 0x3c6460
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:45 +0000
//
cocos2d::CCScriptEngineManager *__fastcall cocos2d::CCMenu::onExit(cocos2d::CCMenu *this)
{
int v2; // r0
if ( *((_DWORD *)this + 83) == 1 )
{
v2 = *((_DWORD *)this + 84);
if ( v2 )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v2 + 512))(v2);
*((_DWORD *)this + 84) = 0;
}
*((_DWORD *)this + 83) = 0;
}
return cocos2d::CCLayer::onExit(this);
}