//
// EndLevelLayer::onEdit from 0x1004bb030 to 0x1004bb0be (142 bytes)
//
// 1 xrefs:
// > EndLevelLayer::customSetup @ 0x1004b9fca
//
// This function is hookable on this platform (idp: pc, 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:31:03 +0000
//
void __fastcall EndLevelLayer::onEdit(__int64 a1)
{
_QWORD *v1; // rax
_OWORD *v2; // r14
__int64 v3; // rax
__int64 v4; // rax
if ( !*(_BYTE *)(a1 + 619) )
{
*(_BYTE *)(a1 + 619) = 1;
cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 608));
cocos2d::CCNode::unscheduleAllSelectors(*(_QWORD *)(a1 + 608));
v1 = (_QWORD *)FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v1, 1);
PlayLayer::removeAllObjects(*(_QWORD *)(a1 + 608));
v2 = cocos2d::CCDelayTime::create((__m128)0LL);
v3 = cocos2d::CCCallFunc::create(a1, EndLevelLayer::goEdit, 0);
v4 = sub_10039EB60((__int64)v2, v3, 0);
cocos2d::CCNode::runAction(a1, v4);
}
}