//
// cocos2d::CCMenu::onExit from 0x18005b860 to 0x18005b8a9 (73 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800fd3f8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bce08
//
// This function is hookable on this platform (idp: pc, 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 11:21:49 +0000
//
void __fastcall cocos2d::CCMenu::onExit(cocos2d::CCMenu *this)
{
__int64 v2; // rcx
if ( *((_DWORD *)this + 109) == 1 )
{
v2 = *((_QWORD *)this + 55);
if ( v2 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 904LL))(v2);
*((_QWORD *)this + 55) = 0;
}
*((_DWORD *)this + 109) = 0;
}
cocos2d::CCLayer::onExit(this);
}