//
// EndLevelLayer::onEdit from 0x8f97b4 to 0x8f984c (152 bytes)
//
// 3 xrefs:
// > ??> @ 0x60e80
// > EndLevelLayer::customSetup @ 0x8fd45c
// > ??> @ 0x15424c8
//
// This function is hookable on this platform (idp: arm, 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 12:57:02 +0000
//
__int64 __fastcall EndLevelLayer::onEdit(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
cocos2d::CCNode *v3; // x0
FMODAudioEngine *v4; // x0
FMODAudioEngine *v5; // x0
cocos2d::CCDelayTime *v6; // x0
cocos2d::CCSequence *v7; // x20
cocos2d::CCFiniteTimeAction *v8; // x0
cocos2d::CCAction *v9; // x0
if ( !*(_BYTE *)(this + 619) )
{
v2 = this;
v3 = *(cocos2d::CCNode **)(this + 608);
*(_BYTE *)(v2 + 619) = 1;
cocos2d::CCNode::stopAllActions(v3);
v4 = (FMODAudioEngine *)cocos2d::CCNode::unscheduleAllSelectors(*(cocos2d::CCNode **)(v2 + 608));
v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v4);
FMODAudioEngine::stopAllMusic(v5, 1);
v6 = (cocos2d::CCDelayTime *)PlayLayer::removeAllObjects(*(PlayLayer **)(v2 + 608));
v7 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v6, 0.0);
v8 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, EndLevelLayer::goEdit, 0);
v9 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v7, v8, 0);
return cocos2d::CCNode::runAction((cocos2d::CCNode *)v2, v9);
}
return this;
}