//
// EndLevelLayer::onEdit from 0x1002f7410 to 0x1002f74a0 (144 bytes)
//
// 1 xrefs:
// > EndLevelLayer::customSetup @ 0x1002f65a0
//
// 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 EndLevelLayer::onEdit(EndLevelLayer *a1, cocos2d::CCObject *a2)
{
FMODAudioEngine *v3; // x0
cocos2d::CCDelayTime *v4; // x20
char v5; // w0
__int64 v6; // x1
__int64 v7; // x2
__int64 v8; // x3
__int64 v9; // x4
__int64 v10; // x5
__int64 v11; // x6
__int64 v12; // x7
cocos2d::CCSequence *v13; // x1
cocos2d::SEL_CallFunc v14; // 0:x1.16
if ( !a1->m_exiting )
{
a1->m_exiting = 1;
cocos2d::CCNode::stopAllActions(a1->m_playLayer);
cocos2d::CCNode::unscheduleAllSelectors(a1->m_playLayer);
v3 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v3, 1);
PlayLayer::removeAllObjects(a1->m_playLayer);
v4 = cocos2d::CCDelayTime::create(0.0);
v14.ptr = (void (*)(void))EndLevelLayer::goEdit;
v14.adj = 0;
v5 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v14);
v13 = sub_10018A494(v4, v6, v7, v8, v9, v10, v11, v12, v5);
cocos2d::CCNode::runAction(a1, v13);
}
}