//
// LevelInfoLayer::loadLevelStep from 0x1002b0fa0 to 0x1002b106a (202 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::playStep3 @ 0x1002b0f64
// > LevelInfoLayer::loadLevelStep @ 0x1002b1001
//
// 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:28:01 +0000
//
__int64 __fastcall LevelInfoLayer::loadLevelStep(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // r15
__int64 (__fastcall *v3)(); // r14
int v4; // r15d
int v5; // eax
int v6; // ecx
int v7; // r8d
int v8; // r9d
__int64 v9; // rax
v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 488LL))(*(_QWORD *)(a1 + 712));
v2 = sub_1007FEFE0(v1, 0);
PlayLayer::processCreateObjectsFromSetup(v2);
cocos2d::CCProgressTimer::setPercentage(*(_QWORD *)(a1 + 728), *(float *)(v2 + 12548) * 100.0);
if ( *(float *)(v2 + 12548) >= 1.0 )
{
v3 = LevelInfoLayer::playStep4;
if ( *(_BYTE *)(a1 + 744) == 1 )
PlayLayer::loadPersistentCheckpoint(v2);
}
else
{
v3 = LevelInfoLayer::loadLevelStep;
}
v4 = cocos2d::CCDelayTime::create(0.0);
v5 = cocos2d::CCCallFunc::create(a1, v3, 0);
v9 = sub_10039EB60(v4, v5, 0, v6, v7, v8);
return cocos2d::CCNode::runAction(a1, v9);
}