//
// EditorPauseLayer::onSaveAndPlay from 0x509130 to 0x50918a (90 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:26 +0000
//
unsigned __int8 *__fastcall EditorPauseLayer::onSaveAndPlay(unsigned __int8 *this, cocos2d::CCObject *a2)
{
unsigned __int8 *v2; // r4
int v3; // r5
float v4; // r1
cocos2d::CCSequence *v5; // r6
cocos2d::CCFiniteTimeAction *v6; // r0
int v7; // r3
cocos2d::CCAction *v8; // r0
v2 = this;
v3 = *(this + 452);
if ( !*(this + 452) )
{
(*(void (__fastcall **)(unsigned __int8 *, _DWORD))(*(_DWORD *)this + 536))(this, *(this + 452));
v2[452] = 1;
EditorPauseLayer::saveLevel((EditorPauseLayer *)v2);
v5 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(nullptr, v4);
v6 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, EditorPauseLayer::playStep2, v3);
v8 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v5, v6, v3, v7, EditorPauseLayer::playStep2, v3);
return (unsigned __int8 *)cocos2d::CCNode::runAction((cocos2d::CCNode *)v2, v8);
}
return this;
}