//
// sub_100951D50 from 0x100951d50 to 0x100951dba (106 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:39 +0000
//
__int64 __fastcall sub_100951D50(__int64 a1, __int64 a2, int a3, int a4)
{
int v6; // r15d
char *v7; // r12
char *v9[2]; // [rsp+8h] [rbp-38h] BYREF
char *v10; // [rsp+18h] [rbp-28h]
if ( a2 )
{
CCTextInputNode::getString(v9, a2);
if ( ((__int64)v9[0] & 1) != 0 )
{
v7 = v10;
v6 = atoi(v10);
operator delete(v7);
}
else
{
v6 = atoi((const char *)v9 + 1);
}
if ( v6 < a4 )
a4 = v6;
if ( a4 > a3 )
return (unsigned int)a4;
}
return (unsigned int)a3;
}