//
// PlayLayer::onExit from 0x10014c844 to 0x10014c894 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008df6e0
//
// 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 10:59:37 +0000
//
__int64 __fastcall PlayLayer::onExit(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
__int64 v4; // x0
v2 = sub_10051D72C(a1);
result = AppDelegate::get(v2);
if ( (*(_BYTE *)(result + 17) & 1) == 0 )
{
v4 = cocos2d::CCDirector::sharedDirector(result);
*(_BYTE *)(v4 + 178) = 0;
*(_BYTE *)(AppDelegate::get(v4) + 17) = 1;
return cocos2d::CCLayer::onExit(a1);
}
return result;
}