//
// EditLevelLayer::playStep3 from 0x7ed5f8 to 0x7ed694 (156 bytes)
//
// 3 xrefs:
// > ??> @ 0x63bb0
// > EditLevelLayer::playStep2 @ 0x7ed4d8
// > ??> @ 0x1542668
//
// 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:54:33 +0000
//
__int64 __fastcall EditLevelLayer::playStep3(PlayLayer **this)
{
__int64 result; // x0
cocos2d::CCDirector *PersistentCheckpoint; // x0
cocos2d::CCTransitionFade *v4; // x20
cocos2d::CCDirector *v5; // x19
cocos2d::CCScene *v6; // x1
cocos2d::CCScene *v7; // x0
cocos2d::CCArray *v8; // x0
__int64 v9; // x0
result = *(unsigned __int8 *)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this) + 176);
if ( !(_DWORD)result )
{
*(_DWORD *)(GameManager::sharedState((GameManager *)result) + 708) = 3;
PersistentCheckpoint = PlayLayer::scene(*(this + 59), nullptr);
v4 = PersistentCheckpoint;
if ( *((_BYTE *)this + 536) )
{
v8 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCDirector *))(*(_QWORD *)PersistentCheckpoint + 488LL))(PersistentCheckpoint);
v9 = cocos2d::CCArray::objectAtIndex(v8, 0);
PersistentCheckpoint = (cocos2d::CCDirector *)PlayLayer::loadPersistentCheckpoint(
v9,
(__int64)*(this + 59) + 1472);
*((_BYTE *)this + 536) = 0;
}
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(PersistentCheckpoint);
v7 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v4, 0.5, v6);
return cocos2d::CCDirector::replaceScene(v5, v7);
}
return result;
}