//
// sub_1800190E0 from 0x1800190e0 to 0x1800191e5 (261 bytes)
//
// 11 xrefs:
// > DS_Dictionary::setBoolForKey @ 0x18001e8e0
// > DS_Dictionary::setFloatForKey @ 0x18001eef0
// > DS_Dictionary::setIntegerForKey @ 0x18001f182
// > DS_Dictionary::setRectArrayForKey @ 0x18001f5b6
// > DS_Dictionary::setRectForKey @ 0x18001fbd2
// > DS_Dictionary::setStringArrayForKey @ 0x18001fe30
// > DS_Dictionary::setStringForKey @ 0x180020072
// > DS_Dictionary::setSubDictForKey @ 0x1800202e0
// > DS_Dictionary::setVec2ArrayForKey @ 0x1800204d6
// > DS_Dictionary::setVec2ForKey @ 0x180020a60
// > ??> @ 0x1801ae920
//
// 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
//
int __fastcall sub_1800190E0(char *String1, char *String2)
{
int v4; // r15d
int v5; // eax
int v6; // r14d
int v8; // esi
int v9; // ebp
int v10; // ecx
int v11; // ecx
v4 = ((__int64 (*)(void))sub_18001C1A0)();
v5 = sub_18001C1A0(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;
}
if ( v8 >= v4 )
return stricmp(String1, String2);
return 1;
}