//
// EditLevelLayer::textChanged from 0x1000ebba0 to 0x1000ebc58 (184 bytes)
//
// 2 xrefs:
// > sub_1000EBC8C @ 0x1000ebc90
// > ??> @ 0x1007824a8
//
// 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 EditLevelLayer::textChanged(EditLevelLayer *a1, CCTextInputNode *a2)
{
int v4; // w0
GJGameLevel *m_level; // x20
char *v6; // x1
std::string __p; // [xsp+0h] [xbp-50h] BYREF
void *v8[2]; // [xsp+18h] [xbp-38h] BYREF
char v9; // [xsp+2Fh] [xbp-21h]
v4 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);
if ( v4 == 1 )
{
m_level = a1->m_level;
CCTextInputNode::getString(v8, a2);
if ( v9 >= 0 )
v6 = (char *)v8;
else
v6 = (char *)v8[0];
sub_100009900(&__p, v6);
std::string::operator=((std::string *)&m_level->m_levelName, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
else
{
if ( v4 != 2 )
return;
CCTextInputNode::getString(v8, a2);
}
if ( v9 < 0 )
operator delete(v8[0]);
}