//
// LevelInfoLayer::loadLevelStep from 0x1404224c0 to 0x14042258b (203 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::playStep3 @ 0x140422463
// > LevelInfoLayer::loadLevelStep @ 0x140422521
// > ??> @ 0x140926864
//
// 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
//
struct cocos2d::CCAction *__fastcall LevelInfoLayer::loadLevelStep(__int64 a1)
{
cocos2d::CCArray *v2; // rax
struct cocos2d::CCObject *v3; // rbx
__int64 (__fastcall *v4)(); // rdx
__int64 v5; // rbx
struct cocos2d::CCFiniteTimeAction *v6; // rax
struct cocos2d::CCAction *v7; // rax
v2 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 480LL))(*(_QWORD *)(a1 + 712));
v3 = cocos2d::CCArray::objectAtIndex(v2, 0);
PlayLayer::processCreateObjectsFromSetup(v3);
cocos2d::CCProgressTimer::setPercentage(*(cocos2d::CCProgressTimer **)(a1 + 728), *((float *)v3 + 3257) * 100.0);
if ( *((float *)v3 + 3257) >= 1.0 )
{
if ( *(_BYTE *)(a1 + 744) )
PlayLayer::loadPersistentCheckpoint(v3, *(_QWORD *)(a1 + 504) + 1632LL);
v4 = LevelInfoLayer::playStep4;
}
else
{
v4 = LevelInfoLayer::loadLevelStep;
}
v5 = cocos2d::CCCallFunc::create(a1, v4);
v6 = cocos2d::CCDelayTime::create(0.0);
v7 = cocos2d::CCSequence::create(v6, v5, 0);
return cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v7);
}