//
// EditorPauseLayer::onSaveAndPlay from 0x1004443b4 to 0x100444438 (132 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::customSetup @ 0x1004438b4
//
// 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 11:05:13 +0000
//
_BYTE *__fastcall EditorPauseLayer::onSaveAndPlay(_BYTE *result)
{
__int64 v1; // x19
float *v2; // x20
char v3; // w0
__int64 v4; // x1
__int64 v5; // x2
__int64 v6; // x3
__int64 v7; // x4
__int64 v8; // x5
__int64 v9; // x6
__int64 v10; // x7
__int64 v11; // x0
if ( (result[568] & 1) == 0 )
{
v1 = (__int64)result;
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)result + 1072LL))(result, 0);
*(_BYTE *)(v1 + 568) = 1;
EditorPauseLayer::saveLevel(v1);
v2 = cocos2d::CCDelayTime::create(0.0);
v3 = (unsigned __int8)cocos2d::CCCallFunc::create(v1, (__int64)EditorPauseLayer::playStep2, 0);
v11 = sub_10021D420((__int64)v2, v4, v5, v6, v7, v8, v9, v10, v3);
return (_BYTE *)cocos2d::CCNode::runAction(v1, v11);
}
return result;
}