//
// EditorPauseLayer::playStep2 from 0x1400ddf60 to 0x1400de088 (296 bytes)
//
// 2 xrefs:
// > EditorPauseLayer::onSaveAndPlay @ 0x1400ddf11
// > ??> @ 0x1406c8a60
//
// 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=3
void EditorPauseLayer::playStep2(EditorPauseLayer *a1)
{
FMODAudioEngine *v2; // rcx
__int64 AudioFileName; // rbx
__int64 v4; // rcx
__int64 v5; // rbx
struct cocos2d::CCDelayTime *v6; // rax
struct cocos2d::CCSequence *v7; // rax
cocos2d::ccColor3B *v8; // r8
FMODAudioEngine *v9; // [rsp+80h] [rbp+8h]
FMODAudioEngine *v10; // [rsp+88h] [rbp+10h]
float v11; // [rsp+A0h] [rbp+28h]
v2 = (FMODAudioEngine *)qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v9 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v2 = (FMODAudioEngine *)qword_1406C2E88;
}
FMODAudioEngine::unloadAllEffects(v2);
AudioFileName = GJGameLevel::getAudioFileName(a1->m_editorLayer->m_level);
v4 = qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v10 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v4 = qword_1406C2E88;
}
FMODAudioEngine::loadMusic(v4, AudioFileName, 1.0, 0.0, 1.0, 1, 0, 0, 0);
v5 = cocos2d::CCCallFunc::create(a1, EditorPauseLayer::playStep3);
v6 = cocos2d::CCDelayTime::create(0.0);
v7 = cocos2d::CCSequence::create(v6, v5, 0);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v7, v8, 0.0, v11);
}