//
// sub_180018D00 from 0x180018d00 to 0x180018dfc (252 bytes)
//
// 11 xrefs:
// > DS_Dictionary::setBoolForKey @ 0x18001eab0
// > DS_Dictionary::setFloatForKey @ 0x18001f090
// > DS_Dictionary::setIntegerForKey @ 0x18001f322
// > DS_Dictionary::setRectArrayForKey @ 0x18001f770
// > DS_Dictionary::setRectForKey @ 0x18001fdb0
// > DS_Dictionary::setStringArrayForKey @ 0x180020030
// > DS_Dictionary::setStringForKey @ 0x180020272
// > DS_Dictionary::setSubDictForKey @ 0x1800204e0
// > DS_Dictionary::setVec2ArrayForKey @ 0x1800206d0
// > DS_Dictionary::setVec2ForKey @ 0x180020c85
// > ??> @ 0x1801b898c
//
// 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 11:21:25 +0000
//
int __fastcall sub_180018D00(char *String1, char *String2)
{
int v4; // r15d
int v5; // eax
int v6; // r14d
int v8; // ebp
int v9; // esi
int v10; // ecx
int v11; // ecx
v4 = ((__int64 (*)(void))sub_18001C060)();
v5 = sub_18001C060(String2);
v6 = v5;
if ( !v4 )
{
if ( !v5 )
return stricmp(String1, String2);
return 1;
}
if ( !v5 )
return -1;
v8 = 0;
v9 = 0;
if ( v4 <= 0 )
{
LABEL_13:
if ( v9 >= v6 )
return stricmp(String1, String2);
return -1;
}
while ( v9 < v6 )
{
if ( !isdigit(*String1) )
{
do
v10 = *++String1;
while ( !isdigit(v10) );
}
if ( !isdigit(*String2) )
{
do
v11 = *++String2;
while ( !isdigit(v11) );
}
if ( *String1 != *String2 )
return *String1 - *String2;
++String1;
++String2;
++v8;
++v9;
if ( v8 >= v4 )
goto LABEL_13;
}
return 1;
}