//
// IDNameInput::textChanged from 0x100916040 to 0x100916144 (260 bytes)
//
// 2 xrefs:
// > sub_100916160 @ 0x10091616c
// > ??> @ 0x100bc04a0
//
// This function is hookable on this platform (idp: pc, 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 12:38:11 +0000
//
void __fastcall IDNameInput::textChanged(__int64 a1, __int64 a2)
{
std::string::size_type size; // rax
std::string::pointer data; // rcx
char v5; // dl
__int64 v6; // rdx
__int64 v7; // rdi
void (__fastcall ***v8)(_QWORD, __int64); // rdi
std::string __str; // [rsp+8h] [rbp-28h] BYREF
CCTextInputNode::getString(&__str, a2);
if ( *(_BYTE *)(a2 + 460) != 1 )
goto LABEL_16;
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
{
size = __str.__r_.__value_.__l.__size_;
if ( !__str.__r_.__value_.__l.__size_ )
goto LABEL_16;
}
else
{
size = *(_BYTE *)&__str.__r_.__value_.__l.0 >> 1;
if ( !(*(_BYTE *)&__str.__r_.__value_.__l.0 >> 1) )
goto LABEL_16;
}
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
data = __str.__r_.__value_.__l.__data_;
else
data = __str.__r_.__value_.__s.__data_;
v5 = 4;
if ( *data != 45 )
v5 = (unsigned __int8)(*data - 58) < 0xF6u;
if ( (v5 & 1) != 0 )
{
LABEL_20:
IDNameInput::updateAutocomplete(a1);
goto LABEL_21;
}
if ( size != 1 )
{
v6 = 1;
while ( (unsigned __int8)(data[v6] - 48) <= 9u )
{
if ( size == ++v6 )
goto LABEL_16;
}
goto LABEL_20;
}
LABEL_16:
std::string::operator=((std::string *)(a1 + 464), &__str);
v7 = *(_QWORD *)(a1 + 440);
if ( v7 )
{
*(_QWORD *)(a1 + 440) = 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1112LL))(v7);
}
v8 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 368);
if ( v8 )
(**v8)(v8, a2);
LABEL_21:
sub_1009147B0(a1);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
}