//
// IDNameInput::textChanged from 0xcef650 to 0xcef76c (284 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'IDNameInput::textChanged @ 0xcef770
// > ??> @ 0x8e420
// > ??> @ 0x1503348
//
// 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 13:06:44 +0000
//
__int64 __fastcall IDNameInput::textChanged(IDNameInput *this, CCTextInputNode *a2)
{
size_t v4; // x1
__int64 *v5; // x0
void (__fastcall ***v6)(_QWORD, CCTextInputNode *); // x0
__int64 v8; // [xsp+30h] [xbp+30h] BYREF
size_t v9; // [xsp+38h] [xbp+38h]
void *v10; // [xsp+40h] [xbp+40h]
CCTextInputNode::getString(a2, &v8);
if ( !*((_BYTE *)a2 + 460) )
goto LABEL_5;
v4 = (unsigned __int8)v8 >> 1;
if ( (v8 & 1) != 0 )
v4 = v9;
if ( v4 && !(unsigned __int8)IDNameInput::textIsPureInt((__int64)&v8) )
{
IDNameInput::updateAutocomplete(this);
}
else
{
LABEL_5:
v5 = (__int64 *)((char *)this + 464);
if ( (__int64 *)((char *)this + 464) != &v8 )
{
if ( (v8 & 1) != 0 )
std::string::assign(v5, v10, v9);
else
std::string::assign(v5, (char *)&v8 + 1, (unsigned __int8)v8 >> 1);
}
IDNameInput::dismissAutocomplete((__int64)this);
v6 = *((void (__fastcall ****)(_QWORD, CCTextInputNode *))this + 46);
if ( v6 )
(**v6)(v6, a2);
}
IDNameInput::refreshLabel(this);
if ( (v8 & 1) != 0 )
operator delete(v10);
return _stack_chk_guard;
}