//
// cocos2d::CCMenu::onExit from 0x100270730 to 0x100270778 (72 bytes)
//
// 4 xrefs:
// > sub_1002AFFC0 @ 0x1002afff0
// > ??> @ 0x1009179d0
// > ??> @ 0x10093e738
// > ??> @ 0x10093f770
//
// 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 11:01:46 +0000
//
__int64 __fastcall cocos2d::CCMenu::onExit(__int64 a1)
{
__int64 v2; // x0
if ( *(_DWORD *)(a1 + 428) == 1 )
{
v2 = *(_QWORD *)(a1 + 432);
if ( v2 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1024LL))(v2);
*(_QWORD *)(a1 + 432) = 0;
}
*(_DWORD *)(a1 + 428) = 0;
}
return cocos2d::CCLayer::onExit((_BYTE *)a1);
}