//
// sub_10090C8A0 from 0x10090c8a0 to 0x10090c924 (132 bytes)
//
// 0 xrefs:
//
// 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:07 +0000
//
__int64 __fastcall sub_10090C8A0(__int64 a1)
{
__int64 v1; // rsi
char v2; // bl
const char *v3; // rdi
__int64 result; // rax
int v5; // eax
int v6; // ecx
unsigned int v7; // ebx
_QWORD v8[2]; // [rsp-28h] [rbp-28h] BYREF
void *v9; // [rsp-18h] [rbp-18h]
v1 = *(_QWORD *)(a1 + 712);
if ( !v1 )
return 0;
CCTextInputNode::getString(v8, v1);
v2 = v8[0];
if ( (v8[0] & 1) != 0 )
{
if ( !v8[1] )
{
LODWORD(result) = 0;
LABEL_16:
v7 = result;
operator delete(v9);
return v7;
}
v3 = (const char *)v9;
}
else
{
if ( !LOBYTE(v8[0]) )
return 0;
v3 = (char *)v8 + 1;
}
v5 = atoi(v3);
v6 = 0;
if ( v5 > 0 )
v6 = v5;
result = 9999;
if ( v6 < 9999 )
result = (unsigned int)v6;
if ( (v2 & 1) != 0 )
goto LABEL_16;
return result;
}