//
// sub_10017767C from 0x10017767c to 0x1001776ec (112 bytes)
//
// 1 xrefs:
// > sub_1001785F8 @ 0x100178704
//
// 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_10017767C(const char *a1, const char *a2, int a3)
{
int v4; // w8
int v5; // t1
int v6; // w9
int v7; // t1
if ( a3 == 1 )
return strcmp(a1, a2);
while ( 1 )
{
v5 = *(unsigned __int8 *)a1++;
v4 = v5;
v7 = *(unsigned __int8 *)a2++;
v6 = v7;
if ( (unsigned int)(v4 - 97) < 0x1A )
LOBYTE(v4) = v4 - 32;
if ( (unsigned int)(v6 - 97) < 0x1A )
LOBYTE(v6) = v6 - 32;
if ( !(_BYTE)v4 )
break;
if ( !(_BYTE)v6 )
return 1;
if ( (char)v4 < (char)v6 )
return 0xFFFFFFFFLL;
if ( (char)v4 > (char)v6 )
return 1;
}
if ( (_BYTE)v6 )
return 0xFFFFFFFFLL;
else
return 0;
}