//
// sub_1004C6FC4 from 0x1004c6fc4 to 0x1004c6fe8 (36 bytes)
//
// 10 xrefs:
// > sub_1004B26F4 @ 0x1004b274c
// > sub_1004B26F4 @ 0x1004b2790
// > sub_1004B2828 @ 0x1004b28c0
// > sub_1004B2A00 @ 0x1004b2a58
// > sub_1004B3C48 @ 0x1004b3cac
// > sub_1004B3C48 @ 0x1004b3cc0
// > sub_1004B3C48 @ 0x1004b3cd4
// > sub_1004C6FC4 @ 0x1004c6fd4
// > sub_1004D1090 @ 0x1004d112c
// > sub_1004D41B4 @ 0x1004d4594
//
// 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_1004C6FC4(unsigned __int8 *a1, unsigned __int8 *a2)
{
int v2; // w8
int v3; // t1
int v4; // w9
int v5; // t1
bool v6; // zf
do
{
v3 = *a1++;
v2 = v3;
v5 = *a2++;
v4 = v5;
if ( v2 )
v6 = v2 == v4;
else
v6 = 0;
}
while ( v6 );
return (unsigned int)((char)v2 - (char)v4);
}