//
// WorldLevelPage::show from 0xaa5b5c to 0xaa5c88 (300 bytes)
//
// 2 xrefs:
// > ??> @ 0xccfd0
// > ??> @ 0x14a3cb0
//
// 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 13:00:51 +0000
//
__int64 __fastcall WorldLevelPage::show(WorldLevelPage *this)
{
unsigned int v2; // w20
cocos2d::CCScaleTo *v3; // x0
cocos2d::CCEaseElasticOut *v4; // x0
cocos2d::CCActionInterval *v5; // x1
cocos2d::CCAction *v6; // x0
cocos2d::CCDirector *v7; // x0
__int64 v8; // x0
cocos2d::CCScene *v9; // x21
cocos2d::CCScene *v10; // x1
unsigned __int8 v11; // w1
cocos2d::CCAction *v12; // x0
int HighestChildZ; // w0
int v15; // w2
if ( !*((_BYTE *)this + 596) )
{
v2 = (*(__int64 (__fastcall **)(WorldLevelPage *))(*(_QWORD *)this + 1152LL))(this);
v3 = (cocos2d::CCScaleTo *)(*(__int64 (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 73) + 160LL))(
*((_QWORD *)this + 73),
0.1);
v4 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create(v3, 0.5, 1.0);
v6 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v4, v5, 0.7);
v7 = (cocos2d::CCDirector *)cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 73), v6);
v8 = cocos2d::CCDirector::sharedDirector(v7);
v9 = *(cocos2d::CCScene **)(v8 + 272);
v10 = *((cocos2d::CCScene **)this + 71);
if ( v10 )
{
if ( *((_DWORD *)this + 148) )
{
LABEL_5:
(*(void (__fastcall **)(cocos2d::CCScene *, WorldLevelPage *))(*(_QWORD *)v10 + 464LL))(v10, this);
(*(void (__fastcall **)(WorldLevelPage *, _QWORD))(*(_QWORD *)this + 1168LL))(this, 0);
v12 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)v2, 0.14, v11);
cocos2d::CCNode::runAction(this, v12);
return (*(__int64 (__fastcall **)(WorldLevelPage *, __int64))(*(_QWORD *)this + 344LL))(this, 1);
}
}
else
{
HighestChildZ = cocos2d::CCScene::getHighestChildZ(*(cocos2d::CCScene **)(v8 + 272));
v15 = 105;
if ( HighestChildZ > 104 )
v15 = cocos2d::CCScene::getHighestChildZ(v9) + 1;
*((_DWORD *)this + 148) = v15;
v10 = v9;
if ( v15 )
goto LABEL_5;
}
*((_DWORD *)this + 148) = 105;
goto LABEL_5;
}
return FLAlertLayer::show((GameToolbox **)this);
}