//
// sub_1007C3020 from 0x1007c3020 to 0x1007c309a (122 bytes)
//
// 0 xrefs:
//
// 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_1007C3020(const char *a1, const char *a2, int a3)
{
int result; // eax
__int64 i; // rcx
char v5; // al
char v6; // dl
char v7; // al
char v8; // r8
if ( a3 == 1 )
return strcmp(a1, a2);
for ( i = 0; ; ++i )
{
v5 = a1[i];
v6 = v5 - 32;
if ( (unsigned __int8)(v5 - 97) >= 0x1Au )
v6 = a1[i];
v7 = a2[i];
v8 = v7 - 32;
if ( (unsigned __int8)(v7 - 97) >= 0x1Au )
v8 = a2[i];
if ( !v6 )
return -(v8 != 0);
result = 1;
if ( !v8 )
return result;
if ( v6 < v8 )
break;
if ( v6 > v8 )
return result;
}
return -1;
}