//
// LevelBrowserLayer::show from 0x1403eb640 to 0x1403eb6c9 (137 bytes)
//
// 6 xrefs:
// > LevelInfoLayer::onAddToList @ 0x14041e841
// > SetupSmartBlockLayer::onSelectTemplate @ 0x1405ee3f4
// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1405ef230
// > SetupSmartTemplateLayer::onBack @ 0x1405ef669
// > SetupSmartTemplateLayer::keyBackClicked @ 0x1405ef770
// > ??> @ 0x1409251f0
//
// This function is hookable on this platform (idp: pc, 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 11:31:45 +0000
//
__int64 __fastcall LevelBrowserLayer::show(__int64 a1)
{
cocos2d::CCScene *v2; // rbx
int v3; // eax
v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 272);
if ( *(_QWORD *)(a1 + 752) )
{
v2 = *(cocos2d::CCScene **)(a1 + 752);
}
else
{
if ( cocos2d::CCScene::getHighestChildZ(v2) + 1 >= 105 )
v3 = cocos2d::CCScene::getHighestChildZ(v2) + 1;
else
v3 = 105;
*(_DWORD *)(a1 + 760) = v3;
}
if ( !*(_DWORD *)(a1 + 760) )
*(_DWORD *)(a1 + 760) = 105;
return (*(__int64 (__fastcall **)(cocos2d::CCScene *, __int64))(*(_QWORD *)v2 + 456LL))(v2, a1);
}