//
// MenuLayer::onPlay from 0x140474b80 to 0x140474c19 (153 bytes)
//
// 3 xrefs:
// > MenuLayer::keyDown @ 0x1404755b8
// > MenuLayer::init @ 0x140472374
// > ??> @ 0x1409282d4
//
// 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:32:40 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall MenuLayer::onPlay(__int64 a1)
{
__int64 v1; // rdx
__int64 v2; // r8
__int64 v3; // r9
__int64 v4; // rax
struct cocos2d::CCScene *v5; // rax
struct cocos2d::CCScene *v6; // rbx
__int64 v7; // rcx
cocos2d::CCDirector *v8; // rax
void *v9; // [rsp+30h] [rbp+8h]
if ( !*(_BYTE *)(a1 + 432) )
{
MenuLayer::willClose(a1);
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v9 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
*(_DWORD *)(v4 + 740) = 8;
v5 = (struct cocos2d::CCScene *)LevelSelectLayer::scene(0, v1, v2, v3);
v6 = cocos2d::CCTransitionFade::create(0.5, v5);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::replaceScene(v8, v6);
}
}