//
// sub_1004C7018 from 0x1004c7018 to 0x1004c705c (68 bytes)
//
// 6 xrefs:
// > sub_100427874 @ 0x1004278c0
// > sub_100427874 @ 0x1004278d4
// > sub_10043EF2C @ 0x10043ef90
// > sub_1004AB2B8 @ 0x1004ab6b4
// > sub_1004AB2B8 @ 0x1004ab6e4
// > sub_1004C7018 @ 0x1004c704c
//
// 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_1004C7018(unsigned __int8 *a1, unsigned __int8 *a2)
{
unsigned __int8 v2; // w8
int v3; // t1
unsigned __int8 v4; // w10
bool v5; // cf
int v6; // w9
int v7; // t1
do
{
v3 = *a1++;
v2 = v3;
v4 = v3 + 32;
v5 = (unsigned int)(v3 - 65) >= 0x1A;
v7 = *a2++;
v6 = v7;
if ( !v5 )
v2 = v4;
if ( (unsigned int)(v6 - 65) < 0x1A )
LOBYTE(v6) = v6 + 32;
}
while ( v2 && v2 == (unsigned __int8)v6 );
return (unsigned int)((char)v2 - (char)v6);
}