//
// IDNameInput::textInputClosed from 0x100916180 to 0x1009162f3 (371 bytes)
//
// 2 xrefs:
// > sub_100916310 @ 0x10091631c
// > ??> @ 0x100bc04b0
//
// 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:12 +0000
//
void __fastcall IDNameInput::textInputClosed(__int64 a1, __int64 a2)
{
__int64 v4; // rdi
char v5; // r12
size_t v6; // r15
unsigned int v7; // eax
char *v8; // rdi
const void *v9; // rsi
_BYTE *v10; // rax
char v11; // cl
__int64 v12; // rcx
__int64 v13; // rdi
size_t v14[2]; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
v4 = *(_QWORD *)(a1 + 440);
if ( v4 )
{
*(_QWORD *)(a1 + 440) = 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1112LL))(v4);
}
CCTextInputNode::getString(v14, a2);
v5 = v14[0];
if ( (v14[0] & 1) != 0 )
{
v6 = v14[1];
v7 = *(unsigned __int8 *)(a1 + 464);
if ( (v7 & 1) == 0 )
goto LABEL_5;
}
else
{
v6 = LOBYTE(v14[0]) >> 1;
v7 = *(unsigned __int8 *)(a1 + 464);
if ( (v7 & 1) == 0 )
{
LABEL_5:
if ( v6 != v7 >> 1 )
goto LABEL_6;
goto LABEL_10;
}
}
if ( v6 != *(_QWORD *)(a1 + 472) )
{
LABEL_6:
if ( !v6 )
goto LABEL_29;
goto LABEL_16;
}
LABEL_10:
if ( (v14[0] & 1) != 0 )
{
v8 = (char *)__p;
if ( (v7 & 1) == 0 )
{
LABEL_12:
v9 = (const void *)(a1 + 465);
goto LABEL_15;
}
}
else
{
v8 = (char *)v14 + 1;
if ( (v7 & 1) == 0 )
goto LABEL_12;
}
v9 = *(const void **)(a1 + 480);
LABEL_15:
if ( memcmp(v8, v9, v6) == 0 || v6 == 0 )
goto LABEL_29;
LABEL_16:
if ( (v5 & 1) != 0 )
v10 = __p;
else
v10 = (char *)v14 + 1;
v11 = 4;
if ( *v10 != 45 )
v11 = (unsigned __int8)(*v10 - 58) < 0xF6u;
if ( (v11 & 1) == 0 )
{
if ( v6 == 1 )
goto LABEL_29;
v12 = 1;
while ( (unsigned __int8)(v10[v12] - 48) <= 9u )
{
if ( v6 == ++v12 )
goto LABEL_29;
}
}
if ( !(unsigned __int8)sub_100915DB0(a1) )
sub_100915F90(a1);
LABEL_29:
v13 = *(_QWORD *)(a1 + 368);
if ( v13 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 16LL))(v13, a2);
sub_1009147B0(a1);
if ( (v14[0] & 1) != 0 )
operator delete(__p);
}