//
// LevelInfoLayer::loadLevelStep from 0x7e50ac to 0x7e5184 (216 bytes)
//
// 4 xrefs:
// > ??> @ 0x54580
// > LevelInfoLayer::playStep3 @ 0x7e506c
// > LevelInfoLayer::loadLevelStep @ 0x7e517c
// > ??> @ 0x1541d90
//
// 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 12:54:28 +0000
//
__int64 __fastcall LevelInfoLayer::loadLevelStep(LevelInfoLayer *this)
{
cocos2d::CCArray *v2; // x0
float *v3; // x20
cocos2d::CCDelayTime *v4; // x0
__int64 PersistentCheckpoint; // x0
cocos2d::CCSequence *v6; // x20
LevelInfoLayer *v7; // x0
__int64 (__fastcall *v8)(LevelInfoLayer *__hidden); // x1
cocos2d::CCFiniteTimeAction *v9; // x0
cocos2d::CCAction *v10; // x0
v2 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 488LL))(*((_QWORD *)this + 89));
v3 = (float *)cocos2d::CCArray::objectAtIndex(v2, 0);
PlayLayer::processCreateObjectsFromSetup((PlayLayer *)v3);
v4 = (cocos2d::CCDelayTime *)cocos2d::CCProgressTimer::setPercentage(
*((cocos2d::CCProgressTimer **)this + 91),
v3[3137] * 100.0);
if ( v3[3137] < 1.0 )
{
v6 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v4, 0.0);
v7 = this;
v8 = LevelInfoLayer::loadLevelStep;
}
else
{
PersistentCheckpoint = *((unsigned __int8 *)this + 744);
if ( *((_BYTE *)this + 744) )
PersistentCheckpoint = PlayLayer::loadPersistentCheckpoint((__int64)v3, *((_QWORD *)this + 63) + 1472LL);
v6 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)PersistentCheckpoint, 0.0);
v7 = this;
v8 = LevelInfoLayer::playStep4;
}
v9 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v7, v8, 0);
v10 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v6, v9, 0);
return cocos2d::CCNode::runAction(this, v10);
}