//
// EditLevelLayer::playStep3 from 0x1001e0710 to 0x1001e079b (139 bytes)
//
// 1 xrefs:
// > EditLevelLayer::playStep2 @ 0x1001e06bb
//
// 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 12:26:28 +0000
//
__int64 __fastcall EditLevelLayer::playStep3(__int64 a1, __int64 a2, __int64 a3)
{
double v4; // xmm0_8
__int64 v5; // rax
__int64 v6; // rdi
__int64 v7; // rsi
_DWORD *v8; // r14
__int64 v9; // rax
__int64 v10; // rax
__int64 v11; // rbx
char *v12; // rax
*(_QWORD *)&v4 = GameManager::sharedState(a1, a2, a3).u64[0];
*(_DWORD *)(v5 + 708) = 3;
v6 = *(_QWORD *)(a1 + 472);
v7 = 0;
v8 = PlayLayer::scene(v6, 0);
if ( *(_BYTE *)(a1 + 536) == 1 )
{
v9 = (*(__int64 (__fastcall **)(_DWORD *, double))(*(_QWORD *)v8 + 488LL))(v8, v4);
v10 = sub_1007FEFE0(v9, 0);
v7 = *(_QWORD *)(a1 + 472) + 1472LL;
v6 = v10;
PlayLayer::loadPersistentCheckpoint(v10);
*(_BYTE *)(a1 + 536) = 0;
}
v11 = cocos2d::CCDirector::sharedDirector(v6, v7);
v12 = cocos2d::CCTransitionFade::create_1((__int64)v8, 0.5);
return cocos2d::CCDirector::replaceScene(v11, v12);
}