//
// EndLevelLayer::onEdit from 0x533fc4 to 0x534030 (108 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:06 +0000
//
int __fastcall EndLevelLayer::onEdit(int this, cocos2d::CCObject *a2)
{
cocos2d::CCNode **v2; // r4
int v3; // r5
FMODAudioEngine *v4; // r0
FMODAudioEngine *v5; // r0
float v6; // r1
cocos2d::CCSequence *v7; // r6
cocos2d::CCFiniteTimeAction *v8; // r0
int v9; // r3
cocos2d::CCAction *v10; // r0
v2 = (cocos2d::CCNode **)this;
v3 = *(unsigned __int8 *)(this + 487);
if ( !*(_BYTE *)(this + 487) )
{
*(_BYTE *)(this + 487) = 1;
cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(this + 480));
v4 = (FMODAudioEngine *)cocos2d::CCNode::unscheduleAllSelectors(v2[120]);
v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v4);
FMODAudioEngine::stopAllMusic(v5, 1);
PlayLayer::removeAllObjects(v2[120]);
v7 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(nullptr, v6);
v8 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, EndLevelLayer::goEdit, v3);
v10 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v7, v8, v3, v9, EndLevelLayer::goEdit, v3);
return cocos2d::CCNode::runAction((cocos2d::CCNode *)v2, v10);
}
return this;
}