//
// LevelBrowserLayer::show from 0x4a4d40 to 0x4a4d8c (76 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::onAddToList @ 0x499b2e
// > SetupSmartBlockLayer::onSelectTemplate @ 0x67279c
// > SetupSmartTemplateLayer::onBack @ 0x674aee
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:53 +0000
//
int __fastcall LevelBrowserLayer::show(cocos2d::CCScene **this)
{
cocos2d::CCScene *v2; // r5
cocos2d::CCScene *v3; // r0
int v4; // r0
v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this) + 220);
v3 = *(this + 138);
if ( !v3 )
{
if ( (int)cocos2d::CCScene::getHighestChildZ(v2) <= 104 )
v4 = 105;
else
v4 = cocos2d::CCScene::getHighestChildZ(v2) + 1;
*(this + 139) = (cocos2d::CCScene *)v4;
v3 = v2;
}
if ( !*(this + 139) )
*(this + 139) = (cocos2d::CCScene *)(&dword_68 + 1);
return (*(int (__fastcall **)(cocos2d::CCScene *, cocos2d::CCScene **, _DWORD))(*(_DWORD *)v3 + 232))(
v3,
this,
*(this + 139));
}