//
// IDNameInput::textChanged from 0x1004e89d0 to 0x1004e8a94 (196 bytes)
//
// 2 xrefs:
// > sub_1004E8AB0 @ 0x1004e8ab4
// > ??> @ 0x100993128
//
// 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:06:41 +0000
//
void __fastcall IDNameInput::textChanged(__int64 a1, __int64 a2)
{
std::string::size_type size; // x8
__int64 v5; // x0
void (__fastcall ***v6)(_QWORD, __int64); // x0
std::string __str; // [xsp+8h] [xbp-28h] BYREF
CCTextInputNode::getString(a2, &__str);
if ( *(_BYTE *)(a2 + 460) != 1 )
goto LABEL_6;
size = HIBYTE(__str.__r_.__value_.__r.__words[2]);
if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = __str.__r_.__value_.__l.__size_;
if ( size && (sub_1004E68A8((__int64 *)&__str) & 1) == 0 )
{
sub_1004E7FB8(a1);
}
else
{
LABEL_6:
std::string::operator=((std::string *)(a1 + 464), &__str);
v5 = *(_QWORD *)(a1 + 440);
if ( v5 )
{
*(_QWORD *)(a1 + 440) = 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1112LL))(v5);
}
v6 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 368);
if ( v6 )
(**v6)(v6, a2);
}
sub_1004E7BB0(a1);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
}