//
// LevelListLayer::textInputClosed from 0x1002471fc to 0x1002472f4 (248 bytes)
//
// 2 xrefs:
// > sub_100247358 @ 0x10024735c
// > ??> @ 0x1007cb350
//
// 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 LevelListLayer::textInputClosed(LevelListLayer *a1, CCTextInputNode *a2)
{
GJLevelList *m_levelList; // x20
char *v5; // x1
void *v6[2]; // [xsp+0h] [xbp-70h] BYREF
char v7; // [xsp+17h] [xbp-59h]
std::string __p; // [xsp+18h] [xbp-58h] BYREF
std::string __str; // [xsp+30h] [xbp-40h] BYREF
std::string v10; // [xsp+48h] [xbp-28h] BYREF
if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 1002 )
{
CCTextInputNode::getString((__int64)a2, &v10);
m_levelList = a1->m_levelList;
if ( SHIBYTE(v10.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&__str, v10.__r_.__value_.__l.__data_, v10.__r_.__value_.__l.__size_);
else
__str = v10;
std::string::operator=((std::string *)&m_levelList->m_listName, &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
CCTextInputNode::getString((__int64)a2, v6);
if ( v7 >= 0 )
v5 = (char *)v6;
else
v5 = (char *)v6[0];
sub_100009900(&__p, v5);
CCTextInputNode::updateLabel(a2, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( v7 < 0 )
operator delete(v6[0]);
if ( SHIBYTE(v10.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v10.__r_.__value_.__l.__data_);
}
}