//
// LevelBrowserLayer::onEnter from 0x1004885d0 to 0x10048864c (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b4caf0
//
// 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
//
void __fastcall LevelBrowserLayer::onEnter(__int64 a1, double a2, double a3, double a4, __m128 a5)
{
__int64 v6; // rsi
int v7; // eax
__int64 v8; // rdi
cocos2d::CCLayer::onEnter(a1);
if ( *(_BYTE *)(a1 + 592) == 1 )
{
v6 = *(_QWORD *)(a1 + 664);
if ( v6 )
{
v7 = *(_DWORD *)(v6 + 316);
if ( (unsigned int)(v7 - 25) > 1 )
{
if ( v7 == 9 )
{
v8 = *(_QWORD *)(*(_QWORD *)(a1 + 608) + 544LL);
if ( v8 )
CustomListView::reloadAll(v8, v6, a2);
}
else if ( v7 != 98 && v7 != 102 )
{
LevelBrowserLayer::loadPage(a1, v6, a2, a3, a4, a5);
}
}
else
{
LevelBrowserLayer::setupLevelBrowser(a1, 0);
}
}
}
*(_BYTE *)(a1 + 592) = 1;
}