//
// LevelListLayer::textInputClosed from 0x1002e443c to 0x1002e4534 (248 bytes)
//
// 2 xrefs:
// > sub_1002E4598 @ 0x1002e459c
// > ??> @ 0x100923a58
//
// This function is hookable on this platform (idp: arm, 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 11:02:49 +0000
//
void __fastcall LevelListLayer::textInputClosed(__int64 a1, __int64 a2)
{
std::string *v4; // 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 **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1002 )
{
CCTextInputNode::getString(a2, &v10);
v4 = *(std::string **)(a1 + 912);
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=(v4 + 18, &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
CCTextInputNode::getString(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_);
}
}