//
// EditorPauseLayer::playStep2 from 0x140182630 to 0x14018275e (302 bytes)
//
// 2 xrefs:
// > EditorPauseLayer::onSaveAndPlay @ 0x1401825df
// > ??> @ 0x140918c44
//
// 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 11:27:37 +0000
//
// Hidden C++ exception states: #wind=3
struct cocos2d::CCAction *__fastcall EditorPauseLayer::playStep2(cocos2d::CCNode *a1)
{
_QWORD *v2; // rcx
__int64 AudioFileName; // rbx
__int64 v4; // rcx
__int64 v5; // rbx
struct cocos2d::CCFiniteTimeAction *v6; // rax
struct cocos2d::CCAction *v7; // rax
void *v9; // [rsp+80h] [rbp+8h]
void *v10; // [rsp+88h] [rbp+10h]
v2 = (_QWORD *)qword_14090BF60;
if ( !qword_14090BF60 )
{
v9 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v2 = (_QWORD *)qword_14090BF60;
}
FMODAudioEngine::unloadAllEffects(v2);
AudioFileName = GJGameLevel::getAudioFileName(*(_QWORD *)(*((_QWORD *)a1 + 72) + 2168LL));
v4 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v10 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v4 = qword_14090BF60;
}
FMODAudioEngine::loadMusic(v4, AudioFileName, 1.0, 0.0, 1065353216, 1, 0, 0, 0);
v5 = cocos2d::CCCallFunc::create(a1, EditorPauseLayer::playStep3);
v6 = cocos2d::CCDelayTime::create(0.0);
v7 = cocos2d::CCSequence::create(v6, v5, 0);
return cocos2d::CCNode::runAction(a1, v7);
}