//
// sub_1004C76D8 from 0x1004c76d8 to 0x1004c772c (84 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
//
__int64 __fastcall sub_1004C76D8(__int64 a1, __int64 a2, int a3)
{
__int64 v3; // x8
int v4; // w10
int v5; // w11
__int16 v6; // w9
__int16 v7; // w10
v3 = 0;
do
{
v4 = *(unsigned __int16 *)(a1 + 2 * v3);
v5 = *(unsigned __int16 *)(a2 + 2 * v3);
if ( (unsigned int)(v4 - 65) >= 0x1A )
v6 = *(_WORD *)(a1 + 2 * v3);
else
v6 = v4 + 32;
if ( (unsigned int)(v5 - 65) >= 0x1A )
v7 = *(_WORD *)(a2 + 2 * v3);
else
v7 = v5 + 32;
if ( !v6 )
break;
++v3;
}
while ( v6 == v7 && (int)v3 < a3 );
return (unsigned int)(v6 - v7);
}