//
// EditorPauseLayer::playStep2 from 0x10027f2d0 to 0x10027f385 (181 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::onSaveAndPlay @ 0x10027e327
//
// 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:27:42 +0000
//
__int64 __fastcall EditorPauseLayer::playStep2(__int64 a1, double a2)
{
__int64 v2; // rax
__int64 v3; // r14
int v4; // r14d
int v5; // eax
int v6; // ecx
int v7; // r8d
int v8; // r9d
__int64 v9; // rax
_BYTE v11[16]; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
v2 = FMODAudioEngine::sharedEngine(a2);
FMODAudioEngine::unloadAllEffects(v2);
v3 = FMODAudioEngine::sharedEngine(a2);
GJGameLevel::getAudioFileName(v11, *(_QWORD *)(*(_QWORD *)(a1 + 576) + 1936LL));
FMODAudioEngine::loadMusic(v3, v11, 1, 0, 0, 0, 1.0, 0.0, 1.0);
if ( (v11[0] & 1) != 0 )
operator delete(__p);
v4 = cocos2d::CCDelayTime::create(0.0);
v5 = cocos2d::CCCallFunc::create(a1, EditorPauseLayer::playStep3, 0);
v9 = sub_10039EB60(v4, v5, 0, v6, v7, v8);
return cocos2d::CCNode::runAction(a1, v9);
}