//
// EndLevelLayer::onEdit from 0x427870 to 0x4278dc (108 bytes)
//
// 0 xrefs:
//
// 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 EndLevelLayer::onEdit(EndLevelLayer *a1, cocos2d::CCObject *a2)
{
_BOOL4 m_exiting; // r5
FMODAudioEngine *v4; // r0
cocos2d::CCSequence *v5; // r6
cocos2d::CCFiniteTimeAction *v6; // r0
int v7; // r3
cocos2d::CCAction *v8; // r0
m_exiting = a1->m_exiting;
if ( !a1->m_exiting )
{
a1->m_exiting = 1;
cocos2d::CCNode::stopAllActions(a1->m_playLayer);
cocos2d::CCNode::unscheduleAllSelectors(a1->m_playLayer);
v4 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v4, 1);
PlayLayer::removeAllObjects(a1->m_playLayer);
v5 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.0);
v6 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, EndLevelLayer::goEdit, m_exiting);
v8 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v5, v6, m_exiting, v7, EndLevelLayer::goEdit, m_exiting);
cocos2d::CCNode::runAction(a1, v8);
}
}