//
// LevelBrowserLayer::onRefresh from 0x100497b30 to 0x100497bbc (140 bytes)
//
// 2 xrefs:
// > LevelListLayer::init @ 0x1002e0f18
// > LevelBrowserLayer::init @ 0x10049649c
//
// 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 11:05:57 +0000
//
void __fastcall LevelBrowserLayer::onRefresh(__int64 a1)
{
__int64 v2; // x0
char *Key; // x0
__int64 v4; // x0
char *v5; // x1
__int64 v6; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
v2 = *(_QWORD *)(a1 + 664);
if ( v2 )
{
Key = (char *)GJSearchObject::getKey(v2);
sub_100009900(__p, Key);
v4 = GameLevelManager::sharedState();
if ( v8 >= 0 )
v5 = (char *)__p;
else
v5 = (char *)__p[0];
sub_1000ADE4C(v4, v5);
LevelBrowserLayer::loadPage(a1, *(_QWORD *)(a1 + 664));
v6 = *(_QWORD *)(a1 + 648);
if ( v6 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);
if ( v8 < 0 )
operator delete(__p[0]);
}
}