//
// IDNameInput::textInputClosed from 0x1004e8ab8 to 0x1004e8bc8 (272 bytes)
//
// 2 xrefs:
// > sub_1004E8BE4 @ 0x1004e8be8
// > ??> @ 0x100993138
//
// 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::textInputClosed(__int64 a1, __int64 a2)
{
__int64 v4; // x0
size_t v5; // x21
__int64 v6; // x10
int v7; // w9
void **v8; // x0
const void *v9; // x1
__int64 v11; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
unsigned __int8 v13; // [xsp+1Fh] [xbp-21h]
v4 = *(_QWORD *)(a1 + 440);
if ( v4 )
{
*(_QWORD *)(a1 + 440) = 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1112LL))(v4);
}
CCTextInputNode::getString(a2, __p);
if ( (v13 & 0x80u) == 0 )
v5 = v13;
else
v5 = (size_t)__p[1];
v6 = *(unsigned __int8 *)(a1 + 487);
v7 = (char)v6;
if ( (v6 & 0x80u) != 0LL )
v6 = *(_QWORD *)(a1 + 472);
if ( v5 == v6 )
{
if ( (v13 & 0x80u) == 0 )
v8 = __p;
else
v8 = (void **)__p[0];
if ( v7 >= 0 )
v9 = (const void *)(a1 + 464);
else
v9 = *(const void **)(a1 + 464);
if ( !memcmp(v8, v9, v5) || v5 == 0 )
goto LABEL_25;
}
else if ( !v5 )
{
goto LABEL_25;
}
if ( (sub_1004E68A8((__int64 *)__p) & 1) == 0 && !sub_1004E8810(a1) )
sub_1004E8934(a1);
LABEL_25:
v11 = *(_QWORD *)(a1 + 368);
if ( v11 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 16LL))(v11, a2);
sub_1004E7BB0(a1);
if ( (char)v13 < 0 )
operator delete(__p[0]);
}