//
// alphaNumericallyLessThan from 0x5fc6f8 to 0x5fc764 (108 bytes)
//
// 11 xrefs:
// > DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x5fcdba
// > DS_Dictionary::setBoolForKey @ 0x5fd540
// > DS_Dictionary::setStringForKey @ 0x5fd680
// > DS_Dictionary::setStringArrayForKey @ 0x5fd7e0
// > DS_Dictionary::setVec2ForKey @ 0x5fd9b4
// > DS_Dictionary::setRectForKey @ 0x5fdb8e
// > DS_Dictionary::setVec2ArrayForKey @ 0x5fdd10
// > DS_Dictionary::setRectArrayForKey @ 0x5fdf2c
// > DS_Dictionary::setSubDictForKey @ 0x5ff1cc
// > DS_Dictionary::setFloatForKey @ 0x5ffcb2
// > DS_Dictionary::setIntegerForKey @ 0x5ffe3e
//
// 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 alphaNumericallyLessThan(const char *a1, const char *a2)
{
const char *v3; // r5
int v4; // r7
int v5; // r0
int i; // r2
int v7; // r3
const char *v8; // r6
const char *v9; // r1
int v10; // r5
int v11; // t1
v3 = a1;
v4 = ndigits(a1);
v5 = ndigits(a2);
if ( v4 )
{
if ( v5 )
{
for ( i = 0; i < v4; ++i )
{
if ( i >= v5 )
return 1;
do
{
v7 = *(unsigned __int8 *)v3;
v8 = v3++;
}
while ( (unsigned int)(v7 - 48) > 9 );
do
{
v9 = a2;
v11 = *(unsigned __int8 *)a2++;
v10 = v11;
}
while ( (unsigned int)(v11 - 48) > 9 );
if ( v7 != v10 )
return v7 - v10;
v3 = v8 + 1;
a2 = v9 + 1;
}
if ( i >= v5 )
return j_strcasecmp(v3, a2);
}
return -1;
}
else
{
if ( !v5 )
return j_strcasecmp(v3, a2);
return 1;
}
}