//
// EditorPauseLayer::onSaveAndPlay from 0x10027e2d0 to 0x10027e356 (134 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::customSetup @ 0x10027d3ce
//
// 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
//
void __fastcall EditorPauseLayer::onSaveAndPlay(__int64 a1)
{
double v2; // xmm0_8
__int64 v3; // rax
__int64 v4; // rdi
int v5; // r14d
int v6; // eax
int v7; // ecx
int v8; // r8d
int v9; // r9d
__int64 v10; // rax
if ( !*(_BYTE *)(a1 + 568) )
{
v2 = (*(double (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
*(_BYTE *)(a1 + 568) = 1;
v3 = LocalLevelManager::sharedState(v2);
sub_1004A5220(v3, 30.0);
v4 = *(_QWORD *)(a1 + 576);
if ( v4 )
LevelEditorLayer::saveLevel(v4);
v5 = cocos2d::CCDelayTime::create(0.0);
v6 = cocos2d::CCCallFunc::create(a1, EditorPauseLayer::playStep2, 0);
v10 = sub_10039EB60(v5, v6, 0, v7, v8, v9);
cocos2d::CCNode::runAction(a1, v10);
}
}