//
// EditLevelLayer::onPlay from 0x1001fbe30 to 0x1001fbf55 (293 bytes)
//
// 3 xrefs:
// > EditLevelLayer::keyDown @ 0x1001fe642
// > sub_1001FE650 @ 0x1001fe669
// > EditLevelLayer::init @ 0x1001fb290
//
// 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)
{
unsigned int v2; // r14d
__int64 v3; // rax
FMODAudioEngine *v4; // rax
FMODAudioEngine *v5; // rax
unsigned int v6; // r14d
unsigned int v7; // eax
int v8; // ecx
int v9; // r8d
int v10; // r9d
cocos2d::CCAction *v11; // rax
void *v12[5]; // [rsp+8h] [rbp-28h] BYREF
if ( !cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning && !a1->m_exiting )
{
if ( (unsigned int)sub_100720070(a1->m_textInputs) )
{
v2 = 0;
do
{
v3 = sub_1007200C0(a1->m_textInputs, v2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1144LL))(v3, 0);
++v2;
}
while ( v2 < (unsigned int)sub_100720070(a1->m_textInputs) );
}
((void (__fastcall *)(EditLevelLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
a1->m_exiting = 1;
v4 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v4, 1);
v5 = FMODAudioEngine::sharedEngine();
strcpy((char *)v12, " playSound_01.ogg");
FMODAudioEngine::playEffect(v5, v12, 1.0, 0.0, 0.30000001);
if ( ((__int64)v12[0] & 1) != 0 )
operator delete(v12[2]);
EditLevelLayer::verifyLevelName(a1);
v6 = (unsigned int)cocos2d::CCDelayTime::create(0.0);
v7 = (unsigned int)cocos2d::CCCallFunc::create(
a1,
(cocos2d::SEL_CallFunc)(unsigned __int64)EditLevelLayer::playStep2);
v11 = (cocos2d::CCAction *)sub_1003B5760(v6, v7, 0, v8, v9, v10);
cocos2d::CCNode::runAction(a1, v11);
}
}