//
// EditorPauseLayer::onSaveAndPlay from 0x8b6d8c to 0x8b6e14 (136 bytes)
//
// 3 xrefs:
// > ??> @ 0xa5010
// > EditorPauseLayer::customSetup @ 0x8b570c
// > ??> @ 0x15449d8
//
// This function is hookable on this platform (idp: arm, 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:56:25 +0000
//
_BYTE *__fastcall EditorPauseLayer::onSaveAndPlay(_BYTE *this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
LevelEditorLayer *v3; // x0
cocos2d::CCSequence *v4; // x20
cocos2d::CCFiniteTimeAction *v5; // x0
cocos2d::CCAction *v6; // x0
if ( !*(this + 568) )
{
v2 = (__int64)this;
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
*(_BYTE *)(v2 + 568) = 1;
v3 = EditorPauseLayer::saveLevel((LevelEditorLayer **)v2);
v4 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v3, 0.0);
v5 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, EditorPauseLayer::playStep2, 0);
v6 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v4, v5, 0);
return (_BYTE *)cocos2d::CCNode::runAction((cocos2d::CCNode *)v2, v6);
}
return this;
}