//
// LevelInfoLayer::playStep4 from 0x140422590 to 0x14042263b (171 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::loadLevelStep @ 0x140422549
// > ??> @ 0x140926870
//
// 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:32:09 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall LevelInfoLayer::playStep4(__int64 a1)
{
__int64 v2; // rax
struct cocos2d::CCScene *v3; // rbx
__int64 v4; // rcx
cocos2d::CCDirector *v5; // rax
void *v6; // [rsp+30h] [rbp+8h]
dword_1409097A0 = clock();
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v6 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
*(_BYTE *)(v2 + 1160) = 0;
v3 = cocos2d::CCTransitionFade::create(0.5, *(struct cocos2d::CCScene **)(a1 + 712));
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::replaceScene(v5, v3);
cocos2d::CCObject::release(*(cocos2d::CCObject **)(a1 + 712));
*(_QWORD *)(a1 + 712) = 0;
}