//
// MenuLayer::onPlay from 0x100304cc0 to 0x100304d14 (84 bytes)
//
// 2 xrefs:
// > MenuLayer::keyDown @ 0x100305958
// > MenuLayer::init @ 0x1003039d4
//
// 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:03:07 +0000
//
__int64 __fastcall MenuLayer::onPlay(__int64 result)
{
__int64 v1; // x0
__int64 v2; // x19
__int64 v3; // x0
char *v4; // x0
if ( (*(_BYTE *)(result + 432) & 1) == 0 )
{
v1 = MenuLayer::willClose(result);
*(_DWORD *)(GameManager::sharedState(v1) + 708) = 8;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = LevelSelectLayer::scene(0);
v4 = cocos2d::CCTransitionFade::create_1(v3, 0.5);
return cocos2d::CCDirector::replaceScene(v2, v4);
}
return result;
}