//
// EditLevelLayer::playStep3 from 0x14017b520 to 0x14017b5f7 (215 bytes)
//
// 2 xrefs:
// > EditLevelLayer::playStep2 @ 0x14017b4d8
// > ??> @ 0x140918740
//
// This function is hookable on this platform (idp: pc, 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:27:35 +0000
//
// Hidden C++ exception states: #wind=1
bool __fastcall EditLevelLayer::playStep3(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rax
struct cocos2d::CCScene *v4; // rdi
cocos2d::CCArray *v5; // rax
struct cocos2d::CCObject *v6; // rax
struct cocos2d::CCScene *v7; // rbx
__int64 v8; // rcx
cocos2d::CCDirector *v9; // rax
void *v11; // [rsp+30h] [rbp+8h]
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v11 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
*(_DWORD *)(v2 + 740) = 3;
v3 = PlayLayer::scene(*(_QWORD *)(a1 + 472), 0);
v4 = (struct cocos2d::CCScene *)v3;
if ( *(_BYTE *)(a1 + 544) )
{
v5 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 480LL))(v3);
v6 = cocos2d::CCArray::objectAtIndex(v5, 0);
PlayLayer::loadPersistentCheckpoint(v6, *(_QWORD *)(a1 + 472) + 1632LL);
*(_BYTE *)(a1 + 544) = 0;
}
v7 = cocos2d::CCTransitionFade::create(0.5, v4);
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);
return cocos2d::CCDirector::replaceScene(v9, v7);
}