//
// LevelBrowserLayer::show from 0x7f62c0 to 0x7f6348 (136 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::onAddToList @ 0x7e4f28
// > SetupSmartBlockLayer::onSelectTemplate @ 0xb1438c
// > SetupSmartTemplateLayer::onBack @ 0xb17bfc
// > ??> @ 0xaa7b8
//
// 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:38 +0000
//
__int64 __fastcall LevelBrowserLayer::show(LevelBrowserLayer *this)
{
__int64 v1; // x0
LevelBrowserLayer *v2; // x1
cocos2d::CCScene *v3; // x19
cocos2d::CCScene *v4; // x0
int v5; // w2
int HighestChildZ; // w0
v1 = cocos2d::CCDirector::sharedDirector(this);
v2 = this;
v3 = *(cocos2d::CCScene **)(v1 + 272);
v4 = *((cocos2d::CCScene **)this + 94);
if ( v4 )
{
v5 = *((_DWORD *)this + 190);
}
else
{
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v3);
v5 = 105;
v2 = this;
if ( HighestChildZ > 104 )
{
v5 = cocos2d::CCScene::getHighestChildZ(v3) + 1;
v2 = this;
}
*((_DWORD *)v2 + 190) = v5;
v4 = v3;
}
if ( !v5 )
*((_DWORD *)v2 + 190) = 105;
return (*(__int64 (__fastcall **)(cocos2d::CCScene *))(*(_QWORD *)v4 + 464LL))(v4);
}