//
// sub_1004C7660 from 0x1004c7660 to 0x1004c7694 (52 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_1004C7660(__int64 a1, __int64 a2, int a3)
{
__int64 v3; // x8
int v4; // w9
int v5; // w10
bool v6; // zf
v3 = 0;
do
{
v4 = *(unsigned __int16 *)(a1 + 2 * v3);
v5 = *(unsigned __int16 *)(a2 + 2 * v3++);
if ( v4 )
v6 = v4 == v5;
else
v6 = 0;
}
while ( v6 && (int)v3 < a3 );
return (unsigned int)((__int16)v4 - (__int16)v5);
}