//
// LevelBrowserLayer::onClearSearch from 0x100498338 to 0x1004983a0 (104 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x100496ac4
//
// 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
//
__int64 __fastcall LevelBrowserLayer::onClearSearch(__int64 result)
{
__int64 v1; // x20
__int64 v2; // x19
__int64 v3; // x1
std::string __str; // [xsp+8h] [xbp-28h] BYREF
v1 = *(_QWORD *)(result + 664);
if ( v1 )
{
v2 = result;
sub_100009900(&__str, "");
std::string::operator=((std::string *)(v1 + 320), &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
v3 = *(_QWORD *)(v2 + 664);
*(_DWORD *)(v3 + 392) = 0;
return LevelBrowserLayer::loadPage(v2, v3);
}
return result;
}