//
// LevelInfoLayer::loadLevelStep from 0x10002def0 to 0x10002dfcc (220 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::playStep3 @ 0x10002dea8
// > LevelInfoLayer::loadLevelStep @ 0x10002df54
//
// This function is hookable on this platform (idp: arm, 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 10:57:29 +0000
//
__int64 __fastcall LevelInfoLayer::loadLevelStep(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 (__fastcall *v4)(); // x21
__int64 v5; // x22
__int64 v6; // x1
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 488LL))(*(_QWORD *)(a1 + 712));
v3 = sub_1002E75A0(v2, 0);
PlayLayer::processCreateObjectsFromSetup();
cocos2d::CCProgressTimer::setPercentage(*(_QWORD *)(a1 + 728), *(float *)(v3 + 12548) * 100.0);
if ( *(float *)(v3 + 12548) >= 1.0 )
{
if ( *(_BYTE *)(a1 + 744) == 1 )
PlayLayer::loadPersistentCheckpoint(v3, *(_QWORD *)(a1 + 504) + 1472LL);
v4 = LevelInfoLayer::playStep4;
}
else
{
v4 = LevelInfoLayer::loadLevelStep;
}
v5 = cocos2d::CCDelayTime::create(0.0);
cocos2d::CCCallFunc::create(a1, v4, 0);
v6 = sub_10021D420(v5);
return cocos2d::CCNode::runAction(a1, v6);
}