//
// sub_100914680 from 0x100914680 to 0x10091478d (269 bytes)
//
// 1 xrefs:
// > IDNameInput::initCore @ 0x100913d94
//
// 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 sub_100914680(__int64 a1)
{
__int64 v1; // rsi
__int64 v3; // rax
unsigned int v4; // r14d
const char *v5; // rdi
char v6; // cl
__int64 v7; // rcx
__int64 v8; // rdi
char *v9; // rax
__int64 v10; // [rsp+8h] [rbp-28h] BYREF
__int64 v11; // [rsp+10h] [rbp-20h]
void *__p; // [rsp+18h] [rbp-18h]
v1 = *(_QWORD *)(a1 + 384);
if ( !v1 || !*(_DWORD *)(a1 + 376) )
return;
CCTextInputNode::getString(&v10, v1);
if ( (v10 & 1) != 0 )
{
v3 = v11;
v4 = 0;
if ( !v11 )
goto LABEL_18;
LABEL_7:
if ( (v10 & 1) != 0 )
v5 = (const char *)__p;
else
v5 = (char *)&v10 + 1;
v6 = 4;
if ( *v5 != 45 )
v6 = (unsigned __int8)(*v5 - 58) < 0xF6u;
if ( (v6 & 1) == 0 )
{
if ( v3 == 1 )
{
LABEL_17:
v4 = atoi(v5);
}
else
{
v7 = 1;
while ( (unsigned __int8)(v5[v7] - 48) <= 9u )
{
if ( v3 == ++v7 )
goto LABEL_17;
}
}
}
goto LABEL_18;
}
v3 = (unsigned __int8)v10 >> 1;
v4 = 0;
if ( (unsigned __int8)v10 >> 1 )
goto LABEL_7;
LABEL_18:
v8 = *(_QWORD *)(a1 + 440);
if ( v8 )
{
*(_QWORD *)(a1 + 440) = 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1112LL))(v8);
}
v9 = IDNameBrowserPopup::create(v4, *(_DWORD *)(a1 + 376), a1 + 328);
if ( v9 )
(*(void (__fastcall **)(char *))(*(_QWORD *)v9 + 1312LL))(v9);
if ( (v10 & 1) != 0 )
operator delete(__p);
}