//
// EditLevelLayer::playStep3 from 0x100112020 to 0x1001120c0 (160 bytes)
//
// 1 xrefs:
// > EditLevelLayer::playStep2 @ 0x100111fc8
//
// 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 10:59:09 +0000
//
__int64 __fastcall EditLevelLayer::playStep3(__int64 a1)
{
__int64 result; // x0
__int64 PersistentCheckpoint; // x0
__int64 v4; // x20
__int64 v5; // x0
__int64 v6; // x0
int v7; // w19
void *v8; // x1
result = cocos2d::CCDirector::sharedDirector(a1);
if ( (*(_BYTE *)(result + 176) & 1) == 0 )
{
*(_DWORD *)(GameManager::sharedState(result) + 708) = 3;
PersistentCheckpoint = PlayLayer::scene(*(_QWORD *)(a1 + 472), 0);
v4 = PersistentCheckpoint;
if ( *(_BYTE *)(a1 + 536) == 1 )
{
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)PersistentCheckpoint + 488LL))(PersistentCheckpoint);
v6 = sub_1002E75A0(v5, 0);
PersistentCheckpoint = PlayLayer::loadPersistentCheckpoint(v6, *(_QWORD *)(a1 + 472) + 1472LL);
*(_BYTE *)(a1 + 536) = 0;
}
v7 = cocos2d::CCDirector::sharedDirector(PersistentCheckpoint);
v8 = (void *)cocos2d::CCTransitionFade::create_1(v4, 0.5);
return cocos2d::CCDirector::replaceScene(v7, v8);
}
return result;
}