//
// sub_100914B60 from 0x100914b60 to 0x100914c47 (231 bytes)
//
// 2 xrefs:
// > sub_100914320 @ 0x10091432a
// > sub_100914330 @ 0x10091433a
//
// 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_100914B60(__int64 a1, int a2)
{
__int64 v3; // rsi
__int64 v5; // rcx
__int64 v6; // rsi
int v7; // eax
const char *v8; // rdi
char v9; // dl
__int64 v10; // rax
int v11; // eax
__int64 v12; // [rsp+8h] [rbp-28h] BYREF
__int64 v13; // [rsp+10h] [rbp-20h]
void *__p; // [rsp+18h] [rbp-18h]
v3 = *(_QWORD *)(a1 + 384);
if ( !v3 )
return;
CCTextInputNode::getString(&v12, v3);
if ( (v12 & 1) != 0 )
{
v5 = v13;
v6 = 0;
v7 = 0;
if ( !v13 )
goto LABEL_18;
LABEL_6:
if ( (v12 & 1) != 0 )
v8 = (const char *)__p;
else
v8 = (char *)&v12 + 1;
v9 = 4;
if ( *v8 != 45 )
v9 = (unsigned __int8)(*v8 - 58) < 0xF6u;
v7 = 0;
if ( (v9 & 1) == 0 )
{
if ( v5 == 1 )
{
LABEL_16:
v7 = atoi(v8);
v6 = 0;
}
else
{
v10 = 1;
while ( (unsigned __int8)(v8[v10] - 48) <= 9u )
{
if ( v5 == ++v10 )
goto LABEL_16;
}
v7 = 0;
}
}
goto LABEL_18;
}
v5 = (unsigned __int8)v12 >> 1;
v6 = 0;
v7 = 0;
if ( (unsigned __int8)v12 >> 1 )
goto LABEL_6;
LABEL_18:
v11 = a2 + v7;
if ( v11 > 0 )
v6 = (unsigned int)v11;
sub_100914C70(a1, v6);
if ( (v12 & 1) != 0 )
operator delete(__p);
}