//
// IDNameInput::textInputClosed from 0xcef938 to 0xcefac4 (396 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'IDNameInput::textInputClosed @ 0xcefac8
// > ??> @ 0xe4fb8
// > ??> @ 0x1503358
//
// 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::textInputClosed(IDNameInput *this, CCTextInputNode *a2)
{
int v4; // w4
size_t v5; // x2
__int64 v6; // x1
size_t v7; // x3
__int64 v8; // x0
unsigned __int8 *v10; // x0
unsigned __int8 *v11; // x1
unsigned __int8 *v12; // x4
unsigned __int8 *v13; // x2
int v14; // t1
__int64 v15; // [xsp+30h] [xbp+30h] BYREF
size_t v16; // [xsp+38h] [xbp+38h]
void *v17; // [xsp+40h] [xbp+40h]
IDNameInput::dismissAutocomplete((__int64)this);
CCTextInputNode::getString(a2, &v15);
v4 = v15 & 1;
v5 = (unsigned __int8)v15 >> 1;
if ( v4 )
v5 = v16;
v6 = *((_BYTE *)this + 464) >> 1;
if ( (*((_BYTE *)this + 464) & 1) != 0 )
v6 = *((_QWORD *)this + 59);
if ( v5 != v6 )
{
if ( v4 )
{
v7 = v16;
LABEL_8:
if ( !v7 )
goto LABEL_9;
LABEL_25:
if ( !(unsigned __int8)IDNameInput::textIsPureInt((__int64)&v15)
&& !(unsigned __int8)IDNameInput::commitTypedName(this) )
{
IDNameInput::revertToLastID(this);
}
goto LABEL_9;
}
goto LABEL_24;
}
v10 = (unsigned __int8 *)&v15 + 1;
if ( v4 )
v10 = (unsigned __int8 *)v17;
v11 = (unsigned __int8 *)this + 465;
if ( (*((_BYTE *)this + 464) & 1) != 0 )
v11 = *((unsigned __int8 **)this + 60);
if ( v4 )
{
if ( !v5 || !memcmp(v10, v11, v5) )
goto LABEL_9;
v7 = v16;
goto LABEL_8;
}
if ( !v5 )
goto LABEL_9;
if ( *v10 != *v11 )
{
LABEL_24:
if ( !((unsigned __int8)v15 >> 1) )
goto LABEL_9;
goto LABEL_25;
}
v12 = v10 + 1;
v13 = &v10[v5];
while ( 1 )
{
++v11;
if ( v12 == v13 )
break;
v14 = *v12++;
if ( *v11 != v14 )
goto LABEL_24;
}
LABEL_9:
v8 = *((_QWORD *)this + 46);
if ( v8 )
(*(void (__fastcall **)(__int64, CCTextInputNode *))(*(_QWORD *)v8 + 16LL))(v8, a2);
IDNameInput::refreshLabel(this);
if ( (v15 & 1) != 0 )
operator delete(v17);
return _stack_chk_guard;
}