//
// SetupSmartTemplateLayer::textInputClosed from 0x10007989c to 0x100079968 (204 bytes)
//
// 2 xrefs:
// > sub_1000799B4 @ 0x1000799b8
// > ??> @ 0x1008c5148
//
// 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 10:58:14 +0000
//
void __fastcall SetupSmartTemplateLayer::textInputClosed(__int64 a1, __int64 a2)
{
int v3; // w21
std::string *v4; // x19
std::string __p; // [xsp+0h] [xbp-70h] BYREF
std::string v6; // [xsp+20h] [xbp-50h] BYREF
void *v7; // [xsp+38h] [xbp-38h] BYREF
char v8; // [xsp+4Fh] [xbp-21h]
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
CCTextInputNode::getString(&v7);
if ( !v3 )
{
CCTextInputNode::getString(&v6);
v4 = *(std::string **)(a1 + 672);
if ( v4 )
{
if ( SHIBYTE(v6.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&__p, v6.__r_.__value_.__l.__data_, v6.__r_.__value_.__l.__size_);
else
__p = v6;
std::string::operator=(v4 + 6, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
if ( SHIBYTE(v6.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v6.__r_.__value_.__l.__data_);
}
if ( v8 < 0 )
operator delete(v7);
}