//
// EditLevelLayer::onPlay from 0x1000ea340 to 0x1000ea42c (236 bytes)
//
// 2 xrefs:
// > EditLevelLayer::keyDown @ 0x1000ec4a0
// > EditLevelLayer::init @ 0x1000e97ac
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall EditLevelLayer::onPlay(EditLevelLayer *a1, cocos2d::CCObject *a2)
{
FMODAudioEngine *v3; // x0
FMODAudioEngine *v4; // x20
cocos2d::CCDelayTime *v5; // x20
cocos2d::CCAction *v6; // x0
void *__p[2]; // [xsp+18h] [xbp-28h] BYREF
char v8; // [xsp+2Fh] [xbp-11h]
cocos2d::SEL_CallFunc v9; // 0:x1.16
if ( !cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning && !a1->m_exiting )
{
EditLevelLayer::closeTextInputs(a1);
((void (__fastcall *)(EditLevelLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
a1->m_exiting = 1;
v3 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v3, 1);
v4 = FMODAudioEngine::sharedEngine();
sub_100009900(__p, "playSound_01.ogg");
FMODAudioEngine::playEffect(v4, __p, 1.0, 0.0, 0.3);
if ( v8 < 0 )
operator delete(__p[0]);
EditLevelLayer::verifyLevelName(a1);
v5 = cocos2d::CCDelayTime::create(0.0);
v9.ptr = (void (*)(void))EditLevelLayer::playStep2;
v9.adj = 0;
cocos2d::CCCallFunc::create(a1, v9);
v6 = (cocos2d::CCAction *)sub_10018A494(v5);
cocos2d::CCNode::runAction(a1, v6);
}
}