//
// LevelBrowserLayer::onClearSearch from 0x100484430 to 0x10048448d (93 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x10048205f
//
// 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:42 +0000
//
__int64 __fastcall LevelBrowserLayer::onClearSearch(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rsi
__int64 result; // rax
std::string __str; // [rsp+0h] [rbp-20h] BYREF
v2 = *(_QWORD *)(a1 + 664);
if ( v2 )
{
*(_WORD *)&__str.__r_.__value_.__l.0 = 0;
std::string::operator=((std::string *)(v2 + 320), &__str);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
v3 = *(_QWORD *)(a1 + 664);
*(_DWORD *)(v3 + 392) = 0;
return LevelBrowserLayer::loadPage(a1, v3);
}
return result;
}