//
// LevelBrowserLayer::setTextPopupClosed from 0x100491560 to 0x1004915e8 (136 bytes)
//
// 3 xrefs:
// > sub_100491610 @ 0x10049161c
// > ??> @ 0x100918688
// > ??> @ 0x100942a68
//
// 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, double a2, __int64 a3, std::string *a4)
{
GJSearchObject *m_searchObject; // r14
GJSearchObject *v5; // rsi
std::string __str; // [rsp+0h] [rbp-30h] BYREF
m_searchObject = a1->m_searchObject;
if ( m_searchObject )
{
if ( (*(_BYTE *)&a4->__r_.__value_.__s.0 & 1) != 0 )
sub_100006B70(&__str, a4->__r_.__value_.__l.__data_, a4->__r_.__value_.__l.__size_, a2);
else
__str = *a4;
std::string::operator=((std::string *)&m_searchObject->m_searchQuery, &__str);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
v5 = a1->m_searchObject;
v5->m_page = 0;
LevelBrowserLayer::loadPage(a1, v5);
}
}