//
// cocos2d::CCMenu::onExit from 0x100873a70 to 0x100873ac1 (81 bytes)
//
// 4 xrefs:
// > ??> @ 0x100b13e78
// > ??> @ 0x100b80150
// > ??> @ 0x100b8a0b0
// > ??> @ 0x100ba0848
//
// 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 12:36:52 +0000
//
unsigned int *__fastcall cocos2d::CCMenu::onExit(__int64 a1)
{
__int64 v1; // rax
if ( *(_DWORD *)(a1 + 428) != 1 )
return cocos2d::CCLayer::onExit(a1);
v1 = *(_QWORD *)(a1 + 432);
if ( v1 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 1024LL))(v1);
*(_QWORD *)(a1 + 432) = 0;
}
*(_DWORD *)(a1 + 428) = 0;
return cocos2d::CCLayer::onExit(a1);
}