//
// EditLevelLayer::playStep2 from 0x1400d8010 to 0x1400d80ea (218 bytes)
//
// 2 xrefs:
// > EditLevelLayer::onPlay @ 0x1400d7fc9
// > ??> @ 0x1406c87f0
//
// 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
//
// Hidden C++ exception states: #wind=2
void EditLevelLayer::playStep2(EditLevelLayer *a1)
{
__int64 AudioFileName; // rbx
__int64 v3; // rcx
__int64 v4; // rbx
struct cocos2d::CCDelayTime *v5; // rax
struct cocos2d::CCSequence *v6; // rax
cocos2d::ccColor3B *v7; // r8
FMODAudioEngine *v8; // [rsp+88h] [rbp+10h]
float v9; // [rsp+A0h] [rbp+28h]
AudioFileName = GJGameLevel::getAudioFileName(a1->m_level);
v3 = qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v8 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v3 = qword_1406C2E88;
}
FMODAudioEngine::loadMusic(v3, AudioFileName, 1.0, 0.0, 1.0, 1, 0, 0, 0);
v4 = cocos2d::CCCallFunc::create(a1, EditLevelLayer::playStep3);
v5 = cocos2d::CCDelayTime::create(0.0);
v6 = cocos2d::CCSequence::create(v5, v4, 0);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v6, v7, 0.0, v9);
}