//
// LevelBrowserLayer::setTextPopupClosed from 0x100419314 to 0x100419394 (128 bytes)
//
// 3 xrefs:
// > sub_1004193B0 @ 0x1004193b4
// > ??> @ 0x1007cb300
// > ??> @ 0x100823160
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall LevelBrowserLayer::setTextPopupClosed(LevelBrowserLayer *a1, __int64 a2, __int64 a3)
{
GJSearchObject *m_searchObject; // x20
GJSearchObject *v5; // x1
std::string __p; // [xsp+0h] [xbp-30h] BYREF
m_searchObject = a1->m_searchObject;
if ( m_searchObject )
{
if ( *(char *)(a3 + 23) < 0 )
sub_1000097D0(&__p, *(void **)a3, *(_QWORD *)(a3 + 8));
else
__p = *(std::string *)a3;
std::string::operator=((std::string *)&m_searchObject->m_searchQuery, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
v5 = a1->m_searchObject;
v5->m_page = 0;
LevelBrowserLayer::loadPage(a1, v5);
}
}