//
// sub_18001C1A0 from 0x18001c1a0 to 0x18001c225 (133 bytes)
//
// 7 xrefs:
// > sub_1800190E0 @ 0x1800190fe
// > sub_1800190E0 @ 0x180019109
// > DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x18001a656
// > DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x18001a661
// > ??> @ 0x1801339dc
// > ??> @ 0x1801339ec
// > ??> @ 0x1801aeaac
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_18001C1A0(__int64 a1)
{
unsigned int v2; // edi
__int64 v3; // rax
__int64 v4; // rbp
__int64 v5; // rbx
int v6; // eax
unsigned int v7; // ecx
v2 = 0;
v3 = -1;
do
++v3;
while ( *(_BYTE *)(a1 + v3) );
v4 = (int)v3;
if ( (int)v3 <= 0 )
return 0;
v5 = 0;
do
{
v6 = isdigit(*(char *)(v5 + a1));
v7 = v2 + 1;
if ( !v6 )
v7 = v2;
++v5;
v2 = v7;
}
while ( v5 < v4 );
return v7;
}