//
// LevelBrowserLayer::show from 0x100488c10 to 0x100488c8b (123 bytes)
//
// 7 xrefs:
// > LevelInfoLayer::onAddToList @ 0x1002af3b9
// > SetupSmartBlockLayer::onSelectTemplate @ 0x1004e17e1
// > SetupSmartTemplateLayer::onBack @ 0x1004e2e26
// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1004e3291
// > sub_1004E32A0 @ 0x1004e3305
// > SetupSmartTemplateLayer::keyBackClicked @ 0x1004e3556
// > sub_1004E3560 @ 0x1004e358d
//
// 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 12:30:43 +0000
//
__int64 __fastcall LevelBrowserLayer::show(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // r14
int HighestChildZ; // eax
int v5; // edx
v1 = cocos2d::CCDirector::sharedDirector();
v2 = *(_QWORD *)(a1 + 752);
if ( v2 )
{
if ( !*(_DWORD *)(a1 + 760) )
LABEL_3:
*(_DWORD *)(a1 + 760) = 105;
}
else
{
v2 = *(_QWORD *)(v1 + 272);
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v2);
v5 = 105;
if ( HighestChildZ >= 105 )
v5 = cocos2d::CCScene::getHighestChildZ(v2) + 1;
*(_DWORD *)(a1 + 760) = v5;
if ( !v5 )
goto LABEL_3;
}
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 464LL))(v2, a1);
}