//
// LevelBrowserLayer::onEnter from 0x7fd010 to 0x7fd0b0 (160 bytes)
//
// 2 xrefs:
// > ??> @ 0x5b5b8
// > ??> @ 0x143e650
//
// 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:42 +0000
//
__int64 __fastcall LevelBrowserLayer::onEnter(GJSearchObject **this)
{
GJSearchObject *v2; // x1
int v3; // w0
__int64 v5; // x0
cocos2d::CCLayer::onEnter((cocos2d::CCLayer *)this);
if ( !*((_BYTE *)this + 592) )
goto LABEL_7;
v2 = *(this + 83);
if ( !v2 )
goto LABEL_7;
v3 = *((_DWORD *)v2 + 79);
if ( (unsigned int)(v3 - 25) <= 1 )
{
LevelBrowserLayer::setupLevelBrowser((LevelBrowserLayer *)this, nullptr);
goto LABEL_7;
}
if ( (v3 & 0xFFFFFFFB) != 0x62 && v3 != 9 )
{
LevelBrowserLayer::loadPage(this, v2);
LABEL_7:
*((_BYTE *)this + 592) = 1;
return 1;
}
if ( v3 != 9 )
goto LABEL_7;
v5 = *((_QWORD *)*(this + 76) + 68);
if ( !v5 )
goto LABEL_7;
CustomListView::reloadAll(v5);
*((_BYTE *)this + 592) = 1;
return 1;
}